/* OpinionOracle. Restrained, editorial, institutional.
   Warm paper, near-black ink, one quiet accent. Type does the talking. */

:root {
  --paper:      #f7f4ee;
  --paper-2:    #f1ede4;
  --card:       #fffdf9;
  --ink:        #17140f;
  --ink-soft:   #3a352d;
  --muted:      #736c60;
  --faint:      #9a9384;
  --line:       #e3ded2;
  --line-2:     #d6d0c1;
  --accent:     #1f3a4a;   /* deep research ink-blue */
  --accent-2:   #274a5f;
  --accent-ink: #12262f;
  --focus:      #b98a3e;   /* warm brass, used sparingly */
  --ok:         #2f5d3a;
  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(23,20,15,.04), 0 12px 34px -18px rgba(23,20,15,.22);
  --shadow-sm:  0 1px 2px rgba(23,20,15,.05), 0 6px 18px -12px rgba(23,20,15,.18);
  --maxw: 720px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle paper grain via layered gradients, no image request */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(31,58,74,.05), transparent 60%),
    radial-gradient(900px 500px at 108% 8%, rgba(185,138,62,.05), transparent 55%);
  pointer-events: none;
}

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

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

/* ---------- Masthead ---------- */
.masthead {
  border-bottom: 1px solid var(--line);
  background: rgba(247,244,238,.86);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.mark {
  width: 26px; height: 26px; flex: 0 0 26px;
  display: grid; place-items: center;
}
.mark svg { width: 26px; height: 26px; display: block; }
.masthead nav { display: flex; gap: 26px; align-items: center; }
.masthead nav a {
  font-size: 14px; color: var(--muted); font-weight: 500;
  letter-spacing: .01em;
}
.masthead nav a:hover { color: var(--ink); }
.kicker {
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Landing ---------- */
.hero { padding: 92px 0 64px; }
.hero .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 26px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 470;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.04;
  letter-spacing: -.022em;
  margin: 0 0 26px;
  color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--accent); }
.lede {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 38px;
  line-height: 1.55;
}
.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 16px; font-weight: 600;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid var(--accent-ink);
  background: var(--accent);
  color: #fbf7ee;
  cursor: pointer;
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-2); box-shadow: none;
}
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.link-quiet { font-size: 15px; color: var(--muted); font-weight: 500; }
.link-quiet:hover { color: var(--ink); }

.meta-note {
  margin-top: 22px; font-size: 14px; color: var(--faint);
  display: flex; align-items: center; gap: 8px;
}
.meta-note svg { width: 15px; height: 15px; opacity: .8; }

/* rule + section label */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section { padding: 70px 0; }
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 30px;
}

/* three-up "what we do" */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tile { }
.tile .num {
  font-family: var(--serif); font-size: 15px; color: var(--accent);
  font-weight: 600; letter-spacing: .04em;
}
.tile h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 21px; margin: 12px 0 8px; letter-spacing: -.01em;
}
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* pull statement */
.pull {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.32;
  letter-spacing: -.015em;
  color: var(--ink);
  max-width: 24ch;
}
.pull .by { display:block; margin-top: 22px; font-family: var(--sans); font-size: 14px; letter-spacing:.14em; text-transform:uppercase; color: var(--faint); font-weight:600; }

.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 44px; }
.principle h4 {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  margin: 0 0 6px; color: var(--ink);
  display: flex; gap: 10px; align-items: baseline;
}
.principle h4 .dot { color: var(--accent); }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 46px 0 60px; margin-top: 20px; }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot .brand { font-size: 17px; }
.foot p { color: var(--faint); font-size: 13.5px; margin: 14px 0 0; max-width: 46ch; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { font-size: 14px; color: var(--muted); }
.foot nav a:hover { color: var(--ink); }

/* ---------- Survey ---------- */
.survey-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.survey-top {
  border-bottom: 1px solid var(--line);
  background: rgba(247,244,238,.9);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.survey-top-inner { height: 60px; display:flex; align-items:center; justify-content: space-between; }
.progress-meta { font-size: 12.5px; letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-meta b { color: var(--ink); font-weight: 600; }
.progress-track { height: 3px; background: var(--line); width: 100%; }
.progress-bar { height: 3px; background: var(--accent); width: 0; transition: width .45s cubic-bezier(.2,.7,.2,1); }

.survey-main { flex: 1; display: flex; align-items: flex-start; }
.survey-main .wrap { width: 100%; padding-top: clamp(36px, 7vh, 84px); padding-bottom: 120px; }

.intro-line {
  font-size: 15.5px; color: var(--muted);
  max-width: 54ch; margin: 0 auto 8px; text-align: center;
}

.step { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.q-index { font-family: var(--serif); font-size: 15px; color: var(--accent); font-weight: 600; letter-spacing: .05em; margin-bottom: 14px; }
.q-title {
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(25px, 4.6vw, 34px);
  line-height: 1.16;
  letter-spacing: -.018em;
  margin: 0 0 10px;
  color: var(--ink);
}
.q-hint { font-size: 14.5px; color: var(--faint); margin: 0 0 28px; }
.q-hint.optional::before { content: "Optional. "; color: var(--accent); font-weight: 600; }

/* choice options */
.options { display: grid; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 14px;
  padding: 17px 20px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16.5px; color: var(--ink-soft);
  transition: border-color .14s ease, background .14s ease, transform .08s ease, box-shadow .14s ease;
  text-align: left; width: 100%;
  font-family: var(--sans);
}
.opt:hover { border-color: var(--accent); background: #fff; }
.opt:active { transform: scale(.995); }
.opt .box {
  flex: 0 0 20px; width: 20px; height: 20px;
  border: 1.5px solid var(--line-2); border-radius: 6px;
  display: grid; place-items: center; transition: all .14s ease;
}
.opt.multi .box { border-radius: 6px; }
.opt.single .box { border-radius: 50%; }
.opt .box svg { width: 12px; height: 12px; opacity: 0; transform: scale(.6); transition: all .14s ease; color:#fff; }
.opt.selected { border-color: var(--accent); background: #fff; box-shadow: var(--shadow-sm); color: var(--ink); }
.opt.selected .box { background: var(--accent); border-color: var(--accent); }
.opt.selected .box svg { opacity: 1; transform: scale(1); }

/* text inputs */
.field {
  width: 100%;
  font-family: var(--sans);
  font-size: 17px; color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 17px 18px;
  resize: vertical;
  transition: border-color .14s ease, box-shadow .14s ease;
  line-height: 1.5;
}
textarea.field { min-height: 128px; }
.field::placeholder { color: var(--faint); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,58,74,.1); }

.nav-row { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.nav-row .spacer { flex: 1; }
.btn-back {
  background: none; border: 0; color: var(--muted);
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  cursor: pointer; padding: 8px 4px; display: inline-flex; align-items: center; gap: 6px;
}
.btn-back:hover { color: var(--ink); }
.btn-back svg { width: 15px; height: 15px; }
.hintline { font-size: 13px; color: var(--faint); }

/* thanks state */
.thanks { text-align: center; max-width: 56ch; margin: clamp(30px,8vh,90px) auto 0; animation: rise .5s ease both; }
.thanks .seal { width: 56px; height: 56px; margin: 0 auto 26px; color: var(--accent); }
.thanks h2 { font-family: var(--serif); font-weight: 470; font-size: clamp(28px,5vw,40px); letter-spacing: -.02em; margin: 0 0 14px; }
.thanks p { color: var(--muted); font-size: 17px; margin: 0 0 8px; }
.thanks .aside { font-size: 14px; color: var(--faint); margin-top: 22px; }

/* privacy / legal doc */
.doc { padding: 64px 0 40px; }
.doc h1 { font-family: var(--serif); font-weight: 470; font-size: clamp(32px,6vw,48px); letter-spacing: -.02em; margin: 0 0 8px; }
.doc .updated { color: var(--faint); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-family: var(--serif); font-weight: 500; font-size: 23px; letter-spacing: -.01em; margin: 42px 0 12px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .callout {
  background: var(--card); border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 20px 22px; margin: 26px 0;
  font-size: 16px; color: var(--ink);
}

/* focus visibility for keyboard users */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 60px 0 44px; }
  .grid-3 { grid-template-columns: 1fr; gap: 30px; }
  .principles { grid-template-columns: 1fr; gap: 26px; }
  .masthead nav { gap: 18px; }
  .masthead nav a.hide-sm { display: none; }
  .section { padding: 52px 0; }
  .cta-row { gap: 14px; }
  .btn { width: 100%; justify-content: center; }
  .cta-row .link-quiet { width: 100%; text-align: center; }
}

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