:root {
  color-scheme: light;
  --canvas: #f2f6fb;
  --surface: #ffffff;
  --surface-muted: #e7eef7;
  --ink: #0b1932;
  --ink-muted: #42546c;
  --ink-soft: #5a6b82;
  --line: #cbd8e8;
  --line-strong: #aebfd5;
  --primary: #1d3f96;
  --primary-strong: #153277;
  --accent: #00b4d8;
  --accent-soft: #d8f4fa;
  --accent-ink: #053746;
  --on-accent: #053746;
  --focus-outer: #0b1932;
  --on-primary: #ffffff;
  --shadow: 0 28px 70px rgba(17, 45, 91, .18);
  --shadow-small: 0 12px 28px rgba(17, 45, 91, .12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shell: min(1180px, calc(100% - 48px));
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #09152d;
  --surface: #102445;
  --surface-muted: #122d4d;
  --ink: #f5f9ff;
  --ink-muted: #b9c9dc;
  --ink-soft: #91a7bf;
  --line: #294361;
  --line-strong: #466584;
  --primary: #79ebf5;
  --primary-strong: #a9f4f8;
  --accent: #49d6e8;
  --accent-soft: #103b52;
  --accent-ink: #e3fcff;
  --on-accent: #052438;
  --focus-outer: #0b1932;
  --on-primary: #052438;
  --shadow: 0 28px 70px rgba(0, 0, 0, .36);
  --shadow-small: 0 12px 28px rgba(0, 0, 0, .26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.6; -webkit-tap-highlight-color: rgba(0, 180, 216, .18); }
body, button, a { touch-action: manipulation; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ffffff; outline-offset: 4px; box-shadow: 0 0 0 6px var(--focus-outer); }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 800; text-decoration: none; transform: translateY(-180%); transition: transform 180ms ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 10; min-height: var(--header-height); border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent); background: color-mix(in srgb, var(--canvas) 92%, transparent); backdrop-filter: blur(14px); }
.header-inner { min-height: var(--header-height); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.22rem; font-weight: 850; letter-spacing: -.045em; text-decoration: none; }
.brand img { width: 32px; height: 40px; object-fit: contain; }
.primary-nav { display: flex; justify-content: center; align-items: center; gap: 26px; }
.primary-nav a, .footer-links a { color: var(--ink-muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.primary-nav a { padding: 8px 0; }
.primary-nav a:hover, .footer-links a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.text-button, .theme-button, .menu-toggle { min-width: 44px; min-height: 44px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink-muted); cursor: pointer; font: inherit; font-weight: 800; }
.text-button:hover, .theme-button:hover, .menu-toggle:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.theme-icon { display: inline-block; font-size: 1.25rem; line-height: 1; transform: rotate(-20deg); }
.menu-toggle { display: none; padding: 10px; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px auto; border-radius: 2px; background: currentColor; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.048em; line-height: 1.06; text-wrap: balance; }
h1 { max-width: 700px; margin-bottom: 22px; font-size: clamp(3rem, 5vw, 4.8rem); font-weight: 850; }
h2 { margin-bottom: 18px; font-size: clamp(2.35rem, 5vw, 4.4rem); font-weight: 820; }
h3 { margin-bottom: 10px; font-size: 1.45rem; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(310px, .95fr); gap: clamp(36px, 8vw, 116px); align-items: center; min-height: min(760px, calc(100vh - var(--header-height))); margin-top: 28px; padding: clamp(52px, 8vw, 92px) clamp(24px, 6vw, 84px) clamp(58px, 8vw, 100px); overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(135deg, #0b1c3c 0%, #163a79 66%, #135779 100%); box-shadow: var(--shadow); }
.hero::before { position: absolute; top: -25%; right: -6%; width: 56%; height: 120%; border: 1px solid rgba(73, 214, 232, .25); border-radius: 50%; transform: rotate(-18deg); content: ""; pointer-events: none; }
.hero::after { position: absolute; right: 30%; bottom: -15%; width: 180px; height: 180px; border-radius: 50%; background: rgba(0, 180, 216, .2); filter: blur(44px); content: ""; pointer-events: none; }
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: #ffffff; }
.hero-lede, .section-lede, .hero-note { max-width: 620px; color: var(--ink-muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.hero .hero-lede { color: #d0deef; }
.hero-lede { margin-bottom: 32px; }
.hero-note { margin: 20px 0 0; max-width: 520px; color: #b4c7df; font-size: .88rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid transparent; border-radius: 13px; font-size: .93rem; font-weight: 850; text-decoration: none; transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px rgba(0, 180, 216, .25); }
.button-primary:hover { background: #39cce5; }
.button-secondary { border-color: rgba(255, 255, 255, .46); background: rgba(255, 255, 255, .08); color: #ffffff; }
.button-secondary:hover { border-color: var(--accent); background: rgba(255, 255, 255, .15); }
.hero-visual { display: flex; flex-direction: column; align-items: center; }
.hero-screen { width: min(360px, 86%); max-height: min(72vh, 680px); overflow: hidden; border: 1px solid rgba(176, 230, 240, .78); border-radius: 26px; background: #06142c; box-shadow: 0 26px 70px rgba(0, 0, 0, .34); }
.hero-screen .app-shot { display: block; width: 100%; height: auto !important; max-height: min(72vh, 680px); object-fit: contain; }
.visual-caption { display: flex; align-items: center; gap: 12px; width: min(360px, 86%); margin-top: 20px; color: #c6d8eb; font-size: .77rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.caption-rule { flex: 1; height: 1px; background: rgba(198, 216, 235, .56); }

.section { padding-block: 110px; }
.section-border { border-top: 1px solid var(--line); }
.section-tint { --ink: #f5f9ff; --ink-muted: #c3d2e5; --ink-soft: #9cb1ca; --line: #31537b; --line-strong: #587a9f; background: #0d234a; color: var(--ink); }
.section-tint h2 { color: var(--ink); }
.section-tint .eyebrow { color: var(--accent); }
.section-intro { margin-bottom: 48px; }
.split-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 48px; align-items: end; }
.section-lede { margin-bottom: 0; font-size: 1.04rem; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.workflow-card { position: relative; min-height: 340px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 1px 0 color-mix(in srgb, var(--surface) 50%, transparent); }
.workflow-card::before { position: absolute; top: 0; right: 25px; left: 25px; height: 3px; border-radius: 0 0 4px 4px; background: var(--line-strong); content: ""; }
.workflow-card-featured { border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); background: var(--accent-soft); }
.workflow-card-featured::before { background: var(--accent); }
.card-index { margin-bottom: 46px; color: var(--primary); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.workflow-card p:not(.card-index):not(.card-meta) { color: var(--ink-muted); font-size: .96rem; }
.card-meta { margin: auto 0 0; color: var(--ink-soft); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mini-meter { height: 10px; margin: 22px 0 28px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--accent) 26%, var(--surface)); }
.mini-meter span { display: block; width: 62%; height: 100%; border-radius: inherit; background: var(--accent); }
.set-preview, .portion-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-block: 18px 27px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); color: var(--ink-soft); font-size: .68rem; font-weight: 800; }
.set-preview strong { grid-column: 1 / -1; color: var(--ink); font-size: .92rem; }
.portion-preview { grid-template-columns: 1fr auto; align-items: center; }
.portion-preview strong { color: var(--ink); font-size: .92rem; }
.portion-check { grid-column: 2; grid-row: 1 / span 2; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 1rem; }
.chart-preview { display: flex; align-items: end; gap: 7px; height: 72px; margin: 18px 0 27px; padding-inline: 6px; }
.chart-preview i { flex: 1; min-height: 20%; border-radius: 5px 5px 2px 2px; background: var(--primary); opacity: .82; }
.chart-preview i:nth-child(2) { height: 56%; opacity: .56; }
.chart-preview i:nth-child(3) { height: 76%; opacity: .75; }
.chart-preview i:nth-child(4) { height: 42%; opacity: .44; }
.chart-preview i:nth-child(5) { height: 88%; }
.chart-preview i:nth-child(6) { height: 65%; opacity: .65; }
.chart-preview i:nth-child(7) { height: 96%; background: var(--accent); }

.screen-grid { display: grid; grid-template-columns: 1.25fr .875fr .875fr; align-items: start; gap: 18px; }
.screen-card { margin: 0; }
.screen-image-wrap { display: grid; min-height: 510px; max-height: 640px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-muted); box-shadow: var(--shadow-small); }
.screen-card-large .screen-image-wrap { min-height: 640px; }
.screen-image-wrap .app-shot { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.screen-card figcaption { display: flex; gap: 12px; margin-top: 16px; color: var(--ink-muted); font-size: .9rem; }
.caption-label { color: var(--primary); font-weight: 850; letter-spacing: .08em; }

.status-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr); gap: clamp(48px, 10vw, 150px); align-items: start; }
.status-list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.status-row { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.status-row strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.status-row p { margin: 0; color: var(--ink-muted); font-size: .92rem; }
.status-mark { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; font-weight: 900; }
.status-mark-ready { background: var(--accent); color: var(--on-accent); }
.status-mark-note { background: var(--line); color: var(--ink-muted); }

.narrow-shell { max-width: 820px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 17px 0; color: var(--ink); 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(--primary); font-size: 1.5rem; font-weight: 500; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { max-width: 680px; margin: 0 40px 22px 0; color: var(--ink-muted); }
.closing-cta { display: flex; align-items: center; justify-content: space-between; gap: 36px; margin-top: 44px; padding: 72px clamp(24px, 6vw, 84px) 78px; border-radius: var(--radius-lg); background: linear-gradient(125deg, #0b1c3c, #153c79); box-shadow: var(--shadow); }
.closing-cta h2 { max-width: 620px; margin-bottom: 12px; color: #ffffff; }
.closing-cta .eyebrow { color: var(--accent); }
.closing-cta p:not(.eyebrow) { max-width: 580px; margin-bottom: 0; color: #c3d2e5; }
.site-footer { margin-top: 44px; border-top: 1px solid #294361; padding-block: 38px 50px; background: #09152d; color: #f5f9ff; }
.site-footer .brand { color: #f5f9ff; }
.site-footer .footer-links a { color: #b9c9dc; }
.site-footer .footer-links a:hover { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px 50px; align-items: start; }
.footer-brand .brand img { width: 25px; height: 32px; }
.footer-brand p { max-width: 320px; margin: 14px 0 0; color: #9cb1ca; font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 20px; }
.footer-meta { grid-column: 1 / -1; margin: 0; color: #91a7bf; font-size: .76rem; }

.page-main { min-height: calc(100vh - var(--header-height)); padding-block: 90px 110px; }
.page-main .page-heading { max-width: 760px; margin-bottom: 48px; }
.page-main .page-heading h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 52px; font-size: clamp(1.65rem, 3vw, 2.4rem); overflow-wrap: anywhere; hyphens: auto; }
.page-heading h1 { overflow-wrap: anywhere; hyphens: auto; }
.prose p, .prose li { color: var(--ink-muted); font-size: 1.03rem; }
.prose ul { padding-left: 1.25rem; }
.inline-link { color: var(--primary); font-weight: 750; }
.note-box { margin: 28px 0; padding: 20px 22px; border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--accent-soft); color: var(--accent-ink); }

@media (max-width: 980px) {
  :root { --shell: min(100% - 40px, 760px); }
  .header-inner { gap: 18px; }
  .primary-nav { gap: 16px; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-card-large { grid-column: 1 / -1; }
  .screen-card-large .screen-image-wrap { min-height: 560px; }
  .status-layout { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 720px) {
  :root { --shell: calc(100% - 32px); --header-height: 68px; }
  .site-header { backdrop-filter: none; }
  .header-inner { grid-template-columns: auto auto 1fr; }
  .menu-toggle { display: block; order: 2; justify-self: end; }
  .header-actions { order: 3; justify-self: end; }
  .primary-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: grid; justify-content: stretch; justify-items: stretch; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); background: var(--canvas); box-shadow: var(--shadow-small); }
  .primary-nav[aria-hidden="true"] { display: none; }
  .primary-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; }
  .primary-nav a:last-child { border-bottom: 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; margin-top: 16px; padding-block: 58px 70px; border-radius: 24px; }
  h1 { max-width: 580px; font-size: clamp(3rem, 14vw, 5.2rem); }
  .hero-visual { align-items: start; margin-top: 16px; }
  .hero-screen, .visual-caption { width: min(310px, 92%); margin-left: 2%; }
  .split-intro { grid-template-columns: 1fr; gap: 22px; }
  .section { padding-block: 78px; }
  .screen-grid { grid-template-columns: 1fr; }
  .screen-card-large { grid-column: auto; }
  .screen-image-wrap, .screen-card-large .screen-image-wrap { min-height: 510px; max-height: 620px; }
  .closing-cta { display: grid; align-items: start; margin-top: 16px; padding-block: 58px 64px; border-radius: 24px; }
  .site-footer { margin-top: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
  .footer-meta { grid-column: auto; }
}

@media (max-width: 480px) {
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-card { min-height: 300px; }
  .card-index { margin-bottom: 34px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-screen, .visual-caption { width: min(300px, 96%); }
  .page-main .page-heading h1 { font-size: clamp(2.1rem, 12vw, 3.6rem); }
  .screen-image-wrap, .screen-card-large .screen-image-wrap { min-height: 470px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .button:hover { transform: none; }
}
