/* Barbier Color — Studio Noir.
   Graphite ground so colour reads true, copper to act, violet to think.
   Single visual world on purpose: this is a teaser, it commits to the dark. */

:root {
  --ground:      #121010;
  --ground-deep: #0B0A09;
  --surface:     #1C1917;
  --line:        #2E2924;
  --line-soft:   #241F1B;
  --text:        #EFE9DE;
  --text-dim:    #9A9083;
  --text-faint:  #6A6259;
  --copper:      #C87A3E;
  --copper-lit:  #E09A5B;
  --violet:      #9B84C6;
  --max:         62rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--copper-lit); text-underline-offset: 3px; }
a:hover { color: var(--copper); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- shell ---------- */

.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}
.wordmark .fan { flex: none; }
.wordmark span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

/* language switcher */
.langs { display: flex; gap: 2px; }
.langs button {
  appearance: none;
  background: none;
  border: none;
  color: var(--text-faint);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: color .15s ease, background .15s ease;
}
.langs button:hover { color: var(--text-dim); background: var(--line-soft); }
.langs button[aria-current="true"] { color: var(--copper-lit); background: var(--line-soft); }

/* ---------- hero ---------- */

main { flex: 1 0 auto; }

/* Tighter than the teaser's hero: this is now a doorway into the page, not
   the whole page, so the headline stops competing with the formula below it. */
.hero {
  padding: clamp(28px, 6vh, 64px) 0 clamp(24px, 4vh, 40px);
  /* A pixel width, not `ch`: `ch` scales with the font size, so the clamped
     headline kept squeezing itself into a narrow column on a wide screen. */
  max-width: 640px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 22px;
}

h1 {
  font-size: clamp(38px, 6.4vw, 66px);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 600;
  margin: 0 0 24px;
  text-wrap: balance;
}

.lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-dim);
  margin: 0 0 8px;
  max-width: 46ch;
  text-wrap: pretty;
}

/* ---------- the level scale: a colorist reads this instantly ---------- */

.scale { margin: 0 0 28px; max-width: 30rem; }
.scale-row { display: flex; gap: 3px; }
.scale-row i {
  flex: 1;
  height: 54px;
  border-radius: 2px;
  display: block;
  opacity: 0;
  transform: translateY(9px);
  animation: rise .55s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

.scale-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .scale-row i { animation: none; opacity: 1; transform: none; }
}

/* ---------- status + cta ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 15px 8px 12px;
  border-radius: 100px;
  margin: 0 0 28px;
}
.status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 3px rgba(200,122,62,.16);
  flex: none;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--copper);
  color: #17110C;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 6px;
  transition: background .16s ease, transform .16s ease;
}
.btn:hover { background: var(--copper-lit); color: #17110C; transform: translateY(-1px); }

.btn-quiet {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 13px 4px;
}
.btn-quiet:hover { color: var(--text); }

/* ---------- content pages ---------- */

.doc { padding: 20px 0 72px; max-width: 68ch; }
.doc h1 {
  font-size: clamp(32px, 5.5vw, 44px);
  margin-bottom: 10px;
}
.doc .updated {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0 0 40px;
}
.doc h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 44px 0 14px;
}
.doc h2:first-of-type { margin-top: 0; }
.doc p { margin: 0 0 18px; color: var(--text-dim); }
.doc p strong { color: var(--text); font-weight: 600; }
.doc ul { margin: 0 0 18px; padding-left: 20px; color: var(--text-dim); }
.doc li { margin-bottom: 10px; }
.doc li::marker { color: var(--copper); }

.callout {
  border-left: 2px solid var(--violet);
  background: rgba(155,132,198,.07);
  padding: 18px 22px;
  border-radius: 0 5px 5px 0;
  margin: 0 0 26px;
}
.callout p { margin: 0; color: var(--text); }

/* ---------- footer ---------- */

footer {
  flex: none;
  border-top: 1px solid var(--line-soft);
  padding: 30px 0 44px;
  margin-top: 40px;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-faint);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--text-dim); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .shell { padding: 0 20px; }
  .hero { padding-top: 40px; }
  .scale-row i { height: 44px; }
}

/* ============================================================
   The landing page stopped being a teaser.
   Everything below shows the product instead of describing it:
   a real formula, a real stop, a real conversion. The rule is the
   same one the app follows — the words come from the work, not
   from slogans.
   ============================================================ */

/* The serif is the app's own display face for a colour name. It appears
   here only where the app uses it, so the two read as one product. */
.serif { font-family: Newsreader, "Iowan Old Style", Georgia, serif; }

section { padding: clamp(56px, 9vh, 96px) 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: none; }

.sec-head { max-width: 46ch; margin: 0 0 36px; }
.sec-head h2 {
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 600;
  margin: 0 0 14px;
  text-wrap: balance;
}
.sec-head p { margin: 0; color: var(--text-dim); font-size: clamp(16px, 2vw, 18px); text-wrap: pretty; }

.cols { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 800px) { .cols.two { grid-template-columns: 1fr 1fr; gap: 44px; } }

/* ---------- a formula, rendered the way the app renders it ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.verdict {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600;
  padding: 12px 16px; border-radius: 10px;
  background: rgba(127,170,132,.10);
  border: 1px solid rgba(127,170,132,.28);
  margin: 0 0 18px;
}
.verdict .dot { width: 8px; height: 8px; border-radius: 50%; background: #7FAA84; flex: none; }
.verdict.stop { background: rgba(208,128,114,.10); border-color: rgba(208,128,114,.30); }
.verdict.stop .dot { background: #D08072; }

.formula-name { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.1; margin: 0 0 4px; font-weight: 500; }
.formula-sub { color: var(--text-dim); font-size: 15px; margin: 0 0 22px; }

.bowl {
  background: var(--ground-deep);
  border-radius: 11px;
  padding: 17px 18px;
  margin-top: 10px;
}
.bowl-top { display: flex; align-items: baseline; gap: 9px; margin-bottom: 4px; }
.bowl-n { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; color: var(--copper); }
.bowl-role { font-size: 15px; font-weight: 600; }
.bowl-zone { font-size: 12px; color: var(--text-faint); margin: 0 0 8px; }
.shade {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(22px, 3vw, 26px); font-weight: 600; letter-spacing: .01em;
  margin: 0 0 2px;
}
.bowl-line { font-size: 13px; color: var(--text-dim); margin: 0 0 12px; }
.bowl-rule { height: 1px; background: var(--line); margin: 0 0 12px; }
.measures { display: flex; flex-wrap: wrap; gap: 22px; align-items: baseline; margin: 0 0 8px; }
.measures b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.measures span { font-size: 12px; color: var(--text-faint); margin-left: 3px; }
.bowl-dev { font-size: 12px; color: var(--text-dim); margin: 0; }

.why {
  border-left: 2px solid var(--violet);
  background: rgba(155,132,198,.07);
  border-radius: 0 6px 6px 0;
  padding: 12px 15px; margin-top: 12px;
  font-size: 13px; color: var(--text-dim);
}
.why p { margin: 0; }

/* ---------- lists that carry the argument ---------- */

.points { list-style: none; margin: 0; padding: 0; max-width: 64ch; }
/* Inside a two-column block the column already sets the measure. */
.cols .points { max-width: none; }
.points li {
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 15px;
}
.points li:first-child { border-top: none; padding-top: 0; }
.points b { display: block; color: var(--text); font-weight: 600; font-size: 16px; margin-bottom: 3px; }

/* ---------- cross-brand conversion ---------- */

.convert { display: grid; gap: 8px; }
.convert div {
  display: flex; align-items: baseline; gap: 14px;
  background: var(--ground-deep); border-radius: 9px; padding: 12px 15px;
}
.convert code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px; font-weight: 600; color: var(--text);
  min-width: 4.5ch;
}
.convert span { font-size: 13px; color: var(--text-dim); }
.convert .from { border: 1px solid var(--line); background: var(--surface); }
.convert .from code { color: var(--copper-lit); }

/* ---------- small swatch strip used inside sections ---------- */

.mini-scale { display: flex; gap: 3px; margin: 0 0 10px; max-width: 22rem; }
.mini-scale i { flex: 1; height: 34px; border-radius: 2px; }

.note { font-size: 13px; color: var(--text-faint); margin: 14px 0 0; max-width: 68ch; }

@media (max-width: 560px) {
  section { padding: 44px 0; }
  .card { padding: 18px; }
}
