/* ============================================================================
   Radiant Inventory — marketing site
   Dark, single-world by deliberate choice: the app itself is dark-only
   (app.json "userInterfaceStyle": "dark"), so the site reads as the product.
   Every colour is painted explicitly; nothing inherits a host ground.

   Tokens derive from the app's own design system (src/theme.ts) and the
   Showroom's warm gold, which is reserved here for MONEY and nothing else.
   ========================================================================= */

:root {
  /* Ground */
  --ink:        #0b0916;
  --ink-2:      #141227;
  --ink-3:      #1c1a35;
  --ink-4:      #232047;
  --line:       #2a2749;
  --line-soft:  #201d3b;

  /* Text — neutrals biased toward the indigo accent, not pure grey */
  --text:       #f5f3fb;
  --muted:      #a8a2c6;
  --faint:      #736d95;

  /* Accent */
  --accent:     #7c7bff;
  --accent-dim: #5c5ad6;

  /* Semantic — money is gold, and only money is gold */
  --money:      #f6c453;
  --good:       #4ade80;
  --warn:       #fbbf24;

  /* Holofoil refraction — the one bold thing. Lifted from the app icon's
     chromatic edge. Used on the wordmark and a single hairline rule. */
  --holo-1: #67e8f9;
  --holo-2: #86efac;
  --holo-3: #fde68a;
  --holo-4: #f0abfc;

  --radius:     14px;
  --radius-lg:  20px;
  --maxw:       1180px;
  --gutter:     clamp(20px, 5vw, 40px);

  --font-display: Archivo, "Helvetica Neue", Arial, sans-serif;
  --font-body:    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 78% -6%, rgba(124,123,255,.16) 0%, rgba(124,123,255,0) 62%),
    radial-gradient(760px 420px at 6% 12%, rgba(246,196,83,.055) 0%, rgba(246,196,83,0) 60%),
    var(--ink);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto matters more than usual here: every illustration is an SVG with a
   viewBox, so without it the box takes its height from the attribute and the
   drawing stretches sideways to fill the column. */
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-color: rgba(124,123,255,.4); text-underline-offset: 3px; }
a:hover { color: #a3a2ff; }

:focus-visible {
  outline: 2px solid var(--holo-1);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Type scale ───────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.06;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.15rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.015em; line-height: 1.28; }
p  { margin: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .705rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}
.lede { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--muted); max-width: 62ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── Layout primitives ────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

section { padding-block: clamp(64px, 9vw, 112px); }
section > .wrap { display: flex; flex-direction: column; gap: 44px; }

.band { border-top: 1px solid var(--line-soft); }
.band--sunk { background: linear-gradient(180deg, rgba(20,18,39,.85) 0%, rgba(11,9,22,0) 100%); }

.head { display: flex; flex-direction: column; gap: 14px; max-width: 66ch; }

/* The single holo rule — used once, above the section that earns it. */
.holo-rule {
  height: 2px; border: 0; margin: 0; width: 88px; border-radius: 2px;
  background: linear-gradient(90deg, var(--holo-1), var(--holo-2), var(--holo-3), var(--holo-4));
}

/* ── Site header ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,9,22,.82);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); flex: 0 0 auto; }
.brand img { width: 30px; height: 30px; display: block; }
.brand b {
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem;
  letter-spacing: -.02em;
}
.brand span { color: var(--faint); font-weight: 500; }

.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500;
}
.nav a:hover { color: var(--text); }
@media (max-width: 860px) { .nav { display: none; } }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  letter-spacing: -.01em;
  padding: 11px 20px; border-radius: 10px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .14s ease, background-color .14s ease, border-color .14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #0d0b1c; }
.btn--primary:hover { background: #9291ff; color: #0d0b1c; }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(28,26,53,.6); }
.btn--ghost:hover { border-color: var(--accent-dim); color: var(--text); }
.btn--sm { padding: 8px 15px; font-size: .86rem; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(52px, 8vw, 92px) clamp(56px, 8vw, 96px); }
.hero .wrap { gap: 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 .glow { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.status-pill {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  padding: 6px 13px 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(28,26,53,.7);
  font-size: .78rem; color: var(--muted); font-weight: 500;
}
.status-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 9px rgba(74,222,128,.85);
}

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img {
  display: block; width: 100%; max-width: 372px;
  filter: drop-shadow(0 34px 60px rgba(5,3,16,.72));
}

/* ── Proof strip ──────────────────────────────────────────────────────── */
.proof {
  margin-top: clamp(38px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: rgba(20,18,39,.55); overflow: hidden;
}
.proof div { padding: 18px 20px; border-left: 1px solid var(--line-soft); }
.proof div:first-child { border-left: 0; }
.proof dt {
  font-family: var(--font-mono); font-size: 1.32rem; font-weight: 600;
  color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.proof dd { margin: 4px 0 0; font-size: .82rem; color: var(--faint); line-height: 1.45; }
@media (max-width: 780px) {
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof div:nth-child(3) { border-left: 0; }
  .proof div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

/* ── Thesis pull-quote band ───────────────────────────────────────────── */
.thesis { padding-block: clamp(52px, 7vw, 84px); }
.thesis .wrap { gap: 22px; }
.thesis blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.1vw, 2.2rem); line-height: 1.2; letter-spacing: -.026em;
  max-width: 24ch; text-wrap: balance;
}
.thesis .after { color: var(--muted); max-width: 58ch; }

/* ── The pass (numbered — this really is a sequence) ──────────────────── */
.pass { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
        background: var(--line-soft); border: 1px solid var(--line-soft);
        border-radius: var(--radius); overflow: hidden;
        grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .pass { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pass { grid-template-columns: 1fr; } }
.pass li { background: var(--ink-2); padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 9px; }
.pass .n {
  font-family: var(--font-mono); font-size: .78rem; color: var(--accent);
  letter-spacing: .06em;
}
.pass h3 { color: var(--text); }
.pass p { color: var(--muted); font-size: .93rem; }

/* ── Feature grid ─────────────────────────────────────────────────────── */
.features { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 940px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--ink-3) 0%, var(--ink-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 26px;
  display: flex; flex-direction: column; gap: 11px;
}
.card .ico { color: var(--accent); display: block; }
.card h3 { color: var(--text); }
.card p { color: var(--muted); font-size: .94rem; }

/* ── Split feature rows ───────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(30px, 5vw, 64px); align-items: center; }
.split--flip > *:first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > *:first-child { order: 0; }
}
.split .copy { display: flex; flex-direction: column; gap: 16px; }
.split .art { display: flex; justify-content: center; }
.split .art img { display: block; width: 100%; }
.split .art--phone img { max-width: 330px; filter: drop-shadow(0 30px 52px rgba(5,3,16,.7)); }
.split .art--label img { max-width: 560px; }

/* Wide diagram: never let it push the page sideways on a narrow screen. */
.diagram { overflow-x: auto; }
.diagram img { display: block; min-width: 620px; margin-inline: auto; }

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
/* Marker is absolutely positioned rather than a flex sibling. A flex `li` turns every
   inline child (<strong>, <em>) into its own flex item, which inserts the gap mid-sentence
   and breaks the line. Learned the hard way. */
.ticks li {
  position: relative; padding-left: 18px;
  color: var(--muted); font-size: .95rem;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.ticks li strong { color: var(--text); font-weight: 600; }

/* ── Principles ───────────────────────────────────────────────────────── */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }
.principle { border-left: 2px solid var(--accent-dim); padding: 4px 0 4px 20px; display: flex; flex-direction: column; gap: 8px; }
.principle h3 { color: var(--text); }
.principle p { color: var(--muted); font-size: .94rem; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 18px;
}
.tier--feature { border-color: var(--accent-dim); background: linear-gradient(180deg, #201d44 0%, var(--ink-2) 70%); }
.tier .tier-top { display: flex; flex-direction: column; gap: 6px; }
.tier h3 { font-size: 1.28rem; }
.tier .who { color: var(--faint); font-size: .86rem; }
/* Footnote marker on every tier heading — plans are not final and the note below
   the table says so. Deliberately the warning colour, not the accent. */
.tier-star { color: var(--warn); font-weight: 700; }
.tier .price {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 2.1rem; font-weight: 600; color: var(--money); letter-spacing: -.03em;
  display: flex; align-items: baseline; gap: 7px;
}
.tier .price small { font-family: var(--font-body); font-size: .8rem; color: var(--faint); font-weight: 400; letter-spacing: 0; }
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tier li { display: flex; gap: 10px; font-size: .92rem; color: var(--muted); align-items: flex-start; }
.tier li b { color: var(--text); font-weight: 600; }
.tier li .mark { flex: 0 0 auto; width: 15px; color: var(--good); font-family: var(--font-mono); font-size: .85rem; line-height: 1.6; }
.tier li .mark--no { color: var(--faint); }
.tier .btn { justify-content: center; }

.note {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 16px 18px; color: var(--faint); font-size: .88rem; background: rgba(20,18,39,.5);
}
.note b { color: var(--muted); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.04rem;
  letter-spacing: -.015em; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); color: var(--accent); font-size: 1.2rem;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); font-size: .96rem; padding: 0 0 22px; max-width: 74ch; }

/* ── CTA ──────────────────────────────────────────────────────────────── */
.cta-box {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    radial-gradient(620px 300px at 82% 0%, rgba(124,123,255,.2) 0%, rgba(124,123,255,0) 65%),
    var(--ink-2);
  padding: clamp(30px, 5vw, 52px);
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 46px 60px;
  background: rgba(11,9,22,.6);
}
.site-footer .wrap { display: flex; flex-direction: column; gap: 30px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 44px; justify-content: space-between; }
.foot-col { display: flex; flex-direction: column; gap: 10px; min-width: 150px; }
.foot-tagline { color: var(--faint); font-size: .88rem; max-width: 30ch; }
.foot-col strong {
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint); font-weight: 700;
}
.foot-col a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  border-top: 1px solid var(--line-soft); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  color: var(--faint); font-size: .84rem;
}

/* ── Legal pages ──────────────────────────────────────────────────────── */
.legal { padding-block: clamp(48px, 7vw, 84px); }
.legal .wrap { max-width: 780px; gap: 0; display: block; }
.legal h1 { font-size: clamp(2.1rem, 4.6vw, 2.9rem); margin-bottom: 10px; }
.legal .updated { color: var(--faint); font-size: .86rem; font-family: var(--font-mono); margin-bottom: 40px; }
.legal h2 { font-size: 1.32rem; margin-top: 44px; margin-bottom: 12px; }
.legal h3 { margin-top: 26px; margin-bottom: 8px; color: var(--text); }
.legal p, .legal li { color: var(--muted); font-size: .97rem; }
.legal p { margin-bottom: 14px; }
.legal ul { padding-left: 20px; margin: 0 0 16px; display: flex; flex-direction: column; gap: 7px; }
.legal li::marker { color: var(--accent-dim); }
.legal .callout {
  border: 1px solid var(--line); border-left: 3px solid var(--warn);
  background: rgba(20,18,39,.7); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px; margin: 0 0 24px;
}
.legal .callout p:last-child { margin-bottom: 0; }
.legal .callout p { color: var(--text); font-size: .93rem; }
/* Placeholder the owner must replace before this site goes public. Deliberately
   loud: an obviously-unfilled blank is a far better failure than an invented
   company name or jurisdiction sitting on a live legal page. */
.fillin {
  font-family: var(--font-mono); font-size: .86em; font-weight: 600;
  color: var(--warn); background: rgba(251,191,36,.09);
  border: 1px dashed rgba(251,191,36,.45); border-radius: 5px;
  padding: 1px 6px; white-space: nowrap;
}

.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 28px; }
.back:hover { color: var(--text); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #0d0b1c; padding: 10px 16px; border-radius: 0 0 8px 0;
  font-weight: 700; z-index: 100;
}
.skip:focus { left: 0; }
