/* SafeSquid website.
   Built on brand-kit tokens.css (colours, fonts, spacing). Plain CSS, no build step.
   Layout: one 1200px reading column; sections alternate between --surface and --surface-raised bands. */

/* ---- Site-only roles (status chips, review placeholders), light + dark ---- */
:root {
  --now-bg: #006699;  --now-fg: #FFFFFF;
  --soon-bg: #FFF0E5; --soon-fg: #B64205; --soon-line: #FFB291;
  --addon-fg: #52525B; --addon-line: #71717A;
  --todo-bg: #FEF7C3; --todo-fg: #713B12; --todo-line: #CA8504;
  --hero-ground: linear-gradient(180deg, #EFF8FF 0%, #FFFFFF 100%);
  --shadow: 0 1px 2px rgba(9, 9, 11, .06), 0 4px 16px rgba(9, 9, 11, .05);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --now-bg: #2C7BAD; --now-fg: #FFFFFF;
  --soon-bg: #371F17; --soon-fg: #FF8A59; --soon-line: #8D350C;
  --addon-fg: #A1A1AA; --addon-line: #71717A;
  --todo-bg: #3B2A07; --todo-fg: #FDE272; --todo-line: #CA8504;
  --hero-ground: linear-gradient(180deg, #00294A 0%, #09090B 100%);
  --shadow: none;
} }
:root[data-theme="dark"] {
  --now-bg: #2C7BAD; --now-fg: #FFFFFF;
  --soon-bg: #371F17; --soon-fg: #FF8A59; --soon-line: #8D350C;
  --addon-fg: #A1A1AA; --addon-line: #71717A;
  --todo-bg: #3B2A07; --todo-fg: #FDE272; --todo-line: #CA8504;
  --hero-ground: linear-gradient(180deg, #00294A 0%, #09090B 100%);
  --shadow: none;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 2px; }
code, .mono { font-family: var(--font-mono); font-size: .86em; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; }
.muted { color: var(--ink-muted); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }

/* ---- Review banner + placeholders ---- */
.review-banner { background: var(--todo-bg); color: var(--todo-fg); border-bottom: 1px dashed var(--todo-line); font-size: 14px; line-height: 1.45; }
.review-banner .wrap { padding-block: 8px; }
.review-banner b { font-weight: 700; }
.todo {
  display: inline; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; font-weight: 400; letter-spacing: 0;
  color: var(--todo-fg); background: var(--todo-bg); border: 1px dashed var(--todo-line); border-radius: 4px; padding: 1px 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; text-transform: none;
}
.todo-block {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
  color: var(--todo-fg); background: var(--todo-bg); border: 1.5px dashed var(--todo-line); border-radius: var(--radius-lg); font-size: 15px;
}
.todo-block .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 12px; }
.brand { display: block; line-height: 0; }
.brand img { height: 38px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding-block: 6px; }
.site-nav a:hover { color: var(--action); }
.site-nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }
.site-nav .ext::after { content: " ↗"; font-size: 12px; color: var(--ink-muted); }
@media (max-width: 719px) {
  .brand img { height: 32px; }
  .site-nav { width: 100%; gap: 4px 16px; }
  .site-nav .btn { margin-left: auto; }
}

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--radius-md); font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--font-sans); }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); color: var(--on-action); }
.btn-primary:active { background: var(--action-active); }
.btn-ghost { border-color: var(--line-control); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: var(--on-action); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---- Sections ---- */
.section { padding-block: 72px; }
.section-alt { background: var(--surface-raised); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 46em; margin-bottom: 36px; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.03; letter-spacing: -.02em; }
.h2 { font-size: clamp(30px, 3.4vw, 42px); }
.h3 { font-size: 20px; font-weight: 600; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-muted); max-width: 40em; }
@media (max-width: 719px) { .section { padding-block: 52px; } .section-head { margin-bottom: 28px; } }

/* ---- Grids ---- */
.grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.split { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; } }

/* ---- Cards ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.section-alt .card { background: var(--surface); }
.card-brand { border: 1.5px solid var(--brand); box-shadow: var(--shadow); }
.card p { color: var(--ink-muted); }
.card .h3 + p { margin-top: 2px; }
.label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.ruled > div { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ruled p { color: var(--ink-muted); font-size: 16px; }
.source { font-size: 13px; color: var(--ink-muted); }

/* ---- Hero ---- */
.hero { background: var(--hero-ground); padding-block: 72px 64px; }
.hero .wrap { display: flex; flex-direction: column; gap: 48px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 920px; }
@media (max-width: 719px) { .hero { padding-block: 48px 44px; } }

/* ---- Deployment diagram with tabs ---- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-sunken); border-radius: var(--radius-lg); align-self: flex-start; }
.tab { min-height: 42px; padding: 0 18px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-muted); font: 600 15px var(--font-sans); cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(9, 9, 11, .14); }
.diagram { display: flex; flex-direction: column; gap: 12px; }
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow); }
.flow .node { flex: 1 1 170px; min-width: 0; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; background: var(--surface-raised); }
.flow .node b { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.2; }
.flow .node span { font-size: 14px; color: var(--ink-muted); line-height: 1.45; }
.flow .node-ss { background: var(--now-bg); border-color: var(--now-bg); flex-grow: 1.6; }
.flow .node-ss b, .flow .node-ss span { color: #FFFFFF; }
.flow .stack-nodes { flex: 1 1 170px; display: flex; flex-direction: column; gap: 10px; }
.flow .arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 22px; color: var(--ink-muted); flex: 0 0 auto; line-height: 1.1; }
.flow .arrow small { font-family: var(--font-mono); font-size: 11px; }
.diagram-note { font-size: 15px; color: var(--ink-muted); max-width: 62em; }
@media (max-width: 899px) { .flow .arrow { flex-basis: 100%; flex-direction: row; gap: 8px; } .flow .arrow::before { content: "↓"; } .flow .arrow .r { display: none; } }

/* ---- Stat box ---- */
.stat { border: 1.5px solid var(--brand); border-radius: var(--radius-xl); padding: 24px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.stat-n { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; color: var(--brand); }
.stat-n.small { font-size: 40px; margin-top: 10px; }

/* ---- Chips (integrations) ---- */
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-full); padding: 8px 14px; font-size: 15px; }

/* ---- Availability status ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; border-radius: var(--radius-full); padding: 3px 10px; white-space: nowrap; line-height: 1.5; }
.chip-now { background: var(--now-bg); color: var(--now-fg); }
.chip-soon { background: var(--soon-bg); color: var(--soon-fg); border: 1px solid var(--soon-line); }
.chip-addon { background: transparent; color: var(--addon-fg); border: 1px dashed var(--addon-line); }
.seg-now { background: var(--now-bg); }
.seg-soon { background: repeating-linear-gradient(135deg, var(--accent) 0 6px, #FFB291 6px 12px); }
.seg-addon { background: repeating-linear-gradient(90deg, #71717A 0 3px, #D4D4D8 3px 6px); }
.bar { display: flex; height: 24px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-sunken); }
.bar > div { height: 100%; }
.bar-s { height: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.legend > div { display: flex; align-items: center; gap: 10px; }
.sw { width: 22px; height: 14px; border-radius: 3px; display: inline-block; flex: none; }
.count-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 24px; display: flex; flex-direction: column; gap: 14px; }

/* ---- Threat cards and area cards ---- */
.threat .meta { display: flex; align-items: center; gap: 10px; }
.threat .meta code { color: var(--ink-muted); font-size: 12px; }
.threat p { font-size: 15.5px; }
.threat p b { color: var(--ink); font-weight: 600; }
.area .h3 { font-size: 23px; font-weight: 700; }
.area .add { color: var(--ink); font-size: 16px; }
.mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mini li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.mini .chip { font-size: 10.5px; padding: 1px 8px; }
.mini code { font-size: 11.5px; color: var(--ink-muted); }
.area-link { justify-content: center; background: var(--surface-raised); }

/* ---- Steps ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--brand); padding-top: 16px; }
.steps li::before { content: "0" counter(step); font-family: var(--font-mono); font-size: 13px; color: var(--brand); }
.steps p { color: var(--ink-muted); font-size: 16px; }
.steps ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-muted); font-size: 15px; }

/* ---- Comparison table ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-sunken); font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }
td.ss { background: color-mix(in srgb, var(--brand) 7%, transparent); }

/* ---- Roadmap ---- */
.road .h3 { font-size: 22px; font-weight: 700; }

/* ---- CTA band ---- */
.cta { background: var(--surface-brand); color: #FFFFFF; padding-block: 72px; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta p { color: #C3DBEE; max-width: 38em; }
.cta .btn-primary { background: #FFFFFF; color: #00294A; }
.cta .btn-primary:hover { background: #E2EDF5; color: #00294A; }
.cta .btn-ghost { border-color: #9BC3E1; color: #FFFFFF; }
.cta .btn-ghost:hover { border-color: #FFFFFF; }
.cta .todo { color: #FDE272; background: #3B2A07; }

/* ---- Forms ---- */
.form { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field label small { font-weight: 400; color: var(--ink-muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-control); border-radius: var(--radius-md); padding: 10px 12px; min-height: 46px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.form-status { font-size: 15px; }

/* ---- Footer ---- */
.site-footer { background: #0B1620; color: #C3DBEE; padding-block: 56px 40px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 36px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); } }
.foot-grid > div { display: flex; flex-direction: column; gap: 8px; }
.foot-grid b { color: #FFFFFF; font-weight: 600; }
.site-footer a { color: #C3DBEE; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.foot-brand img { height: 55px; width: auto; }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-brand { grid-column: auto; } }
.site-footer .small { font-size: 13.5px; color: #9BC3E1; }
.site-footer .todo { color: #FDE272; background: #3B2A07; }
