.lists-page {
  color: var(--warm-ink);
}

/* Match the slim device frame used by the payments demo. */
.lists-page .family-chat-phone {
  padding: 5px;
  border-color: rgba(255, 255, 255, 0.38);
  border-radius: 15.7% / 7.4%;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.8),
    inset 0 0 0 2px rgba(255, 255, 255, 0.07),
    0 34px 46px rgba(8, 28, 80, 0.42);
}

.lists-page .family-chat-phone::before,
.lists-page .family-chat-phone::after {
  content: none;
}

.lists-page .family-chat-phone-screen {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 14.1% / 6.5%;
  clip-path: inset(0 round 14.1% / 6.5%);
}

.lists-page .family-chat-phone-button {
  top: 22.75%;
  height: 12.1%;
  box-shadow: none;
}

.lists-page .page {
  max-width: 1480px;
}

.lists-page-header {
  padding: 10px 6px 2px;
}

.lists-page-header .hero-topline {
  margin-bottom: 0;
}

.lists-hero {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  padding: clamp(64px, 7vw, 92px) clamp(24px, 5.4vw, 68px);
  border: 1px solid rgba(47, 107, 255, 0.11);
  border-radius: 42px;
  background:
    radial-gradient(circle at 88% -15%, rgba(47, 107, 255, 0.15), transparent 36%),
    radial-gradient(circle at 5% 110%, rgba(255, 207, 74, 0.2), transparent 31%),
    linear-gradient(136deg, #fdfcf8 0%, #fbfaf6 58%, #f2f4fb 100%);
  box-shadow: var(--warm-shadow);
}

.lists-hero::after {
  position: absolute;
  right: -78px;
  bottom: -132px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(47, 107, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(47, 107, 255, 0.035),
    0 0 0 84px rgba(255, 207, 74, 0.026);
  content: "";
  pointer-events: none;
}

.lists-hero .hero-logo-link {
  display: flex;
  align-items: center;
  gap: 13px;
}

.lists-hero .hero-logo-img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(47, 107, 255, 0.09);
  border-radius: 15px;
  box-shadow: 0 14px 30px rgba(47, 107, 255, 0.15);
}

.lists-hero .hero-logo-text-main {
  color: var(--warm-ink);
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.lists-hero .hero-logo-text-sub {
  color: var(--warm-muted);
  font-size: 11px;
}

.lists-hero-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lists-back-link,
.lists-page-header .hero-open-app {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--warm-line);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.76);
  color: var(--brand-blue-start);
  font-size: 13px;
  font-weight: 650;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.lists-back-link:hover,
.lists-page-header .hero-open-app:hover {
  background: #fff;
  box-shadow: var(--warm-shadow-small);
  transform: translateY(-1px);
}

.lists-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 890px;
  padding: 0;
}

.lists-hero h1 {
  max-width: 880px;
  margin: 0;
  color: var(--warm-ink);
  font-family: "Onest", "Inter", sans-serif;
  font-size: clamp(54px, 6.1vw, 82px);
  font-weight: 740;
  line-height: 0.98;
  letter-spacing: -0.072em;
}

.lists-hero-copy > p {
  max-width: 720px;
  margin: 25px 0 0;
  color: var(--warm-muted);
  font-size: 17px;
  line-height: 1.65;
}

.lists-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.lists-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 700;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.lists-button-primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 14px 28px rgba(47, 107, 255, 0.22);
}

.lists-button-primary:hover {
  background: var(--brand-blue-start);
  box-shadow: 0 18px 34px rgba(47, 107, 255, 0.28);
  transform: translateY(-2px);
}

.lists-button-secondary {
  border-color: rgba(47, 107, 255, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--warm-ink-soft);
}

.lists-button-secondary:hover {
  border-color: rgba(47, 107, 255, 0.25);
  background: #fff;
  transform: translateY(-2px);
}

.lists-page :is(a, button):focus-visible {
  outline: 3px solid rgba(47, 107, 255, 0.3);
  outline-offset: 4px;
}

.lists-page .panel-list li {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.lists-page .panel-list li::before {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .lists-page .panel-list li:hover {
    border-color: rgba(47, 107, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.82);
    box-shadow:
      0 14px 30px rgba(26, 36, 67, 0.1),
      0 0 0 3px rgba(47, 107, 255, 0.06);
    transform: translateY(-2px);
  }

  .lists-page .panel-list li:hover::before {
    box-shadow: 0 0 0 5px rgba(47, 107, 255, 0.11);
    transform: scale(1.08);
  }
}

/* The family demo is now above the fold, so its frame sequence must not start
   before both phones have decoded every frame. */
.family-chat-demo.family-chat-loading :is(
    .family-chat-frame,
    .family-chat-splash,
    .family-chat-camera-flash
  ) {
  animation-play-state: paused !important;
}

.family-chat-demo.family-chat-loading .family-chat-frame {
  display: none;
  opacity: 0 !important;
}

.family-chat-demo.family-chat-loading :is(
    .family-chat-frame-base,
    .family-chat-frame-lena-base
  ) {
  display: block;
  opacity: 1 !important;
}

.family-chat-demo.family-chat-loading :is(
    .family-chat-splash,
    .family-chat-camera-flash
  ) {
  opacity: 0 !important;
}

.family-chat-demo.family-chat-fallback .family-chat-frame {
  display: none;
  animation: none !important;
}

.family-chat-demo.family-chat-fallback :is(
    .family-chat-frame-base,
    .family-chat-frame-lena-base
  ) {
  display: block;
  opacity: 1;
}

.family-chat-demo.family-chat-fallback :is(
    .family-chat-splash,
    .family-chat-camera-flash
  ) {
  display: none;
}

.lists-section-heading {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
  column-gap: 42px;
  align-items: start;
  margin-top: clamp(62px, 7vw, 92px);
  padding-top: clamp(54px, 6vw, 76px);
  border-top: 1px solid rgba(47, 107, 255, 0.11);
}

.lists-section-heading .label {
  padding-top: 9px;
}

.lists-section-heading h2 {
  max-width: 760px;
  margin: 0;
  color: var(--warm-ink);
  font-family: "Onest", "Inter", sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.062em;
}

.lists-section-heading p {
  grid-column: 2;
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--warm-muted);
  font-size: 15px;
  line-height: 1.65;
}

.lists-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
}

.lists-feature-card {
  position: relative;
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(47, 107, 255, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(26, 36, 67, 0.045);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.lists-feature-number {
  display: inline-grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-size: 10px;
  font-weight: 800;
}

.lists-feature-card:nth-child(3n) .lists-feature-number {
  background: rgba(255, 207, 74, 0.24);
  color: #8b6810;
}

.lists-feature-card h3 {
  margin: 34px 0 9px;
  color: var(--warm-ink);
  font-family: "Onest", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: -0.035em;
  transition: color 220ms ease;
}

.lists-feature-card p {
  margin: 0;
  color: var(--warm-muted);
  font-size: 13px;
  line-height: 1.58;
}

@media (hover: hover) and (pointer: fine) {
  .lists-feature-card:hover {
    border-color: rgba(47, 107, 255, 0.26);
    background-color: #fff;
    box-shadow:
      0 24px 52px rgba(26, 36, 67, 0.13),
      0 0 0 3px rgba(47, 107, 255, 0.07);
    transform: translateY(-6px);
  }

  .lists-feature-card:hover h3 {
    color: var(--brand-blue);
  }
}

.lists-templates {
  margin-top: 26px;
  padding: clamp(56px, 6vw, 78px) clamp(24px, 5.4vw, 68px);
  border: 1px solid rgba(47, 107, 255, 0.11);
  border-radius: 36px;
  background:
    radial-gradient(circle at 8% 0, rgba(255, 207, 74, 0.22), transparent 28rem),
    radial-gradient(circle at 100% 100%, rgba(47, 107, 255, 0.11), transparent 32rem),
    #fbfaf6;
  box-shadow: var(--warm-shadow);
}

.lists-templates-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: end;
}

.lists-templates-heading .label {
  display: inline-block;
}

.lists-templates-heading h2 {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--warm-ink);
  font-family: "Onest", "Inter", sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.062em;
}

.lists-templates-heading > p {
  max-width: 460px;
  margin: 0 0 5px;
  color: var(--warm-muted);
  font-size: 15px;
  line-height: 1.68;
}

.lists-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
}

.lists-template-card {
  position: relative;
  min-height: 360px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(47, 107, 255, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(26, 36, 67, 0.055);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.lists-template-card::after {
  position: absolute;
  right: -62px;
  bottom: -78px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(47, 107, 255, 0.055);
  content: "";
  pointer-events: none;
}

.lists-template-card-recipe::after {
  background: rgba(255, 207, 74, 0.14);
}

.lists-template-card-school::after {
  background: rgba(128, 92, 255, 0.07);
}

.lists-template-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lists-template-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(47, 107, 255, 0.1);
  border-radius: 15px;
  background: #fff;
  font-size: 23px;
  box-shadow: 0 8px 18px rgba(26, 36, 67, 0.07);
}

.lists-template-reminder,
.lists-template-type {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--brand-blue);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.lists-template-reminder {
  border: 1px solid rgba(47, 107, 255, 0.13);
  background: var(--brand-blue-soft);
}

.lists-template-reminder::before {
  margin-right: 6px;
  content: "●";
  font-size: 7px;
}

.lists-template-type {
  border: 1px solid rgba(139, 104, 16, 0.12);
  background: rgba(255, 207, 74, 0.22);
  color: #80600f;
}

.lists-template-card h3 {
  margin: 28px 0 10px;
  color: var(--warm-ink);
  font-family: "Onest", "Inter", sans-serif;
  font-size: 25px;
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lists-template-card p {
  margin: 0;
  color: var(--warm-muted);
  font-size: 13px;
  line-height: 1.58;
}

.lists-template-card ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.lists-template-card li {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(47, 107, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--warm-ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.lists-template-card li span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 6px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-size: 9px;
}

.lists-template-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.lists-template-steps li {
  position: relative;
  display: grid;
  min-height: 92px;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(47, 107, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(26, 36, 67, 0.045);
}

.lists-template-steps li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -7px;
  width: 12px;
  height: 12px;
  border: 3px solid #fbfaf6;
  border-radius: 50%;
  background: rgba(47, 107, 255, 0.28);
  content: "";
  transform: translateY(-50%);
}

.lists-template-steps b {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(47, 107, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand-blue), var(--brand-blue-start));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(47, 107, 255, 0.2);
}

.lists-template-steps span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.lists-template-steps strong {
  color: var(--warm-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.lists-template-steps small {
  color: var(--warm-muted);
  font-size: 10px;
  line-height: 1.4;
}

@media (hover: hover) and (pointer: fine) {
  .lists-template-card:hover {
    border-color: rgba(47, 107, 255, 0.24);
    box-shadow: 0 24px 52px rgba(26, 36, 67, 0.12);
    transform: translateY(-5px);
  }
}

.lists-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  margin-top: 26px;
  padding: clamp(52px, 6vw, 76px);
  overflow: hidden;
  border: 1px solid rgba(47, 107, 255, 0.16);
  border-radius: 36px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 207, 74, 0.32), transparent 24rem),
    linear-gradient(135deg, #eff4ff, #fbfaf6 65%);
  box-shadow: var(--warm-shadow);
}

.lists-final-cta > div > span {
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lists-final-cta h2 {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--warm-ink);
  font-family: "Onest", "Inter", sans-serif;
  font-size: clamp(38px, 4.8vw, 60px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.lists-final-cta p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--warm-muted);
  font-size: 14px;
  line-height: 1.6;
}

.lists-page .site-footer {
  margin-top: 24px;
}

@media (max-width: 980px) {
  .lists-hero-copy {
    padding-top: 80px;
  }

  .lists-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lists-templates-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .lists-templates-heading > p {
    max-width: 700px;
  }

  .lists-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lists-final-cta {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .lists-final-cta .lists-button {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .lists-page {
    padding: 10px 0 28px;
  }

  .lists-hero {
    padding: 52px 18px;
    border-radius: 28px;
  }

  .lists-page-header .hero-logo-text-sub,
  .lists-back-link {
    display: none;
  }

  .lists-page-header .hero-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .lists-page-header .hero-open-app {
    min-height: 39px;
    padding: 0 13px;
    font-size: 11px;
  }

  .lists-hero h1 {
    font-size: clamp(43px, 13vw, 58px);
    letter-spacing: -0.065em;
  }

  .lists-hero-copy > p {
    margin-top: 20px;
    font-size: 15px;
  }

  .lists-hero-actions,
  .lists-button {
    width: 100%;
  }

  .lists-section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .lists-section-heading .label {
    padding-top: 0;
  }

  .lists-section-heading h2,
  .lists-section-heading p {
    grid-column: 1;
  }

  .lists-section-heading h2 {
    font-size: 40px;
  }

  .lists-section-heading p {
    margin-top: 0;
  }

  .lists-feature-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .lists-feature-card {
    min-height: 205px;
    padding: 23px;
  }

  .lists-templates {
    padding: 52px 18px;
    border-radius: 28px;
  }

  .lists-templates-heading h2 {
    font-size: 40px;
  }

  .lists-template-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .lists-template-card {
    min-height: 0;
    padding: 23px;
  }

  .lists-template-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lists-template-steps li {
    min-height: 82px;
    padding: 14px 16px;
  }

  .lists-template-steps li:not(:last-child)::after {
    display: none;
  }

  .lists-final-cta {
    padding: 52px 20px;
    border-radius: 27px;
  }

  .lists-final-cta h2 {
    font-size: 39px;
  }

  .lists-final-cta .lists-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lists-page *,
  .lists-page *::before,
  .lists-page *::after {
    scroll-behavior: auto !important;
  }

  .lists-feature-card,
  .lists-feature-card h3,
  .lists-template-card,
  .lists-page .panel-list li,
  .lists-page .panel-list li::before {
    transition: none;
  }

  .lists-feature-card:hover,
  .lists-template-card:hover {
    transform: none;
  }
}
