:root {
  --paper: var(--ay-paper);
  --ink: var(--ay-ink);
  --muted: var(--ay-muted);
  --line: var(--ay-line);
  --card: var(--ay-card);
  --tint: var(--ay-tint);
  --blue: var(--ay-blue);
  --radius: 22px;
  --display: var(--ay-display);
  --body: var(--ay-body);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.65 var(--body); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1190px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; top: 8px; left: 8px; padding: 8px 14px; background: var(--card); transform: translateY(-150%); }
.skip:focus { transform: none; }

.header {
  position: absolute; z-index: 2; inset: 0 0 auto; color: #faf4f4;
  border-bottom: 1px solid #f5eaff30; background: #17152282;
}
.header .brand img { filter: brightness(0) invert(1); }
.header .brand span span, .header :focus-visible { color: #ded8ff; outline-color: #ded8ff; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 74px; gap: 25px; }
.brand { display: inline-flex; gap: 8px; align-items: center; font: 700 24px/1 var(--display); letter-spacing: -.045em; white-space: nowrap; }
.brand span span { color: var(--blue); }
.brand img { display: block; }
:root[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }
.nav, .header-actions { display: flex; align-items: center; gap: 26px; }
.nav a, .login { font-weight: 800; font-size: 13px; white-space: nowrap; }
.nav a { color: #eee6f1; }
.nav a:hover, .footer a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-actions { gap: 12px; }
.login, .theme { border: 1px solid #f5eaff4a; border-radius: 99px; padding: 8px 12px; }
.login span { margin-left: 4px; }
.theme { width: 40px; height: 40px; padding: 0; background: transparent; color: inherit; cursor: pointer; }
.theme:hover, .login:hover { background: #faf0ff26; }

.hero-stage {
  position: relative; isolation: isolate; padding-top: 74px; background: #191922;
  --hero-bottom: #191922;
}
.hero-photo, .hero-stage::before {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.hero-photo { z-index: -2; object-fit: cover; object-position: 55% 28%; }
.hero-stage::before {
  z-index: -1; content: "";
  background:
    linear-gradient(0deg, var(--hero-bottom) 0%, #1a182596 14%, transparent 44%, #1a182556 100%),
    linear-gradient(90deg, #211c2bbd, #211c2b9c 37%, #211c2b30 66%, #211c2b1f);
}
.hero {
  display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .88fr);
  align-items: center; gap: clamp(28px, 6vw, 90px);
  min-height: min(650px, 84svh); padding-block: clamp(42px, 7vw, 104px);
}
.hero-copy { color: #fbf4f3; }
.hero-copy .eyebrow, .hero-copy :focus-visible { color: #e7deff; outline-color: #ded8ff; }
.eyebrow { margin: 0; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.signal { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; }
h1 { font-size: clamp(3.25rem, 6.2vw, 6rem); font-weight: 500; line-height: .98; letter-spacing: -.065em; margin-block: 16px 22px; }
h1 em { color: #ded5ff; font-style: normal; }
.lede { color: #f2eaf0; max-width: 460px; margin: 0 0 25px; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 46px; padding: 10px 15px; border: 1px solid transparent; border-radius: 99px; font-weight: 800; font-size: 13px; text-align: center; transition: transform .18s, background .18s; }
.button:hover { transform: translateY(-2px); }
.primary { color: var(--ay-dusk-cta-ink); background: var(--ay-dusk-cta); }
.primary:hover { background: var(--ay-dusk-cta-hover); }
.hero .primary { color: #262139; background: #d5ccff; }
.hero .primary:hover { background: #e7dfff; }
.secondary { border-color: var(--line); color: var(--ink); }
.secondary:hover { background: var(--tint); }
.hero .secondary { color: #faf4f4; border-color: #f4ebff68; background: #241e31a6; }
.hero .secondary:hover { background: #383045; }
.hero-note { margin: 12px 0 0; color: #e7dbea; font-size: 12px; }

.plan-sheet {
  --glass-ink: #fff5f5;
  --glass-muted: #d1c8d9;
  --glass-line: #f1e2ff2e;
  --glass-accent: #d5ccff;
  --glass-due: #ffcea6;
  --glass-well: #18142175;
  min-width: 0; margin: 0; padding: clamp(17px, 2.4vw, 30px);
  color: var(--glass-ink); border: 1px solid #f5e3ff4a; border-radius: 22px;
  background: linear-gradient(155deg, #312a3aee, #211d2cf2); box-shadow: 0 25px 75px #14101c66;
}
:root[data-theme="light"] .plan-sheet {
  --glass-ink: #2c2435; --glass-muted: #53495d; --glass-line: #61536c40;
  --glass-accent: #4d3e80; --glass-due: #783c12; --glass-well: #fffcf577;
  background: #f7eef3ed;
}
.plan-head { display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.plan-head p { color: var(--glass-accent); font-size: .68rem; font-weight: 800; letter-spacing: .13em; margin: 0 0 6px; }
.plan-head h2 { font-size: clamp(1.55rem, 3.1vw, 2.4rem); margin: 0; letter-spacing: -.04em; }
.plan-period { display: grid; gap: 5px; justify-items: end; color: var(--glass-muted); font-size: .72rem; text-align: right; }
.plan-period span { border: 1px solid var(--glass-line); border-radius: 99px; padding: 2px 7px; font-weight: 800; }
.plan-switch { display: flex; gap: 7px; margin-top: 16px; border-bottom: 1px solid var(--glass-line); }
.plan-switch button {
  min-height: 44px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: var(--glass-muted); font-size: .8rem; font-weight: 800; cursor: pointer;
}
.plan-switch button:hover { background: var(--glass-well); }
.plan-switch button[aria-pressed="true"] { color: var(--glass-accent); border-color: currentColor; }
.plan-switch button:disabled { cursor: default; }
.plan-sheet :focus-visible { outline-color: var(--glass-accent); }
.plan-units { list-style: none; margin: 0; padding: 0; }
.plan-unit {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 3px 9px;
  min-height: 41px; padding: 6px 2px; border-bottom: 1px solid var(--glass-line);
}
.plan-unit span { font-size: .83rem; font-weight: 700; }
.plan-unit strong { color: var(--glass-due); font-size: .74rem; }
.plan-unit strong::before {
  display: inline-block; width: 6px; height: 6px; border: 1px solid currentColor;
  border-radius: 50%; margin-right: 6px; vertical-align: 1px; content: "";
}
.plan-unit[data-status="paid"] strong { color: var(--glass-accent); }
.plan-unit[data-status="paid"] strong::before { background: currentColor; }
.plan-unit[data-status="partial"] strong::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.plan-ledger { display: grid; grid-template-columns: 1fr 1fr; margin: 14px 0 0; background: var(--glass-well); border: 1px solid var(--glass-line); border-radius: 11px; }
.plan-ledger div { padding: 9px 11px; min-width: 0; }
.plan-ledger div + div { border-left: 1px solid var(--glass-line); }
.plan-ledger dt { color: var(--glass-muted); font-size: .72rem; font-weight: 800; }
.plan-ledger dd { margin: 3px 0 0; font: 500 clamp(1.2rem, 2.4vw, 1.8rem)/1.1 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#planRemaining { color: var(--glass-due); }
.plan-sheet figcaption { display: flex; justify-content: end; margin-top: 11px; color: var(--glass-accent); font-size: .76rem; font-weight: 800; }
.plan-sheet figcaption a { padding-block: 6px; text-decoration: underline; text-underline-offset: 3px; }

.strip { border-block: 1px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); color: var(--muted); text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.strip span { padding: 13px 5px; }
.strip span + span { border-left: 1px solid var(--line); }
.section { padding-block: clamp(48px, 7vw, 95px); scroll-margin-top: 16px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
h2 { font-size: clamp(2.45rem, 4.9vw, 4.55rem); line-height: 1; letter-spacing: -.048em; margin-top: 8px; }
.section-head > p, .setup-grid > div > p:not(.eyebrow) { color: var(--muted); max-width: 390px; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2.7vw, 34px); }
.feature { position: relative; overflow: hidden; min-width: 0; border-block: 1px solid var(--line); padding: 20px 0 22px; }
.feature-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 9px; background: var(--tint); color: var(--blue); }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-top: 16px; font-size: 24px; letter-spacing: -.035em; }
.feature p, .steps p, .faq details p { color: var(--muted); margin: 5px 0 0; }
.feature-index { position: absolute; top: 20px; right: 0; color: var(--muted); font-size: 11px; font-weight: 800; }
.setup { background: var(--tint); border-block: 1px solid var(--line); }
.setup-grid, .faq { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(20px, 5vw, 68px); }
.setup-grid > div > p:not(.eyebrow) { margin-top: 14px; }
.text-link { display: inline-block; margin-top: 14px; color: var(--blue); font-size: 13px; font-weight: 800; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 35px 1fr; gap: 13px; border-top: 1px solid var(--line); padding-block: 13px; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li > span { padding-top: 5px; color: var(--blue); font-size: 12px; font-weight: 800; }
.steps h3 { font-size: 22px; letter-spacing: -.03em; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; padding-block: 15px; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 24px 15px 0; }
.closing {
  --ink: #2c2537; --blue: #514788; --line: #a99caf; --tint: #e8dfed;
  --ay-dusk-cta: #514788; --ay-dusk-cta-ink: #fff; --ay-dusk-cta-hover: #40356f;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  padding: clamp(23px, 5vw, 50px); border-radius: var(--radius); color: var(--ink); background: #f1e8ef;
}
.closing p:not(.eyebrow) { color: #5e5467; margin: 10px 0 0; }
.footer { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 16px; padding-block: 32px; }
.footer p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 800; }

@media (max-width: 880px) {
  .shell { width: calc(100% - 38px); }
  .hero { grid-template-columns: 1fr 1fr; gap: 20px; min-height: 580px; }
  h1 { font-size: clamp(2.8rem, 7.2vw, 4rem); }
  .nav { gap: 13px; }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { flex-wrap: wrap; column-gap: 8px; row-gap: 0; padding-top: 10px; }
  .header-actions { margin-left: auto; }
  .nav { order: 1; width: 100%; justify-content: space-between; padding: 10px 0; }
  .hero, .feature-grid, .setup-grid, .faq { grid-template-columns: 1fr; }
  .hero-stage { padding-top: 93px; }
  .hero-photo { object-position: 56% 50%; }
  .hero-stage::before {
    background: linear-gradient(0deg, var(--hero-bottom), #211c2b35 55%, #211c2bcc 100%),
      linear-gradient(90deg, #211c2bce, #211c2b7a);
  }
  .hero { min-height: auto; gap: 29px; padding-block: 42px 34px; }
  .preview { max-width: 520px; }
  .section-head { align-items: start; flex-direction: column; gap: 10px; }
  .strip-inner { font-size: 9px; letter-spacing: .06em; }
  .feature { padding-block: 16px; }
}

@media (max-width: 360px) {
  .brand { font-size: 20px; }
  .brand img { width: 26px; height: 26px; }
  .button { width: 100%; }
  .closing .actions { width: 100%; }
}
