:root {
  color-scheme: light dark;
  --background: #fbf7f4;
  --surface: #ffffff;
  --surface-muted: #f1edf7;
  --primary: #326b68;
  --primary-dark: #24504e;
  --primary-surface: #dcedea;
  --text: #465159;
  --muted: #616b71;
  --accent: #e8a3a8;
  --accent-surface: #f7e7e8;
  --border: #ded7e1;
  --error: #a8424a;
  --error-surface: #f8e5e7;
  --ink: #183f3d;
  --night: #171a24;
  --shadow: 0 24px 70px rgba(50, 107, 104, 0.16);
  --soft-shadow: 0 12px 36px rgba(70, 81, 89, 0.08);
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(232, 163, 168, 0.16), transparent 24rem),
    var(--background);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary-dark);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

a:focus-visible,
summary:focus-visible,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
  border-radius: 0.35rem;
}

.celebration-section a:focus-visible,
.site-footer a:focus-visible {
  outline-color: #8dddd2;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: -6rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 0 0 0.6rem 0.6rem;
  color: #fbf7f4;
  background: var(--night);
}

.skip-link:focus {
  top: 0;
}

.shell {
  width: min(70rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(222, 215, 225, 0.82);
  background: rgba(251, 247, 244, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}

.brand picture {
  display: flex;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.menu-toggle {
  display: none;
}

.nav-links a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary-dark);
  background: var(--primary-surface);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: -14rem;
  right: -8rem;
  width: 36rem;
  height: 36rem;
  background: var(--primary-surface);
  opacity: 0.7;
}

.hero::after {
  bottom: -12rem;
  left: -9rem;
  width: 27rem;
  height: 27rem;
  background: var(--accent-surface);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100svh - 4.5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(17rem, 0.72fr);
  gap: clamp(2rem, 7vw, 6.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-copy {
  max-width: 40rem;
  animation: rise-in 650ms ease-out both;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 5.65rem);
  letter-spacing: -0.06em;
}

h2 {
  max-width: 18ch;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
}

h3 {
  margin: 0 0 0.6rem;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

p {
  max-width: 66ch;
}

.lead {
  max-width: 34rem;
  margin-block: 1.35rem 1.7rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--primary);
  border-radius: 999px;
  color: var(--background);
  background: var(--primary);
  box-shadow: 0 8px 24px rgba(50, 107, 104, 0.16);
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  box-shadow: 0 12px 30px rgba(36, 80, 78, 0.22);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--primary);
  background: transparent;
  box-shadow: none;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.2rem;
  margin: 1.3rem 0 0.8rem;
  padding: 0;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
  list-style: none;
}

.hero-notes li::before {
  margin-right: 0.4rem;
  color: var(--accent);
  content: "●";
}

.small,
.fine-print {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  animation: rise-in 700ms 100ms ease-out both;
}

.device {
  position: relative;
  width: min(18.5rem, 76vw);
  aspect-ratio: 9 / 19.5;
  padding: 0.45rem;
  overflow: hidden;
  border: 0.18rem solid rgba(23, 26, 36, 0.88);
  border-radius: 2.3rem;
  background: var(--night);
  box-shadow: var(--shadow);
}

.device::before {
  position: absolute;
  z-index: 2;
  top: 0.72rem;
  left: 50%;
  width: 3.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(23, 26, 36, 0.72);
  content: "";
  transform: translateX(-50%);
}

.device img {
  width: 100%;
  height: 100%;
  border-radius: 1.75rem;
  object-fit: cover;
}

.device picture {
  display: block;
  width: 100%;
  height: 100%;
}

.demo-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.proof-strip {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-grid p {
  display: grid;
  gap: 0.05rem;
  margin: 0;
  padding: 1.2rem 1.5rem;
  text-align: center;
}

.proof-grid p + p {
  border-left: 1px solid var(--border);
}

.proof-grid strong {
  color: var(--primary);
  font-size: 0.86rem;
}

.proof-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-heading {
  max-width: 45rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.benefit {
  position: relative;
  min-height: 13rem;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--soft-shadow);
}

.benefit:nth-child(2),
.benefit:nth-child(3) {
  background: var(--primary-surface);
}

.benefit-number {
  display: block;
  margin-bottom: 2.2rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.benefit p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-section {
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.feature-tint {
  background:
    linear-gradient(125deg, var(--primary-surface), rgba(220, 237, 234, 0.35) 58%, var(--background));
}

.feature-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  gap: clamp(3rem, 9vw, 8rem);
  align-items: center;
}

.feature-reverse .feature-copy {
  order: 2;
}

.feature-copy > p:not(.eyebrow, .fine-print) {
  color: var(--muted);
  font-size: 1.08rem;
}

.check-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
  content: "✓";
}

.screen-showcase {
  display: grid;
  justify-items: center;
  margin: 0;
}

.device-small {
  width: min(18rem, 72vw);
}

.screen-showcase figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.screen-pair {
  position: relative;
  min-height: 39rem;
}

.screen-pair .device {
  position: absolute;
  width: min(15rem, 51vw);
}

.device-back {
  top: 0;
  left: 0;
  transform: rotate(-4deg);
}

.device-front {
  right: 0;
  bottom: 0;
  transform: rotate(4deg);
}

.celebration-section {
  color: #ddd7da;
  background:
    radial-gradient(circle at 78% 15%, rgba(141, 221, 210, 0.18), transparent 26rem),
    var(--night);
}

.celebration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  gap: clamp(3rem, 9vw, 8rem);
  align-items: center;
}

.celebration-section h2 {
  color: #fbf7f4;
}

.theme-toggle {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--primary-dark);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--primary-surface);
}

.theme-toggle-label {
  display: none;
}

.celebration-section .eyebrow {
  color: #8dddd2;
}

.celebration-copy p {
  color: #bcc0c8;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-dark);
  font-weight: 850;
}

.celebration-section .text-link {
  color: #8dddd2;
}

.device-celebration {
  width: min(18rem, 74vw);
  border-color: #8dddd2;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

.final-cta {
  background:
    radial-gradient(circle at 8% 100%, var(--accent-surface), transparent 25rem),
    var(--surface);
}

.final-cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.final-cta-inner h2 {
  max-width: 20ch;
}

.page-header,
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(circle at 80% 10%, rgba(232, 163, 168, 0.2), transparent 20rem),
    linear-gradient(135deg, var(--primary-surface), var(--background) 65%);
}

.page-header::after,
.page-hero::after {
  position: absolute;
  right: -5rem;
  bottom: -9rem;
  width: 20rem;
  height: 20rem;
  border: 4rem solid rgba(50, 107, 104, 0.08);
  border-radius: 50%;
  content: "";
}

.page-header h1,
.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 6vw, 4.9rem);
}

.page-header .lead,
.page-hero .lead {
  max-width: 42rem;
}

.prose,
.page-content,
.legal-content {
  width: min(48rem, calc(100% - 2.5rem));
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.prose h2,
.page-content h2,
.legal-content h2 {
  margin-top: 3rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.prose h3,
.page-content h3,
.legal-content h3 {
  margin-top: 2rem;
}

.prose li + li,
.page-content li + li,
.legal-content li + li {
  margin-top: 0.5rem;
}

.prose a:not(.button),
.page-content a:not(.button),
.legal-content a:not(.button) {
  font-weight: 700;
}

.page-section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.content-section + .content-section,
.faq-section + .faq-section {
  margin-top: 3rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.faq-list {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.cta-section,
.action-section,
.legal-summary {
  margin-block: 2rem;
  padding: clamp(1.4rem, 4vw, 2.3rem);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  background: var(--primary-surface);
}

.cta-section h2,
.action-section h2,
.legal-summary h2 {
  margin-top: 0;
}

.warning-notice {
  margin-block: 2rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid rgba(168, 66, 74, 0.24);
  border-left: 0.42rem solid var(--error);
  border-radius: 0.8rem;
  color: var(--text);
  background: var(--error-surface);
}

.notice {
  margin-block: 2rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--border);
  border-left: 0.42rem solid var(--primary);
  border-radius: 0.8rem;
  background: var(--primary-surface);
}

.steps {
  padding-left: 1.5rem;
}

.steps li {
  padding-left: 0.45rem;
}

details {
  margin: 0;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.download-options,
.platform-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.card,
.platform-card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.platform-card {
  display: flex;
  flex-direction: column;
}

.platform-card h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.platform-card p:last-child {
  margin-top: auto;
  padding-top: 1rem;
}

.platform-card.unavailable {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
}

.platform-label {
  margin: 0 0 0.45rem;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section.tint {
  background: var(--primary-surface);
}

.error-page {
  min-height: calc(100svh - 4.5rem);
  padding-block: clamp(5rem, 13vw, 10rem);
}

.site-footer {
  padding-block: 3rem;
  color: #bcc0c8;
  background: var(--night);
}

.site-footer a {
  color: #ddd7da;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  display: grid;
  gap: 0.2rem;
}

.footer-brand strong {
  color: #fbf7f4;
}

.footer-brand span {
  font-size: 0.82rem;
}

.site-footer .small {
  color: inherit;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 1.05rem;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  list-style: none;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #171a24;
  --surface: #252838;
  --surface-muted: #2b2e40;
  --primary: #8dddd2;
  --primary-dark: #8dddd2;
  --primary-surface: #2d4645;
  --text: #ddd7da;
  --muted: #bcc0c8;
  --accent: #ffb4b8;
  --accent-surface: #3c2933;
  --border: #3b3d50;
  --error: #ffadb4;
  --error-surface: #482a32;
  --ink: #ddd7da;
  --night: #10121a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 180, 184, 0.12), transparent 24rem),
    var(--background);
}

:root[data-theme="dark"] .site-header {
  border-bottom-color: rgba(59, 61, 80, 0.9);
  background: rgba(23, 26, 36, 0.92);
}

:root[data-theme="dark"] .benefit {
  background: rgba(37, 40, 56, 0.88);
}

:root[data-theme="dark"] .feature-tint {
  background:
    linear-gradient(125deg, var(--primary-surface), rgba(45, 70, 69, 0.38) 58%, var(--background));
}

:root[data-theme="dark"] .page-header,
:root[data-theme="dark"] .page-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 180, 184, 0.14), transparent 20rem),
    linear-gradient(135deg, var(--primary-surface), var(--background) 65%);
}

:root[data-theme="dark"] .page-header::after,
:root[data-theme="dark"] .page-hero::after {
  border-color: rgba(141, 221, 210, 0.08);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 56rem) {
  .hero-grid,
  .feature-story,
  .celebration-grid {
    grid-template-columns: 1fr 0.72fr;
    gap: 2.5rem;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-notes {
    gap: 0.35rem 0.7rem;
  }

  .screen-pair {
    min-height: 32rem;
  }

  .download-options,
  .platform-grid,
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 44rem) {
  .shell {
    width: min(100% - 1.5rem, 38rem);
  }

  .nav {
    min-height: 4.2rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-block: 0.65rem;
  }

  .menu-toggle {
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    margin-left: auto;
    place-items: center;
    border: 0;
    border-radius: 0.45rem;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
  }

  .menu-toggle:hover {
    background: var(--primary-surface);
  }

  .brand span {
    display: none;
  }

  .nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin-left: 0;
    padding-bottom: 0.35rem;
  }

  .has-js .nav-menu:not(.is-open) {
    display: none;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    padding: 0.55rem 0.7rem;
    border-radius: 0.55rem;
  }

  .theme-toggle {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.55rem;
    font-size: 0.86rem;
    font-weight: 800;
  }

  .theme-toggle-label {
    display: inline;
  }

  .hero-grid,
  .feature-story,
  .celebration-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-block: 3.2rem 4rem;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1,
  .hero-copy .lead {
    margin-inline: auto;
  }

  .hero-copy .actions,
  .hero-notes {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 1rem;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid p + p {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .benefit {
    min-height: 0;
  }

  .benefit-number {
    margin-bottom: 1rem;
  }

  .feature-copy,
  .celebration-copy {
    text-align: left;
  }

  .feature-reverse .feature-copy {
    order: initial;
  }

  .screen-pair {
    min-height: 37rem;
  }

  .final-cta-inner,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .download-options,
  .platform-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 27rem) {
  :root {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .screen-pair {
    min-height: 31rem;
  }

  .screen-pair .device {
    width: 12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
