:root {
  color-scheme: light dark;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #e9edf2;
  --surface-strong: #dce3ea;
  --ink: #17202a;
  --muted: #596675;
  --line: #cbd3dc;
  --accent: #2752b7;
  --accent-hover: #1e4195;
  --accent-soft: #dce6ff;
  --accent-ink: #f8faff;
  --radius: 7px;
  --shadow: 0 24px 70px rgba(34, 52, 74, .14);
  --shadow-soft: 0 14px 38px rgba(34, 52, 74, .1);
  --max: 1180px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font-body);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161d;
    --surface: #18212b;
    --surface-soft: #202b37;
    --surface-strong: #283543;
    --ink: #eef3f8;
    --muted: #aab6c3;
    --line: #354555;
    --accent: #789cff;
    --accent-hover: #95b0ff;
    --accent-soft: #1d346b;
    --accent-ink: #0f1a34;
    --shadow: 0 24px 70px rgba(2, 7, 13, .36);
    --shadow-soft: 0 14px 38px rgba(2, 7, 13, .28);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button,
a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
h1,
h2,
h3,
p { margin-top: 0; }
h1,
h2,
h3 { font-family: var(--font-display); line-height: 1.04; letter-spacing: -.04em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: var(--radius); background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: color-mix(in srgb, var(--line) 78%, transparent); box-shadow: 0 8px 24px rgba(34, 52, 74, .05); }
.nav { min-height: 70px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -.025em; text-decoration: none; }
.brand-mark { width: 29px; height: 29px; flex: 0 0 auto; background: center / contain no-repeat url("/favicon.svg"); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 25px; }
.nav-links a { color: var(--muted); font-size: .93rem; font-weight: 650; text-decoration: none; transition: color .18s ease; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .nav-button { color: var(--accent-ink); }
.menu-button { display: none; width: 44px; height: 44px; margin-left: auto; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-button > span:first-child,
.menu-button > span:first-child::before,
.menu-button > span:first-child::after { display: block; width: 18px; height: 2px; position: relative; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-button > span:first-child::before,
.menu-button > span:first-child::after { content: ""; position: absolute; left: 0; }
.menu-button > span:first-child::before { top: -6px; }
.menu-button > span:first-child::after { top: 6px; }
.menu-button[aria-expanded="true"] > span:first-child { background: transparent; }
.menu-button[aria-expanded="true"] > span:first-child::before { top: 0; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] > span:first-child::after { top: 0; transform: rotate(-45deg); }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.button:hover { background: var(--accent-hover); }
.button:active { transform: translateY(1px) scale(.985); }
.button.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--surface); border-color: color-mix(in srgb, var(--line) 72%, var(--ink)); }
.button-lg { min-height: 52px; padding-inline: 24px; }
.button-inverse { background: var(--accent-ink); color: var(--accent-hover); }
.button-inverse:hover { background: var(--surface); color: var(--accent-hover); }
.text-link { color: var(--accent); font-weight: 720; }

.hero {
  min-height: calc(100dvh - 70px);
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
  padding: clamp(56px, 8vw, 92px) 0;
}
.hero-copy { max-width: 570px; }
.eyebrow { margin-bottom: 17px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 9.5ch; margin-bottom: 24px; font-size: clamp(3.4rem, 6.8vw, 6.4rem); font-weight: 735; letter-spacing: -.072em; }
.hero-lead { max-width: 520px; margin-bottom: 30px; color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.22rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; margin: 0; }
.hero-media::before { content: ""; position: absolute; inset: 9% -5% -5% 10%; z-index: -1; border-radius: var(--radius); background: var(--accent-soft); }
.hero-media img { width: 100%; min-height: 530px; max-height: 72dvh; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }

.principles { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 45%, transparent); }
.principle-grid { display: grid; grid-template-columns: 1.14fr 1fr 1.06fr .9fr; }
.principle-grid p { margin: 0; padding: 24px 26px; border-right: 1px solid var(--line); }
.principle-grid p:first-child { padding-left: 0; }
.principle-grid p:last-child { padding-right: 0; border-right: 0; }
.principle-grid strong { display: block; margin-bottom: 3px; font-size: .98rem; }
.principle-grid span { color: var(--muted); font-size: .86rem; line-height: 1.45; }

.section { padding: clamp(84px, 10vw, 140px) 0; }
.section-head { max-width: 770px; margin-bottom: clamp(42px, 6vw, 68px); }
.section-head h2,
.workflow h2,
.faq h2 { margin-bottom: 18px; font-size: clamp(2.55rem, 5vw, 5rem); font-weight: 715; letter-spacing: -.06em; }
.section-head > p:not(.eyebrow),
.workflow-copy > p,
.faq-intro > p { max-width: 650px; color: var(--muted); font-size: 1.08rem; }

.feature-grid { display: grid; grid-template-columns: 1.18fr .82fr; grid-template-rows: 1fr 1fr; gap: 18px; }
.feature-grid article { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-visual { grid-row: 1 / 3; min-height: 700px; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--surface); }
.feature-visual img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.feature-visual div { padding: 30px; }
.feature-grid h3 { margin-bottom: 11px; font-size: clamp(1.45rem, 2.3vw, 2rem); }
.feature-grid p { margin-bottom: 0; color: var(--muted); }
.feature-panel { min-height: 338px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 44px); background: var(--surface); }
.feature-panel-strong { background: var(--surface-strong); }
.feature-label { margin-bottom: auto; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.workflow-section { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface-soft) 62%, transparent); }
.workflow { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(46px, 7vw, 92px); align-items: stretch; }
.workflow-copy { padding-block: 20px; }
.workflow-copy > p { margin-bottom: 42px; }
.workflow-steps { display: grid; border-top: 1px solid var(--line); }
.workflow-steps article { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.workflow-steps article > span { color: var(--accent); font-size: .92rem; font-weight: 800; }
.workflow-steps h3 { margin-bottom: 7px; font-size: 1.2rem; letter-spacing: -.025em; }
.workflow-steps p { margin: 0; color: var(--muted); font-size: .94rem; }
.workflow-media { margin: 0; }
.workflow-media img { width: 100%; height: 100%; min-height: 620px; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow-soft); }

.pricing-home .section-head { margin-inline: auto; text-align: center; }
.pricing-home .section-head > p:not(.eyebrow) { margin-inline: auto; }
.price-shelf { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.price-shelf article { min-height: 330px; display: flex; flex-direction: column; padding: 30px; border-right: 1px solid var(--line); }
.price-shelf article:last-child { border-right: 0; }
.price-shelf article.recommended { background: var(--surface-strong); box-shadow: inset 0 4px 0 var(--accent); }
.price-shelf h3 { margin-bottom: 8px; font-size: 1.35rem; }
.price-shelf p { color: var(--muted); }
.price-shelf strong { margin-top: auto; font-family: var(--font-display); font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.06em; }
.price-shelf strong span { font-size: .92rem; letter-spacing: 0; color: var(--muted); }
.price-shelf article > span { margin-top: 13px; color: var(--muted); font-size: .9rem; }
.pricing-action { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pricing-action p { max-width: 470px; margin: 0; color: var(--muted); font-size: .9rem; text-align: right; }

.faq { display: grid; grid-template-columns: .68fr 1.32fr; gap: clamp(48px, 8vw, 100px); align-items: start; }
.faq-intro { position: sticky; top: 112px; }
.faq-intro a { color: var(--accent); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { padding: 25px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 1.08rem; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 500; }
.faq-list details[open] summary::after { content: "-"; }
.faq-list p { max-width: 680px; margin: 15px 0 0; color: var(--muted); }

.cta { display: grid; grid-template-columns: 1fr auto; gap: 38px; align-items: end; padding: clamp(42px, 7vw, 78px); border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); }
.cta h2 { max-width: 760px; margin-bottom: 14px; font-size: clamp(2.55rem, 5vw, 5rem); font-weight: 720; letter-spacing: -.06em; }
.cta p { max-width: 580px; margin: 0; color: color-mix(in srgb, var(--accent-ink) 82%, transparent); }

.page-hero { padding: clamp(80px, 10vw, 116px) 0 58px; }
.page-hero h1 { max-width: 920px; margin-bottom: 24px; font-size: clamp(3.2rem, 7vw, 6.4rem); font-weight: 720; letter-spacing: -.065em; }
.page-hero > p:not(.eyebrow) { max-width: 700px; color: var(--muted); font-size: 1.15rem; }
.pricing-cycle { width: fit-content; display: grid; grid-template-columns: repeat(2, auto); gap: 3px; margin: 0 auto 46px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.pricing-cycle button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: .88rem; font-weight: 720; cursor: pointer; }
.pricing-cycle button:hover { color: var(--ink); }
.pricing-cycle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 5px rgba(34, 52, 74, .13); }
.pricing-cycle button span { margin-left: 5px; color: var(--accent); font-size: .72rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.plan { min-height: 560px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plan.featured { border: 2px solid var(--accent); background: var(--surface-strong); transform: translateY(-18px); }
.plan h2 { margin-bottom: 7px; font-size: 1.65rem; }
.plan .price { margin: 24px 0 3px; font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; line-height: 1; letter-spacing: -.06em; }
.plan .period,
.plan .summary { color: var(--muted); }
.plan ul { display: grid; gap: 12px; margin: 29px 0 32px; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 20px; }
.plan li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.plan .button { margin-top: auto; }
.billing-note { max-width: 820px; margin: 29px auto 0; color: var(--muted); text-align: center; }
.compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.compare article { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare h3 { font-size: 1.35rem; }
.compare p { margin-bottom: 0; color: var(--muted); }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 80px; align-items: start; }
.legal-nav { position: sticky; top: 110px; display: grid; gap: 12px; }
.legal-nav a { color: var(--muted); font-weight: 650; text-decoration: none; }
.legal-nav a[aria-current="page"] { color: var(--accent); }
.legal { font-size: 1.02rem; }
.legal .effective { margin-bottom: 42px; color: var(--muted); }
.legal h2 { margin: 52px 0 14px; font-size: 1.7rem; letter-spacing: -.025em; }
.legal h3 { margin: 30px 0 10px; }
.legal p,
.legal li { color: var(--muted); }
.legal strong { color: var(--ink); }
.legal li + li { margin-top: 8px; }
.notice { margin: 40px 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

.site-footer { margin-top: clamp(88px, 10vw, 132px); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.55fr repeat(3, 1fr); gap: 48px; padding: 58px 0; }
.footer-grid p { max-width: 380px; color: var(--muted); }
.footer-links { display: grid; align-content: start; gap: 10px; }
.footer-links h3 { margin-bottom: 6px; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(20px); }
.reveal-ready [data-reveal].in-view { opacity: 1; transform: translateY(0); transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1); }

@media (max-width: 960px) {
  .hero,
  .workflow,
  .faq,
  .cta,
  .legal-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-block: 54px 76px; }
  .hero-copy { max-width: 700px; }
  .hero h1 { max-width: 11ch; }
  .hero-media img { min-height: 480px; max-height: none; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-grid p:first-child { padding-left: 26px; }
  .principle-grid p:nth-child(2) { border-right: 0; }
  .principle-grid p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .principle-grid p:last-child { padding-right: 26px; }
  .workflow-copy { padding-block: 0; }
  .workflow-media img { min-height: 520px; }
  .faq-intro { position: static; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .legal-nav { position: static; grid-template-columns: repeat(3, auto); justify-content: start; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 64px; }
  .menu-button { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 14px;
    right: 14px;
    display: none;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 10px; }
  .nav-links .nav-button { color: var(--accent-ink); }
  .hero { gap: 42px; padding-top: 44px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-media img { min-height: 360px; }
  .hero-media::before { inset: 9% -3% -4% 7%; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid p { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle-grid p:first-child { padding-left: 0; }
  .principle-grid p:nth-child(2) { border-bottom: 1px solid var(--line); }
  .principle-grid p:last-child { padding-right: 0; border-bottom: 0; }
  .feature-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .feature-visual { grid-row: auto; min-height: 0; }
  .feature-visual img { min-height: 400px; }
  .feature-panel { min-height: 290px; }
  .workflow-media img { min-height: 410px; }
  .price-shelf { grid-template-columns: 1fr; }
  .price-shelf article { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .price-shelf article:last-child { border-bottom: 0; }
  .pricing-action { align-items: stretch; flex-direction: column; }
  .pricing-action .button { width: 100%; }
  .pricing-action p { text-align: left; }
  .cta { align-items: start; }
  .cta .button { width: 100%; }
  .compare { grid-template-columns: 1fr; }
  .legal-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
