/* =========================================================
   Survey Rewards — Design tokens
   Palette:  #FAF9F5 paper · #14231C ink · #19BC76 forest ·
             #E8A33D amber · #D9E8DD sage · #FFFFFF card
   Type:     Fraunces (display) / Inter (body) / IBM Plex Mono (labels)
   Signature: the opening-quote glyph, used as the throughline motif
              for "your opinion has weight"
   ========================================================= */

:root {
  --paper: #FAF9F5;
  --ink: #14231C;
  --ink-soft: #4B594F;
  --forest: #19BC76;
  --forest-dark: #138D59;
  --amber: #E8A33D;
  --sage: #D9E8DD;
  --sage-line: #C4D8CA;
  --card: #FFFFFF;
  --error: #B3432B;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 4px 24px rgba(20, 35, 28, 0.06);
  --shadow-card: 0 2px 10px rgba(20, 35, 28, 0.05);
  --max-width: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sage-line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--forest);
  line-height: 1;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--forest-dark); }

@media (max-width: 720px) {
  .main-nav { display: none; }
}

/* ============ BUTTONS ============ */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--forest);
  color: #fff;
  padding: 12px 24px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--forest-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(25, 188, 118, 0.3);
}

.btn-primary:disabled {
  background: #A9BDAE;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-header { padding: 10px 20px; font-size: 14px; }

.btn-large {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  margin-top: 8px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-back { margin-top: 14px; }

/* ============ WIZARD SHELL ============ */
.wizard-shell {
  padding: 56px 20px 40px;
}

.wizard-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--sage-line);
  padding: 40px 36px 36px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 600px) {
  .wizard-card { padding: 28px 20px 24px; border-radius: var(--radius-md); }
}

/* ============ PROGRESS INDICATOR ============ */
.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
}

.progress-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.progress-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.progress-connector {
  flex: 1;
  height: 2px;
  background: var(--sage);
  max-width: 60px;
  margin-bottom: 20px;
  transition: background 0.25s ease;
}

.progress-step.is-active .progress-dot {
  background: var(--forest);
  color: #fff;
}

.progress-step.is-active .progress-label { color: var(--forest-dark); }

.progress-step.is-done .progress-dot {
  background: var(--forest-dark);
  color: #fff;
}

.progress-step.is-done .progress-dot::before {
  content: '\2713';
}

.progress-connector.is-done { background: var(--forest-dark); }

/* ============ PANELS ============ */
.panel {
  display: none;
  animation: panel-in 0.35s ease;
}

.panel.is-active { display: block; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Step 1 hero --- */
.hero-quote {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-headline {
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 28px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

@media (max-width: 560px) {
  .benefit-grid { grid-template-columns: 1fr; }
}

.benefit-card {
  background: var(--paper);
  border: 1px solid var(--sage-line);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}

.benefit-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 8px;
}

.benefit-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.fine-print {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 14px;
}

/* --- Step 2 / 3 shared headings --- */
.panel-heading {
  font-size: clamp(24px, 4vw, 30px);
  margin-bottom: 12px;
}

.panel-sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 26px;
  max-width: 50ch;
}

/* --- Form --- */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-body);
  border: 1.5px solid var(--sage-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.field-input:focus { border-color: var(--forest); outline: none; }
.field-input.is-invalid { border-color: var(--error); }

.field-error {
  color: var(--error);
  font-size: 13px;
  margin-top: 8px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 6px;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--forest);
  flex-shrink: 0;
}

.checkbox-row a { color: var(--forest-dark); }

/* --- Step 3 mini steps --- */
.mini-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 26px;
}

.mini-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.mini-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-steps h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.mini-steps p {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.info-box {
  background: var(--sage);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 24px;
}

.info-box h4 {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--forest-dark);
}

.info-box ul { display: flex; flex-direction: column; gap: 6px; }

.info-box li {
  font-size: 13.5px;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
}

.info-box li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--forest);
}

/* ============ MARKETING SECTIONS ============ */
.marketing-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.section-heading {
  font-size: clamp(24px, 4vw, 32px);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto 40px;
  font-size: 15px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 720px) {
  .how-grid { grid-template-columns: 1fr; }
}

.how-item {
  background: var(--card);
  border: 1px solid var(--sage-line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.how-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  font-weight: 500;
}

.how-item h3 {
  font-size: 17px;
  margin: 10px 0 8px;
}

.how-item p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--sage-line);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--forest);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  font-size: 14px;
  color: var(--ink-soft);
  padding-bottom: 18px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: #C9D3CC;
  padding: 40px 24px 28px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-disclosure {
  font-size: 12.5px;
  line-height: 1.6;
  color: #9FAEA4;
  max-width: 80ch;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #2A3A31;
}

.footer-disclosure strong { color: #C9D3CC; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: #C9D3CC;
  text-decoration: none;
  font-size: 13.5px;
}

.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-copy {
  font-size: 12px;
  color: #6E7D73;
}
