/* tigerpassword.com — one stylesheet for every page (docs/WEBSITE.md §2).
   Tokens first; light is the default, dark overrides by system preference
   or by the toggle's data-theme. No hex outside :root blocks. */
:root {
  --bg: #FAF9FC;
  --surface: #FFFFFF;
  --surface-2: #F1EEF8;
  --text: #1A1526;
  --muted: #5A5470;
  --violet: #6D28D9;
  --violet-ink: #4C1D95;
  --pink: #DB2777;
  --blue: #2563EB;
  --ring: #6D28D9;
  --line: #E4DFF0;
  --ok: #15803D;
  --warn-bg: #FFF4E5;
  --warn-ink: #7C3F00;
  --warn-line: #F5C48A;
  --code-bg: #F3F0FA;
  --shadow: 0 1px 2px rgb(26 21 38 / 6%), 0 12px 32px -12px rgb(109 40 217 / 18%);
  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --measure: 68ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0B14;
    --surface: #171226;
    --surface-2: #1F1833;
    --text: #F2EFFA;
    --muted: #A79FC2;
    --violet: #A78BFA;
    --violet-ink: #C4B5FD;
    --pink: #F472B6;
    --blue: #60A5FA;
    --ring: #C4B5FD;
    --line: #2B2342;
    --ok: #4ADE80;
    --warn-bg: #2A1E0C;
    --warn-ink: #FCD9A8;
    --warn-line: #7A5420;
    --code-bg: #1B1530;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 40px -16px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0B14;
  --surface: #171226;
  --surface-2: #1F1833;
  --text: #F2EFFA;
  --muted: #A79FC2;
  --violet: #A78BFA;
  --violet-ink: #C4B5FD;
  --pink: #F472B6;
  --blue: #60A5FA;
  --ring: #C4B5FD;
  --line: #2B2342;
  --ok: #4ADE80;
  --warn-bg: #2A1E0C;
  --warn-ink: #FCD9A8;
  --warn-line: #7A5420;
  --code-bg: #1B1530;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 40px -16px rgb(0 0 0 / 60%);
  color-scheme: dark;
}

/* ---------- reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--violet-ink); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1em; }
code, pre, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 6px; }
pre { background: var(--code-bg); padding: 1rem 1.1rem; border-radius: var(--radius-sm); overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.5rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .92rem; }
.table-wrap { overflow-x: auto; }
.muted { color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose li + li { margin-top: .35em; }
.prose img, .prose picture img { border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--text); padding: .8rem 1rem; z-index: 100; border-radius: 0 0 var(--radius-sm) 0; }
.skip:focus { left: 0; }
main:focus { outline: none; }
.grad { background: linear-gradient(100deg, var(--violet), var(--pink) 55%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.logo-mark { flex: none; border-radius: 7px; }
.site-nav { margin-left: auto; }
.site-nav ul, .menu ul, .foot-grid ul, .crumbs ol { list-style: none; margin: 0; padding: 0; }
.site-nav ul { display: flex; gap: .2rem; }
.site-nav a, .menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .menu a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--violet); }
.bar-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.menu { position: relative; display: none; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; content: ""; position: relative; }
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }
.menu[open] summary { background: var(--surface-2); }
.menu nav { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; }
.menu nav a { display: flex; }
@media (max-width: 880px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .bar-actions .btn { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .6rem 1.35rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2; transition: transform .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-ink); color: #fff; }
:root[data-theme="dark"] .btn-primary, :root:not([data-theme="light"]) .btn-primary { color: #0D0B14; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn-primary { color: #fff; } }
:root[data-theme="light"] .btn-primary { color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { min-height: 40px; padding: .4rem 1rem; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: .8rem 1.8rem; font-size: 1.1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 6vw, 6rem) 0 2rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: .6em; }
.hero .lede { font-size: clamp(1.15rem, 1rem + .6vw, 1.35rem); color: var(--muted); max-width: 34em; }
.tagline { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--violet); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--pink)); }
.proof { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.5rem; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.proof li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* ---------- device frames ---------- */
.frame { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.frame img { display: block; width: 100%; height: auto; }
.frame-desktop::before { content: ""; display: block; height: 30px; background: var(--surface-2); border-bottom: 1px solid var(--line); background-image: radial-gradient(circle, var(--line) 4px, transparent 4.5px); background-size: 16px 16px; background-repeat: repeat-x; background-position: 10px center; }
.frame-phone { border-radius: 36px; border-width: 6px; max-width: 320px; margin-inline: auto; }
.shots { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .shots { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.shots figcaption, figcaption { color: var(--muted); font-size: .95rem; margin-top: .6rem; }
figure { margin: 0 0 1.5rem; }
.hero-art { position: relative; }
.hero-art .frame-phone { position: absolute; right: -4%; bottom: -8%; width: 32%; min-width: 130px; max-width: 200px; display: none; }
@media (min-width: 720px) { .hero-art .frame-phone { display: block; } }

/* ---------- sections + cards ---------- */
.section { padding: clamp(2.5rem, 5vw, 5rem) 0; }
.section-tint { background: var(--surface-2); }
.section-head { max-width: 46em; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-top: .2rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--violet); margin-bottom: .9rem; }
.card .icon svg { width: 24px; height: 24px; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; font-weight: 700; }
.note, .warn { border-radius: var(--radius-sm); padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--surface); margin: 1.5rem 0; }
.note p:last-child, .warn p:last-child { margin-bottom: 0; }
.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.warn-title, .card-title { font-size: 1.25rem; font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
.warn a { color: inherit; }
.warn strong { color: inherit; }
.split { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.kpis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 2rem 0; }
.kpi { padding: 1.2rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.kpi strong { display: block; font-size: 1.8rem; letter-spacing: -0.02em; }
.kpi span { color: var(--muted); font-size: .95rem; }

/* ---------- pricing ---------- */
.price-card { text-align: center; padding: 2.5rem 2rem; border-width: 2px; border-color: var(--violet); }
.price { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; display: grid; gap: .5rem; }
.price-card li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.tiers th:first-child { width: 34%; }

/* ---------- forms ---------- */
form.stack { display: grid; gap: 1.1rem; max-width: 40rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; }
.hint { color: var(--muted); font-size: .95rem; margin: .25rem 0 0; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem; min-height: 48px; }
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ring); outline-offset: 1px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: .8rem 0 0; font-weight: 500; }
.form-status.sent { color: var(--ok); }
.form-status.error { color: var(--pink); }
.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 34rem; }
.inline-form input { flex: 1 1 14rem; }

/* ---------- breadcrumbs, article, footer ---------- */
.crumbs { padding: .9rem 0 0; font-size: .95rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }
.article-head { padding: 2.5rem 0 1rem; }
.byline { color: var(--muted); font-size: .95rem; }
.toc { border-left: 3px solid var(--line); padding-left: 1rem; margin: 1.5rem 0 2rem; font-size: .95rem; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.post-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.post-list li { padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.post-list .card-title { margin: 0 0 .3rem; }
.post-list p { margin: 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 3rem 0 2rem; background: var(--surface-2); font-size: .95rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.foot-brand { grid-column: 1 / -1; max-width: 34em; }
@media (min-width: 1000px) { .foot-brand { grid-column: span 2; } }
.site-footer h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .6rem; }
.site-footer li { margin: .3rem 0; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer p a { color: var(--violet); text-decoration: underline; }
.site-footer nav a:hover { color: var(--violet); text-decoration: underline; }
.copyright { margin-top: 2.5rem; color: var(--muted); }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--surface-2); color: var(--violet); }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 1.6rem; position: relative; margin: .45rem 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.x-list li::before { content: "–"; color: var(--muted); }
.two-col { columns: 2; column-gap: 2.5rem; }
@media (max-width: 720px) { .two-col { columns: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}
@media print {
  .site-header, .site-footer, .skip, theme-toggle, .menu { display: none; }
  body { font-size: 12pt; }
}

/* Utilities (no inline style attributes anywhere: the CSP forbids them). */
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.h-small { font-size: 1.2rem; }
.icon-on-tint { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--violet); }
.icon-on-tint svg { width: 24px; height: 24px; }

/* Breach chart (home / security): inline SVG, tokens only. */
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem .75rem; box-shadow: var(--shadow); margin: 0; }
.bc { display: block; width: 100%; height: auto; font-family: inherit; }
.bc-grid { stroke: var(--line); stroke-width: 1; }
.bc-tick, .bc-year { fill: var(--muted); font-size: 14px; }
.bc-val { fill: var(--text); font-size: 15px; font-weight: 700; }
.bc-callout { fill: var(--pink); font-size: 16px; font-weight: 700; }
.chart-card figcaption { margin-top: .75rem; }
.chart-data { margin-top: .75rem; font-size: .95rem; }
.chart-data summary { cursor: pointer; color: var(--violet); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.chart-data table { margin-top: .5rem; }

/* Anchored sections and headings clear the sticky header. */
[id] { scroll-margin-top: 84px; }

/* Comparison matrix (/compare): the first column stays put while the rest
   scroll sideways, our column is tinted, and each cell's mark takes its
   colour from a tone class — the words in the cell carry the fact. */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin: 0 0 1.25rem; }
.matrix { margin: 0; min-width: 960px; font-size: .95rem; }
.matrix th, .matrix td { padding: .65rem .75rem; }
.matrix th[scope="row"] { position: sticky; left: 0; background: var(--surface); color: var(--text); font-weight: 600; min-width: 200px; max-width: 260px; box-shadow: 1px 0 0 var(--line); }
.matrix th[scope="row"] .hint { display: block; font-weight: 400; }
.matrix thead th { white-space: nowrap; }
.matrix .us { background: color-mix(in srgb, var(--violet) 9%, var(--surface)); }
.matrix thead .us, .cost tr.us th { color: var(--violet); }
.cost tr.us th { background: color-mix(in srgb, var(--violet) 9%, var(--surface)); }
.matrix .group th { background: var(--surface-2); color: var(--text); font-weight: 700; padding-top: .9rem; }
.matrix td .hint { display: block; }
.cost td { white-space: normal; min-width: 150px; }
.cost td strong { font-variant-numeric: tabular-nums; }
.mark { display: inline-block; width: 1.1em; font-weight: 700; }
.m-good .mark, .mark.m-good { color: var(--ok); }
.m-mixed .mark, .mark.m-mixed { color: var(--warn-ink); }
.m-bad .mark, .m-na .mark, .mark.m-bad, .mark.m-na { color: var(--muted); }
.m-bad, .m-na { color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }
@media (max-width: 600px) { .matrix th[scope="row"] { min-width: 150px; max-width: 170px; } .matrix { font-size: .9rem; } }
