:root {
  --bg: #fbfaf9;
  --ink: #16171a;
  --text: #54565a;
  --muted: #8a8c90;
  --green: #3e9d66;
  --red: #c1564d;
  --surface: #fff;
  --soft: #f1efec;
  --soft-hover: #f4f2ef;
  --border: #eceae6;
  --field-border: #e0ddd8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: var(--ink); }
[hidden] { display: none !important; }
::selection { background: var(--green); color: #fff; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(62, 157, 102, .45); outline-offset: 3px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #ececea;
  background: rgba(251, 250, 249, .82);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: 1080px;
  height: 56px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-spacer { flex: 1; }
.wordmark, .nav-link, .text-button, .site-footer button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.wordmark { font-size: 18px; font-weight: 700; letter-spacing: 2.5px; }
.nav-link { color: var(--text); font-size: 14px; }
.nav-link:hover, .text-button:hover, .site-footer button:hover { color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
  border-radius: 980px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover:not(:disabled) { opacity: .85; text-decoration: none; }
.button:disabled { border-color: #cbc9c5; background: #cbc9c5; cursor: wait; }
.button-small { padding: 8px 17px; font-size: 14px; }
.button-hero { padding: 16px 42px; font-size: 17px; }
.button-full { width: 100%; padding: 16px; border-radius: 16px; font-size: 17px; }
.button-secondary { border-color: #d9d6d1; background: transparent; color: var(--ink); }
.button-secondary:hover:not(:disabled) { border-color: var(--ink); opacity: 1; }

.screen { min-height: 52vh; }
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: max(560px, calc(100vh - 56px));
  padding: 0 24px;
  text-align: center;
}
.hero-copy { max-width: 820px; margin-top: 14vh; }
.hero h1 { margin: 0; font-size: 72px; font-weight: 600; line-height: 1.1; letter-spacing: -.2px; }
.hero-copy p { max-width: 520px; margin: 28px auto 0; color: var(--text); font-size: 21px; line-height: 1.5; }
.hero-action { margin-top: auto; margin-bottom: 11vh; color: var(--muted); font-size: 15px; }
.hero-action div { margin-top: 16px; }

.home-block { max-width: 1080px; margin: 0 auto; padding: 100px 24px 20px; }
.features-block { max-width: 960px; padding-top: 120px; }
.home-block > h2, .faq-block > h2 {
  margin: 0 0 56px;
  font-size: 47px;
  font-weight: 600;
  letter-spacing: -.3px;
  text-align: center;
}
.features-block > h2 { margin-bottom: 64px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 52px 64px; }
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 18px 0 0; font-size: 21px; letter-spacing: -.3px; }
.feature p { max-width: 360px; margin: 8px 0 0; color: var(--text); font-size: 16px; line-height: 1.55; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 22px 46px -32px rgba(0,0,0,.2); }
.step-art { display: flex; align-items: center; justify-content: center; height: 188px; }
.step-art-one { background: #f0ece6; }
.step-art-two { background: #e6e1d8; }
.step-art-three { background: #dcefe3; }
.step-icon { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.65); }
.step-icon-green { color: var(--green); background: rgba(255,255,255,.7); }
.step-icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step-copy { padding: 28px 30px 34px; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.step-copy h3 { margin: 12px 0 0; font-size: 23px; line-height: 1.18; letter-spacing: -.5px; }
.step-copy p { margin: 14px 0 0; color: var(--text); font-size: 15.5px; line-height: 1.55; }

.faq-block { max-width: 780px; margin: 0 auto; padding: 104px 24px 112px; }
.faq-block > h2 { margin-bottom: 44px; }
.faq-list { border-top: 1px solid #e6e3de; }
.faq-item { border-bottom: 1px solid #e6e3de; }
.faq-item h3 { margin: 0; }
.faq-item button { display: flex; align-items: center; gap: 16px; width: 100%; padding: 24px 4px; border: 0; background: transparent; font-size: 19px; font-weight: 500; letter-spacing: -.2px; text-align: left; cursor: pointer; }
.faq-item button svg { flex: none; width: 20px; height: 20px; margin-left: auto; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.faq-item button[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-answer { max-width: 640px; padding: 0 4px 26px; color: var(--text); font-size: 16.5px; line-height: 1.6; }

.compact-screen { max-width: 760px; margin: 0 auto; padding: 74px 24px 110px; }
.narrow-screen { max-width: 440px; margin: 0 auto; padding: 74px 24px 110px; text-align: center; }
.screen-heading { margin: 0 auto 44px; text-align: center; }
.screen-heading h1, .return-screen h1, .key-screen h1, .access-screen > h1 { margin: 0; font-size: 40px; font-weight: 600; letter-spacing: -.3px; }
.screen-heading p { margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

.purchase-context { margin: -20px 0 28px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); }
.mode-switch button { min-height: 42px; padding: 8px 12px; border: 0; border-radius: 11px; background: transparent; color: var(--text); font-size: 13.5px; font-weight: 600; line-height: 1.25; cursor: pointer; }
.mode-switch button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.builder-card { padding: 40px; border: 1px solid var(--border); border-radius: 28px; background: var(--surface); box-shadow: 0 20px 50px -32px rgba(0,0,0,.24); }
.builder-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.number-field, .stepper { display: inline-flex; align-items: center; width: 184px; height: 52px; border: 1.5px solid var(--field-border); border-radius: 15px; background: var(--surface); transition: border-color .2s; }
.number-field:focus-within, .stepper:focus-within, .text-input:focus { border-color: var(--ink); outline: none; }
.number-field { justify-content: center; }
.number-field input, .stepper input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: "Geist Mono", monospace; font-size: 24px; font-weight: 500; text-align: center; }
.days-field input { width: 100px; text-align: right; }
.number-field span { margin-left: 9px; color: var(--muted); font-size: 15px; }
input[type=number] { appearance: textfield; }
input[type=number]::-webkit-inner-spin-button { appearance: none; }
.stepper { overflow: hidden; }
.stepper input { flex: 1; width: 74px; }
.stepper button { align-self: stretch; width: 54px; border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.stepper button:first-child { border-right: 1px solid var(--border); }
.stepper button:last-child { border-left: 1px solid var(--border); }
.stepper button:hover:not(:disabled) { background: var(--soft-hover); }
.stepper button:disabled { color: #cbc9c5; cursor: default; }
.policy-hint { margin: 14px 0 0; padding: 11px 13px; border-radius: 11px; background: #fff6e8; color: #765526; font-size: 13.5px; line-height: 1.45; }
.divider { height: 1px; margin: 30px 0; background: var(--border); }
.builder-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.price { min-height: 55px; font-size: 46px; font-weight: 600; letter-spacing: -1.8px; }
.builder-total .button { padding: 16px 36px; font-size: 16px; }

.payment-methods { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; text-align: left; }
.payment-methods legend { margin-bottom: 12px; color: var(--muted); font-size: 14px; font-weight: 500; }
.method-option { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border: 1.5px solid #e9e6e1; border-radius: 14px; background: var(--surface); cursor: pointer; transition: .2s; }
.method-option:has(input:checked) { border-color: var(--ink); background: var(--soft-hover); }
.method-option input { position: absolute; opacity: 0; }
.method-option > span:first-child { font-size: 16px; font-weight: 500; }
.radio-mark { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid #c7c4bf; border-radius: 50%; }
.method-option input:checked + .radio-mark::after { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); content: ""; }
.method-option input:focus-visible + .radio-mark { outline: 3px solid rgba(62,157,102,.45); outline-offset: 3px; }
.text-input { width: 100%; margin-top: 10px; padding: 16px 18px; border: 1.5px solid var(--field-border); border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 16px; }
.trust-note { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: var(--text); font-size: 14px; text-align: left; }
.trust-note svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#pay-button { min-height: 58px; margin-top: 20px; line-height: 1.3; text-align: center; }
.secure-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.back-link { margin-top: 24px; color: var(--muted); font-size: 14px; }
.form-error { margin: 10px 0 0; color: var(--red); font-size: 14px; line-height: 1.45; }
.centered { text-align: center; }

.return-screen { min-height: 540px; }
.return-screen h1 { margin-top: 28px; }
.return-screen p { margin: 14px 0 30px; color: var(--text); font-size: 18px; line-height: 1.5; }
.return-screen .button + .button { margin-top: 12px; }
.spinner { width: 62px; height: 62px; margin: 4px auto 0; border: 5px solid rgba(62,157,102,.16); border-top-color: var(--green); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.key-screen { max-width: 560px; margin: 0 auto; padding: 74px 24px 110px; text-align: center; }
.success-mark { display: flex; align-items: center; justify-content: center; width: 74px; height: 74px; margin: 0 auto; border-radius: 50%; background: var(--green); color: var(--bg); box-shadow: 0 0 0 10px rgba(62,157,102,.12), 0 16px 40px -12px rgba(62,157,102,.5); }
.success-mark svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.key-screen h1 { margin-top: 28px; font-size: 42px; }
.key-screen > p { margin: 14px auto 0; color: var(--text); font-size: 18px; line-height: 1.5; }
.key-block { margin: 34px 0 22px; text-align: left; }
.key-value-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 18px 20px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--surface); }
#key-value { flex: 1; overflow-wrap: anywhere; font-family: "Geist Mono", monospace; font-size: 19px; letter-spacing: .5px; }
#copy-key { flex: none; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 11px; background: var(--ink); color: var(--bg); cursor: pointer; transition: opacity .2s; }
#copy-key:hover { opacity: .85; }
#copy-key svg[hidden] { display: none; }
#activate-link + .button, #key-material + .button { margin-top: 12px; }
.downloads { margin-top: 32px; text-align: left; }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.download-grid a { display: flex; flex-direction: column; gap: 1px; padding: 12px 16px; border: 1.5px solid var(--field-border); border-radius: 14px; background: var(--surface); text-decoration: none; transition: border-color .2s; }
.download-grid a:hover { border-color: var(--ink); }
.download-grid small { color: var(--muted); font-size: 11px; }
.download-grid strong { font-size: 15.5px; }
.home-link { margin-top: 26px; color: var(--text); font-size: 15px; }

.access-screen { max-width: 600px; margin: 0 auto; padding: 74px 24px 110px; }
.access-screen > h1 { font-size: 42px; text-align: center; }
.saved-keys { margin-top: 36px; text-align: center; }
.saved-key-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.saved-key-item { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); overflow: hidden; }
.saved-key-button, .saved-key-remove { border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.saved-key-button { padding: 11px 10px 11px 16px; font-size: 13.5px; }
.saved-key-remove { align-self: stretch; padding: 0 11px 1px 7px; font-size: 18px; line-height: 1; }
.saved-key-item:hover { border-color: var(--text); }
.saved-key-button:hover { color: var(--text); }
.saved-key-item.is-active { border-color: var(--text); background: var(--text); }
.saved-key-item.is-active .saved-key-button, .saved-key-item.is-active .saved-key-remove { color: var(--surface); }
.saved-key-remove:hover { color: var(--red); }
.saved-key-clear { margin-top: 16px; color: var(--muted); font-size: 12px; }
.saved-key-error { max-width: 520px; margin: 8px auto 0; }
.access-message { margin-top: 30px; color: var(--text); font-size: 17px; text-align: center; }
.subscription-card { margin-top: 34px; padding: 32px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: 0 20px 50px -30px rgba(0,0,0,.2); }
.status-badge { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 13px; letter-spacing: .6px; text-transform: uppercase; }
.status-badge span { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(62,157,102,.16); }
.status-badge.inactive { color: var(--muted); }
.access-left { margin-top: 16px; font-size: 34px; font-weight: 600; letter-spacing: -.8px; }
.access-until { margin-top: 6px; color: var(--text); font-size: 16px; }
.subscription-card .divider { margin: 24px 0; }
.key-mask-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--text); font-size: 14.5px; }
.key-mask-row strong { color: var(--ink); font-family: "Geist Mono", monospace; font-size: 15px; font-weight: 500; }
.devices-block { margin-top: 22px; }
.devices-block ul { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.device-row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.device-icon { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--soft); }
.device-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.device-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.device-copy strong { overflow: hidden; font-size: 15.5px; text-overflow: ellipsis; white-space: nowrap; }
.device-copy span { margin-top: 2px; color: var(--muted); font-size: 13px; }
.device-row > button { flex: none; padding: 9px 14px; border: 1.5px solid var(--field-border); border-radius: 11px; background: transparent; color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.device-row > button:hover { border-color: var(--red); color: var(--red); }
#renew-button { margin-top: 22px; }
.centered-button { display: block; margin: 16px auto 0; color: var(--text); font-size: 15px; }
#access-form > p:first-child { max-width: 420px; margin: 14px auto 30px; color: var(--text); font-size: 18px; line-height: 1.5; text-align: center; }
#access-form .eyebrow { display: block; }
.mono-input { margin-top: 12px; padding: 17px 20px; border-radius: 16px; font-family: "Geist Mono", monospace; font-size: 17px; letter-spacing: .5px; }
#access-submit { margin-top: 20px; }
.buy-prompt { margin-top: 18px; color: var(--text); font-size: 15px; text-align: center; }
.inline-button { border-bottom: 1px solid #cfccc6; font-weight: 500; }

.site-footer { border-top: 1px solid #ececea; background: var(--surface); }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 44px 24px 26px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px 40px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-grid h2 { margin: 0 0 3px; font-size: 12px; }
.footer-grid button, .footer-grid span { color: var(--text); font-size: 12.5px; }
.legal-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0eeea; color: var(--muted); font-size: 12px; }
.legal-line a { color: var(--muted); text-decoration: none; }
.legal-line a:hover { color: var(--text); text-decoration: underline; }

.sr-only, .sr-only-focusable:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

[data-reveal] { transition: opacity .85s cubic-bezier(.2,.65,.2,1), transform .85s cubic-bezier(.2,.65,.2,1); }
.js [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(22px); }

@media (max-width: 760px) {
  .nav-inner { gap: 15px; padding: 0 16px; }
  .nav-link { font-size: 13px; }
  .hero { min-height: max(500px, calc(100svh - 56px)); }
  .hero-copy { margin-top: 12vh; }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-copy p { font-size: 18px; }
  .home-block > h2, .faq-block > h2 { font-size: 38px; }
  .feature-grid, .steps-grid { grid-template-columns: 1fr; }
  .feature-grid { gap: 42px; }
  .feature p { max-width: none; }
  .steps-grid { max-width: 460px; margin: 0 auto; }
  .screen-heading h1, .return-screen h1 { font-size: 36px; }
  .builder-card { padding: 28px 22px; }
  .purchase-context { margin-top: -22px; }
  .builder-total { align-items: stretch; flex-direction: column; }
  .button-wide-mobile { width: 100%; }
  .price { min-height: auto; font-size: 42px; }
  .key-screen h1, .access-screen > h1 { font-size: 38px; }
}

@media (max-width: 480px) {
  .wordmark { font-size: 16px; letter-spacing: 2px; }
  .nav-link { max-width: 92px; line-height: 1.05; }
  .button-small { padding: 8px 14px; }
  .hero h1 { font-size: 42px; }
  .hero-copy p { font-size: 17px; }
  .home-block, .faq-block { padding-left: 18px; padding-right: 18px; }
  .builder-row { align-items: stretch; flex-direction: column; }
  .number-field, .stepper { width: 100%; }
  .days-field input { width: 120px; }
  .mode-switch { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .subscription-card { padding: 25px 20px; }
  .key-mask-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .device-row { align-items: flex-start; flex-wrap: wrap; }
  .device-row > button { margin-left: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
