/* RevThread public website — design proposal 2026-10-04.
   "Ledger, elevated": the live site's tokens (indigo, cream, ink, Source Serif 4 + Mona Sans)
   kept as-is; rhythm, scale and the thread motif are what change. */

:root {
  /* live tokens — unchanged */
  --rt-indigo: #2f35a8;
  --rt-indigo-hover: #24298c;
  --rt-violet: #4a3fd1;
  --rt-canvas: #f7f5f0;
  --rt-surface: #ffffff;
  --rt-ink: #15171e;
  --rt-deep: #15171e;
  --rt-hairline: #e3dfd5;
  --rt-tint: #eaeaf6;
  --rt-tint-2: #f4f4fa;
  --rt-graphite: #45474f;
  --rt-steel: #5c5e68;
  --rt-fog: #75767e;
  --radius-control: 6px;
  --radius-card: 10px;

  /* proposed additions */
  --rt-paper: #efece4;            /* deeper cream band */
  --rt-deep-2: #1e2130;           /* raised surface on dark */
  --rt-deep-line: #2f3345;        /* hairline on dark */
  --rt-on-dark: #c9cbd6;          /* body text on dark */
  --rt-thread: #2f35a8;
  --rt-thread-soft: #d3d2e8;      /* un-drawn thread track */
  --rt-thread-on-dark: #9da3ff;
  --rt-ok: #1f7a4d;
  --rt-ok-tint: #e3f1e9;
  --rt-warm: #f6efe0;             /* "worth knowing" callout */
  --rt-warm-line: #c9a15a;
  --radius-panel: 16px;
  --shadow-card: 0 1px 2px rgba(21,23,30,.04), 0 10px 28px -16px rgba(21,23,30,.18);
  --shadow-lift: 0 2px 4px rgba(21,23,30,.05), 0 30px 60px -28px rgba(21,23,30,.32);

  --font-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-ui: "Mona Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --gutter: 28px;
  --band: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--rt-canvas); color: var(--rt-ink);
  font-family: var(--font-ui); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--rt-indigo); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.7vw, 4rem); line-height: 1.04; letter-spacing: -.028em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.08; letter-spacing: -.024em; }
h3 { font-size: 1.375rem; line-height: 1.22; letter-spacing: -.012em; }
h1 em, h2 em { font-style: italic; color: var(--rt-indigo); }
.band--dark h2 em { color: var(--rt-thread-on-dark); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: 1296px; }
.band { padding: var(--band) 0; position: relative; }
.band--paper { background: var(--rt-paper); }
.band--dark { background: var(--rt-deep); color: #fff; }
.band--tight { padding: 88px 0; }
.rule { border: 0; border-top: 1px solid var(--rt-hairline); margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font: 600 12px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--rt-indigo);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.band--dark .eyebrow { color: var(--rt-thread-on-dark); }

.sec-head { max-width: 780px; margin-bottom: 60px; }
.sec-head > p:not(.eyebrow) { margin-top: 22px; max-width: 620px; font-size: 1.1875rem; line-height: 1.55; color: var(--rt-graphite); }
.band--dark .sec-head > p:not(.eyebrow) { color: var(--rt-on-dark); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center > p:not(.eyebrow) { margin-inline: auto; }

.fineprint { margin-top: 20px; font-size: 13px; color: var(--rt-steel); }
.band--dark .fineprint { color: #8f92a3; }

/* ---------- buttons: one system ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius-control); cursor: pointer; white-space: nowrap;
  font: 600 15.5px/1 var(--font-ui); text-decoration: none; transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.btn svg { width: 16px; height: 16px; transition: transform .18s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--rt-indigo); color: #fff; }
.btn--primary:hover { background: var(--rt-indigo-hover); }
.btn--ghost { background: var(--rt-surface); color: var(--rt-ink); border-color: var(--rt-hairline); }
.btn--ghost:hover { border-color: #c7c2b3; }
.btn--light { background: #fff; color: var(--rt-ink); }
.btn--light:hover { background: var(--rt-tint); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--rt-indigo); text-decoration: none; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .18s; }
.link-arrow:hover svg { transform: translateX(3px); }
.band--dark .link-arrow { color: var(--rt-thread-on-dark); }

/* ---------- status tags (capability truth) ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font: 600 11.5px/1 var(--font-ui); letter-spacing: .02em; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--now { background: var(--rt-ok-tint); color: var(--rt-ok); }
.tag--conn { background: var(--rt-tint); color: var(--rt-indigo); }
.tag--you { background: #f1eee6; color: var(--rt-graphite); }
.tag--soon { background: #f8ecd3; color: #7a5210; }
.band--dark .tag--now { background: rgba(86,201,142,.14); color: #7ddba9; }
.band--dark .tag--conn { background: rgba(157,163,255,.16); color: var(--rt-thread-on-dark); }
.band--dark .tag--you { background: rgba(255,255,255,.09); color: #d6d7df; }

/* ---------- review bar (prototype chrome, not part of the design) ---------- */
.review-bar { background: #0e0f14; color: #b9bbc6; font-size: 12.5px; line-height: 1.3; }
.review-bar .wrap { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; }
.review-bar b { color: #fff; font-weight: 600; }
.review-bar nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.review-bar a { padding: 4px 10px; border-radius: 99px; text-decoration: none; color: #d9dae2; border: 1px solid #2c2e3a; }
.review-bar a[aria-current="page"] { background: #fff; color: #0e0f14; border-color: #fff; }
.is-clean .review-bar { display: none; }
.is-clean .nav { position: static; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(247,245,240,.88); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid rgba(227,223,213,.0); transition: border-color .2s; }
.nav.is-stuck { border-bottom-color: var(--rt-hairline); }
.nav__in { display: flex; align-items: center; gap: 36px; height: 72px; }
.nav__logo { display: inline-flex; flex: none; }
.nav__logo img { height: 30px; width: auto; display: block; }
.nav__links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--rt-graphite); display: inline-flex; align-items: center; gap: 5px; }
.nav__links a:hover { color: var(--rt-ink); }
.nav__links svg { width: 10px; height: 10px; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav__signin { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--rt-graphite); }
.nav__signin:hover { color: var(--rt-ink); }
.nav__menu { display: none; width: 40px; height: 40px; border: 1px solid var(--rt-hairline); border-radius: var(--radius-control); background: var(--rt-surface); cursor: pointer; padding: 0; place-items: center; }
.nav__menu span { display: block; width: 16px; height: 1.6px; background: var(--rt-ink); box-shadow: 0 5px 0 var(--rt-ink), 0 -5px 0 var(--rt-ink); }
.nav__panel { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 48px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(21,23,30,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(21,23,30,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 58% 78% at 74% 42%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 58% 78% at 74% 42%, #000 0%, transparent 72%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero__copy { padding-bottom: 24px; }
.lede { margin-top: 26px; max-width: 30em; font-size: 1.25rem; line-height: 1.55; color: var(--rt-graphite); }
.lede strong { color: var(--rt-ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; font-size: 14px; color: var(--rt-steel); }
.hero__facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero__facts svg { width: 14px; height: 14px; color: var(--rt-indigo); }

/* ---------- footer ---------- */
.footer { background: var(--rt-deep); color: var(--rt-on-dark); padding: 72px 0 36px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; }
.footer__brand img { height: 30px; width: auto; display: block; }
.footer__brand p { margin-top: 18px; max-width: 30ch; color: #9a9dae; line-height: 1.55; }
.footer h4 { font: 600 11.5px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: #8b8ea0; margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer a { text-decoration: none; color: #d5d7e0; }
.footer a:hover { color: #fff; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rt-deep-line); font-size: 13px; color: #8b8ea0; }

/* ---------- reveal on scroll (progressive; content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,.8,.26,1), transform .7s cubic-bezier(.22,.8,.26,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive shell ---------- */
@media (max-width: 1000px) {
  :root { --band: 88px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__stage { max-width: 640px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --band: 72px; }
  body { font-size: 16px; }
  .nav__in { height: 62px; gap: 12px; }
  .nav__logo img { height: 26px; }
  .nav__links, .nav__signin { display: none; }
  .nav__right { gap: 10px; }
  .nav__menu { display: grid; }
  .nav__panel { border-top: 1px solid var(--rt-hairline); padding: 10px var(--gutter) 18px; background: var(--rt-canvas); }
  .nav.is-open .nav__panel { display: block; }
  .nav__panel a { display: block; padding: 12px 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--rt-hairline); }
  .hero { padding: 28px 0 64px; }
  .lede { font-size: 1.125rem; margin-top: 20px; }
  .cta-row { margin-top: 26px; }
  .cta-row .btn { flex: 1 1 auto; }
  .hero__facts { margin-top: 22px; gap: 8px 18px; font-size: 13.5px; }
  .sec-head { margin-bottom: 40px; }
  .sec-head > p:not(.eyebrow) { font-size: 1.0625rem; margin-top: 16px; }
  .footer { padding: 56px 0 28px; }
  .footer__grid { gap: 36px 24px; }
  .footer__brand { grid-column: 1 / -1; }
}
