/* ==========================================================================
   Pour Decisions: warm sunset palette, mobile first.
   ========================================================================== */

:root {
  --navy-900: #0b1529;
  --navy-800: #0e1a33;
  --navy-700: #16274a;
  --navy-600: #24365e;
  --coral-500: #ff7a5c;
  --coral-400: #ff9478;
  --coral-600: #e8603f;
  --gold-400: #f6c453;
  --gold-300: #f9d77f;
  --cream-50: #fffaf3;
  --cream-100: #fdf1e3;
  --ink: #1a2238;
  --ink-soft: #4a5370;
  --line: #ead9c6;
  --error: #b42318;
  --error-bg: #fef1ef;
  --success: #1f7a4d;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(11 21 41 / 6%), 0 8px 28px rgb(11 21 41 / 8%);
  --focus: 0 0 0 3px var(--cream-50), 0 0 0 6px var(--coral-600);
  --gutter: 20px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--coral-600); text-underline-offset: 3px; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold-400);
  color: var(--navy-900);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: 720px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgb(14 26 51 / 88%);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 6%);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream-50);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-mark { width: 26px; height: 26px; color: var(--coral-500); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--coral-500);
  --btn-fg: var(--navy-900);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--coral-400); }
.btn:active { transform: translateY(1px); }
.btn-primary { box-shadow: 0 6px 20px rgb(255 122 92 / 35%); }
.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream-50);
  border: 1.5px solid rgb(255 255 255 / 35%);
}
.btn-ghost:hover { background: rgb(255 255 255 / 10%); }
.btn-link {
  --btn-bg: transparent;
  --btn-fg: var(--cream-50);
  padding: 0 12px;
  text-decoration: underline;
  text-decoration-color: var(--gold-400);
  text-underline-offset: 5px;
}
.btn-link:hover { background: transparent; color: var(--gold-300); }
.site-header .btn:focus-visible,
.hero .btn:focus-visible { box-shadow: 0 0 0 3px var(--navy-800), 0 0 0 6px var(--gold-400); }

/* Loading state */
.spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgb(11 21 41 / 25%);
  border-top-color: var(--navy-900);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream-50);
  background:
    radial-gradient(120% 70% at 50% 100%, #ff8a5c 0%, rgb(255 138 92 / 0%) 60%),
    linear-gradient(180deg, var(--navy-800) 0%, #2a2d5a 45%, #8a3f5c 78%, #e2694f 100%);
  padding: 56px 0 120px;
}
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute;
  left: 50%;
  bottom: -46vw;
  width: min(92vw, 420px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--gold-300) 0%, var(--gold-400) 35%, var(--coral-500) 75%);
  opacity: 0.5;
  filter: blur(0.5px);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.waves {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 70px;
  fill: var(--cream-50);
}
.hero-content { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 18%);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gold-300);
}
.hero h1 {
  font-size: clamp(2.35rem, 10.5vw, 4.25rem);
  max-width: 14ch;
  margin-bottom: 18px;
}
.hero-pitch {
  font-size: 1.075rem;
  max-width: 38ch;
  color: rgb(255 250 243 / 92%);
  margin-bottom: 28px;
  text-shadow: 0 1px 12px rgb(11 21 41 / 35%);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
  font-size: 0.875rem;
  color: rgb(255 250 243 / 92%);
}
.hero-note svg { width: 18px; height: 18px; color: var(--gold-300); flex: none; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tint { background: var(--cream-100); }
.kicker {
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-600);
}
.lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 56ch; }

/* Steps */
.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.step {
  position: relative;
  padding: 24px 22px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--coral-500));
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.step p { color: var(--ink-soft); margin: 0; }

.callout {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold-400);
  border-radius: 10px;
  background: #fff8e6;
  color: var(--ink);
  font-size: 0.95rem;
}

/* Chips */
.chips {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy-700);
}
.chips li::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--coral-500);
  vertical-align: 1px;
}
.chips li:nth-child(3n+2)::before { background: var(--gold-400); }
.chips li:nth-child(3n)::before { background: var(--navy-600); }

/* ---------- Form ---------- */
.form-card {
  margin-top: 24px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-hint { font-size: 0.875rem; color: var(--ink-soft); }
.req { color: var(--coral-600); font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-soft); font-size: 0.875rem; }

.field { margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; gap: 0 16px; }

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
input, select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #cfc3b4;
  border-radius: 12px;
  background: var(--cream-50);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body); /* 16px avoids iOS zoom on focus */
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
input[type="date"] { min-height: 50px; display: block; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%2316274a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8a8fa3; }
input:hover, select:hover, textarea:hover { border-color: #a99a88; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--coral-600);
  background: #fff;
  box-shadow: 0 0 0 4px rgb(232 96 63 / 22%);
  border-radius: 12px;
}
[aria-invalid="true"] {
  border-color: var(--error);
  background: var(--error-bg);
}

.field-help { margin: 6px 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.counter { text-align: right; }
.counter.near-limit { color: var(--coral-600); font-weight: 600; }
.field-error {
  margin: 6px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--error);
}
.field-error:empty { display: none; }

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.turnstile { margin: 4px 0 18px; min-height: 0; }
.turnstile:not(:empty) { min-height: 65px; }

.form-status {
  margin: 16px 0 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.form-status:empty { display: none; }
.form-status.is-error {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #f5c2bb;
}
.form-status.is-loading { color: var(--ink-soft); }

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

/* Success */
.success { text-align: center; padding: 16px 4px 8px; }
.success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  color: var(--success);
  animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.success h3 { font-size: 1.6rem; }
.success h3:focus { outline: none; box-shadow: none; }
.success p { color: var(--ink-soft); }
.success .preview-note {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  background: #fff8e6;
  border: 1px solid var(--gold-400);
  color: var(--ink);
  font-size: 0.875rem;
}
.success .preview-note[hidden] { display: none; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 20px; display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -8px;
  border-right: 2px solid var(--coral-600);
  border-bottom: 2px solid var(--coral-600);
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin-top 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:focus-visible { border-radius: var(--radius); box-shadow: inset 0 0 0 3px var(--coral-600); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgb(255 250 243 / 78%);
  padding: 48px 0 calc(40px + env(safe-area-inset-bottom));
  font-size: 0.9rem;
  text-align: center;
}
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--cream-50); margin-bottom: 4px; }
.footer-tag { margin-bottom: 18px; }
.footer-links {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}
.footer-links a { color: var(--gold-300); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer a:focus-visible { box-shadow: 0 0 0 3px var(--navy-900), 0 0 0 6px var(--gold-400); }
.responsibly {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 16px;
  border: 1px solid rgb(246 196 83 / 45%);
  border-radius: 999px;
  color: var(--gold-300);
  font-weight: 600;
}
.legal { max-width: 52ch; margin: 0 auto 8px; font-size: 0.8rem; color: rgb(255 250 243 / 70%); }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .sun { bottom: -120px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 36px 36px 28px; }
  .hero { padding: 88px 0 150px; }
  .waves { height: 100px; }
}

@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .hero { padding: 120px 0 180px; }
  .hero-pitch { font-size: 1.2rem; }
  .sun { left: 74%; bottom: 60px; width: 440px; opacity: 0.7; }
}

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