/* NtfsForge · ntfsforge.bytehavenstudios.com
   One stylesheet for every page. Shell and class vocabulary cloned from driveforge-web, then re-dressed in
   NtfsForge's own look: the navy-ink ground, azure for the one primary action, teal for ready and safe,
   amber for Pro, hairline cards, Geist throughout (sentence-case labels, as the app since s104).
   Every colour below is a token from the app, never invented:
   apps/ntfsforge/app/src/main/java/.../ui/Theme.kt DarkBrand (and launchkit.yml → brand:), which is the
   studio design language (branding/design-language.md).
   No JavaScript anywhere on this host (CSP script-src 'none'); everything below is CSS-only. */

/* ---------- fonts (self-hosted, OFL, Geist from branding/.fonts-src, the family the app ships) ---------- */
@font-face { font-family: "Geist"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Geist-Regular.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Geist-Medium.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Geist-SemiBold.woff2") format("woff2"); }

/* ---------- tokens (DarkBrand) ---------- */
:root {
  --ground: #08101B;        /* ground */
  --card: #121C29;          /* card */
  --border: #22303F;        /* border */
  --hairline: #1E2A3A;      /* hairline */
  --border-strong: #2A3A4E; /* borderStrong */
  --heading: #FCFCFC;       /* heading */
  --text: #EAEFF5;          /* text */
  --body: #C9D3DF;          /* body */
  --muted: #9CA9BA;         /* muted */
  --subtle: #6F7E91;        /* subtle, decoration only (fails AA as text) */
  --primary: #4AB3FF;       /* primary, the one action */
  --on-primary: #08101B;
  --teal: #24DEC8;          /* ready and safe */
  --amber: #F9B227;         /* Pro */
  --red: #F87171;           /* erase only */
  --red-text: #FCA5A5;
  --mark-fill: #0F2A44;     /* markFill, the tinted container behind the drive glyph */
  --mark-border: #1D4A72;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --w: 68rem;               /* page column */
  --w-text: 46rem;          /* long-form column (policy, support) */
  color-scheme: dark;       /* the app's default canvas and store art are dark: dark in both schemes, on purpose */
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ground); }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--body);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { color: var(--heading); line-height: 1.12; text-wrap: balance; margin: 0 0 0.6em; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--heading); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; color: var(--text); }
code { font-family: var(--mono); font-size: 0.9em; background: rgba(74,179,255,0.10); padding: 0.1em 0.35em; border-radius: 0.25rem; }
.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--card); color: var(--text); padding: 0.6rem 1rem; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* small label, sentence case (the app's DataTag) */
.eyebrow { font-weight: 500; font-size: 0.86rem; color: var(--primary); margin: 0 0 0.7rem; }

/* ---------- header ---------- */
.site-head-wrap { background: rgba(8,16,27,0.85); border-bottom: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.site-head { max-width: var(--w); margin: 0 auto; padding: 0.8rem 1.25rem; display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.site-head .brand { display: flex; align-items: center; gap: 0.7rem; color: var(--heading); text-decoration: none; }
.site-head .brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-head .brand b { display: block; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.1; }
.site-head .brand small { display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.site-head nav { margin-left: auto; display: flex; gap: 1.3rem; flex-wrap: wrap; align-items: center; }
.site-head nav a { font-size: 0.92rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--heading); }
.site-head nav .lang-switch { border: 1px solid var(--border-strong); border-radius: 6px; padding: 0.1rem 0.5rem; }

/* ---------- hero ---------- */
.hero { max-width: var(--w); margin: 0 auto; padding: 4.5rem 1.25rem 3.5rem;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); margin-bottom: 1.1rem; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--primary); }
.hero .lede { font-size: 1.16rem; max-width: 33em; }

/* the drive card: the app's Home card, drawn in CSS (an illustration, not a screenshot) */
.drive { position: relative; justify-self: center; width: min(360px, 100%); }
.drive::before { content: ""; position: absolute; inset: -20% -25%; z-index: -1;
  background: radial-gradient(closest-side, rgba(74,179,255,0.20), rgba(36,222,200,0.05) 60%, transparent 78%); }
.drive-card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.drive-top { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 1rem; }
.drive-glyph { width: 46px; height: 46px; border-radius: 13px; flex: none; background: var(--mark-fill); border: 1px solid var(--mark-border);
  display: grid; place-items: center; }
.drive-glyph::before { content: ""; width: 20px; height: 12px; border: 2px solid var(--primary); border-radius: 3px; }
.drive-name { color: var(--heading); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.drive-meta { color: var(--muted); font-size: 0.86rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.chips li { font-size: 0.78rem; font-weight: 500; border-radius: 999px; padding: 0.15rem 0.65rem; border: 1px solid var(--border-strong); color: var(--muted); }
.chips li.ready { color: var(--teal); border-color: rgba(36,222,200,0.45); background: rgba(36,222,200,0.08); }
.drive-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.drive-actions span { font-size: 0.88rem; font-weight: 600; border-radius: 999px; padding: 0.45rem 1rem; }
.drive-actions .primary { background: var(--primary); color: var(--on-primary); }
.drive-actions .ghost { border: 1px solid var(--border-strong); color: var(--text); }

/* ---------- store badge ---------- */
.badges { display: flex; gap: 1rem; flex-wrap: wrap; padding: 0; margin: 2rem 0 0; list-style: none; }
.badges li { border: 1px solid var(--border-strong); border-radius: 12px; padding: 0.6rem 1.3rem; background: var(--card);
  display: flex; flex-direction: column; gap: 0.05rem; min-width: 11rem; }
.badges .store { font-weight: 600; color: var(--heading); font-size: 1rem; }
.badges .soon { font-size: 0.8rem; font-weight: 500; color: var(--amber); }

/* ---------- at-a-glance strip ---------- */
.strip-wrap { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: rgba(18,28,41,0.6); }
.strip { max-width: var(--w); margin: 0 auto; padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; list-style: none; }
.strip li { font-size: 0.92rem; font-weight: 500; color: var(--text); }
.strip li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 0.6rem; vertical-align: 2px; }

/* ---------- sections ---------- */
.section { max-width: var(--w); margin: 0 auto; padding: 4.5rem 1.25rem; }
.section > h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 0.45em; }
.section .sub { color: var(--muted); max-width: 42em; margin-bottom: 2.2rem; font-size: 1.06rem; }

/* ---------- the format table: which drives it reads, and what it writes ---------- */
.formats { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; font-size: 0.98rem; }
.formats th, .formats td { text-align: left; padding: 0.85rem 1.1rem; border-top: 1px solid var(--hairline); vertical-align: top; }
.formats thead th { border-top: 0; color: var(--muted); font-weight: 500; font-size: 0.86rem; }
.formats tbody th { color: var(--heading); font-weight: 600; white-space: nowrap; }
.formats td { color: var(--body); }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 600; border-radius: 999px; padding: 0.08rem 0.6rem; margin-right: 0.35rem; }
.tag.free { color: var(--teal); background: rgba(36,222,200,0.10); }
.tag.pro { color: var(--amber); background: rgba(249,178,39,0.12); }
.tag.never { color: var(--muted); background: rgba(156,169,186,0.10); }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 1.6rem 1.6rem 1.2rem; }
.card h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 0.6rem; }
.card h3 .chip { font-size: 0.78rem; font-weight: 500; border: 1px solid var(--border-strong); color: var(--muted); border-radius: 999px; padding: 0.05rem 0.6rem; }
.card > p { color: var(--muted); font-size: 0.97rem; }
.card ul { list-style: none; margin: 0; padding: 0; font-size: 0.97rem; }
.card li { padding: 0.45rem 0 0.45rem 1.5rem; position: relative; border-top: 1px solid var(--hairline); }
.card li:first-child { border-top: 0; }
.card li::before { content: ""; position: absolute; left: 0.15rem; top: 0.95rem; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.card.pro { border-color: rgba(249,178,39,0.40); background: radial-gradient(120% 90% at 100% 0%, rgba(249,178,39,0.08), transparent 60%), var(--card); }
.card.pro h3 .chip { border-color: var(--amber); color: var(--amber); }
.card.pro li::before { background: var(--amber); }

/* ---------- careful by design ---------- */
.checks { list-style: none; padding: 0; margin: 0; max-width: 50rem; }
.checks li { padding: 0.8rem 0 0.8rem 2.2rem; position: relative; border-top: 1px solid var(--hairline); }
.checks li::before { content: ""; position: absolute; left: 0.25rem; top: 1.1rem; width: 1rem; height: 0.55rem;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }

/* ---------- private + need ---------- */
.panel { border: 1px solid var(--border); border-radius: 24px; padding: 2.4rem; background: var(--card);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.panel h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.panel ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.panel li { margin: 0.35rem 0; }

.outro { text-align: center; padding: 4.5rem 1.25rem 4rem; max-width: var(--w); margin: 0 auto; }
.outro img { width: 88px; margin: 0 auto 1.4rem; border-radius: 22px; box-shadow: 0 18px 44px rgba(74,179,255,0.18); }
.outro h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.outro .badges { justify-content: center; }

/* ---------- long-form documents (privacy, support) ---------- */
.doc { max-width: var(--w-text); margin: 0 auto; padding: 3rem 1.25rem 4.5rem; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.3em; }
.doc h2 { font-size: 1.25rem; margin-top: 2.4rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.4rem 0; }
.doc .lang { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.6rem; }
.doc .lang [aria-current="page"] { color: var(--heading); }
.doc .contact { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.3rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--hairline); margin-top: 2rem; background: rgba(18,28,41,0.7); }
.site-foot .inner { max-width: var(--w); margin: 0 auto; padding: 1.6rem 1.25rem 3rem;
  display: flex; gap: 0.6rem 1.6rem; flex-wrap: wrap; align-items: center; font-size: 0.88rem; color: var(--muted); }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--heading); text-decoration: underline; }
.site-foot .studio { margin-right: auto; }
.site-foot .studio img { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 0.5rem; }

/* ---------- narrow screens ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 2.6rem; padding-top: 2.6rem; }
  .panel { grid-template-columns: 1fr; gap: 2rem; padding: 1.6rem 1.3rem; }
  .section { padding: 3.2rem 1.25rem; }
  .site-head .brand small { display: none; }
}
@media (max-width: 560px) {
  .formats thead { display: none; }
  .formats, .formats tbody, .formats tr, .formats th, .formats td { display: block; width: 100%; }
  .formats tbody th { padding-bottom: 0.2rem; }
  .formats td { border-top: 0; padding-top: 0.2rem; }
  .formats td[data-h]::before { content: attr(data-h) ": "; color: var(--muted); font-size: 0.86rem; }
}
@media (max-width: 420px) { .site-head nav { gap: 0.9rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- policy shell (privacy pages) ----------
   Same structure as driveforge-web: hero with the app's own icon, an on-this-page rail, the policy column,
   and the ByteHaven publisher card (the cove mark stays subordinate to the app's glyph). */
.policy { max-width: var(--w); margin: 0 auto; padding: 0 1.25rem 4rem; }
.policy-hero { margin: 2.4rem 0 2.6rem; padding: 2.2rem 2.2rem 1.6rem; border: 1px solid var(--border); border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(74,179,255,0.10) 0%, transparent 55%), var(--card); }
.policy-back { display: inline-flex; gap: 0.45rem; align-items: center; margin-bottom: 1.6rem; font-size: 0.9rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.policy-back:hover { color: var(--primary); }
.policy-title { display: flex; gap: 1.4rem; align-items: center; }
.policy-icon { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 0 1px var(--border); }
.policy-eyebrow { font-size: 0.86rem; font-weight: 500; color: var(--primary); margin: 0 0 0.4rem; }
.policy-hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); margin: 0 0 0.35rem; }
.policy-hero .docmeta { font-size: 0.92rem; color: var(--muted); margin: 0; }
.policy-hero .lang { font-size: 0.88rem; color: var(--muted); margin: 1.6rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--hairline); }
.policy-hero .lang a { color: var(--muted); }
.policy-hero .lang [aria-current="page"] { color: var(--primary); }
.policy-summary { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.policy-summary li { font-size: 0.82rem; font-weight: 500; color: var(--teal); background: rgba(36,222,200,0.10); border-radius: 999px; padding: 0.2rem 0.75rem; }

.policy-grid { display: grid; grid-template-columns: 14rem minmax(0, var(--w-text)); gap: 3.5rem; justify-content: center; }
.policy-toc { position: sticky; top: 5.5rem; align-self: start; font-size: 0.9rem; }
.policy-toc-h { font-size: 0.82rem; font-weight: 500; color: var(--muted); margin: 0 0 0.8rem; }
.policy-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); counter-reset: toc; }
.policy-toc li { counter-increment: toc; }
.policy-toc a { display: block; padding: 0.32rem 0 0.32rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.policy-toc a::before { content: counter(toc, decimal-leading-zero) "  "; font-family: var(--mono); font-size: 0.72rem; opacity: 0.7; }
.policy-toc a:hover { color: var(--heading); border-left-color: var(--primary); }

.policy-body.doc { max-width: none; margin: 0; padding: 0; }
.policy-body h2 { scroll-margin-top: 5.5rem; padding-top: 2.2rem; margin-top: 2.2rem; border-top: 1px solid var(--hairline); }
.policy-body h2::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--primary); margin-right: 0.7rem; vertical-align: 0.18em; }

.publisher { max-width: calc(14rem + 3.5rem + var(--w-text)); margin: 4rem auto 0; padding: 2rem 2.2rem; border: 1px solid var(--border); border-radius: 22px; background: var(--card); }
.publisher-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.publisher-head h2 { font-size: 1.35rem; margin: 0; scroll-margin-top: 5.5rem; }
.publisher-head img { width: 40px; height: 40px; flex: none; }
.publisher-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin: 1.4rem 0; }
.publisher-facts div { border-left: 2px solid var(--primary); padding-left: 0.9rem; }
.publisher-facts dt { font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.publisher-facts dd { margin: 0.2rem 0 0; }
.publisher-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin: 0; font-size: 0.92rem; }
.publisher .policy-eyebrow { color: var(--muted); }

@media (max-width: 900px) {
  .policy-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .policy-toc { position: static; margin-bottom: 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
  .policy-toc ol { columns: 2; column-gap: 1.5rem; }
  .policy-hero { padding: 1.6rem 1.3rem 1.3rem; margin-top: 1.4rem; }
  .policy-title { gap: 1rem; }
  .policy-icon { width: 56px; height: 56px; border-radius: 14px; }
  .publisher { padding: 1.5rem 1.3rem; }
  .publisher-facts { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .policy-toc ol { columns: 1; } }
