/* =====================================================================
   VidGoals / Minimal SaaS LP
   Palette: warm white + near-black + lime (restricted accent)
   Type: Geist + Geist Mono
   ===================================================================== */

:root {
  --bg:        #FAFAF9;
  --surface:   #FFFFFF;
  --fg:        #0A0A0A;
  --fg-muted:  #525252;
  --muted:     #737373;
  --subtle:    #A3A3A3;
  --border:    #E5E5E5;
  --border-2:  #EDEDEC;
  --accent:      #DC2626;
  --accent-deep: #B91C1C;
  --accent-soft: #FEF2F2;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 64rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow: 0 4px 24px rgba(10, 10, 10, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 4rem;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "ss03", "cv11";
}

/* =========================================================
   Typography
   ========================================================= */

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
}

h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; }
h4 { font-size: 0.875rem; font-weight: 500; }

p { line-height: 1.6; color: var(--fg-muted); }
a { color: inherit; text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--fg); }

::selection { background: var(--accent); color: var(--fg); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  background: var(--accent);
  border-radius: 50%;
}

/* =========================================================
   Layout primitives
   ========================================================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; scroll-margin-top: 4rem; }
section + section { border-top: 1px solid var(--border); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 42rem; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 0.75rem; }
.section-head p { font-size: 1rem; color: var(--muted); max-width: 36rem; }

/* =========================================================
   Nav
   ========================================================= */

nav.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
nav.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  background: var(--fg);
  border-radius: 0.3rem;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.18rem;
  border-radius: 0.15rem;
  background: var(--accent);
  clip-path: polygon(0 60%, 70% 60%, 70% 100%, 0 100%);
}
nav.topbar .links {
  display: none;
  gap: 1.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}
@media (min-width: 760px) { nav.topbar .links { display: flex; } }
nav.topbar .links a:hover { color: var(--fg); }

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  background: var(--accent);
  color: var(--surface);
  border-radius: 0.5rem;
  transition: all 0.15s var(--ease);
  border: 1px solid var(--accent);
  cursor: pointer;
  font-family: var(--sans);
}
.nav-cta:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--surface); transform: translateY(-1px); }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 0.75rem 1.125rem;
  border-radius: 0.625rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.2s var(--ease); font-size: 1rem; line-height: 1; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--surface); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25); }

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--fg); color: var(--fg); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.btn-ghost:hover { color: var(--fg); }

.btn-accent {
  background: var(--accent);
  color: var(--fg);
  border-color: var(--accent);
  font-weight: 600;
}
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--fg); }

/* =========================================================
   HERO §01
   ========================================================= */

.hero {
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  text-align: center;
}

.hero .eyebrow { margin-bottom: 1.5rem; }

.hero h1 {
  max-width: 22ch;
  margin: 0 auto 1.25rem;
}
.hero h1 .accent { color: var(--accent-deep); }

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

.cta-row {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--subtle);
  flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-meta span::before {
  content: "";
  width: 0.25rem;
  height: 0.25rem;
  background: var(--subtle);
  border-radius: 50%;
}

/* Mockup card (hero visual) */
.mockup {
  max-width: 38rem;
  margin: 4rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: left;
  position: relative;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 1.125rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.mockup-header .live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg);
  font-weight: 500;
}
.mockup-header .dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.05); }
}

.mockup-title {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.25rem;
  color: var(--fg);
}
.mockup-sub {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.score-left { display: flex; align-items: baseline; gap: 0.25rem; }
.score-now {
  font-family: var(--mono);
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
}
.score-sep { color: var(--subtle); font-family: var(--mono); }
.score-goal { font-family: var(--mono); font-size: 1rem; color: var(--muted); }
.score-pct {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg);
  padding: 0.25rem 0.5rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 0.375rem;
  font-weight: 500;
}

.bar {
  height: 0.5rem;
  background: var(--border-2);
  border-radius: 0.25rem;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 0.25rem;
  width: 0%;
  transition: width 1.8s var(--ease);
}
.bar.animate .bar-fill { width: var(--progress, 84%); }

.mockup-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-2);
  display: flex;
  gap: 0.5rem;
}
.mockup-input {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.8125rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg);
  color: var(--muted);
}
.mockup-btn {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.55rem 0.9rem;
  background: var(--fg);
  color: var(--surface);
  border-radius: 0.5rem;
  white-space: nowrap;
}

.mockup-reward {
  margin-top: 0.75rem;
  padding: 0.65rem 0.8rem;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.mockup-reward svg { flex-shrink: 0; color: var(--accent-deep); }
.mockup-reward strong { color: var(--fg); font-weight: 500; }

/* =========================================================
   PROBLEM §02
   ========================================================= */

.problem .section-head h2 { max-width: 16ch; }

.pains {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 760px) { .pains { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.pain {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pain:hover { border-color: var(--subtle); transform: translateY(-2px); }

.pain-no {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.875rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 0.3rem;
}
.pain h3 { margin-bottom: 0.5rem; }
.pain p { font-size: 0.9375rem; color: var(--muted); }

/* =========================================================
   HOW IT WORKS §03
   ========================================================= */

.how .steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .how .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.step {
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
}

.step-no {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-deep);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.step-no::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.9375rem; color: var(--muted); margin-bottom: 1.25rem; }

.step-visual {
  margin-top: auto;
  padding: 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.step-visual code { color: var(--fg); font-weight: 500; font-family: var(--mono); }
.step-visual.v2 { gap: 0.75rem; }
.step-visual.v2 .mini-bar { flex: 1; height: 0.375rem; background: var(--border); border-radius: 0.2rem; overflow: hidden; }
.step-visual.v2 .mini-bar i { display: block; height: 100%; background: var(--accent); width: 64%; border-radius: 0.2rem; }
.step-visual.v3 .shared { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.step-visual.v3 .shared span { padding: 0.2rem 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 0.3rem; font-size: 0.6875rem; color: var(--muted); }
.step-visual.v3 .shared span.on { background: var(--fg); color: var(--surface); border-color: var(--fg); }

/* =========================================================
   PREVIEW §04
   ========================================================= */

.preview .section-head h2 { max-width: 20ch; }

.preview-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 860px) { .preview-strip { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 0.75rem; } }

.frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  position: relative;
}
.frame-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: block;
}
.frame h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--fg);
}
.frame p { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }

.arrow-link {
  font-family: var(--mono);
  font-size: 1.125rem;
  color: var(--subtle);
  text-align: center;
  justify-self: center;
  padding: 0.5rem;
}
@media (max-width: 859px) { .arrow-link { transform: rotate(90deg); } }

.frame .mini-form {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--bg);
}
.frame .mini-form span { flex: 1; font-family: var(--mono); font-size: 0.6875rem; color: var(--muted); }
.frame .mini-form b {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  background: var(--fg);
  color: var(--surface);
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
}

.frame .email-card {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
}
.frame .email-card .subj { display: block; color: var(--fg); font-weight: 500; margin: 0.15rem 0; }
.frame .email-card .from { font-size: 0.625rem; color: var(--subtle); }

/* =========================================================
   PRICING §05
   ========================================================= */

.pricing .section-head h2 { max-width: 18ch; }

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.plan:hover { border-color: var(--subtle); transform: translateY(-2px); }

.plan--featured { border-color: var(--fg); }

.plan-name {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.375rem;
}
.plan h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0.75rem 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-2);
}
.plan-price .num {
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
  line-height: 1;
}
.plan-price .per { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }

.plan-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.plan-features li {
  font-size: 0.875rem;
  color: var(--fg-muted);
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.plan-features li::before {
  content: "";
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.05rem;
  background: var(--accent-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 5.5l2 2 4-4' stroke='%23B91C1C' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.plan .btn { width: 100%; justify-content: center; }

/* =========================================================
   WHO §06
   ========================================================= */

.who { text-align: center; }
.who .container { max-width: 48rem; }
.who blockquote {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1rem;
}
.who cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 40rem;
  margin: 0 auto;
}

/* =========================================================
   FAQ §07
   ========================================================= */

.faq .section-head h2 { max-width: 16ch; }
.faq .qs {
  max-width: 42rem;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.125rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  padding-right: 0.25rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 48rem;
}
.faq .answer a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* =========================================================
   CTA FINAL §08
   ========================================================= */

.cta-final { text-align: center; }
.cta-final .container { max-width: 42rem; }
.cta-final .eyebrow { margin-bottom: 1.25rem; justify-content: center; }
.cta-final h2 { margin-bottom: 0.75rem; max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-final p { font-size: 1rem; color: var(--muted); max-width: 32rem; margin: 0 auto 2rem; }
.cta-final .meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--subtle);
  flex-wrap: wrap;
}

/* =========================================================
   MODAL
   ========================================================= */

.modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 38rem;
  width: calc(100% - 2rem);
  margin: auto;
  overflow: visible;
}
.modal::backdrop {
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal[open] { animation: modalIn 0.28s var(--ease); }
.modal[open]::backdrop { animation: backdropIn 0.28s var(--ease); }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 24px 60px rgba(10, 10, 10, 0.2);
  position: relative;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s var(--ease);
  font-family: var(--sans);
}
.modal-close:hover { background: var(--fg); color: var(--surface); border-color: var(--fg); }

.modal-header { margin-bottom: 1.5rem; padding-right: 2.5rem; }
.modal-header .eyebrow { margin-bottom: 0.75rem; }
.modal-header h2 { font-size: 1.375rem; line-height: 1.2; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.modal-header p { font-size: 0.9375rem; color: var(--muted); line-height: 1.5; }

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg);
}
.field label .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.75rem;
  margin-left: 0.35rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.9375rem;
  padding: 0.65rem 0.8rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  -webkit-appearance: none;
  appearance: none;
  letter-spacing: -0.005em;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--fg);
  background: var(--surface);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--subtle); }
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23737373' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}
.field textarea { min-height: 4.5rem; resize: vertical; line-height: 1.5; font-family: var(--sans); }

.field-radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.field-radios label {
  position: relative;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--fg-muted);
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.field-radios label:hover { border-color: var(--subtle); }
.field-radios input { position: absolute; opacity: 0; pointer-events: none; }
.field-radios label:has(input:checked) {
  background: var(--fg);
  color: var(--surface);
  border-color: var(--fg);
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-2);
  justify-content: space-between;
  flex-wrap: wrap;
}
.form-foot .fineprint { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.form-foot .btn-primary { padding: 0.75rem 1.25rem; }

.form-msg {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.125rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  color: var(--fg);
  line-height: 1.55;
}
.form-msg.show { display: block; }
.form-msg.error { background: #FEF2F2; border-color: #FCA5A5; color: #7F1D1D; }
.form-msg strong { display: block; font-weight: 600; margin-bottom: 0.2rem; }

/* =========================================================
   Footer
   ========================================================= */

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
footer a:hover { color: var(--fg); }

/* =========================================================
   Motion
   ========================================================= */

.fade-up { opacity: 0; transform: translateY(8px); animation: fadeUp 0.7s var(--ease) forwards; }
.fade-up.d0 { animation-delay: 0ms; }
.fade-up.d1 { animation-delay: 80ms; }
.fade-up.d2 { animation-delay: 160ms; }
.fade-up.d3 { animation-delay: 240ms; }
.fade-up.d4 { animation-delay: 320ms; }
.fade-up.d5 { animation-delay: 400ms; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .bar-fill { width: var(--progress, 84%) !important; }
  .fade-up, .reveal { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1; justify-content: center; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn-primary { width: 100%; justify-content: center; }
}
