/* =====================================================================
   ScribeWealth — homepage / landing
   ---------------------------------------------------------------------
   Adapted from the owner's Claude Design ("Industry") system: a cool-grey
   ground, a slate-blue / navy accent, Barlow + Barlow Condensed, and a
   flat "blueprint" motif (square, hairline borders, corner registration
   ticks). Self-contained — the homepage links ONLY this file, so it does
   not collide with the editorial system used by the rest of the site.
   Palette lives in :root — swap those ~14 vars to re-skin the whole page.
   ===================================================================== */
@import url('fonts/barlow.css');   /* self-hosted — no third-party font requests */

:root {
  /* — Institutional-ink base (shared by every palette) — */
  --color-bg: #F4F6F8;
  --color-surface: #FFFFFF;
  --color-text: #1A2230;
  --color-divider: color-mix(in srgb, #1A2230 14%, transparent);

  --color-neutral-100: #F5F6F8; --color-neutral-200: #E7E9ED;
  --color-neutral-300: #D3D7DD; --color-neutral-400: #B6BBC4;
  --color-neutral-500: #969CA7; --color-neutral-600: #767D8A;
  --color-neutral-700: #59606C; --color-neutral-800: #3E4550;
  --color-neutral-900: #262B34;

  /* Dark sections are always ink-navy, whatever the accent is. */
  --color-accent-900: #16263B;

  /* Data-signal colours (used only for real gain/loss figures). */
  --gain: #1E7A4B; --loss: #C0392B;

  /* — Accent: navy + brass — */
  --color-accent:     #A9762A;
  --color-accent-100: #F5EEDF; --color-accent-200: #E7D5AE;
  --color-accent-300: #D6BB7C; --color-accent-400: #C39B4B;
  --color-accent-500: #B8862F; --color-accent-600: #916526;
  --color-accent-700: #78531F; --color-accent-800: #5C4018;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", system-ui, sans-serif;

  --radius-md: 4px;
  --shadow-lg: 0 12px 32px color-mix(in srgb, #16263B 22%, transparent);
}


*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 6.8px;
}
p { margin: 0 0 10.2px; }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.sw-link { color: inherit; text-decoration: none; }
.sw-link:hover { color: var(--color-accent); }
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }

/* — blueprint frame — */
.blueprint { position: relative; border: 1px solid var(--color-divider); border-radius: 0; }
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.blueprint > .corner::before, .blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid var(--color-divider);
  padding: 6.8px 12.2px; border-radius: 0;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-600); border-color: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }

/* — form — */
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit; font-size: 14px;
  color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: 0;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }

/* — tags — */
.tag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: 0.02em; padding: 3px 10px; border-radius: 0; }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }

/* — table — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: 6.8px; border-bottom: 1px solid var(--color-divider);
}
.table td { padding: 6.8px; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — layout helpers — */
.sw-h1 { font-size: 76px; }
.sw-h2 { font-size: 48px; }
.sw-2col { display: grid; grid-template-columns: 1fr 1fr; }
.sw-3col { display: grid; grid-template-columns: repeat(3, 1fr); }
.sw-4col { display: grid; grid-template-columns: repeat(4, 1fr); }

/* — FAQ (native <details>) — */
.sw-faq { border-top: 1px solid var(--color-divider); }
.sw-faq:last-child { border-bottom: 1px solid var(--color-divider); }
.sw-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; padding: 24px 4px;
  font-family: var(--font-heading); font-weight: 600; font-size: 23px; line-height: 1.15;
  color: var(--color-text);
}
.sw-faq summary::-webkit-details-marker { display: none; }
.sw-faq summary:hover { color: var(--color-accent-700); }
.sw-faq summary .sign { font-size: 26px; color: var(--color-accent); flex: none; line-height: 1; }
.sw-faq[open] summary .sign { transform: rotate(45deg); }
.sw-faq .ans { font-size: 16px; line-height: 1.65; color: var(--color-neutral-700); margin: 0; padding: 0 60px 26px 4px; max-width: 64ch; }

/* — reveal — */
.hp-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.hp-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hp-reveal { opacity: 1; transform: none; transition: none; } }

/* — responsive — */
@media (max-width: 1100px) {
  .sw-2col, .sw-3col, .sw-4col, .sw-math { grid-template-columns: 1fr !important; }
  .sw-math > .sw-op { display: none !important; }
  .sw-sticky { position: static !important; }
  .sw-h1 { font-size: 52px !important; }
  .sw-h2 { font-size: 36px !important; }
  .sw-navlinks { display: none !important; }
}
@media (max-width: 760px) {
  .sw-4col-stats { grid-template-columns: 1fr !important; }
  .sw-h1 { font-size: 40px !important; }
  .sw-pad { padding-left: 20px !important; padding-right: 20px !important; }
}
