/* thresho brand tokens — hexes match docs/thresho/company/brand/COLOR_SYSTEM.md */
:root {
  /* Core palette */
  --goldfish:     #F34723;  /* Chinese Goldfish */
  --antique-ruby: #841B2D;
  --burgundy:     #841B2D;  /* alias — prefer --antique-ruby */
  --basmati:      #EBE1C9;  /* Basmati White */
  --chalk:        #F6F4F1;  /* White Chalk */
  --surf:         #AEC3C4;  /* Dover Surf */
  --celestial:    #0A2538;  /* Celestial Canvas */

  /* Semantic */
  --foreground: #0A2538;
  --fg-80:      rgba(10, 37, 56, 0.82);
  --fg-muted:   #4A5560;
  --bg:         #F6F4F1;
  --bg-alt:     #EBE1C9;
  --card:       #FFFFFF;
  --input:      #D9D3C6;
  --input-hover:#B7AD97;
  --border:     rgba(174, 195, 196, 0.4);

  /* Alpha */
  --alpha-focus-ring: rgba(243, 71, 35, 0.45);

  /* Type */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Manrope', system-ui, sans-serif;

  /* Spacing */
  --radius:     6px;
  --radius-sm:  4px;
  --page-max:   1440px;
  --content:    1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Typography */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; margin: 0; }
h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.022em;
}
h2 {
  font-size: clamp(30px, 3.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
p { margin: 0; color: var(--fg-80); }

/* Container */
.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 88px);
}

/* Site header — logo top-left per LOGO.md */
.site-header {
  padding: clamp(20px, 2.5vw, 28px) 0;
}
.site-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  transition: opacity 150ms ease;
}
.logo:hover,
.footer-logo:hover { opacity: 0.8; }
.logo:focus-visible,
.footer-logo:focus-visible {
  outline: 2px solid var(--alpha-focus-ring);
  outline-offset: 4px;
  border-radius: 2px;
}
.logo-img {
  display: block;
  height: clamp(28px, 2.4vw, 34px);
  width: auto;
}
.footer-logo .logo-img { height: 26px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 16px; font-weight: 600;
  padding: 16px 28px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 150ms ease-in-out;
  line-height: 1;
  letter-spacing: 0.005em;
}
.btn--primary {
  background: var(--goldfish);
  color: var(--chalk);
  white-space: nowrap;
}
.btn--primary:hover { opacity: 0.88; }
.btn--primary:focus-visible {
  outline: 2px solid var(--alpha-focus-ring);
  outline-offset: 3px;
}
.btn--primary:disabled { opacity: 0.55; cursor: not-allowed; }

.btn--secondary {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--foreground);
  white-space: nowrap;
}
.btn--secondary:hover { background: var(--foreground); color: var(--chalk); }
.btn--secondary:focus-visible {
  outline: 2px solid var(--alpha-focus-ring);
  outline-offset: 3px;
}

/* Hero */
.hero {
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: clamp(72px, 10vw, 128px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
}

/* Film plinth — clean framing, no cream backing. Shadow does the lift. */
.film-plinth {
  max-width: 484px;
  transition: max-width 200ms ease;
}
@media (max-width: 1023px) {
  /* Single-column layout — center the film in the viewport */
  .film-plinth { margin-left: auto; margin-right: auto; }
}
@media (max-width: 639px) {
  /* Film is the emotional anchor on mobile — give it real presence */
  .film-plinth { max-width: 360px; }
}
.film-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 32px 80px -32px rgba(10, 37, 56, 0.42),
    0 8px 24px -8px rgba(10, 37, 56, 0.14);
}
.film-frame video, .film-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.film-controls {
  position: absolute; bottom: 12px; right: 12px;
  display: flex; gap: 6px; z-index: 3;
}
.film-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(28, 36, 51, 0.78);
  color: var(--chalk);
  border: 1px solid rgba(246, 244, 241, 0.25);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  backdrop-filter: blur(6px);
  transition: background 150ms ease;
}
.film-btn:hover { background: rgba(28, 36, 51, 0.95); }
.film-btn svg { width: 16px; height: 16px; }
.film-caption {
  position: absolute; left: 12px; right: 76px; bottom: 14px;
  font-family: var(--font-sans); font-size: 13px; color: var(--chalk);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  pointer-events: none; line-height: 1.35;
  z-index: 2;
  transition: opacity 200ms;
}

/* Hero copy column */
.hero-copy { max-width: 620px; }
.hero-copy .eyebrow { margin-bottom: clamp(18px, 2.5vw, 28px); display: block; }
.hero-copy h1 { margin-bottom: clamp(20px, 2.5vw, 28px); }
.hero-copy .sub {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.45;
  color: var(--fg-80);
  margin-bottom: clamp(24px, 3vw, 40px);
  max-width: 540px;
}
.hero-copy .reviewed {
  margin-top: 14px;
  font-size: 14px;
  color: var(--fg-muted);
}

/* Promise strip */
.promise {
  background: var(--bg-alt);
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(64px, 9vw, 128px);
}
.promise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
  max-width: 1080px;
}
@media (min-width: 1024px) {
  .promise-grid {
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    align-items: start;
  }
}
.promise .eyebrow { display: block; margin-bottom: 20px; }
.promise p {
  font-size: clamp(15px, 1.2vw, 16px);
  max-width: 65ch;
  color: var(--fg-80);
  line-height: 1.6;
}

/* Founder letter — inverted against Celestial Canvas. The page's one dark moment. */
.letter {
  background: var(--celestial);
  color: var(--chalk);
  padding-top: clamp(96px, 11vw, 144px);
  padding-bottom: clamp(96px, 11vw, 144px);
}
.letter-body { max-width: 640px; }
.letter .eyebrow {
  display: block;
  margin-bottom: clamp(22px, 3vw, 32px);
  color: var(--basmati);
}
.letter .lead {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.28;
  color: var(--chalk);
  font-weight: 500;
  letter-spacing: -0.012em;
  margin-bottom: 28px;
}
.letter p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(246, 244, 241, 0.85);
  margin-bottom: 18px;
  max-width: 620px;
}
.letter .signoff {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--chalk);
  margin-top: 32px;
}

/* Proof — the three things worth saying before the form. */
.proof {
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.proof-rows {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.proof-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: clamp(22px, 2.8vw, 32px) 0;
  border-bottom: 1px solid var(--border);
}
.proof-row:first-child { padding-top: 0; }
.proof-row:last-child { border-bottom: 0; padding-bottom: 0; }
.proof-key {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--foreground);
}
.proof-val {
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--fg-80);
  line-height: 1.55;
  max-width: 60ch;
}

/* Objections — three questions on Basmati cream. The tonal break before the form. */
.objections {
  background: var(--bg-alt);
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(64px, 9vw, 128px);
}
.objections-body { max-width: 720px; }
.objections .eyebrow { display: block; margin-bottom: clamp(18px, 2.4vw, 28px); }
.objections-heading {
  margin-bottom: clamp(28px, 3.5vw, 44px);
  max-width: 18ch;
}
.obj-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.obj-item {
  padding: clamp(22px, 2.6vw, 28px) 0;
  border-top: 1px solid var(--border);
}
.obj-item:last-child { border-bottom: 1px solid var(--border); }
.obj-item dt,
.obj-q {
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.008em;
  color: var(--foreground);
  margin: 0 0 10px;
}
.obj-item dd,
.obj-a {
  margin: 0;
  font-size: 16px;
  line-height: 1.58;
  color: var(--fg-80);
  max-width: 58ch;
}

/* Form */
.apply {
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 128px);
  scroll-margin-top: 20px;
}
.apply h2 { margin-bottom: 14px; }
.apply .sub {
  color: var(--fg-muted);
  margin-bottom: 44px;
  max-width: 520px;
}
.form { max-width: 560px; }

/* 3-step form progress */
.form-progress {
  margin-bottom: 36px;
  max-width: 560px;
}
.form-progress .progress-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 10px;
}
.form-progress .progress-bar {
  height: 3px;
  background: var(--input);
  border-radius: 2px;
  overflow: hidden;
}
.form-progress .progress-fill {
  height: 100%;
  width: 33.333%;
  background: var(--foreground);
  transition: width 300ms ease-out;
}

.form-step[hidden] { display: none; }

.form-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.form-nav .btn { padding: 16px 32px; }
@media (max-width: 639px) {
  .form-nav { flex-direction: column-reverse; align-items: stretch; }
  .form-nav .btn { width: 100%; }
}

/* Reveal field (shown when "Other" selected) */
.reveal-field[hidden] { display: none; }
.reveal-field {
  margin-top: -4px;
  margin-bottom: 20px;
}

.field { margin-bottom: 20px; }
.field label, .field legend {
  display: block;
  font-size: 14px; font-weight: 600;
  color: var(--foreground);
  margin-bottom: 6px;
  letter-spacing: 0.005em;
}
.field .hint { font-size: 12px; font-weight: 400; color: var(--fg-muted); margin-left: 4px; }
.field .req { color: var(--antique-ruby); margin-left: 2px; font-weight: 700; }
.field-hint {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fg-muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; padding-top: 12px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B6358' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--input-hover); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--goldfish);
  box-shadow: 0 0 0 3px var(--alpha-focus-ring);
}
.field.err input, .field.err select, .field.err textarea { border-color: var(--antique-ruby); }
.field .err-msg {
  display: none; margin-top: 6px;
  font-size: 12px; color: var(--antique-ruby);
}
.field.err .err-msg { display: block; }

/* Radio groups */
.radio-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.radio-opt {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  font-size: 15px;
  transition: border-color 150ms ease, background 150ms ease;
  min-height: 44px;
}
.radio-opt:hover { border-color: var(--input-hover); }
.radio-opt input { accent-color: var(--goldfish); margin: 0; }
.radio-opt.checked { border-color: var(--goldfish); background: rgba(243, 71, 35, 0.08); }

/* Progressive reveal divider */
.divider {
  position: relative;
  height: 1px;
  background: var(--input);
  margin: 36px 0 28px;
}
.divider span {
  position: absolute; top: -9px; left: 0;
  background: var(--bg);
  padding-right: 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
}

.form-error {
  margin-top: 16px;
  max-width: 520px;
  font-size: 14px;
  color: var(--antique-ruby);
  line-height: 1.45;
  min-height: 0;
}
.form-error:empty { display: none; }
.form-error-msg {
  margin: 0 0 12px;
  color: var(--antique-ruby);
  font-size: 14px;
  line-height: 1.5;
}
.form-error-btn {
  display: inline-flex;
  padding: 12px 20px;
  font-size: 14px;
  text-decoration: none;
}

.submit-row {
  margin-top: 36px;
  display: flex; justify-content: flex-start;
}
.submit-row .btn { padding: 16px 44px; }
@media (max-width: 639px) {
  .submit-row .btn { width: 100%; }
  .submit-row { display: block; }
}

/* Success state */
.success {
  max-width: 560px;
  border-top: 1px solid var(--foreground);
  padding-top: 36px;
  animation: fadeIn 400ms ease-out;
}
.success .eyebrow { display: block; margin-bottom: 20px; }
.success h2 { margin-bottom: 20px; }
.success p { font-size: 16px; line-height: 1.55; margin-bottom: 14px; max-width: 520px; }
.success .fine { color: var(--fg-muted); font-size: 13px; }
.success .fine-strong { color: var(--foreground); font-weight: 500; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
  background: var(--celestial);
  color: var(--chalk);
  padding: 36px 0;
}
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  font-size: 14px;
}
.footer .wordmark {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--chalk);
  letter-spacing: -0.01em;
}
.footer .center { color: rgba(246, 244, 241, 0.7); }
.footer .links { display: flex; gap: 14px; }
.footer .links a { color: rgba(246, 244, 241, 0.85); text-decoration: none; }
.footer .links a:visited { color: rgba(246, 244, 241, 0.65); }
.footer .links a:hover { color: var(--chalk); text-decoration: underline; }
@media (max-width: 639px) {
  .footer-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0s !important; transition-duration: 0s !important; }
  html { scroll-behavior: auto; }
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--foreground); color: var(--chalk);
  padding: 10px 14px; border-radius: var(--radius);
  font-size: 13px; text-decoration: none; z-index: 999;
}
.skip-link:focus { left: 8px; }
