/* MantraMind - Phase 1 funnel site
   Brand tokens mirror expo/constants/colors.ts + typography.ts ("peaceful spiritual chic").
   Anti-slop: one accent (brass gold), no AI-purple, no neon, calm motion, zero em-dashes in UI copy. */

:root {
  --bg: #141926;
  --bg-warm: #16201F;
  --surface: #1C2138;
  --surface-light: #262C46;
  --surface-elevated: #2D3350;
  --primary: #151A2D;

  --gold: #D8B56D;
  --gold-light: #E7CE92;
  --gold-soft: rgba(216, 181, 109, 0.14);
  --sage: #9CAC8B;
  --amethyst: #8B79A8;
  --saffron: #C9873B;

  --text: #EDE7DA;
  --text-2: #C4BCA9;
  --text-muted: #8A8475;
  --text-light: #F6F1E6;

  --border: #2A3048;
  --hairline: rgba(237, 231, 218, 0.07);
  --shadow-glow: rgba(216, 181, 109, 0.18);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1080px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 78% -8%, #2A2440 0%, rgba(42,36,64,0) 60%),
    radial-gradient(900px 600px at 8% 110%, #16201F 0%, rgba(22,32,31,0) 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Typography */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.2px; margin: 0 0 0.4em; }
h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; font-weight: 400; }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.16; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0 0 1em; color: var(--text-2); }
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold);
  margin: 0 0 14px;
}
.serif-lede { font-family: var(--serif); font-size: clamp(18px, 2.4vw, 23px); color: var(--text); line-height: 1.5; }

a { color: var(--gold-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--gold); color: #20180A; box-shadow: 0 10px 30px var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold); text-decoration: none; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px);
  background: rgba(20, 25, 38, 0.72); border-bottom: 1px solid var(--hairline); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; color: var(--text-light); }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav-links a { color: var(--text-2); }
@media (max-width: 640px){ .nav-links a.hide-sm { display:none; } }

/* Hero */
.hero { padding: clamp(48px, 9vw, 104px) 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 880px){ .hero-grid { grid-template-columns: 1fr; gap: 30px; } }
.hero p.sub { font-size: 18px; max-width: 30ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.trust-line { margin-top: 20px; font-size: 13.5px; color: var(--text-muted); }

/* Counter card */
.counter-card {
  background: linear-gradient(180deg, var(--surface-light), var(--surface));
  border: 1px solid var(--border); border-radius: 26px; padding: 30px 26px 26px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.38);
}
.counter-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.counter-head .mantra { font-family: var(--serif); font-size: 20px; color: var(--text-light); }
.counter-head .target { font-size: 13px; color: var(--text-muted); }

.ring-wrap { position: relative; width: 240px; height: 240px; margin: 8px auto 6px; }
.ring-wrap svg { transform: rotate(-90deg); display: block; }
.ring-bg { stroke: var(--border); }
.ring-fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .35s ease; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.count-num { font-family: var(--sans); font-weight: 300; font-size: 64px; line-height: 1; color: var(--text-light); letter-spacing: 1px; }
.count-sub { font-size: 13px; color: var(--text-2); margin-top: 6px; letter-spacing: 0.4px; }

.tap {
  width: 100%; margin-top: 14px; padding: 22px; border-radius: var(--radius);
  background: var(--gold-soft); border: 1px solid rgba(216,181,109,0.35);
  color: var(--gold-light); font-family: var(--serif); font-size: 22px; cursor: pointer;
  transition: transform .08s ease, background .2s ease;
}
.tap:active { transform: scale(0.985); background: rgba(216,181,109,0.22); }
.counter-controls { display: flex; gap: 10px; margin-top: 14px; }
.counter-controls button {
  flex: 1; padding: 11px; border-radius: 12px; background: transparent;
  border: 1px solid var(--border); color: var(--text-2); font-size: 14px; cursor: pointer;
}
.counter-controls button:hover { border-color: var(--gold); color: var(--text); }
.target-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text-2); font-size: 13px; cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-light); background: var(--gold-soft); }
.counter-note { margin-top: 14px; font-size: 12.5px; color: var(--text-muted); text-align: center; }

/* Sections */
section { padding: clamp(46px, 7vw, 84px) 0; }
.section-tight { padding: clamp(30px,5vw,56px) 0; }
.divider { height: 1px; background: var(--hairline); }

/* Why-fail: asymmetric, not three equal cards */
.fail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 820px){ .fail { grid-template-columns: 1fr; gap: 24px; } }
.killers { list-style: none; padding: 0; margin: 0; }
.killers li { padding: 16px 0; border-bottom: 1px solid var(--hairline); display: flex; gap: 14px; }
.killers li:last-child { border-bottom: 0; }
.killers .n { font-family: var(--serif); color: var(--gold); font-size: 22px; min-width: 26px; }
.killers .k-title { color: var(--text-light); font-weight: 600; display: block; margin-bottom: 2px; }
.killers .k-body { color: var(--text-2); font-size: 14.5px; }

/* Capture */
.capture { background: linear-gradient(180deg, var(--surface), var(--bg-warm)); border: 1px solid var(--border);
  border-radius: 26px; padding: clamp(28px, 5vw, 48px); text-align: center; }
.capture form { display: flex; gap: 10px; max-width: 440px; margin: 18px auto 8px; flex-wrap: wrap; }
.capture input[type=email]{
  flex: 1; min-width: 200px; padding: 14px 16px; border-radius: 12px;
  background: var(--primary); border: 1px solid var(--border); color: var(--text); font-size: 16px;
}
.capture input[type=email]:focus { outline: none; border-color: var(--gold); }
.capture .form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.form-status { min-height: 20px; font-size: 14px; margin-top: 10px; }
.form-status.ok { color: var(--sage); }
.form-status.err { color: var(--saffron); }

/* Footer */
footer { border-top: 1px solid var(--hairline); padding: 40px 0 56px; color: var(--text-muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text-2); }
.powered { color: var(--text-muted); }
.powered b { color: var(--gold); font-weight: 600; }

/* Cluster tools */
.tool-hero { padding: clamp(46px, 8vw, 92px) 0 34px; }
.tool-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: 42px; align-items: center; }
.tool-grid h1 { max-width: 10ch; }
.tool-grid .serif-lede { max-width: 31ch; }
.tool-panel {
  background: linear-gradient(180deg, var(--surface-light), var(--surface));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 26px 54px rgba(0,0,0,0.28);
}
.panel-kicker {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.result-panel h2 { margin-bottom: 10px; }
.meter {
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  border: 1px solid var(--border);
  margin: 22px 0 8px;
  overflow: hidden;
}
.meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transition: width .25s ease;
}
.meter span.low { background: var(--sage); }
.meter span.mid { background: var(--gold); }
.meter span.high { background: var(--saffron); }
.narrow { max-width: 820px; }
.quiz-form fieldset {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 22px;
  margin: 0 0 16px;
  background: rgba(28, 33, 56, 0.52);
}
.quiz-form legend {
  color: var(--text-light);
  font-family: var(--serif);
  font-size: 24px;
  padding: 0 8px;
}
.quiz-form label {
  display: block;
  color: var(--text-2);
  padding: 10px 0;
  cursor: pointer;
}
.quiz-form input[type=radio] {
  accent-color: var(--gold);
  margin-right: 10px;
}
.inline-capture { margin-top: 22px; }
.inline-capture label,
.calc-form label {
  display: block;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 8px;
}
.inline-form,
.stack-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.inline-form input,
.stack-form input,
.calc-form input,
.calc-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--primary);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
}
.inline-form input,
.stack-form input { flex: 1; min-width: 210px; }
.inline-form input:focus,
.stack-form input:focus,
.calc-form input:focus,
.calc-form select:focus {
  outline: none;
  border-color: var(--gold);
}
.next-steps {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.calc-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}
.calc-form {
  display: grid;
  gap: 11px;
}
.calc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 0;
}
.stat-grid div {
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
}
.stat-grid dt {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.stat-grid dd {
  margin: 4px 0 0;
  color: var(--text-light);
  font-size: 22px;
  font-family: var(--serif);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.price-card {
  background: linear-gradient(180deg, var(--surface-light), var(--surface));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 34px);
}
.price-card-featured { border-color: rgba(216,181,109,0.52); box-shadow: 0 24px 54px rgba(216,181,109,0.10); }
.price-card h2 { font-size: clamp(34px, 5vw, 48px); }
.price-card h2 span { font-family: var(--sans); font-size: 15px; color: var(--text-muted); }
.price-alt { color: var(--gold-light); margin-top: -8px; }
.price-card ul {
  margin: 22px 0;
  padding-left: 18px;
  color: var(--text-2);
}
.price-card li { margin-bottom: 10px; }
.price-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pricing-status { text-align: center; margin-top: 20px; }
@media (max-width: 820px) {
  .tool-grid,
  .calc-layout,
  .pricing-grid { grid-template-columns: 1fr; }
  .tool-grid h1 { max-width: 12ch; }
  .stat-grid { grid-template-columns: 1fr; }
}

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