@layer reset, base, components, utilities;

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

@layer base {
  :root {
    color-scheme: light;
    --navy: #0b1538;
    --navy-2: #101f4d;
    --teal: #22d3c5;
    --teal-dark: #087d78;
    --violet: #7c3aed;
    --sky: #38bdf8;
    --canvas: #f7f9fc;
    --surface: #ffffff;
    --surface-soft: #eef3f8;
    --ink: #111827;
    --muted: #536174;
    --line: #dbe3ec;
    --success: #087f5b;
    --warning: #a15c00;
    --danger: #b42318;
    --shadow-sm: 0 8px 24px rgba(11, 21, 56, .08);
    --shadow-lg: 0 26px 70px rgba(4, 13, 41, .2);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 28px;
    --max: 1180px;
  }

  [data-theme="dark"] {
    color-scheme: dark;
    --canvas: #071027;
    --surface: #0f1b3d;
    --surface-soft: #14244d;
    --ink: #f6f8ff;
    --muted: #b3bfd4;
    --line: #2b3a63;
    --teal-dark: #4ae1d6;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, .2);
  }

  body {
    min-width: 320px;
    font-family: "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .14;
    z-index: -1;
    background-image: radial-gradient(circle at 1px 1px, rgba(83, 97, 116, .22) 1px, transparent 0);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, black, transparent 65%);
  }

  ::selection { color: var(--navy); background: var(--teal); }
  :focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

  h1, h2, h3 { color: var(--ink); line-height: 1.08; letter-spacing: -.035em; }
  h1 { font-size: clamp(2.65rem, 7vw, 5.7rem); }
  h2 { font-size: clamp(2rem, 4.3vw, 3.65rem); }
  h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
  p { color: var(--muted); }
  strong { color: var(--ink); }
  code {
    padding: .12rem .38rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: var(--surface-soft);
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: .9em;
  }
}

@layer components {
  .skip-link {
    position: fixed;
    left: 1rem;
    top: .75rem;
    z-index: 1000;
    transform: translateY(-180%);
    padding: .7rem 1rem;
    border-radius: 8px;
    color: var(--navy);
    background: var(--teal);
    font-weight: 700;
    text-decoration: none;
  }
  .skip-link:focus { transform: translateY(0); }

  .container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
  .section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
  .section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
  .section-dark { color: #fff; background: var(--navy); }
  .section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }
  .section-dark p { color: #b9c5df; }
  .section-soft { background: color-mix(in srgb, var(--surface-soft) 68%, transparent); }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
    background: color-mix(in srgb, var(--canvas) 88%, transparent);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .nav-shell { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .brand { display: inline-flex; align-items: center; gap: .72rem; color: var(--ink); font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
  .brand img { width: 36px; height: 36px; border-radius: 9px; }
  .brand span { font-size: 1.08rem; }
  .nav-links { display: flex; align-items: center; gap: .2rem; list-style: none; }
  .nav-links a { display: block; padding: .55rem .72rem; border-radius: 9px; color: var(--muted); font-size: .94rem; font-weight: 600; text-decoration: none; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-soft); }
  .nav-actions { display: flex; align-items: center; gap: .5rem; }
  .icon-button, .menu-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink);
    background: var(--surface);
    cursor: pointer;
  }
  .menu-toggle { display: none; }

  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 46px;
    padding: .72rem 1.05rem;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 720;
    line-height: 1.1;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  .button:hover { transform: translateY(-2px); }
  .button-primary { color: var(--navy); background: var(--teal); box-shadow: 0 10px 24px rgba(34, 211, 197, .22); }
  .button-primary:hover { box-shadow: 0 15px 34px rgba(34, 211, 197, .3); }
  .button-secondary { color: var(--ink); border-color: var(--line); background: var(--surface); }
  .button-ghost { color: #fff; border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .07); }
  .button-small { min-height: 40px; padding: .58rem .86rem; font-size: .9rem; }

  .hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
      radial-gradient(circle at 76% 18%, rgba(124, 58, 237, .36), transparent 24rem),
      radial-gradient(circle at 15% 80%, rgba(34, 211, 197, .22), transparent 26rem),
      var(--navy);
  }
  .hero::after {
    content: "";
    position: absolute;
    width: 28rem;
    height: 28rem;
    right: -10rem;
    bottom: -18rem;
    transform: rotate(26deg);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 5rem;
  }
  .hero-grid { min-height: 760px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(430px, 1.05fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding: 5.4rem 0 6.6rem; }
  .hero-copy { position: relative; z-index: 2; }
  .hero h1 { max-width: 760px; color: #fff; }
  .hero .lead { max-width: 660px; margin-top: 1.5rem; color: #c3cde3; font-size: clamp(1.07rem, 1.9vw, 1.3rem); }
  .eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.25rem; color: var(--teal); font-size: .84rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
  .eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
  .hero-points { display: flex; flex-wrap: wrap; gap: .65rem 1.1rem; margin-top: 1.65rem; color: #d5dcef; font-size: .9rem; }
  .hero-points span { display: inline-flex; align-items: center; gap: .42rem; }
  .hero-points span::before { content: "✓"; color: var(--teal); font-weight: 800; }

  .app-window {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    color: #182238;
    background: #f4f6fa;
    box-shadow: var(--shadow-lg);
    transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
  }
  .window-bar { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid #dce3ec; background: #fff; }
  .window-title { display: flex; align-items: center; gap: 8px; color: #172039; font-size: .72rem; font-weight: 650; }
  .window-title img { width: 19px; height: 19px; border-radius: 4px; }
  .window-controls { display: flex; gap: 14px; color: #566178; font-size: .8rem; }
  .window-body { display: grid; grid-template-columns: 132px 1fr; min-height: 490px; }
  .window-sidebar { padding: 18px 10px; border-right: 1px solid #dce3ec; background: #eef2f7; }
  .window-nav { display: grid; gap: 7px; }
  .window-nav span { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 7px; color: #5a667a; font-size: .67rem; }
  .window-nav .active { color: #172039; background: #fff; box-shadow: 0 4px 10px rgba(11,21,56,.06); }
  .window-main { padding: 22px; background: linear-gradient(#fff, #f7f9fc); }
  .window-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .window-heading h3 { color: #15203a; font-size: 1.25rem; letter-spacing: -.02em; }
  .window-heading p { color: #667186; font-size: .62rem; }
  .status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; color: #fff; background: #0d8a6b; font-size: .58rem; font-weight: 650; white-space: nowrap; }
  .status-pill::before { content: "●"; color: #8ff5db; }
  .account-card, .folder-card { margin-top: 14px; padding: 13px; border: 1px solid #e0e6ee; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(11,21,56,.04); }
  .account-card { display: grid; grid-template-columns: 92px 1fr; gap: 5px 10px; color: #263249; font-size: .58rem; }
  .account-card span:nth-child(odd) { color: #6a7487; }
  .impact-title { margin-top: 16px; color: #172039; font-size: .72rem; font-weight: 750; }
  .impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 7px; }
  .metric { padding: 10px; border: 1px solid #e0e6ee; border-radius: 9px; background: #fff; }
  .metric small { display: block; color: #6b7588; font-size: .48rem; }
  .metric strong { display: block; margin-top: 3px; color: #15203a; font-size: .95rem; }
  .folder-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .folder-title { display: flex; align-items: center; gap: 7px; color: #172039; font-size: .7rem; font-weight: 750; }
  .folder-icon { width: 22px; height: 18px; border-radius: 3px; background: var(--teal); position: relative; }
  .folder-icon::before { content: ""; position: absolute; left: 2px; top: -4px; width: 9px; height: 5px; border-radius: 3px 3px 0 0; background: var(--teal); }
  .folder-meta { margin-top: 8px; display: grid; grid-template-columns: 82px 1fr; gap: 3px 8px; color: #637087; font-size: .52rem; }
  .folder-meta strong { color: #28354c; font-weight: 600; }
  .folder-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
  .folder-tags span { padding: 3px 6px; border: 1px solid #dbe3ec; border-radius: 999px; color: #526078; font-size: .46rem; background: #f8fafc; }
  .floating-note { position: absolute; right: -22px; bottom: -30px; z-index: 3; width: 210px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(11,21,56,.94); box-shadow: var(--shadow-lg); }
  .floating-note strong { display: block; color: #fff; font-size: .86rem; }
  .floating-note span { display: block; margin-top: 3px; color: #aebbd5; font-size: .7rem; }

  .promise-bar { position: relative; z-index: 3; margin-top: -2.2rem; }
  .promise-shell { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
  .promise-item { padding: 1.1rem 1.2rem; border-right: 1px solid var(--line); }
  .promise-item:last-child { border-right: 0; }
  .promise-item small { display: block; color: var(--teal-dark); font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
  .promise-item strong { font-size: .95rem; }

  .section-heading { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.6rem); }
  .section-heading p { margin-top: 1rem; font-size: 1.08rem; }
  .section-heading.center { margin-inline: auto; text-align: center; }

  .process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
  .process-card { position: relative; min-height: 270px; padding: 1.5rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
  .process-card::before { counter-increment: step; content: "0" counter(step); display: block; color: var(--teal-dark); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
  .process-card h3 { margin-top: 2.8rem; }
  .process-card p { margin-top: .75rem; }
  .process-card .line { position: absolute; left: 1.5rem; right: 1.5rem; top: 58px; height: 2px; background: var(--surface-soft); }
  .process-card .line::before { content: ""; display: block; width: 36%; height: 100%; background: var(--teal); }

  .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .feature-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .feature-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 1.2rem; border-radius: 12px; color: var(--navy); background: var(--teal); font-size: 1.18rem; font-weight: 800; }
  .feature-card p { margin-top: .65rem; }
  .feature-card .tag { display: inline-block; margin-top: 1rem; color: var(--teal-dark); font-size: .78rem; font-weight: 750; }

  .split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); }
  .boundary-list { display: grid; gap: .9rem; margin-top: 1.5rem; list-style: none; }
  .boundary-list li { position: relative; padding-left: 1.75rem; color: var(--muted); }
  .boundary-list li::before { content: "—"; position: absolute; left: 0; color: var(--teal-dark); font-weight: 900; }
  .principle-panel { position: relative; padding: clamp(1.6rem, 5vw, 3rem); overflow: hidden; border-radius: var(--radius-lg); color: #fff; background: var(--navy); box-shadow: var(--shadow-lg); }
  .principle-panel::after { content: ""; position: absolute; width: 15rem; height: 15rem; right: -5rem; bottom: -8rem; border-radius: 3rem; background: rgba(124,58,237,.55); transform: rotate(32deg); }
  .principle-panel p { position: relative; z-index: 1; color: #c6d0e6; }
  .principle-quote { position: relative; z-index: 1; margin-bottom: 1.5rem; color: #fff; font-size: clamp(1.55rem, 3vw, 2.65rem); font-weight: 750; line-height: 1.2; letter-spacing: -.03em; }

  .gallery-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: auto auto; gap: 1rem; }
  .gallery-card { position: relative; overflow: hidden; min-height: 260px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: #0f1c43; cursor: zoom-in; }
  .gallery-card:first-child { grid-row: span 2; }
  .gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
  .gallery-card:hover img { transform: scale(1.025); }
  .gallery-card figcaption { position: absolute; inset: auto 0 0; padding: 2.4rem 1.25rem 1.15rem; color: #fff; background: linear-gradient(transparent, rgba(4,10,28,.92)); }
  .gallery-card figcaption span { display: block; color: var(--teal); font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
  .gallery-card figcaption strong { font-size: 1.05rem; }

  .lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 2rem; background: rgba(3,8,24,.92); }
  .lightbox[aria-hidden="false"] { display: grid; }
  .lightbox img { max-width: min(96vw, 1500px); max-height: 86vh; border-radius: 14px; box-shadow: 0 30px 100px #000; }
  .lightbox button { position: absolute; right: 1.5rem; top: 1.5rem; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; font-size: 1.4rem; }

  .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
  .compare-table { width: 100%; min-width: 740px; border-collapse: collapse; }
  .compare-table th, .compare-table td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
  .compare-table th { color: var(--ink); background: var(--surface-soft); }
  .compare-table tr:last-child td { border-bottom: 0; }
  .check { color: var(--success); font-weight: 800; }
  .always-note { margin-top: 1rem; padding: 1rem 1.15rem; border-left: 4px solid var(--teal); border-radius: 0 10px 10px 0; color: var(--muted); background: color-mix(in srgb, var(--teal) 9%, var(--surface)); }

  .faq-list { max-width: 880px; margin-inline: auto; display: grid; gap: .8rem; }
  .faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
  .faq-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.2rem; border: 0; color: var(--ink); background: transparent; text-align: left; font-weight: 720; cursor: pointer; }
  .faq-button span:last-child { color: var(--teal-dark); font-size: 1.4rem; transition: transform .2s ease; }
  .faq-button[aria-expanded="true"] span:last-child { transform: rotate(45deg); }
  .faq-panel { display: none; padding: 0 1.2rem 1.1rem; }
  .faq-panel[data-open="true"] { display: block; }

  .cta-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-lg); color: #fff; background: linear-gradient(125deg, var(--navy), #192b66 64%, #34227b); box-shadow: var(--shadow-lg); }
  .cta-panel h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); }
  .cta-panel p { max-width: 680px; margin-top: .8rem; color: #c4cee4; }
  .cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

  .site-footer { padding: 3.5rem 0 2rem; color: #b8c3db; background: #07102a; }
  .footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 3rem; }
  .footer-brand { display: flex; align-items: center; gap: .75rem; color: #fff; font-weight: 750; }
  .footer-brand img { width: 42px; height: 42px; border-radius: 10px; }
  .footer-copy { max-width: 520px; margin-top: 1rem; color: #9faecb; font-size: .9rem; }
  .footer-column strong { color: #fff; }
  .footer-column ul { margin-top: .8rem; display: grid; gap: .45rem; list-style: none; }
  .footer-column a { color: #aebbd2; text-decoration: none; }
  .footer-column a:hover { color: var(--teal); }
  .footer-bottom { margin-top: 2.5rem; padding-top: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.11); color: #8493b1; font-size: .78rem; }

  .page-hero { padding: clamp(4rem, 8vw, 7rem) 0; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(124,58,237,.36), transparent 22rem), var(--navy); }
  .page-hero h1 { max-width: 900px; color: #fff; font-size: clamp(2.6rem, 6vw, 5rem); }
  .page-hero p { max-width: 730px; margin-top: 1.2rem; color: #c2cce1; font-size: 1.15rem; }
  .breadcrumbs { display: flex; gap: .55rem; margin-bottom: 1.2rem; color: #9cabc7; font-size: .85rem; }
  .breadcrumbs a { color: var(--teal); text-decoration: none; }

  .content-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 4rem; align-items: start; }
  .toc { position: sticky; top: 98px; padding: 1.1rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
  .toc strong { display: block; margin-bottom: .65rem; }
  .toc ul { display: grid; gap: .35rem; list-style: none; }
  .toc a { display: block; padding: .38rem .5rem; border-radius: 7px; color: var(--muted); font-size: .9rem; text-decoration: none; }
  .toc a:hover { color: var(--ink); background: var(--surface-soft); }
  .prose { min-width: 0; }
  .prose section { scroll-margin-top: 100px; margin-bottom: 3.5rem; }
  .prose h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
  .prose h3 { margin-top: 1.5rem; font-size: 1.25rem; }
  .prose p, .prose ul, .prose ol { margin-top: .9rem; }
  .prose ul, .prose ol { padding-left: 1.35rem; color: var(--muted); }
  .prose li + li { margin-top: .45rem; }
  .callout { margin-top: 1.25rem; padding: 1.1rem 1.2rem; border: 1px solid color-mix(in srgb, var(--teal) 45%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--teal) 7%, var(--surface)); }
  .callout.warning { border-color: color-mix(in srgb, #f59e0b 55%, var(--line)); background: color-mix(in srgb, #f59e0b 8%, var(--surface)); }
  .callout strong { display: block; }
  .steps-list { display: grid; gap: 1rem; margin-top: 1.5rem; list-style: none !important; padding: 0 !important; counter-reset: guide; }
  .steps-list li { position: relative; padding: 1.2rem 1.2rem 1.2rem 4.3rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
  .steps-list li::before { counter-increment: guide; content: counter(guide); position: absolute; left: 1.15rem; top: 1.05rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 10px; color: var(--navy); background: var(--teal); font-weight: 800; }
  .status-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 1.3rem; }
  .status-item { padding: 1rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
  .status-item strong { display: block; }
  .status-item span { color: var(--muted); font-size: .92rem; }

  .legal-banner { padding: .85rem 1rem; border-bottom: 1px solid #f2c46d; color: #6d4300; background: #fff4d6; text-align: center; font-size: .88rem; font-weight: 650; }
  [data-theme="dark"] .legal-banner { color: #ffdc91; background: #3b2d0b; border-color: #6a5014; }

  .preview-page { min-height: 100vh; display: grid; place-items: center; padding: 42px; background: radial-gradient(circle at 80% 10%, #6d42d1 0, transparent 24%), #0b1538; }
  .preview-frame { width: min(1220px, 100%); }

  .noscript { padding: .75rem 1rem; color: #fff; background: var(--danger); text-align: center; }
}

@layer utilities {
  .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
  .mt-1 { margin-top: 1rem; }
  .mt-2 { margin-top: 2rem; }
  .text-teal { color: var(--teal-dark); }
  .no-wrap { white-space: nowrap; }
}

@media (max-width: 1040px) {
  .nav-links { display: none; position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); padding: .75rem; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); }
  .nav-links[data-open="true"] { display: flex; }
  .menu-toggle { display: inline-grid; }
  .nav-actions .button { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-top: 4.5rem; }
  .hero-visual { max-width: 760px; margin-inline: auto; width: 100%; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; gap: 2rem; }
  .toc { position: static; }
  .toc ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand span { font-size: .96rem; }
  .hero-grid { padding-bottom: 5rem; }
  .hero-actions .button { width: 100%; }
  .app-window { transform: none; }
  .window-body { grid-template-columns: 88px 1fr; min-height: 410px; }
  .window-sidebar { padding-inline: 6px; }
  .window-nav span { padding: 7px 5px; font-size: .52rem; }
  .window-main { padding: 13px; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .account-card { grid-template-columns: 72px 1fr; }
  .floating-note { display: none; }
  .promise-shell { grid-template-columns: repeat(2, 1fr); }
  .promise-item:nth-child(2) { border-right: 0; }
  .promise-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process-grid, .feature-grid, .split, .gallery-grid, .cta-panel, .footer-grid { grid-template-columns: 1fr; }
  .process-card { min-height: 220px; }
  .gallery-card:first-child { grid-row: auto; }
  .gallery-card { min-height: 230px; }
  .cta-actions .button { width: 100%; }
  .footer-grid { gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .toc ul { grid-template-columns: 1fr; }
  .status-list { grid-template-columns: 1fr; }
}

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

@media print {
  .site-header, .site-footer, .toc, .hero-actions, .nav-actions, .legal-banner { display: none !important; }
  body { background: #fff; }
  .page-hero { padding: 2rem 0; color: #000; background: #fff; }
  .page-hero h1, .page-hero p { color: #000; }
  .section { padding: 2rem 0; }
  .content-layout { display: block; }
}
