/* ==========================================================================
   TheSheetVault — shared styles
   Calm and simple: deep green-black surfaces from the logo, one emerald accent,
   large readable text, one obvious action at a time.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #07100d;
  --bg-deep: #050b09;
  --surface: #0d1915;
  --surface-2: #12211c;
  --surface-3: #182b25;

  --line: rgb(196 232 214 / 0.08);
  --line-2: rgb(196 232 214 / 0.14);
  --line-3: rgb(196 232 214 / 0.24);

  --text: #e8f0ec;
  --text-2: #b3c4bc;
  --text-3: #8a9d94;

  --accent: #3ddc84;
  --accent-hi: #6ff0a6;
  --accent-ink: #03150b;
  --accent-soft: rgb(61 220 132 / 0.12);
  --accent-line: rgb(61 220 132 / 0.38);

  --promo: #f1c36b;
  --promo-soft: rgb(241 195 107 / 0.12);
  --promo-line: rgb(241 195 107 / 0.4);

  --paper: #f5f8f4;
  --paper-2: #e9efea;
  --paper-line: #d9e2dc;
  --paper-ink: #13201a;
  --paper-ink-2: #5d6f66;
  --paper-accent: #0d8a48;
  --paper-accent-soft: #d6f2e1;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Consolas, monospace;

  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem);
  --fs-h1: clamp(2.125rem, 1.5rem + 2.6vw, 3.375rem);

  --section-y: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  --max: 1120px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --header-h: 68px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
  --shadow-2: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 10px 30px -12px rgb(0 0 0 / 0.6);
  --shadow-3: 0 30px 80px -30px rgb(0 0 0 / 0.85), 0 12px 30px -16px rgb(0 0 0 / 0.6);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-hi);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg-deep); }
body { margin: 0; min-height: 100vh; font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgb(61 220 132 / 0.3); color: #fff; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow > * { max-width: 760px; } /* readable line length, still aligned with other sections */
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Text links inside copy */
.faq a, .help-more a, .legal a, .empty a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-line); }
.faq a:hover, .help-more a:hover, .legal a:hover { text-decoration-color: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: var(--btn-h); padding: 0 1.4em;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: var(--fs-base); font-weight: 600; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease);
}
.btn:focus-visible { border-radius: var(--r-pill); }
.btn-lg { --btn-h: 56px; font-size: 1.125rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -12px rgb(61 220 132 / 0.6); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-secondary { background: transparent; border-color: var(--line-3); color: var(--text); }
.btn-secondary:hover { background: rgb(255 255 255 / 0.06); }

/* ---------- Header (no hamburger: four links always visible) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(7 16 13 / 0.92); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; flex: none; border-radius: var(--r-sm); }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; color: var(--text-2); }
.brand-name span { color: var(--text); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgb(255 255 255 / 0.05); }
.nav-links a:focus-visible { border-radius: var(--r-pill); }
@media (max-width: 459px) {
  .brand-name { display: none; }
  .nav-links a { padding: 0 9px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: var(--fs-h2); margin-bottom: 1.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4rem); text-align: center; }
.hero::before { /* faint spreadsheet grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 96px 32px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 80% at 50% 30%, #000, transparent 75%);
}
.hero-inner { display: grid; justify-items: center; gap: 1.25rem; }
.hero h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; line-height: 1.08; max-width: 20ch; }
.hero-lede { font-size: var(--fs-lg); color: var(--text-2); max-width: 40ch; }

.search { width: 100%; max-width: 560px; margin-top: 0.75rem; text-align: left; }
.search label { display: block; margin-bottom: 8px; font-weight: 600; font-size: var(--fs-sm); }
.search-box { position: relative; }
.search-box .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-box input {
  width: 100%; height: 58px; padding: 0 18px 0 52px;
  border: 1px solid var(--line-3); border-radius: var(--r-pill); background: var(--surface); color: var(--text); font-size: 1.0625rem;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(61 220 132 / 0.18); }

/* ---------- Files ---------- */
.files { border-top: 0; padding-top: 1rem; }
.sample-note { margin: -0.5rem 0 1.5rem; font-size: var(--fs-sm); color: var(--text-3); }
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }

.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
@media (hover: hover) { .card:hover { border-color: var(--line-3); transform: translateY(-2px); } }
.card:has(.card-title a:focus-visible) { box-shadow: var(--focus); }
.card-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); border-bottom: 1px solid var(--line); }
@media (max-width: 619px) { .card-media { aspect-ratio: 2 / 1; } }
.card-body { display: grid; gap: 6px; padding: 18px 20px 12px; flex: 1; align-content: start; }
.card-title { font-size: 1.1875rem; line-height: 1.3; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is the link */
.card-title a:focus-visible { box-shadow: none; }
.card-video { font-size: var(--fs-sm); color: var(--text-2); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px 18px; }
.card-cta { font-size: var(--fs-sm); font-weight: 600; color: var(--accent-hi); }
.card-cta::after { content: " →"; }

.tag { position: absolute; top: 10px; left: 10px; padding: 2px 8px; border-radius: 6px; background: rgb(7 16 13 / 0.85); border: 1px solid var(--line-3); color: var(--text-2); font-size: 12px; font-weight: 600; }

/* Price */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.6em; margin: 0; }
.price-now { font-family: var(--font-mono); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-cur { font-size: 0.65em; color: var(--text-3); font-weight: 500; }
.price-was { font-size: var(--fs-sm); color: var(--text-3); }

.empty { display: grid; justify-items: center; gap: 1rem; padding: 2.5rem 1.5rem; text-align: center; border: 1px dashed var(--line-3); border-radius: var(--r-lg); color: var(--text-2); }

/* Sample artwork palette */
.media-art { width: 100%; height: 100%; }
.media-art svg { width: 100%; height: 100%; }
.media-img { width: 100%; height: 100%; object-fit: cover; }
.media-art .p { fill: var(--paper); }
.media-art .h { fill: var(--paper-2); }
.media-art .g { stroke: var(--paper-line); stroke-width: 1; }
.media-art .gs { stroke: var(--paper-ink-2); stroke-width: 1; opacity: 0.4; }
.media-art .m { fill: #c9d4ce; }
.media-art .k { fill: #6d7f76; }
.media-art .hk { fill: #a6b4ad; }
.media-art .a { fill: var(--paper-accent); }
.media-art .a2 { fill: var(--paper-accent-soft); }
.media-art .on-a { fill: rgb(255 255 255 / 0.85); }
.media-art .ring { fill: none; stroke: var(--paper-accent); stroke-width: 2; }
.media-art .tile { fill: #fff; stroke: var(--paper-line); }
.media-art .bar { fill: #b9c7c0; }
.media-art .donut-track { fill: none; stroke: var(--paper-2); stroke-width: 12; }
.media-art .donut { fill: none; stroke: var(--paper-accent); stroke-width: 12; stroke-linecap: round; }
.media-art .dot { fill: #b9c7c0; }
.media-art .dot.y { fill: #e0a93c; }
.media-art .arrow { fill: none; stroke: var(--paper-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.media-art .key { fill: #fff; stroke: #c3cec8; stroke-width: 1.2; }
.media-art .keytxt { font-family: var(--font-mono); font-size: 13px; font-weight: 600; fill: var(--paper-ink); text-anchor: middle; }
.media-art .plus { font-family: var(--font-mono); font-size: 14px; fill: var(--paper-ink-2); text-anchor: middle; }
.media-art .box { fill: none; stroke: #b2c0b9; stroke-width: 1.5; }
.media-art .tick { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.media-art .empty { fill: #fff; stroke: #b8c6bf; stroke-dasharray: 3 3; }
.media-art .pencil { fill: var(--paper-ink); }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 1rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.steps li { padding: 22px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: 6px; align-content: start; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-hi); font-weight: 700; }
.steps h3 { font-size: 1.1875rem; }
.steps p { color: var(--text-2); }

/* ---------- YouTube band ---------- */
.yt-band { display: grid; gap: 1.25rem; justify-items: start; padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); border: 1px solid var(--line-2); border-radius: var(--r-xl); background: radial-gradient(80% 120% at 0% 0%, #143128, var(--surface) 70%); }
.yt-band img { width: 56px; height: 56px; border-radius: 50%; }
.yt-band h2 { margin-bottom: 0.4rem; }
.yt-band p { color: var(--text-2); }
@media (min-width: 760px) { .yt-band { grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 20px 44px 20px 0; min-height: 44px;
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--text-3); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--accent-hi); }
.faq summary:focus-visible { box-shadow: none; outline: 2px solid var(--accent-hi); outline-offset: 4px; border-radius: 4px; }
.faq p { padding: 0 44px 20px 0; color: var(--text-2); }
.help-more { margin-top: 1.5rem; color: var(--text-2); }

/* ---------- Status message (after pressing a button) ---------- */
.status:empty { display: none; }
.status { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-3); background: var(--bg); color: var(--text-2); font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding-block: 2rem 2.5rem; font-size: var(--fs-sm); color: var(--text-3); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text-2); text-decoration: none; border-radius: var(--r-sm); }
.footer-links a:hover { color: var(--text); }
.footer-note { margin-top: 0.75rem; font-size: 0.8125rem; }

/* ---------- Legal / support pages ---------- */
.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem) var(--section-y); }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); margin: 1rem 0 1.25rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 0.75rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 6px; margin-top: 0.75rem; }
.legal-status { display: flex; gap: 12px; padding: 16px 18px; margin: 1.5rem 0; border-radius: var(--r-md); border: 1px solid var(--promo-line); background: var(--promo-soft); color: var(--text); font-size: var(--fs-sm); }
.legal-status strong { color: var(--promo); }
.placeholder { font-family: var(--font-mono); font-size: 0.9em; color: var(--promo); background: var(--promo-soft); padding: 1px 6px; border-radius: 4px; }
.legal-back, .back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); }
.legal-back:hover, .back-link:hover { color: var(--text); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media (forced-colors: active) {
  .btn, .card, .faq summary { border: 1px solid CanvasText; }
}
.empty-text { display: block; }
