/* =========================================================
   BabyDNA.com / BabyDNA.ai — Premium landing
   Palette: off-white, deep navy, muted gold accent
   Type:    Fraunces (serif display) + Inter (sans body)
   ========================================================= */

:root {
  --bg: #faf9f5;
  --bg-alt: #f3f1ea;
  --ink: #14203a;          /* deep navy */
  --ink-2: #3d4760;        /* secondary text */
  --ink-3: #6b7489;        /* tertiary / muted */
  --rule: #e4e0d3;         /* hairline rule */
  --rule-2: #d7d2c2;
  --accent: #a8864a;       /* muted gold */
  --accent-ink: #8b6d37;
  --white: #ffffff;

  --max: 1180px;
  --pad-x: clamp(20px, 5vw, 48px);

  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* -------- reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* -------- layout -------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* -------- header -------- */
.site-header {
  padding: 28px 0;
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brandmark__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}
.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* -------- hero -------- */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0 clamp(80px, 12vw, 140px);
}
.hero__rule {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 0;
  height: 1px;
  background: var(--rule);
  max-width: calc(var(--max) - (var(--pad-x) * 0));
  margin: 0 auto;
}

.eyebrow, .section-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 28px;
}
.section-eyebrow { margin-bottom: 20px; }

.hero__headline {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 7.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 36px;
  color: var(--ink);
  max-width: 18ch;
}
.hero__headline .domain {
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
}
.hero__headline .hero__and {
  color: var(--accent);
  font-style: normal;
  font-weight: 300;
  padding: 0 .1em;
}
.hero__headline .hero__tail {
  display: block;
  font-weight: 300;
  color: var(--ink-2);
  margin-top: .15em;
}

.hero__sub {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  color: var(--ink-2);
  font-weight: 300;
  margin: 0 0 8px;
  max-width: 32ch;
}
.hero__support {
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin: 0 0 44px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* -------- buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--primary:hover { background: #1f2c4a; border-color: #1f2c4a; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-2);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(20, 32, 58, 0.03);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-2);
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 22px;
  gap: 4px;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
}
.btn--outline:hover {
  border-color: var(--ink);
  background: var(--white);
}
.btn--outline .btn__label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.btn--outline .btn__meta {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 400;
}

.btn--full { width: 100%; }

/* -------- value pillars -------- */
.value {
  padding: clamp(80px, 11vw, 140px) 0;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 12px;
}
.pillar {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.pillar__num {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent-ink);
  margin-bottom: 18px;
  font-weight: 500;
}
.pillar__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
  color: var(--ink);
  max-width: 16ch;
}
.pillar__body {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.65;
}

/* -------- contact -------- */
.contact {
  padding: clamp(72px, 10vw, 120px) 0 clamp(100px, 12vw, 140px);
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
}
.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 56px;
  max-width: 22ch;
  color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 3.2vw, 48px);
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: clamp(28px, 3.2vw, 44px);
  border-radius: var(--radius);
}
.contact-card__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.contact-card__lede {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0 0 28px;
}

/* form fields */
.offer-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.field .req { color: var(--accent); }
.field .muted {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-3);
  font-weight: 400;
  font-size: 12px;
}
.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
}

.input-prefix {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix .prefix {
  position: absolute;
  left: 14px;
  color: var(--ink-3);
  font-weight: 500;
  pointer-events: none;
}
.input-prefix input { padding-left: 28px; }

.field--checks { border: none; padding: 0; margin: 0; }
.field--checks legend { margin-bottom: 12px; }
.field--checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  cursor: pointer;
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  background: var(--white);
  display: inline-grid;
  place-content: center;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
  flex-shrink: 0;
}
.check input::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  background: var(--accent);
  transition: transform .15s var(--ease);
}
.check input:checked { border-color: var(--accent); }
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* direct card */
.seller {
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.seller dt {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.seller__name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.005em;
}

.direct-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.fine-print {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}

/* -------- footer -------- */
.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--rule);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* =========================================================
   Reveal-on-scroll animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 36px; }
  .hero__headline { max-width: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header { padding: 22px 0; }
  .site-nav { gap: 20px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .contact-card { padding: 26px 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* =========================================================
   Thank-you page
   ========================================================= */
.thanks {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 80px 0;
  text-align: center;
}
.thanks__inner { max-width: 540px; }
.thanks h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.thanks p {
  color: var(--ink-2);
  font-size: 17px;
  margin: 0 0 32px;
}
