* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --shell:#F2EDE8;
  --ink:#0C0A08;
  --body:#36291C;
  --tan:#8B7355;
  --line:rgba(92,74,58,0.22);
  --line-soft:rgba(92,74,58,0.12);
  --accent:hsl(351 78% 27%);
  --mother-mid:#8B7355;
  --mother-deep:#3D2E20;
  --gold:#C9A876;

  --ease-luxe: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-luxe: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.15, 1);

  --dur-xs: 300ms;
  --dur-sm: 520ms;
  --dur-md: 820ms;
  --dur-lg: 1100ms;
}

html, body {
  min-height: 100%;
  font-family: 'helvetica-lt-pro', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px 60px;
  background:
    radial-gradient(ellipse at 30% 0%, #5C4631 0%, #3D2E20 45%, #1F1612 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
@media (max-width: 480px) {
  body { padding: 20px 12px 40px; }
}

h1, h2, h3, h4 {
  font-family: 'freight-big-pro', 'Times New Roman', serif;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.005em;
  font-style: normal;
}

/* ============ FRAME ============ */
.frame {
  width: 100%;
  max-width: 350px;
  background: var(--shell);
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.55),
    0 24px 50px -20px rgba(0,0,0,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

.frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}
.frame > * { position: relative; z-index: 2; }

/* Persistent logo */
.logo {
  text-align: center;
  padding: 36px 24px 16px;
  flex-shrink: 0;
}
.wordmark {
  font-family: 'the-seasons', serif;
  font-weight: 400;
  font-size: 30px;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-bottom: 6px;
}
.logo .eyebrow {
  font-size: 12px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--tan);
}

/* ============ PROGRESS BAR (segmented, fills per phase) ============ */
.progress {
  display: flex;
  gap: 6px;
  padding: 0 28px 18px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.progress-seg {
  flex: 0 1 56px;
  height: 2px;
  background: var(--line);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}
.progress-seg .fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--ink);
  transition: width var(--dur-md) var(--ease-luxe);
}

/* Stage: JS sizes to active screen, never shorter than this floor */
.stage {
  position: relative;
  flex: 1;
  min-height: 580px;
  height: 580px;
  transition: height var(--dur-md) var(--ease-luxe);
}

/* Screens: Bobbi-style cross-fade plus a gentle scale (zoom in/out) */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 28px 28px;
  opacity: 0;
  transform: scale(0.96);
  transform-origin: 50% 42%;
  pointer-events: none;
  transition: opacity var(--dur-lg) var(--ease-luxe),
              transform var(--dur-lg) var(--ease-luxe);
}
.screen.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

/* Reveal: staggered entrance */
.rev {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-md) var(--ease-luxe),
              transform var(--dur-md) var(--ease-luxe);
}
.screen.active .rev.on {
  opacity: 1;
  transform: translateY(0);
}

/* ============ TYPE ============ */
.eyebrow {
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--tan);
  margin-bottom: 18px;
}
.eyebrow.center { text-align: center; }

h1.welcome-title {
  font-size: 25px;
  line-height: 1.2;
  margin-bottom: 14px;
  text-align: center;
}

h2.question,
h2.confirm-title {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 24px;
  text-align: center;
  font-style: normal;
}
h2.question { text-wrap: balance; }

.intro-para,
.confirm-detail {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
}
.intro-para {
  margin-bottom: 28px;
  max-width: 320px;
  text-align: center;
}

.field-helper {
  font-size: 12px;
  font-style: italic;
  color: var(--tan);
  margin-top: -16px;
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.5;
}

/* ============ ORB ============ */
.orb {
  width: 64px;
  height: 64px;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.20) 0%, var(--mother-mid) 45%, var(--mother-deep) 100%);
  box-shadow: 0 0 32px rgba(0,0,0,0.16);
  margin-bottom: 24px;
  flex-shrink: 0;
  position: relative;
}
.orb.large {
  width: 84px;
  height: 84px;
  box-shadow: 0 0 40px rgba(0,0,0,0.20);
}
.orb.large::before,
.orb.large::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(139, 115, 85, 0.4);
  opacity: 0;
}
.screen[data-screen="20"].active .orb.large::before {
  animation: orbHalo 3.6s var(--ease-in-out-luxe) infinite;
}
.screen[data-screen="20"].active .orb.large::after {
  animation: orbHalo 3.6s var(--ease-in-out-luxe) infinite;
  animation-delay: 1.8s;
}
@keyframes orbHalo {
  0%   { transform: scale(0.85); opacity: 0; }
  35%  { opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ============ INPUTS ============ */
.field-group { margin-bottom: 20px; }
.field-label {
  display: block;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--tan);
  margin-bottom: 8px;
}
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  font-family: 'helvetica-lt-pro', sans-serif;
  font-size: 13px;
  font-weight: 400;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 12px;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color var(--dur-sm) var(--ease-luxe);
}
input:focus { border-bottom-color: var(--ink); }
input::placeholder { color: var(--tan); opacity: 0.5; }

/* ============ SELECT (DROPDOWN) ============ */
.select-field {
  width: 100%;
  font-family: 'helvetica-lt-pro', sans-serif;
  font-size: 14px;
  font-weight: 400;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 28px 14px 0;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%238B7355' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
  transition: border-color var(--dur-sm) var(--ease-luxe);
  margin-bottom: 8px;
}
.select-field:focus { border-bottom-color: var(--ink); }
.select-field option { color: var(--ink); background: var(--shell); }

/* ============ TEXTAREA ============ */
.textarea-field {
  width: 100%;
  font-family: 'helvetica-lt-pro', sans-serif;
  font-size: 13px;
  font-weight: 400;
  background: transparent;
  border: 1px solid var(--line);
  padding: 14px;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  resize: none;
  min-height: 110px;
  line-height: 1.55;
  transition: border-color var(--dur-sm) var(--ease-luxe);
  margin-bottom: 8px;
}
.textarea-field:focus { border-color: var(--ink); }
.textarea-field::placeholder { color: var(--tan); opacity: 0.5; font-style: italic; }

/* ============ OPTIONS (cards, Q1/Q2/finance) ============ */
.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.option {
  font-family: 'helvetica-lt-pro', sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  padding: 16px 18px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--dur-sm) var(--ease-luxe),
              background var(--dur-sm) var(--ease-luxe),
              color var(--dur-sm) var(--ease-luxe),
              transform var(--dur-xs) var(--ease-smooth);
  border-radius: 0;
  line-height: 1.45;
}
.option:hover { border-color: var(--ink); }
.option:active { transform: scale(0.99); }
.option.selected {
  background: var(--ink);
  color: var(--shell);
  border-color: var(--ink);
}

/* ============ PILLS (wrap, short answers) ============ */
.options.pills {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 8px;
}
.options.pills .option {
  border-radius: 999px;
  padding: 13px 22px;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  max-width: 100%;
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}
.options.pills .option:hover {
  background: #2A1F18;
  border-color: #2A1F18;
}
.options.pills .option.selected {
  background: var(--gold);
  color: #FFFFFF;
  border-color: var(--gold);
  transform: scale(0.94);
}

/* ============ BUTTONS ============ */
.btn {
  display: block;
  width: 100%;
  font-family: 'helvetica-lt-pro', sans-serif;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  padding: 16px 28px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-xs) var(--ease-smooth),
              color var(--dur-xs) var(--ease-smooth),
              letter-spacing var(--dur-xs) var(--ease-smooth),
              opacity var(--dur-sm) var(--ease-luxe);
  border-radius: 0;
  text-align: center;
}
.btn:hover, .btn:focus { background: var(--ink); color: var(--shell); letter-spacing: 0.28em; }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.3; cursor: not-allowed; }
.btn:disabled:hover { background: transparent; color: var(--ink); letter-spacing: 0.25em; }

.btn-pill {
  display: inline-block;
  font-family: 'helvetica-lt-pro', sans-serif;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  padding: 14px 32px;
  background: var(--ink);
  color: var(--shell);
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur-xs) var(--ease-smooth),
              letter-spacing var(--dur-xs) var(--ease-smooth),
              transform var(--dur-xs) var(--ease-smooth),
              opacity var(--dur-sm) var(--ease-luxe);
  align-self: center;
  text-align: center;
  min-width: 160px;
}
.btn-pill:hover, .btn-pill:focus {
  background: #2A1F18;
  border-color: #2A1F18;
  letter-spacing: 0.28em;
}
.btn-pill:active { transform: scale(0.98); }
.btn-pill:disabled { opacity: 0.35; cursor: not-allowed; }

/* ============ BOTTOM (Continue + Back live here) ============ */
.screen-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
}

.back {
  display: inline-block;
  font-family: 'helvetica-lt-pro', sans-serif;
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--tan);
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 4px 12px;
  text-align: center;
  transition: color var(--dur-xs) var(--ease-smooth);
}
.back:hover { color: var(--ink); }

/* ============ CALENDAR ============ */
.calendar-month {
  font-family: 'freight-big-pro', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  text-align: center;
  margin-bottom: 14px;
}
.dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 6px;
}
.dow {
  text-align: center;
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--tan);
  padding: 4px 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 20px;
}
.day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'helvetica-lt-pro', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-sm) var(--ease-luxe),
              color var(--dur-sm) var(--ease-luxe),
              border-color var(--dur-sm) var(--ease-luxe);
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.day.empty { pointer-events: none; color: transparent; }
.day.past { color: rgba(139,115,85,0.4); pointer-events: none; }
.day:hover:not(.past):not(.empty):not(.selected) { border-color: var(--line); }
.day.selected {
  background: var(--ink);
  color: var(--shell);
  border-color: var(--ink);
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--dur-md) var(--ease-luxe),
              opacity var(--dur-sm) var(--ease-luxe),
              margin var(--dur-md) var(--ease-luxe);
}
.time-slots.visible {
  max-height: 600px;
  opacity: 1;
  margin-bottom: 12px;
}
.slot {
  font-family: 'helvetica-lt-pro', sans-serif;
  font-size: 13px;
  font-weight: 400;
  padding: 12px 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-sm) var(--ease-luxe),
              color var(--dur-sm) var(--ease-luxe),
              border-color var(--dur-sm) var(--ease-luxe),
              opacity var(--dur-md) var(--ease-luxe),
              transform var(--dur-md) var(--ease-luxe);
  border-radius: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
}
.time-slots.visible .slot {
  opacity: 1;
  transform: translateY(0);
}
.slot:hover { border-color: var(--ink); }
.slot.selected {
  background: var(--ink);
  color: var(--shell);
  border-color: var(--ink);
}

.tz-note {
  font-size: 11px;
  font-style: italic;
  color: var(--tan);
  margin-bottom: 6px;
  text-align: center;
}

/* ============ CONFIRMATION ============ */
.confirm-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto 0;
  padding: 16px 0;
}
.confirm-card .eyebrow { margin-bottom: 16px; }
.confirm-card h2.confirm-title {
  margin-bottom: 18px;
  max-width: 280px;
}
.confirm-detail {
  margin-bottom: 6px;
  max-width: 280px;
}
.confirm-detail.muted {
  font-size: 12px;
  color: var(--tan);
  margin-top: 20px;
  max-width: 260px;
  line-height: 1.6;
}
.signature {
  margin-top: 36px;
  font-family: 'freight-big-pro', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
}

/* ============ SITE INTEGRATION (tracyabdullah.com) ============ */
.wordmark a { color: inherit; text-decoration: none; }
.field-error {
  font-size: 12px;
  font-style: italic;
  color: var(--accent);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 4px;
}
.field-error[hidden] { display: none; }
.dc-form { display: none; }
.dc-noscript {
  font-size: 13px;
  line-height: 1.6;
  color: var(--body);
  text-align: center;
  padding: 0 28px 28px;
}
.dc-noscript a { color: var(--ink); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-nav .calendar-month { margin-bottom: 0; }
.cal-arrow { font-size: 22px; line-height: 1; padding: 0 10px; letter-spacing: 0; }
.slot-note {
  grid-column: 1 / -1;
  font-size: 12px;
  font-style: italic;
  color: var(--tan);
  text-align: center;
  padding: 13px 0;
  opacity: 1;
}


/* ==========================================================================
   PHONES ONLY (600px and under). Desktop above this line is untouched.
   The page is the card: no dark surround, no floating panel, nothing below
   the fold. Continue and Back sit inside the phone at every height.
   ========================================================================== */

/* The wrapper JS adds has no box on desktop, so it cannot affect that layout. */
.screen-body { display: contents; }

@media (max-width: 600px) {
  body {
    background: var(--shell);        /* the dark ground is for desktop only */
    background-attachment: scroll;
    padding: 0;
    align-items: stretch;
    overflow: hidden;                /* the page never scrolls; the content does */
  }

  .frame {
    max-width: none;
    width: 100%;
    height: 100dvh;
    height: 100vh;
    box-shadow: none;
    border-radius: 0;
  }

  /* Smaller masthead, so the questions get the room instead. */
  .logo { padding: 20px 24px 10px; }
  .wordmark { font-size: 23px; margin-bottom: 4px; }
  .logo .eyebrow { font-size: 10px; letter-spacing: 3px; }
  .progress { padding: 0 28px 12px; }

  /* The stage takes whatever is left of the phone. */
  .stage {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;         /* JS leaves this alone on phones */
    transition: none;
  }

  .screen { padding: 18px 24px 22px; }

  /* This, and only this, scrolls. */
  .screen-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .screen-body::-webkit-scrollbar { width: 0; height: 0; }

  /* Pinned, always in view, with a little breathing room above the home bar. */
  .screen-bottom {
    flex: 0 0 auto;
    margin-top: 0;
    padding-top: 18px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }
}

/* Very short phones: give the masthead less again. */
@media (max-width: 600px) and (max-height: 700px) {
  .logo { padding: 14px 24px 8px; }
  .wordmark { font-size: 20px; margin-bottom: 2px; }
  .progress { padding: 0 28px 9px; }
  .screen { padding: 14px 24px 18px; }
  .screen-bottom { padding-top: 14px; }
}
