@import url("tokens.css");

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-latin-var.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-body-size);
  line-height: var(--font-body-line-height);
  color: var(--color-foreground);
  background: var(--color-background);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link-fg); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--color-ring-inverse); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: var(--font-heading-line-height);
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 { font-size: var(--font-h1-mobile); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); line-height: var(--font-subheading-line-height); }
h4, .h4 { font-family: var(--font-body); font-size: var(--font-h4); font-weight: 600; line-height: var(--font-subheading-line-height); margin: 0 0 .5rem; }
@media (min-width: 900px) { h1 { font-size: var(--font-h1); } h2 { font-size: 2.5rem; } }
p { margin: 0 0 1rem; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-primary); color: var(--color-on-primary); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 720px; }
section { padding: 5rem 0; position: relative; overflow: hidden; }
@media (min-width: 900px) { section { padding: 6.5rem 0; } }
.muted-bg { background: var(--color-background-muted); }
.dark { background: var(--color-background-inverse); color: var(--color-foreground-inverse); }
.dark p, .dark li { color: var(--color-foreground-inverse-muted); }
.dark a:not(.btn) { color: var(--link-fg-inverse); }

.eyebrow {
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-accent-text); margin: 0 0 1rem;
}
.dark .eyebrow { color: var(--color-accent-text-inverse); }
.rule { width: 56px; height: 2px; background: var(--color-accent); margin: 0 0 1.25rem; border: 0; }
.dark .rule { background: var(--color-accent-text-inverse); }
.lead { font-size: var(--font-lead-size); color: var(--color-foreground-muted); max-width: 36em; }
.center { text-align: center; }
.center .lead, .center .rule { margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.center.section-head { margin-inline: auto; }

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 20px; height: 20px; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.4rem; border-radius: 8px;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--button-primary-bg); color: var(--button-primary-fg); }
.btn-primary:hover { background: var(--button-primary-bg-hover); text-decoration: none; }
.btn-primary:active { background: var(--button-primary-bg-active); }
.btn-ghost { background: transparent; color: var(--color-foreground); border-color: var(--color-border-input); }
.btn-ghost:hover { border-color: var(--color-foreground); text-decoration: none; }
.dark .btn-ghost { color: var(--color-foreground-inverse); border-color: var(--primitive-color-navy-400); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.cta-note { font-size: .875rem; color: var(--color-foreground-muted); margin-top: .9rem; }
.dark .cta-note { color: var(--color-foreground-inverse-muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(250 248 243 / .94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--color-border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { height: 36px; width: auto; }
.nav { display: none; gap: 1.75rem; }
.nav a { color: var(--color-foreground); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.nav a:hover { color: var(--color-accent-text); }
@media (min-width: 960px) { .nav { display: flex; } }
.site-header .btn { display: inline-block; min-height: 44px; padding: .7rem 1rem; font-size: .9375rem; line-height: 1.3; white-space: nowrap; }
@media (max-width: 520px) { .brand img { height: 28px; } .site-header .btn span.long { display: none; } }

/* Hero */
.hero { padding-top: 3.5rem; }
.hero .container { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero .container { grid-template-columns: 1.1fr .9fr; } .hero { padding: 5rem 0 6rem; } }
.hero h1 em { font-style: italic; color: var(--color-accent-text); }
.works-with { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; color: var(--color-foreground-muted); margin: 1.25rem 0 2rem; }
.works-with .icon-sm { color: var(--color-accent-text); }
.hero-visual { position: relative; justify-self: center; width: min(100%, 420px); }
.motif, .motif-dark { position: absolute; aspect-ratio: 1; pointer-events: none; -webkit-mask: url("../img/ring-motif.svg") center / contain no-repeat; mask: url("../img/ring-motif.svg") center / contain no-repeat; }
.hero-visual .motif { width: 560px; right: -170px; top: -90px; background: var(--color-accent); opacity: .1; }
.hero-visual .vignette { position: relative; width: 100%; filter: drop-shadow(0 18px 40px rgb(15 23 42 / .12)); }
.caption { font-size: .8125rem; color: var(--color-foreground-muted); margin-top: .75rem; text-align: center; }
.dark .caption { color: var(--color-foreground-inverse-muted); }

/* Trust strip */
.trust-strip { padding: 1.5rem 0; border-block: 1px solid var(--color-border); background: var(--color-surface); }
.trust-strip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.trust-strip li { display: flex; gap: .6rem; align-items: center; font-size: .9375rem; font-weight: 500; }
.trust-strip .icon { color: var(--color-primary); }

/* Cards and grids */
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: 1.75rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon-wrap { width: 48px; height: 48px; border-radius: 12px; background: var(--color-accent-subtle); color: var(--color-accent-text); display: grid; place-items: center; margin-bottom: 1.1rem; }
.dark .card { background: var(--color-surface-inverse); border-color: transparent; }
.dark .card h3, .dark .card h4 { color: var(--color-foreground-inverse); }
.dark .card .icon-wrap { background: rgb(212 175 55 / .14); color: var(--color-accent-text-inverse); }
.leak-num { font-family: var(--font-heading); font-size: 1rem; color: var(--color-accent-text-inverse); margin-bottom: .5rem; letter-spacing: .04em; }

/* Features */
.features { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature { display: flex; gap: 1rem; }
.feature .icon-wrap { margin: 0; flex: none; }
.feature p { color: var(--color-foreground-muted); }
.tier-tag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--color-accent-text); background: var(--color-accent-subtle); border-radius: 999px; padding: .15rem .6rem; margin-left: .35rem; vertical-align: middle; }

/* Demo */
.demo-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.demo-grid figure { margin: 0; }
.demo-grid img { width: 100%; height: auto; filter: drop-shadow(0 12px 28px rgb(15 23 42 / .08)); }
.demo-grid figcaption { font-weight: 600; margin-top: .9rem; }
.demo-grid figcaption span { display: block; font-weight: 400; font-size: .9375rem; color: var(--color-foreground-muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: step; }
.steps li { position: relative; padding-top: 3.25rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-heading); font-size: 1.15rem;
  border: 2px solid var(--color-accent); color: var(--color-accent-text);
}
.steps .when { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent-text); margin-bottom: .35rem; }
.steps p { color: var(--color-foreground-muted); font-size: .9375rem; }

/* Founding offer */
.offer { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .offer { grid-template-columns: 1.1fr .9fr; } }
.offer-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .9rem; }
.offer-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--color-foreground-inverse); }
.offer-list .icon-sm { color: var(--color-accent-text-inverse); margin-top: .2rem; }
.guarantee { border: 1px solid var(--primitive-color-gold-400); border-radius: 12px; padding: 2rem; position: relative; }
.guarantee .icon { color: var(--color-accent-text-inverse); width: 36px; height: 36px; margin-bottom: 1rem; }
.guarantee h3 { color: var(--color-foreground-inverse); }
.motif-dark { width: 720px; right: -300px; top: -260px; background: var(--primitive-color-gold-400); opacity: .08; }
.dark > .container { position: relative; }

/* Pricing */
.pricing { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: 2rem 1.75rem; position: relative; }
.plan.recommended { border: 2px solid var(--color-accent); }
.plan .badge { position: absolute; top: -.8rem; left: 1.75rem; background: var(--color-accent); color: var(--color-on-accent); font-size: .75rem; font-weight: 600; letter-spacing: .04em; padding: .25rem .75rem; border-radius: 999px; }
.plan .badge.soon { background: var(--color-accent-subtle); color: var(--color-accent-text); }
.plan h3 { margin-bottom: .25rem; }
.plan .for { color: var(--color-foreground-muted); font-size: .9375rem; min-height: 3em; }
.price { font-variant-numeric: tabular-nums lining-nums; margin: .75rem 0 .25rem; }
.price strong { font-size: 2.5rem; font-weight: 600; letter-spacing: -.02em; }
.price span { color: var(--color-foreground-muted); }
.price-note { font-size: .875rem; color: var(--color-foreground-muted); margin-bottom: .25rem; font-variant-numeric: tabular-nums; }
.founding-price { font-size: .875rem; font-weight: 600; color: var(--color-accent-text); background: var(--color-accent-subtle); border-radius: 8px; padding: .5rem .75rem; margin: .75rem 0 1.25rem; font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .9375rem; }
.plan li { display: flex; gap: .6rem; align-items: flex-start; }
.plan li .icon-sm { color: var(--color-accent-text); margin-top: .15rem; }
.plan li.inherit { font-weight: 600; }
.terms { margin-top: 2rem; font-size: .9375rem; color: var(--color-foreground-muted); }
.pricing-cta { margin-top: 2.5rem; }

/* Calculator */
.calc { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .calc { grid-template-columns: 1fr 1fr; } }
.calc form { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .35rem; }
.field .hint { display: block; font-weight: 400; font-size: .8125rem; color: var(--color-foreground-muted); }
.field .input { display: flex; align-items: center; border: 1px solid var(--input-border); border-radius: 8px; background: var(--input-bg); }
.field .input:focus-within { outline: 3px solid var(--color-ring); outline-offset: 1px; }
.field .affix { padding: 0 .75rem; color: var(--color-foreground-muted); }
.field input { width: 100%; min-height: 48px; border: 0; background: transparent; font: 400 1rem var(--font-body); color: var(--color-foreground); padding: 0 .75rem; font-variant-numeric: tabular-nums; }
.field .affix + input { padding-left: 0; }
.field input:focus { outline: none; }
.result { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: 2rem; }
.result .total { font-family: var(--font-heading); font-size: 3rem; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; margin: .25rem 0 1rem; }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 0 0 1.25rem; font-variant-numeric: tabular-nums; }
.result dt { color: var(--color-foreground-muted); }
.result dd { margin: 0; font-weight: 600; text-align: right; }
.working { font-size: .8125rem; color: var(--color-foreground-muted); border-top: 1px solid var(--color-border); padding-top: 1rem; }

/* Why us */
.why { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.why .feature .icon { color: var(--color-accent-text); margin-top: .2rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 600; font-size: 1.0625rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--color-accent-text); border-bottom: 2px solid var(--color-accent-text); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--color-foreground-muted); max-width: 44em; }

/* Final CTA */
.final { text-align: center; }
.final .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--primitive-color-navy-950); color: var(--color-foreground-inverse-muted); padding: 3.5rem 0 2rem; font-size: .9375rem; }
.site-footer a { color: var(--color-foreground-inverse); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 2.5rem; }
.footer-grid img { height: 32px; width: auto; margin-bottom: 1rem; }
.footer-grid h2 { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-foreground-inverse); margin-bottom: .75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.legal { border-top: 1px solid rgb(226 232 240 / .15); padding-top: 1.5rem; font-size: .8125rem; line-height: 1.6; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--color-foreground-inverse); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Cookie banner */
.cookie-banner { position: fixed; inset: auto 1rem 1rem 1rem; z-index: 200; max-width: 560px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 18px 50px rgb(15 23 42 / .18); padding: 1.25rem 1.5rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
.cookie-banner p { font-size: .875rem; color: var(--color-foreground-muted); margin-bottom: 1rem; }
.cookie-banner .btn { min-height: 44px; padding: .55rem 1rem; font-size: .9375rem; }
.cookie-banner .btn-choice { background: var(--color-primary); color: var(--color-on-primary); }
.cookie-banner .btn-choice:hover { background: var(--color-secondary); }

/* Legal pages */
.prose { padding: 4rem 0 5rem; }
.prose h1 { font-size: var(--font-h1-mobile); }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose li { margin-bottom: .4rem; }
.tbc { background: var(--color-accent-subtle); color: var(--color-accent-text); padding: 0 .3rem; border-radius: 4px; font-weight: 600; }
