/* Dr Eli Gold family afternoon, shared base. Polyworld Brand Guide V4 tokens only. */
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("fonts/Poppins-Light.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/Poppins-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/Poppins-Bold.woff2") format("woff2"); }

:root {
  --paper: #FFFFFF;
  --mist: #F2F2F2;
  --night: #17141B;
  --surface: #232027;
  --deep: #DA6D20;
  --orange: #FF7F17;
  --ink: #000000;
  --grey: #6F6B70;
  --silver: #959698;
  --line: #E4E3E5;
  --line-dark: #36323B;
  --radius-card: 20px;
  --ease-out: cubic-bezier(.22, .9, .24, 1);
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 12px; }

/* Fields */
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 14px; font-weight: 500; }
.input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.input::placeholder { color: var(--silver); }
.input:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 3px rgba(255, 127, 23, .35); }
.input[aria-invalid="true"] { border-color: var(--deep); }
.err { font-size: 14px; color: var(--deep); min-height: 0; }
.err:empty { display: none; }

/* Kids stepper */
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 6px 0 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.stepper .label { font-size: 16px; font-weight: 400; }
.stepper .ctrl { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--mist); color: var(--ink); display: grid; place-items: center; transition: transform .15s var(--ease-out), background .2s; }
.stepper button:active { transform: scale(.92); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 28px; text-align: center; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* The guide's button: black pill, orange action point on the right */
.pill-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 60px;
  padding: 0 8px 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .005em;
  text-decoration: none;
  transition: transform .18s var(--ease-out), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.pill-cta:active { transform: scale(.98); }
.pill-cta .pill-dot { width: 44px; height: 44px; border-radius: 999px; background: var(--orange); display: grid; place-items: center; flex: none; transition: transform .25s var(--ease-out); }
.pill-cta:hover .pill-dot { transform: translateX(2px); }
.pill-cta[aria-busy="true"] { pointer-events: none; }
.pill-cta[aria-busy="true"] .pill-dot svg { animation: spin .8s linear infinite; }
.pill-cta.on-dark { background: var(--paper); color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.fine { font-size: 13px; line-height: 1.5; }
.fine a { text-underline-offset: 2px; }

/* Done state */
.done { display: grid; gap: 14px; }
.done h2 { font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.done .actions { display: grid; gap: 10px; margin-top: 4px; }
.ghost-btn { height: 52px; border-radius: 999px; border: 0; background: var(--mist); color: var(--ink); font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }

/* Sticky return button, shown once the form scrolls away */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; transform: translateY(140%); transition: transform .35s var(--ease-out); }
.sticky-cta.show { transform: none; }
.sticky-cta .pill-cta { box-shadow: 0 10px 30px rgba(23, 20, 27, .28); }

.reveal { animation: rise .7s var(--ease-out) both; }
.reveal.d1 { animation-delay: .06s; } .reveal.d2 { animation-delay: .12s; } .reveal.d3 { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sticky-cta { transform: none; display: none; }
  .sticky-cta.show { display: block; }
}

/* Location on every page: map, address and a directions button */
.place { display: grid; gap: 14px; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden; background: var(--mist); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.addr { display: flex; gap: 12px; align-items: flex-start; }
.addr svg { flex: none; width: 26px; height: 26px; margin-top: 1px; color: var(--deep); }
.addr strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.3; }
.addr span { display: block; margin-top: 2px; font-size: 15.5px; line-height: 1.45; color: var(--grey); }
.dir-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 999px; background: var(--mist); color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .18s var(--ease-out); }
.dir-btn:active { transform: scale(.98); }
.dir-btn svg { width: 20px; height: 20px; color: var(--deep); flex: none; }
.dark-place .map { background: var(--surface); }
.dark-place .addr svg { color: var(--orange); }
.dark-place .addr strong { color: var(--paper); }
.dark-place .addr span { color: var(--silver); }
.dark-place .dir-btn { background: var(--surface); color: var(--paper); }
.dark-place .dir-btn svg { color: var(--orange); }
.is-done [data-to-form] { display: none; }
