/* ============================================================================
   rosflow.info

   The tokens are ROSFlow's, copied rather than imported. This site sits on a
   different domain, deploys on its own, and must keep working if the product
   repository moves — a stylesheet reaching across into `../ros/` would make a
   marketing page depend on an application it has nothing to do with.

   Both skins, because the product has both and a visitor arriving from a dark
   email client should not be flashbanged.
   ========================================================================== */

:root {
  --ink-950:  #070708;
  --ink-900:  #0B0B0D;
  --ink-850:  #101012;
  --ink-800:  #16161A;
  --ink-700:  #24242B;
  --ink-600:  #32323B;

  --warm-100: #F7F3EA;
  --warm-300: #D9D3C6;
  --warm-500: #9C968A;
  --warm-700: #6A6560;

  --gold-300: #EAD6A8;
  --gold-400: #D8BE86;
  --gold-500: #C2A66C;
  --gold-700: #8A7444;

  --accent:      var(--gold-400);
  --line:        rgba(247, 243, 234, .07);
  --line-strong: rgba(247, 243, 234, .13);
  --line-gold:   rgba(216, 190, 134, .22);

  --sh-1: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.24);
  --sh-2: 0 2px 4px rgba(0,0,0,.34), 0 12px 32px -8px rgba(0,0,0,.55);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;

  --t-fast: .16s;
  --t-base: .28s;
  --ease:   cubic-bezier(.22, 1, .36, 1);
}

:root[data-skin="light"] {
  --ink-950:  #FAF7F2;
  --ink-900:  #F5F1EA;
  --ink-850:  #FFFFFF;
  --ink-800:  #FFFFFF;
  --ink-700:  #F3EFE7;
  --ink-600:  #E8E1D7;

  --warm-100: #1F1B14;
  --warm-300: #423B30;
  --warm-500: #6E6558;
  --warm-700: #857C6B;

  --gold-300: #DCBE86;
  --gold-400: #C8A56A;
  --gold-500: #B79356;
  --gold-700: #8A6D35;

  --accent:      #8A6D35;
  --line:        #E8E1D7;
  --line-strong: #DAD0C1;
  --line-gold:   rgba(200, 165, 106, .42);

  --sh-1: 0 1px 2px rgba(31,27,20,.05), 0 2px 8px rgba(31,27,20,.04);
  --sh-2: 0 2px 4px rgba(31,27,20,.06), 0 12px 32px -8px rgba(31,27,20,.10);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--warm-300);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 300; letter-spacing: -.015em; color: var(--warm-100); }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: .98; letter-spacing: -.03em; margin: 0 0 1.2rem; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.05; margin: 0 0 1rem; }
h3 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 .5rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.mono { font-family: var(--mono); font-size: .86em; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 46rem; }

.eyebrow {
  font-size: .68rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--warm-500); margin: 0 0 1rem;
}
.eyebrow-gold { color: var(--accent); }

/* ── the bar ─────────────────────────────────────────────────────────────── */

.bar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ink-950) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; gap: 1rem; height: 4rem; }

.mark { display: inline-flex; align-items: center; gap: .65rem; color: var(--warm-100); }
.mark:hover { text-decoration: none; }
.mark-badge {
  width: 2.15rem; height: 2.15rem; border-radius: 11px;
  display: grid; place-items: center;
  border: 1px solid var(--line-gold);
  background: linear-gradient(160deg, rgba(216,190,134,.18), transparent);
  font-family: var(--serif); font-size: 1.05rem; color: var(--accent);
}
.mark-word { font-family: var(--serif); font-size: 1.25rem; letter-spacing: -.01em; }

.bar-links { display: none; gap: 1.6rem; margin-left: 1rem; font-size: .82rem; color: var(--warm-500); }
.bar-links a { color: inherit; }
.bar-links a:hover { color: var(--warm-100); text-decoration: none; }
@media (min-width: 46rem) { .bar-links { display: flex; } }

.bar-end { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

/* ── buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1.1rem; border-radius: var(--r-sm);
  font-size: .82rem; font-weight: 500; font-family: var(--sans);
  border: 1px solid transparent; cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: #17130A; border-color: transparent;
}
.btn-gold:hover { filter: brightness(1.06); text-decoration: none; }
.btn-quiet {
  background: transparent; color: var(--warm-300); border-color: var(--line-strong);
}
.btn-quiet:hover { color: var(--warm-100); border-color: var(--line-gold); text-decoration: none; }

/* The skin toggle. Selected states carry a gold rule as well as a fill —
   the product learned the hard way that a surface difference of three points
   is invisible on the light theme. */
.skin {
  width: 2.15rem; height: 2.15rem; border-radius: 9px;
  display: grid; place-items: center;
  background: transparent; color: var(--warm-500);
  border: 1px solid var(--line-strong); cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.skin:hover { color: var(--accent); border-color: var(--line-gold); }
.skin:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── sections ────────────────────────────────────────────────────────────── */

section { padding: 5.5rem 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

.hero { padding: 7rem 0 5.5rem; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -30% 0 auto 0; height: 60%;
  background: radial-gradient(60% 70% at 30% 0%, rgba(216,190,134,.09), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }

.lede { font-size: 1.08rem; color: var(--warm-500); max-width: 38rem; }

.rule {
  height: 1px; border: 0; margin: 2.5rem 0;
  background: linear-gradient(90deg, var(--line-gold), transparent);
}

/* ── cards ───────────────────────────────────────────────────────────────── */

.grid { display: grid; gap: 1rem; }
@media (min-width: 46rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem;
  box-shadow: var(--sh-1);
}
.card p:last-child { margin-bottom: 0; }
.card-num {
  font-family: var(--serif); font-size: 2.6rem; line-height: 1;
  color: var(--gold-700); display: block; margin-bottom: .8rem;
}

.note {
  background: var(--ink-900); border: 1px solid var(--line);
  border-left: 2px solid var(--line-gold);
  border-radius: var(--r-sm); padding: 1.2rem 1.4rem;
}

dl.facts { margin: 0; display: grid; gap: .9rem; }
@media (min-width: 40rem) { dl.facts { grid-template-columns: 11rem 1fr; align-items: baseline; } }
dl.facts dt { color: var(--warm-500); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
dl.facts dd { margin: 0; color: var(--warm-100); }

/* ── forms ───────────────────────────────────────────────────────────────── */

label { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
        color: var(--warm-500); margin-bottom: .5rem; }

input[type="email"], input[type="text"], textarea {
  width: 100%; padding: .75rem .9rem;
  background: var(--ink-700); color: var(--warm-100);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-family: var(--sans); font-size: .92rem;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.answer {
  border-radius: var(--r-sm); padding: 1rem 1.2rem; margin-bottom: 1.5rem;
  border: 1px solid var(--line-strong); background: var(--ink-900);
}
.answer-ok   { border-color: rgba(127,187,163,.4); }
.answer-bad  { border-color: rgba(201,127,127,.4); }

/* ── footer ──────────────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--line); padding: 3rem 0; color: var(--warm-700); font-size: .8rem; }
footer a { color: var(--warm-500); }
footer a:hover { color: var(--accent); }
.foot-in { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.foot-in .spacer { margin-left: auto; }

/* A placeholder the operator still has to fill in. Marked rather than left to
   look like a real detail — an invented address on a page that exists to prove
   you are real would be the one lie that undoes the whole thing. */
.todo {
  color: var(--warm-700);
  border-bottom: 1px dashed var(--line-gold);
  cursor: help;
}

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