@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, figure { margin: 0; }
  ul, ol { margin: 0; padding: 0; }
  img { display: block; max-width: 100%; }
  button, input, textarea, select { font: inherit; }
}

@layer base {
  :root { --ink: oklch(96% .01 202); --muted: oklch(71% .025 208); --faint: oklch(45% .025 210); --line: oklch(31% .025 208); --ground: oklch(9% .015 208); --ground-raised: oklch(12% .017 208); --ground-deep: oklch(7% .012 208); --aqua: oklch(78% .13 201); --aqua-deep: oklch(62% .12 205); --warm: oklch(86% .06 82); --shell: min(1180px, calc(100% - 48px)); --display: "Segoe UI Variable Display", "Segoe UI", sans-serif; --body: "Segoe UI Variable Text", "Segoe UI", sans-serif; }
  html { color-scheme: dark; background: var(--ground); }
  body { min-width: 320px; overflow-x: hidden; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; text-rendering: optimizeLegibility; }
  a { color: inherit; text-decoration: none; }
  a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--warm); outline-offset: 4px; }
  h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.045em; line-height: .95; }
  h1 { font-size: clamp(3.5rem, 7vw, 6.4rem); max-width: 11ch; }
  h2 { font-size: clamp(2.5rem, 5vw, 4.75rem); }
  h3 { font-size: 1.35rem; }
  em { color: var(--aqua); font-style: normal; }
  code { color: var(--warm); font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }
  .shell { width: var(--shell); margin-inline: auto; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .7rem 1rem; background: var(--warm); color: var(--ground-deep); font-weight: 700; transition: top .18s ease; }
  .skip-link:focus { top: 1rem; }
}

@layer components {
  .site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid var(--line); background: var(--ground); }
  .header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 2rem; }
  .brand { display: inline-flex; align-items: center; gap: .58rem; flex: none; font-family: var(--display); font-size: 1.12rem; font-weight: 700; letter-spacing: -.045em; }
  .brand img { width: 28px; height: 28px; }
  .site-nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); color: var(--muted); font-size: .89rem; }
  .site-nav > a:not(.button):hover, .site-nav > a[aria-current="page"] { color: var(--ink); }
  .nav-toggle { display: grid; gap: 5px; width: 40px; height: 40px; place-content: center; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
  .nav-toggle[hidden] { display: none; }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .74rem 1.1rem; background: var(--aqua); color: oklch(13% .03 210); font-weight: 800; line-height: 1; transition: background .16s ease; }
  .button:hover { background: var(--ink); color: var(--ground-deep); }
  .button--small { min-height: 36px; padding: .55rem .8rem; font-size: .8rem; }
  .button--light { background: var(--aqua); }
  .text-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--aqua); text-underline-offset: .28em; }
  .text-link:hover { color: var(--aqua); }
  .eyebrow { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; color: var(--aqua); font-size: .73rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
  .eyebrow span { width: 1.9rem; height: 1px; background: currentColor; }
  .hero-label, .section-label { margin-bottom: 1.25rem; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
  .lede { max-width: 52ch; color: var(--muted); font-size: clamp(1.06rem, 1.6vw, 1.25rem); line-height: 1.6; }
  .hero { position: relative; overflow: clip; padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4.5rem, 8vw, 7rem); background: var(--ground); }
  .hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .76fr) minmax(500px, 1.24fr); align-items: center; gap: clamp(2rem, 6vw, 7rem); }
  .hero-copy { position: relative; z-index: 1; }
  .hero-copy .lede { margin-top: 1.75rem; }
  .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.15rem; margin-top: 2rem; }
  .hero-proof { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 3.5rem; list-style: none; color: var(--muted); font-size: .8rem; font-weight: 700; }
  .hero-proof li { display: flex; align-items: center; gap: .45rem; }
  .hero-proof li + li::before { color: var(--faint); content: "/"; }
  .hero-visual { position: relative; width: min(780px, 64vw); margin: 0 clamp(-5.5vw, -2rem, -1rem) 0 0; justify-self: end; }
  .screen-frame { position: relative; overflow: hidden; background: var(--ground-deep); }
  .screen-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
  .screen-frame--hero { transform: none; }
  .hero-visual figcaption { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; color: var(--muted); font-size: .77rem; }
  .interaction { padding: clamp(4rem, 7vw, 7rem) 0; background: var(--ground-raised); }
  .section-intro--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .85fr); align-items: end; gap: clamp(2rem, 7vw, 7rem); margin-bottom: clamp(2.8rem, 7vw, 6rem); }
  .section-intro--split .section-heading { max-width: 42rem; }
  .section-intro--split > p:last-child { color: var(--muted); }
  .flow-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
  .flow-card { min-height: 290px; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--ground-raised); }
  .flow-card--steam { background: color-mix(in oklch, var(--ground-raised), var(--aqua) 7%); }
  .flow-card-top { display: flex; justify-content: space-between; color: var(--aqua); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
  .flow-card-top h3 { margin: 0; color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit; }
  .flow-index { color: var(--faint); }
  .flow-command { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: clamp(2.5rem, 6vw, 4.5rem) 0 1.1rem; font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.3; }
  kbd { padding: .25em .48em; border: 1px solid color-mix(in oklch, var(--ink), transparent 55%); border-bottom-width: 3px; background: color-mix(in oklch, var(--ground), var(--ink) 8%); border-radius: .25rem; font-family: var(--body); font-size: .9em; }
  .flow-command i { color: var(--aqua); font-style: normal; }
  .flow-card > p:last-child { max-width: 44ch; color: var(--muted); }
  .feature { padding: clamp(4rem, 7vw, 7rem) 0; }
  .feature-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(440px, 1.22fr); align-items: center; gap: clamp(2rem, 8vw, 9rem); }
  .feature-copy > p:not(.eyebrow) { margin-top: 1.5rem; color: var(--muted); font-size: 1.08rem; }
  .check-list { display: grid; gap: .9rem; margin-top: 2rem; list-style: none; color: var(--muted); }
  .check-list li { position: relative; padding-left: 1.3rem; }
  .check-list li::before { position: absolute; left: 0; top: .5em; width: .44rem; height: .44rem; border: 1px solid var(--aqua); content: ""; }
  .lightbox-link { display: block; cursor: zoom-in; }
  .screen-frame--apps { width: min(660px, 100%); aspect-ratio: 16 / 9; justify-self: end; }
  .screen-frame--apps img { height: 100%; aspect-ratio: auto; object-position: center; }
  .image-hint { position: absolute; z-index: 2; right: .85rem; bottom: .85rem; padding: .4rem .55rem; background: color-mix(in oklch, var(--ground), transparent 10%); color: var(--ink); font-size: .72rem; font-weight: 700; opacity: 0; transform: translateY(.25rem); transition: opacity .18s ease, transform .18s ease; }
  .lightbox-link:hover .image-hint, .lightbox-link:focus-visible .image-hint { opacity: 1; transform: translateY(0); }
  .trust { padding: clamp(4rem, 7vw, 7rem) 0; border-block: 1px solid var(--line); background: var(--ground-deep); }
  .trust-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: clamp(2rem, 9vw, 10rem); }
  .trust-copy { color: var(--muted); font-size: 1.05rem; }
  .trust-copy p + p { margin-top: 1rem; }
  .trust .text-link { margin-top: 1.6rem; }
  .faq { padding: clamp(4rem, 7vw, 7rem) 0; }
  .faq-grid { display: grid; grid-template-columns: minmax(240px, .52fr) minmax(0, 1.48fr); gap: clamp(2.5rem, 7vw, 8rem); }
  .faq-grid h2 { font-size: clamp(2.4rem, 4.2vw, 3.8rem); }
  .faq-list { border-top: 1px solid var(--line); }
  details { border-bottom: 1px solid var(--line); }
  summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.35rem 0; cursor: pointer; font-size: 1.04rem; font-weight: 700; line-height: 1.35; list-style: none; }
  summary::-webkit-details-marker { display: none; }
  summary::after { flex: none; color: var(--aqua); content: "+"; font-size: 1.25rem; line-height: 1; }
  details[open] summary::after { content: "−"; }
  details p { max-width: 65ch; padding: 0 2rem 1.5rem 0; color: var(--muted); }
  .closing { padding: clamp(3rem, 5vw, 5rem) 0; border-top: 1px solid var(--line); background: var(--ground); color: var(--ink); }
  .closing-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(320px, .52fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
  .closing-inner { display: flex; flex-direction: column; align-items: flex-start; }
  .closing h2 { margin-bottom: 1.7rem; }
  .closing-inner > p { max-width: 44ch; margin: -0.6rem 0 1.7rem; color: var(--muted); font-size: 1.05rem; }
  .closing-detail { position: relative; width: min(440px, 100%); aspect-ratio: 16 / 9; justify-self: end; overflow: hidden; }
  .closing-detail img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center; }
  .site-footer { padding: 2.2rem 0; background: var(--ground-deep); color: var(--muted); font-size: .83rem; }
  .footer-inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1.25rem; }
  .footer-inner nav { display: flex; gap: 1rem; }
  .footer-inner nav a:hover { color: var(--ink); }
  .copyright { text-align: right; }
  .page-hero { padding: clamp(5rem, 10vw, 9rem) 0 clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--line); background: var(--ground); }
  .page-hero-inner h1 { max-width: 12ch; }
  .page-hero-inner .lede { margin-top: 1.75rem; }
  .prose { max-width: 840px; padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(5rem, 10vw, 9rem); }
  .prose h2 { margin: 3.2rem 0 1.1rem; font-size: clamp(2rem, 4vw, 3.25rem); }
  .prose h2:first-of-type { margin-top: 2.5rem; }
  .prose p { max-width: 70ch; color: var(--muted); }
  .prose p + p { margin-top: 1rem; }
  .prose ul, .prose ol { display: grid; gap: .65rem; max-width: 68ch; margin: 1.25rem 0; padding-left: 1.25rem; color: var(--muted); }
  .prose li::marker { color: var(--aqua); }
  .notice { padding: 1rem 1.15rem; border-left: 3px solid var(--warm); background: color-mix(in oklch, var(--warm), transparent 92%); color: var(--warm); }
  .last-updated { margin-top: 3.5rem; color: var(--faint) !important; font-size: .85rem; }
  .support-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(2rem, 8vw, 8rem); }
  .support-aside { position: sticky; top: 6rem; align-self: start; display: grid; gap: .5rem; padding-top: 4.5rem; color: var(--muted); font-size: .88rem; }
  .support-aside p { margin-bottom: .3rem; color: var(--aqua); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .support-aside a:hover { color: var(--ink); }
  .support-prose { width: auto; margin: 0; }
  .support-prose section { scroll-margin-top: 6rem; }
  .support-prose section + section { margin-top: 5rem; }
  .support-prose details { max-width: 690px; }
  .support-cta { margin-top: 5rem; padding: clamp(1.7rem, 4vw, 3rem); background: var(--ground-raised); }
  .support-cta h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); }
  .support-cta p { margin: .8rem 0 1.5rem; }
  .not-found { display: grid; min-height: 100svh; place-items: center; }
  .not-found-inner { padding: 3rem 0; }
  .not-found-inner .brand { margin-bottom: clamp(5rem, 12vw, 10rem); }
  .not-found-inner .lede { margin: 1.2rem 0 2rem; }
  .lightbox { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: max(1rem, 3vw); background: color-mix(in oklch, var(--ground-deep), transparent 5%); }
  .lightbox[hidden] { display: none; }
  .lightbox figure { max-width: min(1400px, 100%); max-height: 100%; margin: 0; }
  .lightbox img { max-width: 100%; max-height: calc(100svh - 6rem); object-fit: contain; }
  .lightbox figcaption { margin-top: .7rem; color: var(--muted); font-size: .82rem; }
  .lightbox-close { position: fixed; top: 1rem; right: 1rem; display: inline-flex; align-items: center; gap: .55rem; min-height: 42px; padding: .55rem .75rem; border: 1px solid var(--line); background: var(--ground-raised); color: var(--ink); cursor: pointer; font-weight: 700; }
  .lightbox-close span { color: var(--aqua); font-size: 1.3rem; }
  .has-lightbox { overflow: hidden; }
}

@layer utilities {
  @media (max-width: 860px) {
    .nav-toggle > span:not(.sr-only) { display: block; width: 17px; height: 1px; background: currentColor; }
    .site-nav { position: absolute; top: 72px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: .8rem 24px 1.2rem; border-bottom: 1px solid var(--line); background: var(--ground-raised); }
    .js .site-nav { display: none; }
    .js .site-nav.is-open { display: flex; }
    .site-nav > a:not(.button) { padding: .75rem 0; }
    .site-nav .button { margin-top: .6rem; }
    .hero-grid, .feature-grid, .section-intro--split, .trust-grid, .faq-grid { grid-template-columns: 1fr; }
    .hero-grid { gap: 3.5rem; }
    .hero-visual { width: 100%; max-width: 760px; margin-right: 0; }
    .screen-frame--hero { transform: none; }
    .section-intro--split { gap: 1.4rem; }
    .feature-copy { max-width: 680px; }
    .screen-frame--apps { width: 100%; max-width: 760px; justify-self: start; aspect-ratio: 16 / 9; }
    .screen-frame--apps img { object-position: center; }
    .closing-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .closing-detail { justify-self: start; }
    .footer-inner { grid-template-columns: auto 1fr; }
    .footer-inner nav { justify-self: start; }
    .copyright { text-align: left; }
    .support-layout { grid-template-columns: 1fr; }
    .support-aside { position: static; grid-template-columns: repeat(2, 1fr); padding-top: 2rem; }
    .support-aside p { grid-column: 1 / -1; }
  }
  @media (max-width: 600px) {
    :root { --shell: min(100% - 32px, 1180px); }
    .header-inner { min-height: 64px; }
    .site-nav { top: 64px; padding-inline: 16px; }
    .hero { padding-top: 4rem; }
    .hero-proof { margin-top: 2.4rem; gap: .8rem; }
    .flow-grid { grid-template-columns: 1fr; }
    .flow-card { min-height: 250px; }
    .flow-command { margin-top: 3rem; }
    .trust-grid { gap: 1.6rem; }
    .footer-inner { display: flex; flex-direction: column; align-items: flex-start; }
    .support-aside { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  }
}
