/*
 * Roth Checkup — shared stylesheet
 * Palette: near-black #0D0D0D / gold #C9A84C / cream #E8E0CC
 * Brand accent is applied via --accent CSS variable (config-driven).
 */
:root {
  --ink: #0D0D0D;
  --ink-soft: #1a1a1a;
  --ink-line: #2b2b2b;
  --accent: #C9A84C;
  --accent-deep: #a8842f;
  --paper: #E8E0CC;
  --paper-dim: #b9b09a;
  --paper-faint: #8a8474;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--paper);
  margin-top: 0;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.35rem; }

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--ink-line);
  background: rgba(13, 13, 13, 0.96);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 700;
  flex: 0 0 auto;
}
.brand-logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 700; letter-spacing: 0.02em; }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--paper-dim); font-size: 0.95rem; }
.nav a:hover, .nav a.active { color: var(--accent); text-decoration: none; }
.nav .btn { margin-left: 6px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; text-align: center; }
.hero .kicker {
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.8rem; margin-bottom: 18px;
}
.hero p.lede { color: var(--paper-dim); font-size: 1.15rem; max-width: 640px; margin: 18px auto 0; }
.hero-ctas { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- buttons / forms ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: var(--radius);
  background: var(--accent); color: var(--ink); font-weight: 600; font-size: 1rem;
  border: 1px solid var(--accent); cursor: pointer; text-align: center;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); text-decoration: none; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: rgba(201, 168, 76, 0.12); color: var(--accent); }

label { display: block; font-size: 0.9rem; color: var(--paper-dim); margin: 16px 0 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--ink-line); background: var(--ink-soft); color: var(--paper);
  font-size: 1rem; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-card {
  background: var(--ink-soft); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 32px; max-width: 620px; margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--paper-faint); margin-top: 14px; }
.field-error { color: #e08a8a; font-size: 0.85rem; margin-top: 4px; }

/* ---------- sections / cards ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--ink-soft); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.section h2 { text-align: center; margin-bottom: 12px; }
.section .sub { text-align: center; color: var(--paper-dim); max-width: 660px; margin: 0 auto 40px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--ink-soft); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 26px 22px;
}
.step .num {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--accent);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 1.2rem; }
.step p { margin: 0; color: var(--paper-dim); font-size: 0.95rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--ink-soft); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 26px 22px; position: relative;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--paper-dim); font-size: 0.95rem; margin: 0 0 14px; }
.badge {
  display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 20px; padding: 3px 12px; margin-bottom: 12px;
}
.video-ph {
  aspect-ratio: 16 / 9; border-radius: 8px; background: #101010;
  border: 1px dashed var(--ink-line); display: flex; align-items: center; justify-content: center;
  color: var(--paper-faint); font-size: 0.9rem; margin-bottom: 16px; text-align: center; padding: 12px;
}
.card-video {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #000;
  border: 1px solid var(--ink-line); margin-bottom: 16px; display: block;
}
.badge-live { color: #0D0D0D; background: var(--accent); border-color: var(--accent); font-weight: 700; }

/* ---------- modeler ---------- */
.model-grid { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
@media (max-width: 920px) { .model-grid { grid-template-columns: 1fr; } }
.panel {
  background: var(--ink-soft); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 26px;
}
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
@media (max-width: 560px) { .results { grid-template-columns: 1fr; } }
.result-box {
  border: 1px solid var(--ink-line); border-radius: 8px; padding: 18px;
  background: var(--ink);
}
.result-box.convert { border-color: var(--accent); }
.result-box .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--paper-faint); }
.result-box .value { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; color: var(--paper); margin: 6px 0; }
.result-box .detail { font-size: 0.88rem; color: var(--paper-dim); }
#chart { width: 100%; height: 300px; display: block; }
.legend { display: flex; gap: 24px; justify-content: center; margin-top: 10px; font-size: 0.9rem; color: var(--paper-dim); }
.legend .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 8px; vertical-align: baseline; }
.disclaimer {
  border: 1px solid var(--accent); border-radius: 8px; padding: 16px 20px;
  font-size: 0.88rem; color: var(--paper-dim); margin-top: 26px; background: rgba(201, 168, 76, 0.06);
}
table.compare { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.95rem; }
table.compare th, table.compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ink-line); }
table.compare th { color: var(--paper-faint); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
table.compare td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--ink-line); padding: 40px 0 48px; margin-top: 40px; }
.site-footer .fine { font-size: 0.82rem; color: var(--paper-faint); max-width: 760px; }
.site-footer .draft-stamp {
  display: inline-block; margin-top: 14px; font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--accent); border: 1px solid var(--accent); padding: 4px 12px; border-radius: 4px;
}
.footer-cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-cols nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-cols nav a { color: var(--paper-dim); font-size: 0.92rem; }

/* ---------- misc ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 12px; } .mt-4 { margin-top: 28px; }
.notice {
  border-radius: 8px; padding: 14px 18px; margin: 18px 0; font-size: 0.95rem;
  background: rgba(201, 168, 76, 0.08); border: 1px solid var(--ink-line); color: var(--paper-dim);
}
.hidden { display: none !important; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--accent); color: var(--ink); padding: 8px 14px; z-index: 99; }

/* ---------- embedded mode (?embed=1) ---------- */
body.is-embed .site-header { display: none; }
body.is-embed .site-footer .footer-cols { display: none; }
body.is-embed .hero { padding: 40px 0 32px; }
body.is-embed .section { padding: 36px 0; }
