/* DotKid — warm, calm, premium wellness aesthetic. Soft colors, serif headlines,
   generous spacing. Deliberately NOT tech/AI-looking. */

:root {
  --cream: #FBF6EE;
  --paper: #FFFFFF;
  --ink: #33302B;
  --soft-ink: #6E685E;
  --sage: #7C9885;
  --sage-deep: #4E6B5A;
  --sage-tint: #EAF0EA;
  --clay: #C8765C;
  --clay-deep: #B25E45;
  --clay-soft: #F5E5DD;
  --gold: #E0B468;
  --line: #ECE4D6;
  --shadow: 0 18px 50px rgba(78, 107, 90, 0.10);
  --shadow-soft: 0 8px 24px rgba(51, 48, 43, 0.06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1040px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* soft warm decorative wash behind the hero */
.wash {
  position: absolute;
  top: -260px; left: 50%;
  width: 1200px; height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(224, 180, 104, 0.18), transparent 70%) 30% 30%/600px 600px no-repeat,
    radial-gradient(closest-side, rgba(124, 152, 133, 0.20), transparent 70%) 72% 18%/640px 640px no-repeat,
    radial-gradient(closest-side, rgba(200, 118, 92, 0.12), transparent 70%) 55% 55%/620px 620px no-repeat;
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.wrap.narrow { max-width: 720px; }

/* ── header ── */
.site-head { padding: 26px 0 6px; position: relative; z-index: 2; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -0.3px;
  color: var(--sage-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
}
.brand.small { font-size: 19px; }
.brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--clay); box-shadow: 0 0 0 4px var(--clay-soft);
}
.head-tag { color: var(--soft-ink); font-size: 13.5px; font-weight: 600; letter-spacing: 0.2px; }

/* ── hero ── */
.hero { padding: 64px 0 40px; text-align: center; }
.hero-inner { max-width: 820px; margin: 0 auto; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 2.5px; font-size: 12.5px; font-weight: 700;
  color: var(--clay-deep); margin-bottom: 22px;
}
h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5.4vw, 54px);
  line-height: 1.12; letter-spacing: -0.5px; color: var(--ink); margin-bottom: 26px;
}
.lede {
  font-size: clamp(17px, 2.2vw, 20px); color: var(--soft-ink); max-width: 640px;
  margin: 0 auto 34px; line-height: 1.7;
}
.lede em { color: var(--ink); font-style: italic; }
.hero-reassure { margin-top: 18px; color: var(--soft-ink); font-size: 14px; font-weight: 600; letter-spacing: 0.2px; }

/* ── buttons ── */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 17px;
  text-decoration: none; cursor: pointer; border: none; border-radius: 999px;
  padding: 16px 34px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 10px 26px rgba(200, 118, 92, 0.32); }
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(200, 118, 92, 0.38); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ── sections ── */
.section { padding: 64px 0; position: relative; z-index: 1; }
.section-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.2; letter-spacing: -0.4px; color: var(--ink); margin-bottom: 14px;
}
.section-title.center { text-align: center; }
.section-sub { color: var(--soft-ink); font-size: 17px; max-width: 600px; margin-bottom: 8px; }
.alone .section-sub { margin-bottom: 34px; }

/* ── challenge cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 22px; font-family: var(--sans); color: var(--ink);
  box-shadow: var(--shadow-soft); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #E0D4BE; }
.card.is-selected { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-tint), var(--shadow-soft); }
.card-mark { font-size: 26px; line-height: 1; flex-shrink: 0; }
.card-text { font-size: 16.5px; font-weight: 600; line-height: 1.45; }
.cards-hint { text-align: center; color: var(--soft-ink); font-size: 14.5px; margin-top: 22px; }

/* ── share card ── */
.share { background:
    linear-gradient(180deg, transparent, rgba(124, 152, 133, 0.06) 40%, rgba(124, 152, 133, 0.06));
}
.share-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(26px, 4vw, 46px); box-shadow: var(--shadow);
}
.field { margin-bottom: 24px; border: none; }
.label { display: block; font-weight: 700; font-size: 15.5px; color: var(--ink); margin-bottom: 12px; }
.optional { color: var(--soft-ink); font-weight: 600; }
.ages { display: flex; flex-wrap: wrap; gap: 10px; }
.age {
  cursor: pointer; font-family: var(--sans); font-weight: 700; font-size: 15px;
  background: var(--cream); color: var(--ink); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 11px 20px; transition: all .14s ease;
}
.age:hover { border-color: var(--sage); }
.age.is-selected { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
textarea, input[type=email] {
  width: 100%; font-family: var(--sans); font-size: 16.5px; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 15px 17px; resize: vertical; line-height: 1.6;
}
textarea::placeholder, input::placeholder { color: #A79E8E; }
textarea:focus, input:focus { outline: none; border-color: var(--sage); background: #fff; box-shadow: 0 0 0 3px var(--sage-tint); }
.hint { color: var(--soft-ink); font-size: 13.5px; margin-top: 8px; }
.form-error { color: var(--clay-deep); font-weight: 700; font-size: 14.5px; margin-bottom: 14px; background: var(--clay-soft); padding: 12px 15px; border-radius: 12px; }
.form-reassure { text-align: center; color: var(--soft-ink); font-size: 14px; font-weight: 600; margin-top: 16px; }

/* ── thank you ── */
#thanksView { text-align: center; padding: 14px 0; }
.thanks-mark { font-size: 56px; margin-bottom: 10px; }
.thanks-soft { color: var(--soft-ink); font-style: italic; margin-top: 16px; }
#thanksView .section-sub { margin: 0 auto; }

/* ── trust ── */
.trust { padding-bottom: 72px; }
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin: 36px 0 32px; }
.promise { text-align: center; padding: 8px; }
.promise-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%; background: var(--sage-tint);
  font-size: 27px; margin-bottom: 14px;
}
.promise h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.promise p { color: var(--soft-ink); font-size: 15px; }
.trust-close {
  text-align: center; color: var(--soft-ink); font-size: 16px; max-width: 600px;
  margin: 0 auto; line-height: 1.7; font-style: italic;
}

/* ── footer ── */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; text-align: center; }
.site-foot .brand { margin-bottom: 8px; }
.site-foot p { color: var(--soft-ink); font-size: 14.5px; }

@media (max-width: 560px) {
  .head-tag { display: none; }
  .hero { padding-top: 40px; }
  .section { padding: 48px 0; }
}

/* gentle entrance for the thank-you swap */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#thanksView:not([hidden]) { animation: rise .5s ease both; }
