
:root {
  --ink: #102c39;
  --ink-soft: #385866;
  --deep: #082b3a;
  --teal: #087e9e;
  --teal-bright: #26a7c9;
  --sky: #eaf6f9;
  --cloud: #f5f8fa;
  --line: #c9dce3;
  --white: #ffffff;
  --sand: #fff6e7;
  --amber: #d88b23;
  --shadow: 0 24px 70px rgba(16, 44, 57, 0.13);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--cloud); color: var(--ink); line-height: 1.6; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: 1rem; transform: translateY(-180%); background: var(--white); color: var(--deep); padding: .7rem 1rem; border-radius: .6rem; box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #f2aa3b; outline-offset: 3px; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid rgba(16,44,57,.08); background: rgba(245,248,250,.96); }
.site-header-inner, .section-shell, .site-footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.brand { display: inline-flex; width: max-content; align-items: center; gap: .72rem; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--teal); color: white; font-size: .76rem; letter-spacing: -.02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.primary-nav { display: flex; min-width: 0; align-items: center; gap: 1.7rem; color: var(--ink-soft); font-size: .92rem; font-weight: 650; }
.primary-nav a { padding: .4rem .1rem; text-decoration: none; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }
.site-header-inner > .button { justify-self: end; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: .78rem 1.25rem; border: 1px solid transparent; border-radius: 999px; background: var(--teal); color: white; font-size: .94rem; font-weight: 760; line-height: 1; text-decoration: none; box-shadow: 0 10px 24px rgba(8,126,158,.2); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); background: #066e8b; box-shadow: 0 14px 30px rgba(8,126,158,.25); }
.button-small { min-height: 40px; padding: .65rem 1rem; font-size: .86rem; }
.button-secondary { background: transparent; border-color: var(--line); color: var(--ink); box-shadow: none; }
.button-secondary:hover { background: white; box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.hero { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; min-height: 660px; padding-block: 5.2rem 5.8rem; }
.hero-copy, .studio-card { min-width: 0; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 7% 44% 10% -20vw; border-radius: 0 999px 999px 0; background: radial-gradient(circle at 70% 35%, rgba(38,167,201,.18), transparent 50%), linear-gradient(135deg,#eef9fb,#f7f9fa); }
.eyebrow { margin: 0 0 1rem; color: var(--teal); font-size: .78rem; font-weight: 820; letter-spacing: .16em; line-height: 1.3; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: .55rem; border-radius: 50%; background: #21a673; box-shadow: 0 0 0 5px rgba(33,166,115,.12); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.hero h1 { max-width: 680px; margin-bottom: 1.35rem; font-size: clamp(3.2rem, 6vw, 6.2rem); }
.hero-lede { max-width: 620px; margin-bottom: 2rem; color: var(--ink-soft); font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.65; }
.trust-list { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.7rem 0 0; padding: 0; color: var(--ink-soft); font-size: .84rem; list-style: none; }
.trust-list li::before { content: "✓"; margin-right: .45rem; color: var(--teal); font-weight: 800; }

.studio-card { overflow: hidden; border: 1px solid rgba(8,126,158,.2); border-radius: 24px; background: white; box-shadow: var(--shadow); transform: rotate(.6deg); }
.studio-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 54px; padding: 0 1rem; border-bottom: 1px solid #dbe7eb; background: #fbfcfd; font-size: .7rem; }
.window-dots { display: flex; gap: 5px; }
.window-dots span { width: 8px; height: 8px; border-radius: 50%; background: #c7d4da; }
.window-dots span:first-child { background: #f19b78; }
.window-dots span:nth-child(2) { background: #f0ca69; }
.window-dots span:last-child { background: #69c69d; }
.toolbar-title { color: var(--ink-soft); font-weight: 760; }
.save-state { justify-self: end; color: #21805d; font-weight: 760; }
.studio-body { display: grid; grid-template-columns: 52px 150px 1fr; min-height: 370px; }
.studio-rail { display: flex; flex-direction: column; align-items: center; gap: .65rem; padding-top: 1rem; border-right: 1px solid #dbe7eb; background: #f3f7f9; }
.rail-item { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: #708994; font-size: .66rem; font-weight: 800; }
.rail-item.active { background: var(--teal); color: white; }
.studio-fields { display: flex; flex-direction: column; gap: .65rem; padding: 1rem .8rem; border-right: 1px solid #dbe7eb; background: #f8fafb; }
.field-label { margin-bottom: .15rem; font-size: .72rem; font-weight: 800; }
.field { display: block; padding: .55rem .6rem; border: 1px solid #ccdde3; border-radius: 8px; background: white; font-size: .64rem; font-weight: 650; line-height: 1.3; }
.field small { display: block; margin-bottom: .16rem; color: #78909a; font-size: .48rem; font-weight: 500; }
.field-short { margin-top: .25rem; }
.mail-preview { padding: 1.15rem; background: linear-gradient(145deg,#f4f9fa,#eef4f7); }
.mail-meta { display: grid; gap: .5rem; color: #8da0a8; font-size: .55rem; }
.mail-meta span { padding-bottom: .38rem; border-bottom: 1px solid #dbe5e9; }
.mail-greeting { margin: 1.7rem 0 1rem; color: #58717d; font-size: .62rem; }
.signature-sample { display: grid; grid-template-columns: 42px 1fr; gap: .75rem; align-items: center; padding: 1rem; border-radius: 10px; background: white; box-shadow: 0 8px 20px rgba(16,44,57,.07); }
.sample-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--deep); color: white; font-weight: 850; }
.sample-logo span { color: #f3b54b; font-size: .65rem; }
.signature-sample strong, .signature-sample span, .signature-sample small { display: block; }
.signature-sample strong { font-size: .78rem; }
.signature-sample span { margin-top: .14rem; color: #526c78; font-size: .55rem; }
.signature-sample i { display: block; width: 100%; height: 1px; margin: .6rem 0; background: var(--teal-bright); }
.signature-sample small { color: var(--teal); font-size: .47rem; }

.proof-strip { display: grid; grid-template-columns: repeat(4,1fr); width: min(1180px, calc(100% - 40px)); margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 12px 40px rgba(16,44,57,.06); }
.proof-strip div { display: flex; flex-direction: column; gap: .1rem; padding: 1.4rem 1.6rem; border-right: 1px solid var(--line); }
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong { color: var(--teal); font-size: 1.35rem; letter-spacing: -.04em; }
.proof-strip span { color: var(--ink-soft); font-size: .75rem; }

.content-section { padding-block: 7rem; }
.section-heading { max-width: 720px; margin-bottom: 3rem; }
.section-heading h2, .contrast-section h2, .closing-section h2, .evidence-note h2 { margin-bottom: 1rem; font-size: clamp(2.25rem, 4vw, 4.2rem); }
.section-heading > p:last-child { color: var(--ink-soft); font-size: 1.08rem; }
.compact-heading { max-width: 820px; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.step-card { min-height: 245px; padding: 2rem; border: 1px solid var(--line); border-radius: 18px; background: white; }
.step-card > span { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 2.8rem; border-radius: 50%; background: var(--sky); color: var(--teal); font-size: .72rem; font-weight: 820; }
.step-card h2, .step-card h3 { margin-bottom: .8rem; font-size: 1.35rem; }
.step-card p { margin-bottom: 0; color: var(--ink-soft); }

.contrast-section { padding-block: 7rem; background: var(--deep); color: white; }
.contrast-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 7rem; }
.eyebrow-light { color: #6ed1e7; }
.principle-list { display: grid; gap: .4rem; }
.principle-list article { display: grid; grid-template-columns: 42px 1fr; gap: 1.2rem; padding: 1.35rem 0; border-top: 1px solid rgba(255,255,255,.16); }
.principle-list article:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.principle-list article > span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #6ed1e7; font-weight: 800; }
.principle-list h3 { margin: .15rem 0 .35rem; font-size: 1.2rem; }
.principle-list p { margin: 0; color: #b9cbd2; }

.boundary-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 18px 54px rgba(16,44,57,.08); }
.boundary-card > div { padding: clamp(1.6rem,4vw,3rem); }
.boundary-card h3 { font-size: 1.45rem; }
.boundary-card ul { display: grid; gap: .7rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.boundary-card li::before { margin-right: .7rem; color: var(--teal); font-weight: 850; }
.boundary-yes li::before { content: "✓"; }
.boundary-later { background: #eef4f6; }
.boundary-later li::before { content: "–"; color: #78909a; }
.boundary-note { margin: 1.2rem 0 0; color: var(--ink-soft); font-size: .9rem; }
.boundary-note a, .document-copy a, .text-link { color: var(--teal); font-weight: 750; }

.closing-section { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 7rem; padding: clamp(2rem,5vw,4rem); border-radius: 24px; background: linear-gradient(135deg,#dff3f7,#edf8f9 60%,#fff5e5); }
.closing-section h2 { max-width: 760px; margin-bottom: 0; }
.closing-section .button { flex: 0 0 auto; }

.document-hero { max-width: 1180px; padding-block: 6rem 4rem; border-bottom: 1px solid var(--line); }
.document-hero h1 { max-width: 900px; margin-bottom: 1.3rem; font-size: clamp(3rem,6vw,5.8rem); }
.document-hero > p:last-child { max-width: 760px; color: var(--ink-soft); font-size: 1.15rem; }
.document-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(3rem,8vw,8rem); padding-block: 4rem 7rem; }
.document-layout aside { display: flex; position: sticky; top: 2rem; flex-direction: column; align-self: start; gap: .65rem; padding: 1.2rem; border-left: 2px solid var(--line); font-size: .86rem; }
.document-layout aside strong { margin-bottom: .3rem; }
.document-layout aside a { color: var(--ink-soft); text-decoration: none; }
.document-layout aside a:hover { color: var(--teal); }
.document-layout aside, .document-copy { min-width: 0; }
.document-copy { max-width: 760px; }
.document-copy section { padding: 0 0 2.8rem; scroll-margin-top: 2rem; }
.document-copy h2 { margin-bottom: 1rem; font-size: clamp(1.8rem,3vw,2.6rem); }
.document-copy p { color: var(--ink-soft); font-size: 1.03rem; }
.document-copy code { overflow-wrap: anywhere; padding: .12rem .35rem; border-radius: 5px; background: #e4eff3; color: var(--deep); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.document-copy pre { overflow-x: auto; margin: 1.4rem 0; padding: 1.2rem 1.4rem; border-radius: 14px; background: var(--deep); color: #eaf6f9; line-height: 1.7; }
.document-copy pre code { overflow-wrap: normal; padding: 0; background: transparent; color: inherit; font-size: .87rem; }
.detail-list { display: grid; gap: .75rem; padding-left: 1.35rem; color: var(--ink-soft); }
.detail-list li { padding-left: .25rem; }
.question-list { margin: 0; }
.question-list dt { margin-top: 1.25rem; color: var(--ink); font-weight: 800; }
.question-list dt:first-child { margin-top: 0; }
.question-list dd { margin: .25rem 0 0; color: var(--ink-soft); }
.callout { margin-top: 1.5rem; padding: 1.35rem 1.5rem; border: 1px solid #edcf9c; border-radius: 14px; background: var(--sand); }
.callout strong { color: #7a4d0e; }
.callout p { margin: .35rem 0 0; color: #6f5838; }

.compatibility-grid, .source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.scope-card { padding: clamp(2rem,4vw,3rem); border: 1px solid var(--line); border-radius: 20px; background: white; }
.scope-card.scope-primary { background: var(--deep); color: white; }
.scope-label { display: inline-block; margin-bottom: 3rem; padding: .35rem .65rem; border: 1px solid currentColor; border-radius: 999px; color: var(--teal); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.scope-primary .scope-label { color: #6ed1e7; }
.scope-card h2 { font-size: clamp(2rem,3vw,3rem); }
.scope-card p, .scope-card li { color: var(--ink-soft); }
.scope-primary p, .scope-primary li { color: #c3d3d9; }
.scope-card ul { display: grid; gap: .6rem; padding-left: 1.2rem; }
.support-matrix-section { padding-block: 1rem 7rem; }
.section-intro { max-width: 760px; margin-bottom: 2rem; }
.section-intro h2 { margin-bottom: .9rem; font-size: clamp(2rem,3vw,3rem); }
.section-intro > p:last-child { color: var(--ink-soft); font-size: 1.03rem; }
.support-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: white; }
.support-matrix { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.support-matrix caption { padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .86rem; font-weight: 700; text-align: left; }
.support-matrix th, .support-matrix td { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.support-matrix thead th { background: #eef6f8; color: var(--deep); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.support-matrix tbody th { width: 22%; color: var(--ink); }
.support-matrix td { color: var(--ink-soft); }
.support-matrix tbody tr:last-child th, .support-matrix tbody tr:last-child td { border-bottom: 0; }
.evidence-note { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: end; margin-bottom: 7rem; padding: clamp(2rem,4vw,3rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.evidence-note h2 { margin-bottom: 0; }
.evidence-note > p { margin-bottom: 0; color: var(--ink-soft); }
.compatibility-notes { max-width: 1180px; margin-bottom: 7rem; padding: clamp(2rem,4vw,3rem); border: 1px solid var(--line); border-radius: 20px; background: white; }
.runtime-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; margin: 1.4rem 0 1.5rem; }
.runtime-grid article { display: flex; min-width: 0; flex-direction: column; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.runtime-grid a, .runtime-grid span { overflow-wrap: anywhere; color: var(--teal); }
.help-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.help-callout { margin-bottom: 7rem; }
.text-link { display: inline-flex; gap: .5rem; margin-top: .8rem; text-decoration: none; }
.not-found { min-height: 64vh; padding-block: 8rem; }
.not-found h1 { max-width: 800px; font-size: clamp(3rem,7vw,6.5rem); }
.not-found > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.1rem; }

.site-footer { padding-block: 3.5rem 2rem; border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.footer-main p { max-width: 430px; margin: 1rem 0 0; color: var(--ink-soft); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem 1.5rem; font-size: .88rem; font-weight: 650; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: #6b858f; font-size: .74rem; }

@media (max-width: 940px) {
  .site-header-inner { grid-template-columns: 1fr auto; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; padding: 0 0 .8rem; }
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero::before { inset: 0 -20px 42% -20px; border-radius: 0; }
  .hero-copy { max-width: 760px; }
  .studio-card { transform: none; }
  .contrast-grid { grid-template-columns: 1fr; gap: 3rem; }
  .document-layout { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .document-layout aside { position: static; flex-flow: row wrap; border-left: 0; border-bottom: 1px solid var(--line); }
  .document-layout aside strong { width: 100%; }
}

@media (max-width: 720px) {
  .site-header-inner, .section-shell, .site-footer, .proof-strip { width: min(100% - 28px, 1180px); }
  .site-header-inner { gap: .8rem; }
  .site-header-inner > .button { padding-inline: .8rem; }
  .primary-nav { justify-content: flex-start; gap: 1.2rem; overflow-x: auto; }
  .hero { min-height: auto; padding-block: 3.4rem 4rem; }
  .hero h1 { font-size: clamp(3rem,15vw,4.7rem); }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps-grid, .help-grid, .compatibility-grid, .source-grid { grid-template-columns: 1fr; }
  .content-section, .contrast-section { padding-block: 5rem; }
  .boundary-card { grid-template-columns: 1fr; }
  .closing-section { align-items: flex-start; flex-direction: column; margin-bottom: 5rem; }
  .document-hero { padding-block: 4rem 3rem; }
  .document-layout { padding-block: 3rem 5rem; }
  .evidence-note { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 5rem; }
  .runtime-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header-inner { grid-template-columns: 1fr; }
  .brand > span:last-child { font-size: .93rem; }
  .site-header-inner > .button { display: none; }
  .studio-body { grid-template-columns: 42px 1fr; }
  .studio-fields { display: none; }
  .mail-preview { padding: .8rem; }
  .proof-strip div { padding: 1.1rem; }
  .button-row .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
