:root {
  color-scheme: light;
  --ink: #10233f;
  --muted: #4d5d70;
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: #d5e0ea;
  --acid: #1473e6;
  --accent: #1473e6;
  --accent-ink: #ffffff;
  --sans: ui-sans-serif, "Segoe UI", sans-serif;
  font-family: var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
a { color: inherit; }
button, input { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -40px; z-index: 50; padding: 8px 12px; border-radius: 8px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; }

.landing-nav { position: sticky; top: 0; z-index: 20; min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 22px; padding: 14px max(20px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); background: rgba(244, 247, 251, .94); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-lockup { height: 40px; width: auto; display: block; }
.landing-nav nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.landing-nav nav a, .nav-link { border: 0; background: none; text-decoration: none; font-size: .92rem; font-weight: 650; }
.landing-nav nav a:hover, .nav-link:hover { color: var(--accent); }
.landing-actions { display: flex; align-items: center; gap: 8px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: .92rem; font-weight: 700; cursor: pointer; }
.button-acid { color: var(--accent-ink); background: var(--accent); }
.button-acid:hover { background: #0d66c9; }
.button-quiet { border-color: var(--line); background: var(--white); }
.button-dark { color: white; background: var(--ink); }
.button-large { min-height: 48px; padding: 0 18px; }

.hero, .steps, .sources, .screens-story, .examples, .personal, .pricing-section, .faq, .closing, .fleet-hero, .fleet-detail { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: 48px; align-items: center; padding: 64px 0 36px; }
.kicker { margin: 0 0 12px; color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--sans); font-weight: 680; letter-spacing: -.03em; }
.hero h1 { margin: 0; max-width: 16ch; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.05; }
.hero-copy, .section-intro p, .sources p, .screens-story p, .personal p, .closing p, .fleet-intro p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.hero-copy { max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 14px; }
.hero-price, .calc-note { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.hero-visual { margin: 0; }
.hero-visual figcaption { margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
.product-stage { display: grid; gap: 16px; }
.workspace-mock, .screen-result { border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 18px 50px rgba(16, 35, 63, .06); }
.workspace-mock { padding: 14px; }
.mock-bar, .mock-tiles div, .screen-bezel { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mock-bar { margin-bottom: 10px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.mock-bar b, .screen-bezel strong { color: var(--ink); }
.mock-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-tiles div { min-height: 84px; align-items: flex-start; flex-direction: column; justify-content: flex-end; padding: 12px; border-radius: 10px; background: #eef4fb; }
.mock-tiles .wide { grid-column: 1 / -1; }
.mock-tiles small, .screen-bezel span { color: var(--accent); font-size: .72rem; font-weight: 750; }
.mock-tiles i { width: 100%; height: 6px; border-radius: 99px; background: #c5d7ea; }
.screen-result { padding: 16px; background: #10233f; }
.screen-bezel { min-height: 150px; align-items: flex-start; flex-direction: column; justify-content: flex-end; padding: 18px; border-radius: 12px; color: white; background: linear-gradient(180deg, #16325c, #10233f); }
.screen-bezel strong { color: white; font-size: 1.6rem; }
.screen-bezel em { color: #d5e6f8; font-style: normal; }

.steps, .examples, .faq { padding: 64px 0; }
.section-intro { max-width: 680px; margin-bottom: 28px; }
.section-intro h2, .sources h2, .screens-story h2, .personal h2, .closing h2, .faq h2, .fleet-intro h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.15; }
.step-grid, .example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.example-grid { grid-template-columns: repeat(4, 1fr); }
.step-grid li, .example-grid article, .sources, .screens-story, .personal, .closing, .fleet-detail article { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.step-grid span { color: var(--accent); font-size: .78rem; font-weight: 800; }
.step-grid h3, .example-grid h3 { margin: 18px 0 8px; font-size: 1.2rem; }
.step-grid p, .example-grid p { margin: 0; color: var(--muted); line-height: 1.5; }

.sources, .screens-story, .personal, .closing { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; padding: 10px 0 28px; }
.format-list, .screens-story ul, .personal ul, .fleet-points, .limit-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.format-list { grid-template-columns: 1fr 1fr; }
.format-list li, .screens-story li, .personal li, .fleet-points li, .limit-list li { padding: 14px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); line-height: 1.45; }
.screens-story li, .limit-list li { display: grid; gap: 4px; }
.screens-story li span, .limit-list li span, .fleet-points li { color: var(--muted); }
.text-link { color: var(--accent); font-weight: 750; }

.pricing-section { padding: 28px 0 64px; }
.pricing-layout { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 22px; align-items: start; }
.license-calculator { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.calculator-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; }
.calculator-head h2, .calculator-head h3 { margin: 0; font-size: 1.35rem; }
.calculator-head span, .device-input small { color: var(--muted); font-size: .8rem; }
.billing-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.billing-switch button { min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; font-weight: 700; }
.billing-switch button.is-active { color: white; border-color: var(--ink); background: var(--ink); }
.billing-switch small { display: block; font-size: .68rem; font-weight: 650; }
.device-input { display: grid; gap: 6px; font-weight: 700; }
.device-input input, .device-range { width: 100%; }
.device-input input { height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.fleet-total p { margin: 0; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 720; letter-spacing: -.04em; }
.fleet-total span, .fleet-total small { display: block; color: var(--muted); }
.tier-table { display: grid; align-content: start; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); }
.tier-table [role="row"] { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line); }
.tier-head { border-top: 0; color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.limit-list { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }

.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.faq-list summary { padding: 16px 18px; cursor: pointer; font-weight: 720; }
.faq-list p { margin: 0; padding: 0 18px 16px; color: var(--muted); line-height: 1.55; }
.closing { align-items: center; margin-bottom: 48px; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; padding: 28px max(20px, calc((100vw - 1120px) / 2)); border-top: 1px solid var(--line); }
footer p { margin: 0; color: var(--muted); }
footer div { display: flex; flex-wrap: wrap; gap: 14px; }
footer a { text-decoration: none; font-weight: 650; }

.demo-page { height: 100vh; overflow: hidden; background: var(--paper); }
.demo-nav { position: relative; }
.demo-banner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; margin: 0; padding: 10px max(20px, calc((100vw - 1180px) / 2)); color: var(--ink); background: #e7f1fc; border-bottom: 1px solid var(--line); }
.demo-banner strong { font-size: .92rem; }
.demo-banner span { color: var(--muted); font-size: .85rem; }
.demo-stage { height: calc(100vh - 128px); padding: 12px; }
.demo-stage iframe { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 12px; background: white; }

.fleet-hero { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 36px; align-items: start; padding: 48px 0; }
.fleet-intro h1 { max-width: 16ch; }
.fleet-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 64px; }
.fleet-detail h2 { margin: 0 0 8px; font-size: 1.35rem; }
.fleet-detail p { margin: 0; }

@media (max-width: 980px) {
  .hero, .sources, .screens-story, .personal, .closing, .pricing-layout, .fleet-hero, .fleet-detail, .example-grid, .step-grid { grid-template-columns: 1fr; }
  .limit-list, .format-list { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .demo-stage { height: calc(100vh - 168px); }
}
@media (max-width: 640px) {
  .hero, .steps, .sources, .screens-story, .examples, .personal, .pricing-section, .faq, .closing, .fleet-hero, .fleet-detail { width: calc(100% - 28px); }
  .landing-nav { align-items: flex-start; }
  .tier-table [role="row"] { grid-template-columns: 1fr; }
}
