:root {
  color-scheme: dark light;
  --bg: #0b0c0c;
  --surface: #111212;
  --text: #f4f2ed;
  --muted: #9d9a91;
  --line: #292824;
  --amber: #d2a057;
  --amber-strong: #e0b36f;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.landing-shell {
  width: min(960px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 92px) 0 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.landing-logo {
  width: clamp(170px, 22vw, 238px);
  height: auto;
  margin: 0 0 clamp(38px, 7vh, 72px);
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 690;
  letter-spacing: -.055em;
  line-height: .99;
}

h1 span { color: #77756f; }

.lede {
  max-width: 620px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.primary-link {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #b9863e;
  border-radius: 999px;
  background: var(--amber);
  color: #17130d;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.primary-link > span {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-shadow: .4px 0 currentColor, -.4px 0 currentColor;
  transform: scaleX(1.18);
  transform-origin: center;
}

.primary-link:hover { background: var(--amber-strong); border-color: var(--amber-strong); transform: translateY(-1px); }
.primary-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--amber) 48%, transparent); outline-offset: 4px; }

.primary-link--disabled {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  cursor: default;
}

.primary-link--disabled:hover { border-color: var(--line); background: transparent; transform: none; }

.trust-row {
  width: 100%;
  margin-top: clamp(54px, 10vh, 96px);
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  border-top: 1px solid var(--line);
}

.trust-row p { margin: 0; display: grid; gap: 7px; }
.trust-row strong { font-size: 13px; }
.trust-row span { color: var(--muted); font-size: 13px; line-height: 1.5; }

.legal-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: var(--muted); font-size: 12px; }
.legal-links a, .policy-shell a { color: var(--amber); }
.policy-shell { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 96px; line-height: 1.65; }
.policy-shell h1 { margin: 34px 0 12px; font-size: clamp(38px, 7vw, 64px); }
.policy-shell h2 { margin: 36px 0 8px; font-size: 19px; }
.policy-shell h3 { margin: 22px 0 6px; color: var(--text); font-size: 15px; }
.policy-shell p { color: var(--muted); }
.policy-shell code { color: var(--text); }
.policy-notice { border: 1px solid rgba(214, 171, 88, 0.48); border-radius: 10px; background: rgba(214, 171, 88, 0.08); padding: 0.85rem 1rem; }

@media (max-width: 700px) {
  .landing-shell { width: min(100% - 28px, 560px); justify-content: flex-start; }
  .landing-logo { margin-bottom: 42px; }
  .trust-row { grid-template-columns: 1fr; gap: 22px; }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f4ef;
    --surface: #fffef9;
    --text: #171815;
    --muted: #615e57;
    --line: #d9d5cb;
    --amber: #76500f;
    --amber-strong: #654207;
  }
  h1 span { color: #6e6a61; }
  .primary-link { background: #c68d3c; border-color: #a46b1c; color: #17130d; }
  .primary-link:hover { background: #b97c27; border-color: #925c13; }
  .landing-logo {
    /* Preserve the amber mark while turning the original white details dark. */
    filter: invert(1) hue-rotate(180deg) saturate(1.12) brightness(1.14)
      drop-shadow(0 7px 18px rgba(62, 48, 28, .08));
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-link { transition: none; }
  .secure-node-face { transition: none; }
  .secure-pulse { opacity: 0 !important; animation: none !important; }
}

/* Welcome page: scoped separately from the shared policy-page styles. */
.welcome-page { --welcome-panel: #121414; --welcome-soft: #171a19; --welcome-gold: #e1b66e; }
.welcome-container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.welcome-page a:focus-visible { outline: 3px solid var(--amber); outline-offset: 5px; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px 20px; background: var(--text); color: var(--bg); z-index: 5; }
.skip-link:focus { top: 12px; }
.welcome-header { min-height: 88px; padding-block: 16px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.welcome-brand { display: block; flex-shrink: 0; }
.welcome-brand img { display: block; width: 112px; height: auto; }
.welcome-nav { display: flex; flex: 1; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 16px 32px; }
.welcome-nav .primary-link { margin-left: 0; }
.welcome-nav > a:not(.primary-link) { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.welcome-nav > a:hover { color: var(--text); }
.welcome-theme-switcher { display: inline-flex; align-items: center; flex-shrink: 0; margin-left: auto; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.welcome-theme-option { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.welcome-theme-option svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.welcome-theme-option:hover { color: var(--text); }
.welcome-theme-option[aria-pressed="true"] { background: var(--welcome-soft); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 72%, transparent), 0 2px 8px #00000012; }
.welcome-theme-option:focus-visible { outline: 3px solid color-mix(in srgb, var(--amber) 48%, transparent); outline-offset: 2px; }
.welcome-page .primary-link { border-radius: 8px; white-space: nowrap; min-height: 48px; }
.welcome-page .primary-link:hover { color: #17130d; }
.welcome-page .primary-link--disabled:hover { color: var(--muted); }
.welcome-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 52px; padding: 48px 0 90px; }
.hero-copy > .welcome-brand { width: fit-content; margin-bottom: 24px; }
.welcome-page .eyebrow { font-size: 12px; line-height: 1.6; letter-spacing: .12em; color: var(--welcome-gold); }
.welcome-page h1 { font-size: clamp(44px, 4.6vw, 66px); line-height: 1.06; letter-spacing: -.055em; font-weight: 650; }
.welcome-page h1 span { color: var(--welcome-gold); }
.hero-description { max-width: 510px; font-size: 18px; line-height: 1.75; color: var(--muted); margin: 26px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 650; line-height: 1.6; }
.text-link:hover { color: var(--welcome-gold); text-decoration: underline; text-underline-offset: 5px; }
.beta-note { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.case-preview { margin: 0; min-width: 0; border: 1px solid #383a33; border-radius: 16px; background: var(--welcome-panel); box-shadow: 0 25px 75px #0003; overflow: hidden; transform: rotate(-1deg); }
.case-preview-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 22px 10px; }
.case-kicker { color: var(--muted); font-size: 12px; letter-spacing: .12em; font-weight: 650; }
.example-tag { font-size: 12px; color: var(--welcome-gold); padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; }
.case-graph { width: 100%; height: auto; display: block; }
.grid-dot { fill: var(--line); }
.graph-lines { fill: none; stroke: var(--amber); stroke-width: 1.5; opacity: .65; }
.graph-labels { fill: var(--muted); font-size: 12px; text-anchor: middle; }
.graph-node rect { fill: var(--welcome-soft); stroke: #46483e; }
.graph-node circle { fill: var(--welcome-gold); }
.graph-node-focus rect { fill: #292319; stroke: var(--amber); }
.graph-node .node-type { fill: var(--muted); font-size: 11px; letter-spacing: 1px; }
.graph-node .node-name { fill: var(--text); font-size: 16px; font-weight: 550; }
.graph-node .node-symbol { fill: none; stroke: var(--welcome-gold); stroke-width: 1.5; }
.case-preview figcaption { border-top: 1px solid var(--line); display: flex; gap: 13px; padding: 19px 22px; font-size: 14px; line-height: 1.5; }
.caption-mark { color: var(--welcome-gold); font-size: 24px; }
.case-preview small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.welcome-section { border-top: 1px solid var(--line); padding: 76px 0; scroll-margin-top: 24px; }
.section-heading { max-width: 590px; }
.welcome-page h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.15; font-weight: 600; letter-spacing: -.04em; margin: 0; }
.section-heading > p:not(.eyebrow) { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 20px 0 0; }
.purpose-heading { max-width: 820px; }
.purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.purpose-grid p { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.purpose-number,
.step-number { display: block; color: var(--welcome-gold); font-size: 14px; font-weight: 600; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.welcome-page h3 { font-size: 19px; font-weight: 600; margin: 21px 0 10px; letter-spacing: -.02em; }
.workflow-grid p { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0; }
.data-section { display: grid; grid-template-columns: .85fr 1.4fr; gap: 70px; }
.data-section .text-link { margin-top: 26px; }
.secure-flow-preview { min-width: 0; margin: 0; overflow: hidden; background: var(--welcome-panel); border: 1px solid #383a33; border-radius: 16px; box-shadow: 0 25px 75px #0003; }
.secure-privacy-notes { padding: 0 20px 20px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.secure-privacy-notes p { margin: 0; }
.secure-privacy-notes p + p { margin-top: 14px; }
.secure-privacy-notes strong { color: var(--text); }
.secure-flow-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 20px 8px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .12em; }
.secure-flow-network { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
.secure-flow-map { display: block; width: 100%; height: auto; }
.secure-flow-map marker path { fill: context-stroke; stroke: context-stroke; }
.secure-flow-edges { fill: none; stroke: #777d78; stroke-width: 2; }
.secure-flow-edges path { transition: stroke 120ms ease, stroke-width 120ms ease; }
.secure-flow-edges .secure-path-account { stroke: color-mix(in srgb, var(--welcome-gold) 72%, #777d78); stroke-width: 2.5; }
.secure-flow-edges :is(.secure-path-share, .secure-path-file) { stroke-dasharray: 6 7; }
.secure-flow-pulses { fill: none; stroke: var(--welcome-gold); stroke-width: 4; stroke-linecap: round; pointer-events: none; }
.secure-pulse { opacity: 0; stroke-dasharray: .1 .9; }
.secure-edge-account { opacity: .72; animation: secure-flow-pulse 1.7s linear infinite; }
.secure-flow-labels text { fill: var(--text); font-family: monospace; font-size: 12px; text-anchor: middle; paint-order: stroke; stroke: var(--welcome-panel); stroke-width: 7px; stroke-linejoin: round; }
.secure-flow-labels .is-vertical { writing-mode: vertical-rl; }
.secure-node { position: absolute; width: 68px; height: 68px; transform: translate(-50%, -50%); cursor: pointer; --secure-node-color: var(--welcome-gold); }
.secure-node-browser { left: 50%; top: 50%; --secure-node-color: #ff5a5f; }
.secure-node-account { left: 50%; top: 17%; --secure-node-color: #ff7a00; }
.secure-node-recovery { left: 19.4%; top: 76.6%; --secure-node-color: #00b7ff; }
.secure-node-secret { left: 50%; top: 80.8%; --secure-node-color: #d2a057; }
.secure-node-member { left: 83.9%; top: 50%; --secure-node-color: #00e5ff; }
.secure-node-file { left: 16.1%; top: 21.3%; --secure-node-color: #8aa4ff; }
.secure-node input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.secure-node-face { display: grid; place-items: center; width: 100%; height: 100%; color: var(--text); background: #111713; border: 1px solid var(--secure-node-color); border-radius: 50%; transition: border-width 120ms ease, background-color 120ms ease; }
.secure-node-face svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.secure-node-name { position: absolute; top: calc(100% + 9px); left: 50%; display: block; width: clamp(72px, 20vw, 120px); padding: 1px 4px; transform: translateX(-50%); color: var(--text); background: var(--welcome-panel); font-size: 13px; font-weight: 650; line-height: 1.25; text-align: center; white-space: normal; }
.secure-node-name small { display: block; margin-top: 3px; color: var(--welcome-gold); font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.secure-node:hover .secure-node-face,
.secure-node input:checked + .secure-node-face { border-width: 3px; background: color-mix(in srgb, var(--secure-node-color) 9%, #111713); }
.secure-node input:focus-visible + .secure-node-face { outline: 3px solid var(--text); outline-offset: 6px; }
.secure-flow-inspector { min-height: 180px; margin: 0 20px 20px; padding: 20px; background: var(--welcome-soft); border: 1px solid var(--line); border-radius: 8px; }
.secure-flow-details { display: none; }
.secure-flow-details:first-child { display: block; }
.secure-flow-preview:has(input:checked) .secure-flow-details:first-child { display: none; }
.secure-flow-preview:has(input[value="browser"]:checked) #secure-details-browser,
.secure-flow-preview:has(input[value="account"]:checked) #secure-details-account,
.secure-flow-preview:has(input[value="recovery"]:checked) #secure-details-recovery,
.secure-flow-preview:has(input[value="secret"]:checked) #secure-details-secret,
.secure-flow-preview:has(input[value="member"]:checked) #secure-details-member,
.secure-flow-preview:has(input[value="file"]:checked) #secure-details-file { display: block; }
.secure-detail-type { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0; color: var(--welcome-gold); font-size: 12px; }
.secure-detail-type span { color: var(--muted); }
.welcome-page .secure-flow-details h3 { margin: 10px 0 10px; font-size: 18px; }
.secure-flow-details > p:last-child { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.secure-flow-preview figcaption { display: flex; gap: 13px; padding: 18px 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.secure-flow-preview small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }

@keyframes secure-flow-pulse { to { stroke-dashoffset: -1; } }

.secure-flow-preview:has(.secure-node-browser:is(:hover, :focus-within)) :is(.secure-path-account, .secure-path-recovery, .secure-path-file),
.secure-flow-preview:has(.secure-node-browser input:checked) :is(.secure-path-account, .secure-path-recovery, .secure-path-file),
.secure-flow-preview:has(.secure-node-account:is(:hover, :focus-within)) :is(.secure-path-account, .secure-path-member),
.secure-flow-preview:has(.secure-node-account input:checked) :is(.secure-path-account, .secure-path-member),
.secure-flow-preview:has(.secure-node-recovery:is(:hover, :focus-within)) .secure-path-recovery,
.secure-flow-preview:has(.secure-node-recovery input:checked) .secure-path-recovery,
.secure-flow-preview:has(.secure-node-secret:is(:hover, :focus-within)) :is(.secure-path-secret, .secure-path-share),
.secure-flow-preview:has(.secure-node-secret input:checked) :is(.secure-path-secret, .secure-path-share),
.secure-flow-preview:has(.secure-node-member:is(:hover, :focus-within)) :is(.secure-path-member, .secure-path-share),
.secure-flow-preview:has(.secure-node-member input:checked) :is(.secure-path-member, .secure-path-share),
.secure-flow-preview:has(.secure-node-file:is(:hover, :focus-within)) .secure-path-file,
.secure-flow-preview:has(.secure-node-file input:checked) .secure-path-file { stroke: var(--welcome-gold); stroke-width: 3; }
.welcome-footer { border-top: 1px solid var(--line); padding-block: 28px 34px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.welcome-footer > p { margin: 0; font-size: 14px; letter-spacing: .1em; font-weight: 650; }
.welcome-footer > p span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.welcome-footer .legal-links { margin: 0; justify-content: flex-end; max-width: 640px; line-height: 1.7; }
.welcome-footer .legal-links > span { flex-basis: 100%; text-align: right; overflow-wrap: anywhere; }
@media (prefers-color-scheme: light) {
  .welcome-page { --welcome-panel: #fffef9; --welcome-soft: #eeece5; --welcome-gold: #76500f; }
  .welcome-brand img { filter: invert(1) hue-rotate(180deg) saturate(1.12) brightness(1.14); }
  .case-preview { border-color: var(--line); box-shadow: 0 20px 60px #3e302812; }
  .secure-flow-preview { border-color: var(--line); box-shadow: 0 20px 60px #3e302812; }
  .secure-node-face { color: #111713; background: #fffef9; }
  .secure-node:hover .secure-node-face,
  .secure-node input:checked + .secure-node-face { background: color-mix(in srgb, var(--secure-node-color) 12%, #fffef9); }
  .graph-node rect { stroke: #b8b4a8; }
  .graph-node-focus rect { fill: #f3e5ce; stroke: var(--amber); }
}

/* Explicit choices override the system preference while retaining it as the default. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c0c;
  --surface: #111212;
  --text: #f4f2ed;
  --muted: #9d9a91;
  --line: #292824;
  --amber: #d2a057;
  --amber-strong: #e0b36f;
}
:root[data-theme="dark"] h1 span { color: #77756f; }
:root[data-theme="dark"] .welcome-page { --welcome-panel: #121414; --welcome-soft: #171a19; --welcome-gold: #e1b66e; }
:root[data-theme="dark"] .welcome-brand img { filter: none; }
:root[data-theme="dark"] .primary-link { background: var(--amber); border-color: #b9863e; color: #17130d; }
:root[data-theme="dark"] .primary-link:hover { background: var(--amber-strong); border-color: var(--amber-strong); }
:root[data-theme="dark"] .case-preview,
:root[data-theme="dark"] .secure-flow-preview { border-color: #383a33; box-shadow: 0 25px 75px #0003; }
:root[data-theme="dark"] .secure-node-face { color: var(--text); background: #111713; }
:root[data-theme="dark"] .secure-node:hover .secure-node-face,
:root[data-theme="dark"] .secure-node input:checked + .secure-node-face { background: color-mix(in srgb, var(--secure-node-color) 9%, #111713); }
:root[data-theme="dark"] .graph-node rect { stroke: #46483e; }
:root[data-theme="dark"] .graph-node-focus rect { fill: #292319; stroke: var(--amber); }

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #fffef9;
  --text: #171815;
  --muted: #615e57;
  --line: #d9d5cb;
  --amber: #76500f;
  --amber-strong: #654207;
}
:root[data-theme="light"] h1 span { color: #6e6a61; }
:root[data-theme="light"] .welcome-page { --welcome-panel: #fffef9; --welcome-soft: #eeece5; --welcome-gold: #76500f; }
:root[data-theme="light"] .welcome-brand img { filter: invert(1) hue-rotate(180deg) saturate(1.12) brightness(1.14) drop-shadow(0 7px 18px rgba(62, 48, 28, .08)); }
:root[data-theme="light"] .primary-link { background: #c68d3c; border-color: #a46b1c; color: #17130d; }
:root[data-theme="light"] .primary-link:hover { background: #b97c27; border-color: #925c13; }
:root[data-theme="light"] .case-preview,
:root[data-theme="light"] .secure-flow-preview { border-color: var(--line); box-shadow: 0 20px 60px #3e302812; }
:root[data-theme="light"] .secure-node-face { color: #111713; background: #fffef9; }
:root[data-theme="light"] .secure-node:hover .secure-node-face,
:root[data-theme="light"] .secure-node input:checked + .secure-node-face { background: color-mix(in srgb, var(--secure-node-color) 12%, #fffef9); }
:root[data-theme="light"] .graph-node rect { stroke: #b8b4a8; }
:root[data-theme="light"] .graph-node-focus rect { fill: #f3e5ce; stroke: var(--amber); }
@media (max-width: 1000px) {
  .welcome-container { width: calc(100% - 48px); }
  .welcome-hero { gap: 28px; }
  .data-section { gap: 40px; grid-template-columns: 1fr; }
  .data-section .section-heading { max-width: 660px; }
  .welcome-header { gap: 32px; }
  .welcome-nav { gap: 22px; }
}

@media (min-width: 1001px) {
  .workflow-heading { max-width: none; }
  .workflow-heading h2,
  .workflow-heading > p:not(.eyebrow) { white-space: nowrap; }
}
@media (max-width: 760px) {
  .welcome-header { min-height: 76px; }
  .welcome-nav { gap: 12px 18px; }
  .welcome-theme-switcher { margin-left: 0; }
  .welcome-nav .primary-link { font-size: 13px; padding-inline: 14px; min-height: 42px; }
  .welcome-hero { grid-template-columns: 1fr; padding: 32px 0 56px; gap: 36px; }
  .welcome-page h1 { max-width: 580px; font-size: clamp(42px, 8vw, 60px); }
  .hero-description { max-width: 600px; }
  .case-preview { transform: none; max-width: 600px; width: 100%; }
  .welcome-section { padding: 48px 0; }
  .purpose-grid,
  .workflow-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 32px; }
  .data-section { grid-template-columns: 1fr; }
  .welcome-footer { flex-direction: column; }
  .welcome-footer .legal-links { justify-content: flex-start; }
  .welcome-footer .legal-links > span { text-align: left; }
}
@media (max-width: 520px) {
  .welcome-header { padding-block: 16px; }
  .welcome-nav { width: 100%; justify-content: flex-start; gap: 12px 16px; }
  .welcome-nav .primary-link { margin-right: auto; }
}
@media (max-width: 440px) {
  .welcome-container { width: calc(100% - 32px); }
  .welcome-header { padding-block: 16px; }
  .welcome-nav { gap: 12px; }
  .welcome-nav > a:not(.primary-link) { font-size: 13px; }
  .case-preview-heading { padding-inline: 14px; }
  .case-preview figcaption { padding: 16px 14px; }
  .secure-flow-heading { padding-inline: 14px; }
  .secure-flow-inspector { margin-inline: 12px; padding: 16px; }
  .secure-flow-preview figcaption { padding: 16px 14px; }
  .secure-node { width: 50px; height: 50px; }
  .secure-node-face svg { width: 24px; height: 24px; }
  .secure-node-name { top: calc(100% + 6px); max-width: 118px; font-size: 12px; white-space: normal; }
  .secure-flow-labels { display: none; }
  .secure-flow-map { height: 420px; }
  .secure-flow-network { margin-bottom: 28px; }
}
/* Frame only the emblem and wordmark on the welcome page. */
.welcome-brand-mark { display: block; width: 200px; max-width: 100%; aspect-ratio: 1092 / 790; overflow: hidden; }
.welcome-brand-mark img { width: 100%; height: auto; }
@media (max-width: 760px) { .welcome-brand-mark { width: 160px; } }

/* Match the product canvas: circular entity icons, external labels, directed edges. */
.welcome-page .case-preview { transform: none; }
.case-edge { fill: none; stroke: #777d78; stroke-width: 2; }
.case-edge-active { stroke: #d2a057; stroke-width: 3; }
.case-edge-label rect { fill: var(--welcome-panel); }
.case-edge-label text { fill: var(--text); font-family: monospace; font-size: 12px; text-anchor: middle; }
.case-entity circle { fill: #111713; stroke-width: 1.2; }
.case-person circle { stroke: #ff5a5f; }
.case-organization circle { stroke: #ff7a00; }
.case-domain circle { stroke: #00e5ff; }
.case-entity text { fill: var(--text); font-size: 14px; font-weight: 650; text-anchor: middle; paint-order: stroke; stroke: var(--welcome-panel); stroke-width: 5px; stroke-linejoin: round; }
.case-evidence-panel rect { fill: var(--welcome-soft); stroke: var(--line); }
.case-evidence-panel path { stroke: var(--line); fill: none; }
.case-evidence-panel .case-evidence-icon { stroke: var(--welcome-gold); stroke-width: 1.5; }
.case-evidence-heading { fill: var(--welcome-gold); font-size: 12px; letter-spacing: .7px; font-weight: 600; }
.case-evidence-context { fill: var(--muted); font-size: 12px; }
.case-evidence-title { fill: var(--text); font-size: 14px; font-weight: 600; }

/* Native radio controls keep this small example keyboard-accessible and script-free. */
.demo-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.demo-network { position: relative; border: 0; padding: 0; margin: 0; min-width: 0; }
.demo-edges { fill: none; stroke: #777d78; stroke-width: 2; }
.demo-node { position: absolute; width: 72px; height: 72px; transform: translate(-50%, -50%); cursor: pointer; }
.demo-node-alex { left: 20%; top: 24%; --node-color: #ff5a5f; }
.demo-node-studio { left: 75%; top: 24%; --node-color: #ff7a00; }
.demo-node-email { left: 20%; top: 72%; --node-color: #00b7ff; }
.demo-node-domain { left: 75%; top: 72%; --node-color: #00e5ff; }
.demo-node input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.demo-node-face { display: grid; place-items: center; width: 100%; height: 100%; background: #111713; border: 1px solid var(--node-color); border-radius: 50%; }
.demo-node-name { display: block; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); color: var(--text); font-size: 14px; font-weight: 650; white-space: nowrap; background: var(--welcome-panel); }
.demo-node input:checked + .demo-node-face { border-width: 3px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--node-color) 20%, transparent); }
.demo-node:hover .demo-node-face { border-width: 3px; }
.demo-node input:focus-visible + .demo-node-face { outline: 3px solid var(--text); outline-offset: 7px; }
@media (prefers-color-scheme: light) {
  .demo-node-face { background: #fffef9; }
  .demo-node-face img { filter: invert(1); }
  .demo-node input:checked + .demo-node-face { background: color-mix(in srgb, var(--node-color) 7%, #fffef9); }
}
:root[data-theme="light"] .demo-node-face { background: #fffef9; }
:root[data-theme="light"] .demo-node-face img { filter: invert(1); }
:root[data-theme="light"] .demo-node input:checked + .demo-node-face { background: color-mix(in srgb, var(--node-color) 7%, #fffef9); }
:root[data-theme="dark"] .demo-node-face { background: #111713; }
:root[data-theme="dark"] .demo-node-face img { filter: none; }
:root[data-theme="dark"] .demo-node input:checked + .demo-node-face { background: #111713; }
.demo-inspector { margin: 0 20px 20px; padding: 20px; background: var(--welcome-soft); border: 1px solid var(--line); border-radius: 8px; }
.demo-details { display: none; }
.case-preview:has(input[value="alex"]:checked) #demo-details-alex,
.case-preview:has(input[value="studio"]:checked) #demo-details-studio,
.case-preview:has(input[value="email"]:checked) #demo-details-email,
.case-preview:has(input[value="domain"]:checked) #demo-details-domain { display: block; }
.demo-detail-type { margin: 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--welcome-gold); }
.demo-detail-type span { color: var(--muted); }
.welcome-page .demo-details h3 { margin: 10px 0 16px; font-size: 18px; overflow-wrap: anywhere; }
.demo-details dl { display: grid; gap: 10px; margin: 0; font-size: 14px; line-height: 1.5; }
.demo-details dl > div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.demo-details dt { color: var(--muted); }
.demo-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 1000px) and (min-width: 761px), (max-width: 440px) {
 .demo-node { width: 48px; height: 48px; }
 .demo-node-face img { width: 23px; height: 23px; }
 .demo-node-name { font-size: 12px; }
 .demo-inspector { margin-inline: 12px; padding: 16px; }
 .demo-details dl > div { grid-template-columns: 75px 1fr; gap: 8px; }
}
