/* KidsHost landing — production stylesheet */
/* Tokens from DESIGN.md — do not deviate without approval */

:root {
  --primary: #2D6A4F;
  --primary-light: #40916C;
  --accent: #E07A5F;
  --accent-dark: #C75D43;
  --surface: #FAFAF5;
  --surface-raised: #FFFFFF;
  --text: #1B1B18;
  --muted: #8C8C7A;
  --border: #E8E8E0;
  --error: #E76F51;
  --success: #40916C;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(27, 27, 24, 0.06), 0 2px 6px rgba(27, 27, 24, 0.04);
  --shadow-md: 0 4px 12px rgba(27, 27, 24, 0.08), 0 2px 4px rgba(27, 27, 24, 0.05);
  --shadow-lg: 0 12px 32px rgba(27, 27, 24, 0.12), 0 4px 8px rgba(27, 27, 24, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(45,106,79,0.04), transparent 35%),
    radial-gradient(circle at 88% 82%, rgba(224,122,95,0.04), transparent 40%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Header ─────────────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(16px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark--accent { color: var(--accent); }

@media (max-width: 480px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 12px;
  }
}

.launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: var(--surface-raised);
  border: 1px solid var(--primary);
  border-radius: 9999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.launch-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(224,122,95,0.2);
}

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  max-width: 880px;
  margin: 32px auto 0;
  padding: 24px clamp(16px, 4vw, 48px) 64px;
  text-align: center;
}

.hero-quote {
  margin: 0;
  padding: 0;
}
.hero-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

@media (max-width: 480px) {
  .hero {
    padding: 12px 16px 36px;
    margin-top: 16px;
  }
  .hero-quote p {
    line-height: 1.22;
  }
}

/* Trust-grid asymmetric stagger (mitigates "perfect 3-column AI-grid" feel) */
@media (min-width: 720px) {
  .trust-card:nth-child(2) { margin-top: 28px; }
  .trust-card:nth-child(3) { margin-top: 10px; }
}

/* Entrance motion — subtle fade-up when section enters viewport.
   Only hides when JS has loaded and motion is allowed; without JS or with
   reduced-motion, sections stay fully visible (no flash of invisible text). */
@media (prefers-reduced-motion: no-preference) {
  body.js-enabled .fade-in-up:not(.is-visible) {
    opacity: 0;
    transform: translateY(12px);
  }
  body.js-enabled .fade-in-up {
    transition: opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1),
                transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: opacity, transform;
  }
}
.hero-quote p em {
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
}
.hero-quote footer {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  font-family: var(--font-body);
  font-style: normal;
}
.hero-quote cite { font-style: normal; font-weight: 500; }

/* ── Form ───────────────────────────────────────────────────────── */

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 40px auto 0;
  padding: 24px;
  max-width: 560px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: left;
}

.waitlist-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: none;
  padding: 0;
  margin: 0;
}
.waitlist-form__field label,
.waitlist-form__field legend {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}

/* Postcode chip group */

.postcode-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 6px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
  text-align: center;
  min-height: 64px;
}
.chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.chip:hover {
  border-color: var(--primary-light);
  background: rgba(45,106,79,0.04);
}
.chip.is-checked {
  border-color: var(--primary);
  background: rgba(45,106,79,0.08);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}
.chip:focus-within {
  box-shadow: 0 0 0 3px rgba(45,106,79,0.25);
}
.chip__code {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.05;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.chip__area {
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
  margin-top: 4px;
}
.chip.is-checked .chip__code { color: var(--primary); }
.chip.is-checked .chip__area { color: var(--primary-light); }

@media (max-width: 480px) {
  .postcode-chips { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .chip { padding: 10px 2px; min-height: 56px; }
  .chip__code { font-size: 14px; }
  .chip__area { font-size: 10px; }
}

.waitlist-form select,
.waitlist-form input {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
.waitlist-form select:focus,
.waitlist-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.15);
}

.phone-input {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.phone-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.15);
}
.phone-input--valid {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(64,145,108,0.15);
}
.phone-input--invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(231,111,81,0.15);
}
.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(45,106,79,0.05);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.phone-input input {
  border: none;
  background: transparent;
  flex: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.phone-input input:focus { box-shadow: none; }
.phone-validity {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.phone-input--valid .phone-validity::after {
  content: "✓";
  color: var(--success);
}
.phone-input--invalid .phone-validity::after {
  content: "!";
  color: var(--error);
}
.phone-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.cta-primary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 150ms ease, transform 100ms ease, opacity 150ms ease;
  white-space: nowrap;
}
.cta-primary:hover { background: var(--accent-dark); }
.cta-primary:active { transform: translateY(1px); }
.cta-primary[disabled],
.cta-primary:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.cta-primary[disabled]:hover,
.cta-primary:disabled:hover {
  background: var(--border);
}
.cta-primary[data-loading="1"] {
  opacity: 0.7;
  cursor: progress;
}

.form-status {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 14px;
  min-height: 20px;
  color: var(--muted);
}
.form-status--success { color: var(--success); font-weight: 500; }
.form-status--error { color: var(--error); }

/* ── Section heading ────────────────────────────────────────────── */

.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 40px;
  color: var(--text);
}

/* ── Trust grid ─────────────────────────────────────────────────── */

.trust-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px clamp(16px, 4vw, 48px);
}

.trust-grid__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-card {
  text-align: center;
  padding: 24px 16px;
}
.trust-card__icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--primary);
}
.trust-card__icon svg { width: 100%; height: 100%; }
.trust-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.trust-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 720px) {
  .trust-grid__columns { grid-template-columns: 1fr; gap: 16px; }
}

/* ── How it works ───────────────────────────────────────────────── */

.how-it-works {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px clamp(16px, 4vw, 48px);
}

.how-it-works__path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.how-it-works__path::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 16%;
  right: 16%;
  height: 2px;
  background-image: linear-gradient(to right, var(--primary) 50%, transparent 50%);
  background-size: 12px 2px;
  background-repeat: repeat-x;
  z-index: 0;
  opacity: 0.5;
}

.step {
  position: relative;
  text-align: center;
  z-index: 1;
}
.step__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-sm);
}
.step__illus {
  display: inline-flex;
  width: 96px;
  height: 96px;
  color: var(--primary);
  margin-bottom: 16px;
}
.step__illus svg { width: 100%; height: 100%; }
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--text);
}
.step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .how-it-works__path { grid-template-columns: 1fr; gap: 32px; }
  .how-it-works__path::before { display: none; }
}

/* ── Stories: postcards + corkboard ─────────────────────────────── */

.stories {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px clamp(16px, 4vw, 48px);
}

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

.postcard {
  position: relative;
  background: var(--surface-raised);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform 200ms ease;
}
.postcard:hover { transform: translateY(-2px) rotate(0) !important; }
.postcard--rotate-left { transform: rotate(-1.5deg); }
.postcard--rotate-right { transform: rotate(1deg); }

.postcard h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--text);
}
.postcard p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 12px;
}
.postcard__sign {
  font-style: italic;
  color: var(--muted) !important;
  font-size: 13px !important;
  margin: 0 !important;
}

.postmark {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border: 2px dashed var(--accent);
  color: var(--accent);
  border-radius: 4px;
  transform: rotate(8deg);
  background: var(--surface);
}
.postmark--new { border-color: var(--primary); color: var(--primary); }
.postmark--valued { border-color: var(--accent-dark); color: var(--accent-dark); transform: rotate(-6deg); }

@media (max-width: 720px) {
  .postcards { grid-template-columns: 1fr; }
  .postcard--rotate-left, .postcard--rotate-right { transform: rotate(0); }
}

/* Cork board */

.corkboard {
  background: var(--primary);
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.06), transparent 50%),
    radial-gradient(circle at 75% 80%, rgba(255,255,255,0.04), transparent 50%);
  border-radius: var(--radius-md);
  padding: 32px clamp(16px, 3vw, 32px);
  border: 8px solid #6b4423;
  box-shadow: var(--shadow-lg), inset 0 0 60px rgba(0,0,0,0.15);
}

.corkboard__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-align: center;
  color: #fff;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
  font-style: italic;
}

.corkboard__notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.note {
  position: relative;
  background: #FFFEF7;
  padding: 16px 14px 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  box-shadow: var(--shadow-md), 0 8px 16px rgba(0,0,0,0.12);
  border-radius: 2px;
}
.note::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-dark));
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.note p { margin: 0 0 8px; }
.note__sign {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
}
.note--rotate-1 { transform: rotate(-2deg); }
.note--rotate-2 { transform: rotate(1.5deg); }
.note--rotate-3 { transform: rotate(-0.5deg); }

/* ── Footer ─────────────────────────────────────────────────────── */

.site-footer {
  background: rgba(45,106,79,0.08);
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer__email { color: var(--primary); font-weight: 500; }
.launch-pill--footer {
  font-size: 12px;
  padding: 4px 10px;
}
