:root {
  --blush: #F4A7C3;
  --blush-deep: #E889AB;
  --baby-blue: #5BA4D9;
  --baby-blue-deep: #3E8FC8;
  --cream: #FBF6F0;
  --cream-dark: #F3E8DC;
  --soft-white: #FFFCFA;
  --ink: #3D3A38;
  --ink-soft: #6B6560;
  --line: #E8DDD3;
  --shadow: 0 12px 40px rgba(120, 80, 70, 0.12);
  --shadow-sm: 0 4px 16px rgba(120, 80, 70, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --font-sans: "Nunito", "Quicksand", system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --header-h: 72px;
  --accent-boy: #5BA4D9;
  --accent-girl: #F4A7C3;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(244, 167, 195, 0.28), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(91, 164, 217, 0.22), transparent 55%),
    var(--cream);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--baby-blue-deep); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ——— Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 252, 250, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.nav-logo {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}
.nav-brand-tag {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.nav-links a,
.nav-link-btn {
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.25rem;
}

.nav-links a:hover,
.nav-link-btn:hover { color: var(--baby-blue-deep); }

.nav-cta {
  background: linear-gradient(135deg, var(--blush), var(--baby-blue)) !important;
  color: #fff !important;
  padding: 0.55rem 1rem !important;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--soft-white);
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
}

/* ——— Hero ——— */
.hero {
  padding: 2.5rem 1.25rem 3rem;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blush-deep);
  margin: 0 0 0.5rem;
}

.hero-logo {
  height: auto;
  width: min(320px, 100%);
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.hero-perks li {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--soft-white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

.hero-photo {
  margin: 0;
  background: var(--soft-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero-photo figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  font-weight: 600;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; margin-inline: auto; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--baby-blue), #7BB8E0);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow); }

.btn-ghost {
  background: var(--soft-white);
  border-color: var(--line);
  color: var(--ink);
}

.btn-lg { padding: 0.9rem 1.6rem; font-size: 1.05rem; width: 100%; }

.btn-paypal {
  background: #FFC439;
  color: #003087;
  width: 100%;
  font-size: 1.05rem;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
}
.btn-paypal:hover { background: #f5b820; }

.linkish {
  background: none;
  border: none;
  color: var(--baby-blue-deep);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* ——— Builder ——— */
.builder-section,
.contact-section {
  padding: 1rem 1.25rem 3.5rem;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 1.75rem;
  text-align: center;
}
.section-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin: 0 0 0.5rem;
}
.section-intro p { color: var(--ink-soft); margin: 0; }

.builder-card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--soft-white);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 1.5rem 1.5rem 2rem;
}

.builder-steps {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.builder-steps li {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.builder-steps li.is-active {
  background: linear-gradient(135deg, rgba(244,167,195,0.45), rgba(91,164,217,0.45));
  color: var(--ink);
  border-color: transparent;
}
.builder-steps li.is-done {
  background: var(--baby-blue);
  color: #fff;
  border-color: transparent;
}

.builder-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

.builder-layout.has-mockup {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .builder-layout.has-mockup { grid-template-columns: 1fr; }
}

.step { border: none; margin: 0; padding: 0; min-inline-size: 0; }
.step-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  padding: 0;
  margin-bottom: 0.25rem;
}
.step-help {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.label-lg {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
}

.field { margin-bottom: 1rem; }
.field label,
.gender-fieldset > legend {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.gender-fieldset {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
select {
  appearance: auto;
  cursor: pointer;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--baby-blue);
  box-shadow: 0 0 0 3px rgba(91, 164, 217, 0.25);
}
input:disabled,
select:disabled {
  background: #f0ebe6;
  color: var(--ink-soft);
  cursor: not-allowed;
}

.input-name-width {
  /* ~40 character visual width, still allows 255 */
  max-width: 40ch;
  width: 100%;
}

.hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.field-row {
  display: grid;
  gap: 0.75rem;
}

/* Equal-width columns (e.g. first / last name) */
.field-row-2 {
  grid-template-columns: 1fr 1fr;
}

/* City + state + ZIP */
.field-row-address {
  grid-template-columns: 1fr 9rem 6.5rem;
}
.field-row-address .field:first-child { grid-column: 1; }

.field-label-text {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.state-fixed {
  display: flex;
  align-items: center;
  min-height: calc(0.7rem * 2 + 1.5em + 3px);
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: #f0ebe6;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
}

.field-email input {
  max-width: 100%;
}

@media (max-width: 560px) {
  .field-row-2 { grid-template-columns: 1fr; }
  .field-row-address { grid-template-columns: 1fr 1fr; }
  .field-row-address .field:first-child { grid-column: 1 / -1; }
  .field-row-address .field-state-fixed,
  .field-row-address .field-state { grid-column: 1; }
  .field-row-address .field-sm { grid-column: 2; }
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.radio-chip:has(input:checked) {
  border-color: var(--baby-blue);
  background: rgba(91, 164, 217, 0.12);
  box-shadow: 0 0 0 2px rgba(91, 164, 217, 0.2);
}
.radio-chip input { accent-color: var(--baby-blue); }

#btn-show-stork {
  margin-top: 0.35rem;
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blush-deep);
  margin: 0.75rem 0;
}
.form-status.is-error { color: #b42318; }
.form-status.is-ok { color: #0f7a4c; }

.price-box {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--cream), var(--soft-white));
  border: 1px solid var(--line);
}
.price-heading {
  font-family: var(--font-display);
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}
.price-distance {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.price-breakdown {
  margin: 0 0 1.25rem;
  padding: 0;
}
.price-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
}
.price-breakdown dt { font-weight: 600; color: var(--ink-soft); }
.price-breakdown dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.price-breakdown .total {
  border-bottom: none;
  padding-top: 0.75rem;
  font-size: 1.15rem;
}
.price-breakdown .total dt,
.price-breakdown .total dd { color: var(--ink); }

.terms-inline {
  text-align: center;
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.same-as-row { margin: 0.25rem 0 1rem; }
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  cursor: pointer;
}
.checkbox-label input { width: 1.1rem; height: 1.1rem; accent-color: var(--baby-blue); }

.paypal-wrap { margin-top: 1.25rem; }

.thank-you {
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(91,164,217,0.15), rgba(244,167,195,0.2));
  border: 1px solid var(--line);
  text-align: center;
}
.thank-you h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}
.order-ref {
  font-weight: 800;
  color: var(--baby-blue-deep);
}

.field-error {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #b42318;
  min-height: 0;
}
.field-error:empty { display: none; }
input.is-invalid,
select.is-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18);
}

/* Delivery step fade-in (opacity 0→1 over 1s) */
#step-delivery.step-reveal {
  opacity: 0;
  transition: opacity 1s ease;
}
#step-delivery.step-reveal.is-faded-in {
  opacity: 1;
}

.is-hidden,
[hidden] { display: none !important; }

.form-locked {
  opacity: 0.72;
  pointer-events: none;
}

/* Mockup */
.mockup-panel {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1rem 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.mockup-heading {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}
.mockup-frame {
  background: var(--soft-white);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  border: 1px solid var(--line);
}
.mockup-frame svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
}
.mockup-caption {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Gender accent helpers applied via JS on SVG */
.gender-male .accent-hat > rect,
.gender-male .accent-hat > ellipse,
.gender-male .accent-bowtie path,
.gender-male .sack-ribbon,
.gender-male .sack-dip,
.gender-male .sack-prints * {
  /* overridden by fill attributes in JS for reliability */
}

/* ——— Contact ——— */
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  background: var(--soft-white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}
.contact-inner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.75rem;
}
.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blush-deep);
}
.contact-list a { font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.contact-list a:hover { text-decoration: underline; }
.contact-list address { font-style: normal; font-weight: 700; }

.contact-card {
  background: linear-gradient(160deg, rgba(244,167,195,0.25), rgba(91,164,217,0.2));
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
}
.contact-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}
.contact-card ol {
  margin: 0;
  padding-left: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-card li { margin-bottom: 0.6rem; }

@media (max-width: 760px) {
  .contact-inner { grid-template-columns: 1fr; padding: 1.35rem; }
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 252, 250, 0.9);
  padding: 1.75rem 1.25rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: block;
}
.footer-brand p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ——— Modal ——— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal[hidden] { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 35, 30, 0.45);
}
.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  background: var(--soft-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  z-index: 1;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--soft-white);
}
.modal-header h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.4rem;
}
.modal-close {
  border: none;
  background: var(--cream);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.modal-body {
  padding: 1.25rem;
  white-space: pre-wrap;
  font-size: 0.95rem;
  color: var(--ink);
}
