/* ==========================================================================
   Face by Alyssa
   Look: her puffy FACE logo on brand sage, set inside a warm editorial spa
   layout (ivory and sand pages, one cocoa color block, serif headlines).
   Light theme only, on purpose: the brand and her references are light.
   Accent: sage. Logo cream (peach) only appears as small highlights.
   Shapes: pills for anything you press, 20px photos, 22px panels, 14px inner bits.
   Layers: dock 20, nav 30, skip link 40.
   ========================================================================== */

:root {
  --sage: #919c71;
  --sage-deep: #5d6747; /* sage text on light backgrounds, 5:1 on ivory */
  --ivory: #f3ede4; /* page */
  --sand: #e8ddcf; /* alternate sections */
  --shell: #fbf6ef; /* panels and tiles */
  --field: #fffaf4; /* inputs, selected surfaces */
  --peach: #f7d9b6; /* the logo's cream */
  --cocoa: #3a2b22; /* buttons and the color block */
  --ink: #2b211a; /* text */
  --ink-2: #66574b; /* secondary text, 5:1 on sand */
  --on-sage: #1f2318; /* text on sage, 5.4:1 */
  --on-cocoa: #f3ede4;
  --on-cocoa-2: #d6c9b9;
  --line: rgba(43, 33, 26, 0.14);
  --danger: #9b2c1f;

  /* Older names the booking flow still uses */
  --cream: var(--shell);
  --cream-hi: var(--field);
  --cream-lo: var(--peach);
  --moss: var(--ink-2);
  --line-cream: var(--line);

  --r-photo: 20px;
  --r-panel: 22px;
  --r-inner: 14px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-soft: 0 24px 48px -32px rgba(58, 43, 34, 0.45);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html {
  background: var(--ivory);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 300 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

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

figure {
  margin: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
}

h3 {
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

em {
  font-style: italic;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

strong {
  font-weight: 500;
}

::selection {
  background: var(--cocoa);
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--cocoa);
  outline-offset: 3px;
}

h2[tabindex="-1"]:focus {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 32px, 760px);
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--cocoa);
  color: var(--ivory);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.fine {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.h2 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
}

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--cocoa);
  color: var(--ivory);
  font: 400 0.9375rem/1 var(--font);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 26px -16px rgba(58, 43, 34, 0.7);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.3s ease,
    background-color 0.25s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn i {
  font-size: 1.15em;
  transition: transform 0.45s var(--ease-spring);
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 0.09s;
}

.btn:disabled {
  opacity: 0.4;
  box-shadow: none;
  cursor: default;
}

.btn--lg {
  min-height: 58px;
  padding: 0 34px;
  font-size: 1rem;
}

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.875rem;
}

.btn--light,
.btn--ink.btn--light {
  background: var(--ivory);
  color: var(--cocoa);
}

/* Kept for the booking page: same as the default button now. */
.btn--ink {
  background: var(--cocoa);
  color: var(--ivory);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  font-weight: 400;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + 0.75em) /
    100% 1px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}

.link--plain {
  background-size: 0 1px;
}

@media (hover: hover) {
  .btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -16px rgba(58, 43, 34, 0.75);
  }

  .btn:not(:disabled):active {
    transform: scale(0.97);
  }

  .btn:hover .ph-arrow-right {
    transform: translateX(3px);
  }

  .link:hover {
    background-size: 0 1px;
    background-position-x: 100%;
  }

  .link--plain:hover {
    background-size: 100% 1px;
    background-position-x: 0;
  }
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: 68px;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.nav.is-stuck {
  background: rgba(243, 237, 228, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  display: block;
  height: 38px;
  margin-right: auto;
  border-radius: 12px;
}

.nav__logo img {
  height: 100%;
  width: auto;
}

.nav__links {
  display: none;
  gap: 30px;
  font-size: 0.9375rem;
}

/* On the landing page the logo and button wait until the hero buttons have scrolled by. */
.nav[data-nav="auto"] .nav__logo,
.nav[data-nav="auto"] .nav__book {
  transition: opacity 0.35s ease, transform 0.5s var(--ease-spring),
    visibility 0s linear 0s;
}

.nav[data-nav="auto"]:not(.is-stuck) .nav__logo,
.nav[data-nav="auto"]:not(.is-stuck) .nav__book {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.92);
  transition: opacity 0.25s ease, transform 0.3s ease,
    visibility 0s linear 0.3s;
}

@media (min-width: 820px) {
  .nav__links {
    display: flex;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav.is-stuck {
    background: var(--ivory);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  background: var(--sage);
  color: var(--on-sage);
}

.hero__panel {
  display: grid;
  place-items: center;
  padding: 84px 20px 36px;
  text-align: center;
}

.hero__copy {
  width: min(100%, 520px);
}

.hero .toy {
  width: min(80%, 300px);
  margin: 0 auto 14px;
}

.hero__title {
  font-size: clamp(2.75rem, 11vw, 3.6rem);
  line-height: 1.1;
  padding-bottom: 0.06em;
}

.hero__sub {
  max-width: 34ch;
  margin: 14px auto 0;
  font-size: 1.125rem;
  font-weight: 300;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 28px;
}

.hero__photo {
  margin: 0 16px 16px;
  border-radius: var(--r-photo);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.js .hero__photo img {
  animation: settle 1.6s var(--ease-out) both;
}

/* Logo: puffs up on load, drifts gently, squishes when pressed. */
.toy {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.toy__img {
  width: 100%;
  animation: float 7s ease-in-out infinite alternate;
  user-select: none;
  -webkit-user-drag: none;
}

.js .toy__puff {
  animation: inflate 1.25s ease-out backwards;
}

.toy.is-squished {
  animation: squish 0.7s ease-out;
}

.js .hero [data-in] {
  animation: rise 0.9s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 90ms + 380ms);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 100dvh;
  }

  .hero__panel {
    place-items: center start;
    padding: 96px 56px 72px max(40px, calc((100vw - 1180px) / 2));
    text-align: left;
  }

  .hero .toy {
    width: min(100%, 380px);
    margin: 0 0 18px -10px;
  }

  .hero__title {
    font-size: clamp(3.4rem, 5.4vw, 5rem);
  }

  .hero__sub {
    margin-inline: 0;
    font-size: 1.1875rem;
  }

  .hero__cta {
    justify-content: flex-start;
  }

  .hero__photo {
    margin: 0;
    border-radius: 0;
    aspect-ratio: auto;
    max-height: none;
    min-height: 100%;
    position: relative;
  }

  .hero__photo img {
    position: absolute;
    inset: 0;
  }
}

/* --------------------------------------------------------------------------
   Statement and collage
   -------------------------------------------------------------------------- */

.intro {
  padding: clamp(72px, 11vw, 140px) 0;
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "text text"
    "a b";
  gap: 36px 14px;
  align-items: end;
}

.intro__text {
  grid-area: text;
  text-align: center;
}

.intro__img {
  width: 100%;
  border-radius: var(--r-photo);
  object-fit: cover;
}

.intro__img--a {
  grid-area: a;
  aspect-ratio: 4 / 5;
}

.intro__img--b {
  grid-area: b;
  aspect-ratio: 1;
  margin-bottom: 18%;
}

.intro__lead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 6.4vw, 3.1rem);
  line-height: 1.12;
  text-wrap: balance;
}

.intro__lead em {
  color: var(--sage-deep);
}

.intro__body {
  max-width: 40ch;
  margin: 22px auto 0;
  color: var(--ink-2);
}

@media (min-width: 900px) {
  .intro__grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.3fr) minmax(0, 0.72fr);
    grid-template-areas: "a text b";
    gap: 64px;
    align-items: center;
  }

  .intro__img--a {
    align-self: start;
  }

  .intro__img--b {
    align-self: end;
    margin: 0 0 -24px;
  }
}

/* --------------------------------------------------------------------------
   Treatment menu
   -------------------------------------------------------------------------- */

.facials {
  background: var(--sand);
  padding: clamp(72px, 10vw, 128px) 0;
}

.facials__head {
  margin-bottom: clamp(20px, 3vw, 36px);
}

.facials__sub {
  margin-top: 10px;
  color: var(--ink-2);
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.facial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "media media"
    "body body"
    "price go";
  align-items: center;
  gap: 20px 16px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.menu li:first-child .facial {
  border-top: 0;
}

.facial__media {
  grid-area: media;
  display: block;
  overflow: hidden;
  border-radius: var(--r-photo);
  aspect-ratio: 16 / 10;
}

.facial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

.facial__body {
  grid-area: body;
  display: grid;
  gap: 6px;
}

.facial__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--sage-deep);
}

.facial__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1.05;
}

.facial__meta {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.facial__tagline {
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.25;
}

.facial__desc {
  max-width: 58ch;
  color: var(--ink-2);
}

.facial__end {
  display: contents;
}

.facial__price {
  grid-area: price;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
}

.facial__go {
  grid-area: go;
  width: 52px;
  height: 52px;
  border: 1px solid var(--cocoa);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  transition: background-color 0.3s ease, color 0.3s ease,
    transform 0.5s var(--ease-spring);
}

.facial:active .facial__go {
  transform: scale(0.92);
}

@media (hover: hover) {
  .facial:hover .facial__media img {
    transform: scale(1.04);
  }

  .facial:hover .facial__go {
    background: var(--cocoa);
    color: var(--ivory);
    transform: translateX(4px);
  }
}

@media (min-width: 820px) {
  .facial {
    grid-template-columns: 220px minmax(0, 1fr) auto;
    grid-template-areas: "media body end";
    gap: 44px;
    padding: 40px 0;
  }

  .facial__media {
    aspect-ratio: 4 / 5;
  }

  .facial__end {
    grid-area: end;
    display: grid;
    justify-items: end;
    gap: 20px;
    align-self: center;
  }

  .facial__price,
  .facial__go {
    grid-area: auto;
  }

  .facial__price {
    font-size: 2.25rem;
  }
}

/* --------------------------------------------------------------------------
   Meet Alyssa (the cocoa color block)
   -------------------------------------------------------------------------- */

.meet {
  background: var(--cocoa);
  color: var(--on-cocoa);
  padding: clamp(72px, 10vw, 128px) 0;
}

.meet__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.meet__photo {
  overflow: hidden;
  border-radius: var(--r-photo);
  aspect-ratio: 4 / 5;
  max-width: 520px;
}

.meet__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meet__copy p {
  max-width: 44ch;
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--on-cocoa-2);
}

.meet__copy .meet__sign {
  margin-top: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--peach);
}

@media (min-width: 900px) {
  .meet__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 88px;
  }
}

/* --------------------------------------------------------------------------
   Good to know: photo, hours, location and policies
   -------------------------------------------------------------------------- */

.info {
  background: var(--sand);
  padding: clamp(72px, 10vw, 128px) 0;
}

.info__grid {
  display: grid;
  gap: 14px;
  margin-top: clamp(24px, 4vw, 40px);
}

.info__photo {
  overflow: hidden;
  border-radius: var(--r-photo);
  aspect-ratio: 16 / 9;
}

.info__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.tile {
  padding: 24px;
  border-radius: var(--r-panel);
  background: var(--shell);
}

.tile p {
  color: var(--ink-2);
  font-size: 1rem;
}

.tile__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 500;
}

.tile__title i {
  font-size: 1.25rem;
  color: var(--sage-deep);
}

.tile .tile__fine {
  margin-top: 12px;
  font-size: 0.875rem;
}

.hours {
  margin: 6px 0 0;
  display: grid;
  gap: 8px;
}

/* Stacked so long day ranges never wrap awkwardly in the narrow tile. */
.hours div {
  display: grid;
}

.hours dt {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.hours dd {
  margin: 0;
  font-weight: 400;
}

@media (min-width: 720px) {
  .info__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info__photo {
    grid-column: 1 / -1;
    aspect-ratio: 21 / 8;
  }
}

@media (min-width: 1040px) {
  .info__grid {
    grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
    grid-auto-flow: column;
  }

  .info__photo {
    grid-column: auto;
    grid-row: span 2;
    aspect-ratio: auto;
    min-height: 100%;
  }
}

/* --------------------------------------------------------------------------
   Closing call to action and footer
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(420px, 62vh, 620px);
  overflow: hidden;
  color: var(--on-cocoa);
  text-align: center;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(42, 31, 24, 0.58), rgba(42, 31, 24, 0.7));
}

.cta h2 {
  font-size: clamp(2.6rem, 8vw, 4.75rem);
}

.cta .btn {
  margin-top: clamp(24px, 4vw, 36px);
}

.footer {
  padding: 26px 0 30px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.footer__inner img {
  height: 34px;
  width: auto;
}

.footer__inner p {
  margin-left: auto;
}

@media (max-width: 640px) {
  .footer__inner {
    justify-content: center;
    text-align: center;
  }

  .footer__inner p {
    margin-left: 0;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Booking flow
   -------------------------------------------------------------------------- */

.book {
  padding: 92px 0 150px;
  min-height: 100dvh;
}

.book__title {
  font-size: clamp(2.4rem, 9vw, 3.4rem);
}

.panel {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-soft);
}

.stepper {
  list-style: none;
  margin: 20px 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.stepper button {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 14px 0 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 300 0.9375rem/1.2 var(--font);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.stepper button:disabled {
  cursor: default;
}

.stepper button::before,
.stepper button::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--r-pill);
}

.stepper button::before {
  background: rgba(43, 33, 26, 0.12);
}

.stepper button::after {
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out), background-color 0.4s ease;
}

.stepper [data-state="current"] {
  font-weight: 500;
}

.stepper [data-state="current"]::after {
  transform: scaleX(1);
}

.stepper [data-state="done"]::after {
  transform: scaleX(1);
  background: var(--cocoa);
}

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

.step > h2 {
  font-size: 1.875rem;
  margin-bottom: 18px;
}

.step.enter-fwd {
  animation: slide-fwd 0.55s var(--ease-out);
}

.step.enter-back {
  animation: slide-back 0.55s var(--ease-out);
}

/* Treatment options */
.options {
  display: grid;
  gap: 12px;
}

.option {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  grid-template-areas:
    "img name price"
    "img meta meta"
    "img desc desc";
  align-items: start;
  gap: 2px 14px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--r-inner);
  border: 1px solid rgba(43, 33, 26, 0.22);
  background: rgba(255, 250, 244, 0.6);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.4s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}

.option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.option__img {
  grid-area: img;
  width: 76px;
  height: 95px;
  border-radius: 10px;
  object-fit: cover;
}

.option__name {
  grid-area: name;
  padding-top: 2px;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.15;
}

.option__price {
  grid-area: price;
  padding-top: 2px;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: right;
}

.option__meta {
  grid-area: meta;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.option__desc {
  grid-area: desc;
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.option__check {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cocoa);
  color: var(--ivory);
  font-size: 0.9375rem;
  transform: scale(0);
  transition: transform 0.45s var(--ease-spring);
}

.option:has(input:checked) {
  border-color: var(--cocoa);
  background: var(--field);
  box-shadow: 0 0 0 1px var(--cocoa);
}

.option:has(input:checked) .option__check {
  transform: scale(1);
}

.option:has(input:focus-visible) {
  outline: 2px solid var(--cocoa);
  outline-offset: 3px;
}

.option:active {
  transform: scale(0.985);
}

/* Day and time */
.when {
  display: grid;
  gap: 26px;
}

/* Without this the long date strip widens the column and pushes the times off-screen. */
.when > * {
  min-width: 0;
}

/* Open dates: a swipeable strip on phones, a tidy grid on wider screens */
.dates__title,
.slots__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.dates__list {
  display: flex;
  gap: 8px;
  margin: 0 -18px;
  padding: 2px 18px 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 18px;
  scrollbar-width: none;
}

.dates__list::-webkit-scrollbar {
  display: none;
}

.dates__list .empty {
  flex: 1;
}

.date {
  flex: none;
  width: 76px;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 6px 11px;
  border: 1px solid rgba(43, 33, 26, 0.22);
  border-radius: var(--r-inner);
  background: rgba(255, 250, 244, 0.6);
  color: var(--ink);
  font: 300 1rem/1.1 var(--font);
  cursor: pointer;
  scroll-snap-align: start;
  animation: rise 0.5s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 40ms);
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.4s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}

.date__dow,
.date__mon {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.date__num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.date[aria-pressed="true"] {
  background: var(--cocoa);
  border-color: var(--cocoa);
  color: var(--ivory);
}

.date[aria-pressed="true"] .date__dow,
.date[aria-pressed="true"] .date__mon {
  color: var(--on-cocoa-2);
}

.date:active {
  transform: scale(0.95);
}

.date--skeleton {
  height: 86px;
  border-color: transparent;
  background: linear-gradient(
      100deg,
      rgba(43, 33, 26, 0.06) 40%,
      rgba(43, 33, 26, 0.12) 50%,
      rgba(43, 33, 26, 0.06) 60%
    )
    0 0 / 220% 100%;
  animation: shimmer 1.2s linear infinite;
  pointer-events: none;
}

.slots__body {
  min-height: 176px;
}

.slots .fine {
  margin-top: 16px;
}

.slots__group {
  margin: 14px 0 8px;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.slots__group:first-child {
  margin-top: 0;
}

.slots__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.slot {
  min-height: 48px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(43, 33, 26, 0.28);
  background: rgba(255, 250, 244, 0.6);
  color: var(--ink);
  font: 400 0.9375rem/1 var(--font);
  cursor: pointer;
  animation: rise 0.5s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 30ms);
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.4s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}

.slot[aria-pressed="true"] {
  background: var(--cocoa);
  border-color: var(--cocoa);
  color: var(--ivory);
  transform: scale(1.04);
}

.slot:active {
  transform: scale(0.94);
}

.slot--skeleton {
  border-color: transparent;
  background: linear-gradient(
      100deg,
      rgba(43, 33, 26, 0.06) 40%,
      rgba(43, 33, 26, 0.12) 50%,
      rgba(43, 33, 26, 0.06) 60%
    )
    0 0 / 220% 100%;
  animation: shimmer 1.2s linear infinite;
  pointer-events: none;
}

.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px 12px;
  text-align: center;
  color: var(--ink-2);
  animation: rise 0.5s var(--ease-out);
}

.empty i {
  font-size: 1.75rem;
}

.empty strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

.empty .chip {
  margin-top: 6px;
}

@media (hover: hover) {
  .date:not([aria-pressed="true"]):hover,
  .slot:not([aria-pressed="true"]):hover,
  .option:not(:has(input:checked)):hover {
    border-color: var(--cocoa);
    background: var(--field);
  }
}

/* Details form */
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 400;
}

.field label span {
  font-weight: 300;
  color: var(--ink-2);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(43, 33, 26, 0.42);
  border-radius: var(--r-inner);
  background: var(--field);
  color: var(--ink);
  font: 300 1rem/1.4 var(--font);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7a6b5e;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cocoa);
  box-shadow: 0 0 0 3px rgba(58, 43, 34, 0.14);
}

.field [aria-invalid="true"],
.field [aria-invalid="true"]:focus {
  border-color: var(--danger);
}

.field [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(155, 44, 31, 0.16);
}

.field__hint {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--danger);
  animation: rise 0.35s var(--ease-out);
}

.form__note {
  margin-top: 4px;
}

.form__error {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--r-inner);
  background: rgba(155, 44, 31, 0.08);
  color: var(--danger);
  font-size: 0.9375rem;
  font-weight: 400;
}

/* Confirmation */
.done {
  text-align: center;
}

.done__badge {
  width: 64px;
  height: 64px;
  margin: 4px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: var(--on-sage);
  font-size: 1.875rem;
  animation: pop 0.7s var(--ease-spring) 0.15s backwards;
}

.step.done > h2 {
  font-size: clamp(2.1rem, 8vw, 2.75rem);
  margin-bottom: 10px;
}

.done__lead {
  max-width: 36ch;
  margin-inline: auto;
  color: var(--ink-2);
}

.done__lead strong {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

/* Deposit: Zelle and Venmo side by side, each with its QR code */
.pay {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.payway {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 20px 18px;
  border-radius: var(--r-panel);
  background: var(--field);
  border: 1px solid var(--line);
  text-align: center;
}

.payway__name {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
}

.payway__qr {
  width: min(100%, 180px);
  padding: 10px;
  border-radius: var(--r-inner);
  background: #fff; /* QR codes need a plain light background to scan */
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.payway__qr img {
  width: 100%;
  height: auto;
}

.payway__to {
  color: var(--ink-2);
}

.payway__to strong {
  color: var(--ink);
}

.payway__handle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.payway__how {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.payway__save {
  font-size: 0.9375rem;
}

.payway__open {
  margin-top: 4px;
}

@media (min-width: 560px) {
  .pay {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }
}

/* Spam trap: off-screen for people, still there for bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--cocoa);
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--ink);
  font: 400 0.875rem/1 var(--font);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    transform 0.4s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}

.chip:active {
  transform: scale(0.93);
}

.chip.is-copied {
  background: var(--cocoa);
  color: var(--ivory);
}

.receipt {
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.receipt div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.receipt dt {
  color: var(--ink-2);
}

.receipt dd {
  margin: 0;
  font-weight: 400;
  text-align: right;
}

.done .fine {
  max-width: 44ch;
  margin: 0 auto 22px;
}

.preview-note {
  margin-top: 18px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* Floating dock with the running summary and the next action */
.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
  animation: dock-in 0.8s var(--ease-out) 0.25s backwards;
}

.dock__inner {
  pointer-events: auto;
  width: min(100%, 760px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: var(--r-pill);
  background: var(--cocoa);
  color: var(--ivory);
  box-shadow: 0 22px 40px -18px rgba(42, 31, 24, 0.8);
}

.dock__back {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(243, 237, 228, 0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--ivory);
  font-size: 1.125rem;
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring), background-color 0.2s ease;
}

.dock__back:active {
  transform: scale(0.9);
}

.dock__back:focus-visible,
.dock .btn:focus-visible {
  outline-color: var(--ivory);
}

.dock__summary {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 8px;
  line-height: 1.25;
}

.dock__back:not([hidden]) + .dock__summary {
  padding-left: 0;
}

.dock__summary strong,
.dock__summary span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dock__summary strong {
  font-size: 0.9375rem;
  font-weight: 500;
}

.dock__summary span {
  font-size: 0.8125rem;
  color: var(--on-cocoa-2);
}

.dock .btn {
  flex: none;
  background: var(--ivory);
  color: var(--cocoa);
  box-shadow: none;
}

.dock .btn.is-busy::after {
  content: "";
  width: 1.1em;
  text-align: left;
  animation: dots 1.1s steps(4, end) infinite;
}

@media (hover: hover) {
  .dock__back:hover {
    background: rgba(243, 237, 228, 0.12);
  }

  .chip:hover {
    background: var(--cocoa);
    color: var(--ivory);
  }
}

@media (min-width: 720px) {
  .book {
    padding-top: 108px;
  }

  .step {
    padding: 36px 36px 32px;
  }

  .option {
    grid-template-columns: 92px minmax(0, 1fr) auto;
    padding: 14px 20px 14px 14px;
    gap: 2px 18px;
  }

  .option__img {
    width: 92px;
    height: 115px;
  }

  .when {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
  }

  .dates__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    margin: 0;
    padding: 2px 0 0;
    overflow: visible;
  }

  .date {
    width: auto;
  }

  .dock {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .dock__inner {
    padding-left: 14px;
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
}

@keyframes inflate {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  42% {
    opacity: 1;
    transform: scale(1.09, 1.05);
  }
  62% {
    transform: scale(0.97, 1.02);
  }
  80% {
    transform: scale(1.02, 0.99);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes squish {
  0% {
    transform: scale(1);
  }
  22% {
    transform: scale(1.1, 0.86);
  }
  48% {
    transform: scale(0.95, 1.07);
  }
  70% {
    transform: scale(1.03, 0.97);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  from {
    transform: translateY(-6px) rotate(-1deg);
  }
  to {
    transform: translateY(6px) rotate(1deg);
  }
}

@keyframes pop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@keyframes slide-fwd {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
}

@keyframes slide-back {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
}

@keyframes dock-in {
  from {
    opacity: 0;
    transform: translateY(120%);
  }
}

@keyframes dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .toy__img {
    animation: none;
  }
}
