/* Chosen Jay Coaching
   The site is Jay's appointment card and appointment book. */

:root{
  /* paper & ink */
  --paper: #FDFDFB;
  --ink: #16171A;
  --ink-soft: #4A4D55;
  --rule: #D9DBE0;

  /* card stock */
  --cobalt: #1D3FBF;
  --cobalt-deep: #142E8C;
  --on-cobalt: #FFFFFF;
  --on-cobalt-soft: #CBD5FB;

  /* appointment book */
  --ledger: #E5EFE0;
  --ledger-rule: #A9C1DE;
  --margin-red: #D23B2E;

  /* pen & stamp */
  --pen: #1E3594;
  --stamp: #6B3DB8;

  --error: #B42318;
  --success: #1E6B43;

  --font-print: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-pen: "Nanum Pen Script", "Bradley Hand", cursive;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;
  --header-h: 68px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t: 180ms;

  /* uneven rubber-stamp ink */
  --ink-grain: 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='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 2.1'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-print);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--pen);
  scrollbar-color: var(--ink-soft) var(--paper);
  overflow-x: hidden;
}
img{ display: block; max-width: 100%; height: auto; }
a{ color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select, textarea{ font: inherit; color: inherit; }
button{ cursor: pointer; touch-action: manipulation; }
h1, h2, h3{ margin: 0; font-weight: 750; line-height: 1.02; letter-spacing: -.02em; font-variation-settings: "wdth" 82; text-wrap: balance; }
p{ margin: 0 0 1rem; }
::selection{ background: var(--cobalt); color: #fff; }
:focus-visible{ outline: 2px solid var(--cobalt); outline-offset: 3px; }
.cobalt :focus-visible, .site-footer :focus-visible, .hero-card-field :focus-visible{ outline-color: #fff; }
.appt-card :focus-visible{ outline-color: var(--cobalt); }
[tabindex="-1"]:focus{ outline: none; }
[hidden]{ display: none !important; }
.visually-hidden{ position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap{ width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip-link{ position: absolute; left: 1rem; top: -100px; z-index: 999; background: var(--ink); color: #fff; padding: .75rem 1rem; text-decoration: none; font-weight: 650; }
.skip-link:focus{ top: 1rem; }

.ic{ width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.4rem;
  border: 0; border-radius: 3px;
  background: var(--ink); color: #fff;
  font-weight: 650; font-size: 1rem; letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: background var(--t) ease, color var(--t) ease, transform var(--t) ease;
}
.btn:hover{ background: var(--cobalt); }
.btn:active{ transform: translateY(1px); }
.btn .ic{ width: 18px; height: 18px; transition: transform var(--t) var(--ease-out); }
.btn:hover .ic--arrow{ transform: translateX(3px); }
.btn--paper{ background: #fff; color: var(--ink); }
.btn--paper:hover{ background: var(--ledger); color: var(--ink); }
.btn--line{ background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover{ background: var(--ink); color: #fff; }
.btn--sm{ min-height: 44px; padding: .55rem 1rem; font-size: .9375rem; }
.btn--block{ width: 100%; }
.btn[aria-disabled="true"]{ opacity: .5; pointer-events: none; }
.spinner{ width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.link-arrow{ display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 650; text-decoration: underline; }
.link-arrow .ic{ width: 16px; height: 16px; transition: transform var(--t) var(--ease-out); }
.link-arrow:hover .ic{ transform: translateX(3px); }

/* ---------- wordmark ---------- */
.wordmark{ display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; min-height: 44px; }
.wordmark b{ font-weight: 850; font-size: 1.2rem; letter-spacing: .01em; text-transform: uppercase; font-variation-settings: "wdth" 68; line-height: 1; }
.wordmark span{ font-size: .875rem; color: var(--ink-soft); padding-left: .6rem; border-left: 1px solid currentColor; line-height: 1; }

/* ---------- header ---------- */
.site-header{ position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner{ display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.nav-list{ display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a{ display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem; font-size: .9375rem; font-weight: 550; text-decoration: none; color: var(--ink-soft); transition: color var(--t) ease; }
.nav-list a:hover{ color: var(--ink); text-decoration: underline; }
.nav-list a[aria-current="true"]{ color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--cobalt); }
.header-actions{ display: flex; align-items: center; gap: .5rem; }
.menu-toggle{ display: none; width: 48px; height: 48px; border: 0; background: transparent; align-items: center; justify-content: center; }
.menu-toggle .ic{ width: 24px; height: 24px; }
.nav-cta-mobile{ display: none !important; }

@media (max-width: 900px){
  .menu-toggle{ display: inline-flex; }
  .site-nav{
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 50;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.5rem;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 260ms var(--ease-out), visibility 0s linear 260ms;
  }
  .site-nav.is-open{ clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
  .nav-list{ flex-direction: column; }
  .nav-list a{ min-height: 56px; padding: 0; font-size: 1.25rem; color: var(--ink); border-bottom: 1px solid var(--rule); }
  .nav-cta-mobile{ display: flex !important; margin-top: 1.25rem; }
}
@media (max-width: 480px){ .header-actions .btn{ display: none; } .wordmark span{ display: none; } }

/* ---------- hero ---------- */
.hero{ display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: min(720px, calc(100dvh - var(--header-h))); }
.hero-copy{ padding: clamp(2.5rem, 6vw, 5.5rem) var(--gutter) clamp(2.5rem, 5vw, 4.5rem) max(var(--gutter), calc((100vw - var(--max)) / 2)); display: flex; flex-direction: column; justify-content: center; }
.hero h1{ font-size: clamp(2.4rem, 1.1rem + 4.4vw, 5rem); font-variation-settings: "wdth" 78; font-weight: 780; letter-spacing: -.025em; line-height: .98; max-width: 14ch; margin-bottom: 1.75rem; }
.hero-sub{ font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--ink-soft); max-width: 38ch; margin-bottom: 0; }

.hero-card-field{ background: var(--cobalt); color: var(--on-cobalt); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(2.5rem, 5vw, 4rem) var(--gutter); }
.hero-card-field .card-note{ margin: 1.75rem 0 0; color: var(--on-cobalt-soft); font-size: .9375rem; text-align: center; }
.hero-card-field .card-note a{ color: #fff; font-weight: 600; }

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; min-height: 0; }
  .hero-copy{ padding-inline: var(--gutter); }
  .hero h1{ max-width: 15ch; }
}

/* ---------- appointment card ---------- */
.appt-card{
  position: relative;
  width: min(100%, 420px);
  background: #fff; color: var(--ink);
  border-radius: 3px;
  padding: 1.5rem 1.6rem 1.25rem;
  /* printed card lying flat on the stock: hairline edge, tight contact shadow */
  box-shadow: 0 0 0 1px rgba(10, 18, 60, .18), 0 1px 2px rgba(10, 18, 60, .28);
}
.appt-card::before{ content: ""; position: absolute; inset: 7px; border: 1px solid #C9D2F2; border-radius: 2px; pointer-events: none; }
.hero-card-field .appt-card{ transform: rotate(-1.2deg); }
.appt-head{ display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-bottom: .65rem; border-bottom: 2px solid var(--cobalt); color: var(--cobalt); }
.appt-head b{ font-weight: 850; font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; font-variation-settings: "wdth" 68; line-height: 1.1; }
.appt-head b small{ display: block; font-weight: 500; font-size: .75rem; letter-spacing: .04em; text-transform: none; font-variation-settings: "wdth" 100; }
.appt-head span{ font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.appt-rows{ margin: .5rem 0 0; display: grid; }
.appt-row{ display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); align-items: end; gap: .5rem; border-bottom: 1px solid #B9C4E8; min-height: 3rem; padding-bottom: .1rem; }
.appt-row dt{ font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); padding-bottom: .45rem; }
.appt-row dd{ margin: 0; font-family: var(--font-pen); font-size: 1.85rem; line-height: 1.05; color: var(--pen); min-height: 1.9rem; overflow-wrap: anywhere; }
.appt-row dd.is-fresh{ animation: ink 420ms var(--ease-out); }
@keyframes ink{ from{ clip-path: inset(0 100% 0 0); } to{ clip-path: inset(0 0 0 0); } }
.appt-small{ margin: .9rem 0 0; font-size: .75rem; line-height: 1.45; color: var(--cobalt); }
.appt-card .btn{ margin-top: 1.1rem; }

.stamp{
  position: absolute; right: .9rem; top: .35rem;
  padding: .25rem .7rem .15rem;
  border: 3px solid var(--stamp); border-radius: 6px;
  color: var(--stamp);
  font-weight: 900; font-size: 1.7rem; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: "wdth" 70; line-height: 1.1;
  transform: rotate(-11deg);
  mix-blend-mode: multiply;
  opacity: 0; pointer-events: none;
  -webkit-mask-image: var(--ink-grain);
          mask-image: var(--ink-grain);
  -webkit-mask-size: 180px 180px;
          mask-size: 180px 180px;
}
.appt-card.is-booked .appt-head span{ visibility: hidden; }
.appt-card.is-booked .stamp{ animation: stamp 520ms var(--ease-out) forwards; }
@keyframes stamp{
  0%{ opacity: 0; transform: rotate(-11deg) scale(1.7); filter: blur(3px); }
  60%{ opacity: .95; transform: rotate(-11deg) scale(.96); filter: blur(0); }
  100%{ opacity: .9; transform: rotate(-11deg) scale(1); }
}

/* ---------- photo band ---------- */
.photo-band{ margin: 0; }
.photo-band img{ width: 100%; aspect-ratio: 2 / 1; max-height: 640px; object-fit: cover; object-position: 50% 35%; background: #c9cbd1; }
@media (max-width: 640px){ .photo-band img{ aspect-ratio: 4 / 3; } }

/* ---------- sections ---------- */
.section{ padding-block: clamp(4rem, 3rem + 5vw, 7.5rem); }
.section-title{ font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); margin-bottom: 1.25rem; max-width: 18ch; }
.section-intro{ font-size: 1.1875rem; color: var(--ink-soft); max-width: 52ch; margin-bottom: 0; }

/* sound familiar */
.familiar-head{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.familiar-head .section-title{ margin-bottom: 0; }
.familiar{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 4vw, 4rem); }
.familiar-col figure{ margin: 0 0 1.75rem; }
.familiar-col img{ width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #c9cbd1; }
.familiar-col h3{ font-size: 1.75rem; margin-bottom: .75rem; }
.said{ list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.said li{ padding: 1rem 0; border-bottom: 1px solid var(--rule); font-size: 1.125rem; }
.said li::before{ content: "\201C"; color: var(--cobalt); font-weight: 800; }
.said li::after{ content: "\201D"; color: var(--cobalt); font-weight: 800; }
.familiar-foot{ margin-top: clamp(2rem, 4vw, 3rem); font-size: 1.1875rem; max-width: 52ch; }
@media (max-width: 820px){ .familiar-head, .familiar{ grid-template-columns: 1fr; } }

/* ledger: what we work on */
.ledger{ position: relative; background: var(--ledger); }
.ledger::before{
  content: ""; position: absolute; top: 0; bottom: 0;
  left: max(calc(var(--gutter) - 16px), calc((100vw - var(--max)) / 2 - 24px));
  width: 4px; border-left: 1px solid var(--margin-red); border-right: 1px solid var(--margin-red); pointer-events: none;
}
.work{ display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
/* a ruled page: every line of text sits on a rule, one blank rule between entries */
.work-list{
  --line: 2.25rem;
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--ledger-rule);
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--line) - 1px), var(--ledger-rule) calc(var(--line) - 1px) var(--line));
}
.work-list li{ display: grid; grid-template-columns: minmax(8.5rem, .4fr) minmax(0, 1fr); column-gap: 2rem; padding-bottom: var(--line); }
.work-list li:last-child{ padding-bottom: 0; }
.work-list h3{ font-size: 1.5rem; line-height: var(--line); font-variation-settings: "wdth" 78; }
.work-list p{ margin: 0; line-height: var(--line); color: var(--ink-soft); max-width: 46ch; }
@media (max-width: 860px){ .work{ grid-template-columns: 1fr; } .ledger::before{ left: 6px; } }
@media (max-width: 520px){ .work-list li{ grid-template-columns: 1fr; } }

/* about */
.about{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about figure{ margin: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
.about img{ width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #c9cbd1; }
.letter{ max-width: 60ch; }
.letter .section-title{ margin-bottom: 1.75rem; }
.letter p{ font-size: 1.125rem; }
.letter p.first{ font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); line-height: 1.4; font-weight: 500; }
.letter .signature{ font-family: var(--font-pen); font-size: 2.75rem; color: var(--pen); line-height: 1; margin-top: 1.5rem; }
@media (max-width: 820px){ .about{ grid-template-columns: 1fr; } .about figure{ position: static; max-width: 460px; } }

/* sessions: price list on card stock */
.cobalt{ background: var(--cobalt); color: var(--on-cobalt); }
.cobalt .section-title{ color: #fff; }
.cobalt .section-intro{ color: var(--on-cobalt-soft); }
.sessions-head{ margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.price-list{ list-style: none; margin: 0; padding: 0; border-top: 2px solid #fff; }
.price-item{ display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 2rem; padding: 1.75rem 0; border-bottom: 1px solid rgba(255,255,255,.35); }
.price-line{ display: flex; align-items: baseline; gap: .75rem; grid-column: 1 / -1; }
.price-line h3{ font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-variation-settings: "wdth" 78; }
.price-line .leader{ flex: 1; border-bottom: 2px dotted rgba(255,255,255,.55); transform: translateY(-.3em); min-width: 1.5rem; }
.price-line .price{ font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 750; font-variation-settings: "wdth" 78; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-item p{ color: var(--on-cobalt-soft); margin: 0; max-width: 58ch; }
.price-item .meta{ display: block; color: #fff; font-weight: 600; font-size: .9375rem; margin-bottom: .25rem; }
.price-item .link-arrow{ color: #fff; align-self: end; }
@media (max-width: 560px){ .price-item{ grid-template-columns: 1fr; } .price-item .link-arrow{ justify-self: start; } }

/* ---------- booking: the appointment book ---------- */
.book-head{ margin-bottom: clamp(2rem, 4vw, 3rem); }
.book{ display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.book .appt-card{ position: sticky; top: calc(var(--header-h) + 1.5rem); }
.book-page{ min-width: 0; }

.stepper{ display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0 0 1.75rem; padding: 0 0 .9rem; border-bottom: 1px solid var(--ledger-rule); }
.stepper li{ font-size: .9375rem; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: .5rem; }
.stepper li b{ display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.stepper li.is-active{ color: var(--ink); }
.stepper li.is-active b{ background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper li.is-done{ color: var(--cobalt); }

.panel h3{ font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin-bottom: .5rem; }
.panel-sub{ color: var(--ink-soft); margin-bottom: 1.5rem; max-width: 56ch; }
fieldset{ border: 0; margin: 0; padding: 0; min-width: 0; }
legend{ padding: 0; font-weight: 650; margin-bottom: .6rem; }

/* session choice: ruled rows */
.choice-list{ border-top: 1px solid var(--ledger-rule); }
.choice{ position: relative; }
.choice input{ position: absolute; opacity: 0; pointer-events: none; }
.choice label{ display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.1rem .75rem; border-bottom: 1px solid var(--ledger-rule); cursor: pointer; transition: background var(--t) ease; }
.choice label:hover{ background: rgba(255,255,255,.55); }
.choice .tick{ width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; background: #fff; }
.choice input:checked + label{ background: #fff; }
.choice input:checked + label .tick::after{ content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cobalt); }
.choice input:focus-visible + label{ outline: 2px solid var(--cobalt); outline-offset: -2px; }
.choice strong{ display: block; font-size: 1.125rem; }
.choice small{ display: block; color: var(--ink-soft); font-size: .9375rem; }
.choice .price{ font-weight: 750; font-variant-numeric: tabular-nums; font-size: 1.125rem; }

.format{ display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.format legend{ width: 100%; }
.pill{ position: relative; }
.pill input{ position: absolute; opacity: 0; pointer-events: none; }
.pill label{ display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .5rem 1.1rem; border: 1.5px solid var(--ink); border-radius: 3px; background: #fff; font-weight: 600; cursor: pointer; transition: background var(--t) ease, color var(--t) ease; }
.pill label .ic{ width: 18px; height: 18px; }
.pill input:checked + label{ background: var(--ink); color: #fff; }
.pill input:focus-visible + label{ outline: 2px solid var(--cobalt); outline-offset: 3px; }

/* calendar + times */
.when{ display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.cal-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.cal-title{ font-weight: 750; font-size: 1.25rem; margin: 0; font-variation-settings: "wdth" 85; }
.cal-nav{ display: flex; gap: .25rem; }
.icon-btn{ width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 3px; background: #fff; display: grid; place-items: center; transition: background var(--t) ease, color var(--t) ease; }
.icon-btn:hover:not(:disabled){ background: var(--ink); color: #fff; }
.icon-btn:disabled{ opacity: .3; cursor: not-allowed; }
.icon-btn .ic{ width: 18px; height: 18px; }
.cal-grid{ display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--ledger-rule); border-left: 1px solid var(--ledger-rule); }
.cal-grid > *{ border-right: 1px solid var(--ledger-rule); border-bottom: 1px solid var(--ledger-rule); }
.cal-dow{ font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-align: center; padding: .45rem 0; color: var(--ink-soft); }
.cal-day{ aspect-ratio: 1; min-height: 44px; border-top: 0; border-left: 0; background: transparent; font-variant-numeric: tabular-nums; font-weight: 500; color: #6E746D; position: relative; padding: 0; border-radius: 0; }
.cal-day:disabled{ cursor: default; }
.cal-day.is-available{ background: #fff; color: var(--ink); font-weight: 700; }
.cal-day.is-available:hover{ background: #EEF1FC; }
.cal-day.is-today::after{ content: ""; position: absolute; left: 50%; bottom: 5px; width: 14px; height: 2px; background: var(--margin-red); transform: translateX(-50%); }
.cal-day[aria-pressed="true"]{ background: var(--cobalt); color: #fff; }
.cal-day[aria-pressed="true"]:hover{ background: var(--cobalt-deep); }

.times-head{ font-weight: 750; font-size: 1.25rem; margin: 0 0 .15rem; font-variation-settings: "wdth" 85; min-height: 44px; display: flex; align-items: center; }
.tz-note{ font-size: .875rem; color: var(--ink-soft); margin-bottom: .75rem; }
.slots{ border-top: 1px solid var(--ledger-rule); max-height: 380px; overflow-y: auto; scrollbar-width: thin; }
.slot{ display: flex; align-items: center; gap: 1rem; width: 100%; min-height: 48px; padding: 0 .75rem; border: 0; border-bottom: 1px solid var(--ledger-rule); background: transparent; text-align: left; font-variant-numeric: tabular-nums; font-weight: 650; transition: background var(--t) ease; }
.slot:hover{ background: rgba(255,255,255,.6); }
.slot .mark{ font-family: var(--font-pen); font-weight: 400; font-size: 1.6rem; color: var(--pen); line-height: 1; opacity: 0; transition: opacity var(--t) ease; }
.slot[aria-pressed="true"]{ background: #fff; }
.slot[aria-pressed="true"] .mark{ opacity: 1; }
.times-empty{ border-top: 1px solid var(--ledger-rule); padding: 1.25rem 0; color: var(--ink-soft); margin: 0; }
@media (max-width: 760px){ .when{ grid-template-columns: 1fr; } .slots{ max-height: none; } }

/* details */
.form-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.field{ display: flex; flex-direction: column; gap: .35rem; }
.field--full{ grid-column: 1 / -1; }
.field label{ font-weight: 650; font-size: .9375rem; }
.field .opt{ font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea{
  width: 100%; min-height: 52px; padding: .75rem .9rem;
  background: #fff; border: 1.5px solid #8E978E; border-radius: 3px;
  font-size: 1rem; transition: border-color var(--t) ease, box-shadow var(--t) ease;
}
.field textarea{ min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover{ border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus{ outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(29,63,191,.18); }
.field ::placeholder{ color: #6B706A; }
.hint{ font-size: .875rem; color: var(--ink-soft); }
.error{ display: none; align-items: center; gap: .35rem; font-size: .875rem; font-weight: 600; color: var(--error); }
.error .ic{ width: 15px; height: 15px; }
.field.has-error input, .field.has-error select, .field.has-error textarea{ border-color: var(--error); }
.field.has-error .error{ display: flex; }
.consent{ grid-column: 1 / -1; display: flex; gap: .75rem; align-items: flex-start; font-size: .9375rem; color: var(--ink-soft); cursor: pointer; }
.consent input{ width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--cobalt); flex-shrink: 0; }
@media (max-width: 600px){ .form-grid{ grid-template-columns: 1fr; } }

.panel-actions{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.panel-actions .back{ background: none; border: 0; padding: 0 .25rem; min-height: 44px; font-weight: 650; display: inline-flex; align-items: center; gap: .35rem; text-decoration: underline; text-underline-offset: .22em; }
.panel-actions .back .ic{ width: 16px; height: 16px; }
.panel-actions .spacer{ flex: 1; }
.form-alert{ display: none; gap: .5rem; align-items: flex-start; margin-top: 1.25rem; padding: .85rem 1rem; background: #fff; border: 1.5px solid var(--error); border-radius: 3px; color: var(--error); font-weight: 600; font-size: .9375rem; }
.form-alert.is-visible{ display: flex; }
.form-alert .ic{ width: 18px; height: 18px; margin-top: 2px; }
@media (max-width: 520px){ .panel-actions{ flex-direction: column-reverse; align-items: stretch; } .panel-actions .btn{ width: 100%; } .panel-actions .back{ align-self: center; } }

.done-actions{ display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.done .again{ margin-top: 1.5rem; background: none; border: 0; padding: 0; min-height: 44px; font-weight: 650; text-decoration: underline; text-underline-offset: .22em; }

@media (max-width: 900px){
  .book{ grid-template-columns: 1fr; }
  .book .appt-card{ position: relative; top: 0; transform: none; width: 100%; max-width: none; padding: 1rem 1.1rem .75rem; }
  .book .appt-card .appt-small{ display: none; }
  .book .appt-rows{ grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .book .appt-row{ grid-template-columns: 1fr; min-height: 0; gap: 0; padding-top: .35rem; }
  .book .appt-row dt{ padding-bottom: 0; }
  .book .appt-row dd{ font-size: 1.5rem; min-height: 1.6rem; }
  .book .stamp{ top: .1rem; font-size: 1.4rem; }
}

/* ---------- FAQ ---------- */
.faq{ display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
.faq-list{ border-top: 1px solid var(--ink); }
.faq-item{ border-bottom: 1px solid var(--rule); }
.faq-item summary{ list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; padding: .9rem 0; cursor: pointer; font-weight: 650; font-size: 1.125rem; transition: color var(--t) ease; }
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary .ic{ width: 20px; height: 20px; transition: transform var(--t) var(--ease-out); }
.faq-item[open] summary .ic{ transform: rotate(45deg); }
.faq-item summary:hover{ color: var(--cobalt); }
.faq-body{ padding: 0 0 1.25rem; color: var(--ink-soft); max-width: 62ch; }
.faq-body p:last-child{ margin: 0; }
@media (max-width: 860px){ .faq{ grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer{ background: var(--cobalt-deep); color: var(--on-cobalt-soft); padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.footer-cta{ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid rgba(255,255,255,.2); }
.footer-cta h2{ color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); max-width: 16ch; }
.footer-grid{ display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem; }
.site-footer .wordmark{ color: #fff; }
.site-footer .wordmark span{ color: var(--on-cobalt-soft); }
.footer-grid p{ max-width: 34ch; font-size: .9375rem; margin-top: .75rem; }
.footer-grid h3{ font-size: .875rem; font-weight: 700; letter-spacing: .02em; color: #fff; margin-bottom: .5rem; font-variation-settings: "wdth" 100; }
.footer-grid ul{ list-style: none; margin: 0; padding: 0; }
.footer-grid a{ display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; font-size: .9375rem; text-decoration: none; color: var(--on-cobalt-soft); }
.footer-grid a:hover{ color: #fff; text-decoration: underline; }
.footer-grid .ic{ width: 16px; height: 16px; }
.footer-bottom{ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .8125rem; }
.footer-bottom p{ margin: 0; }
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr 1fr; } .footer-grid > :first-child{ grid-column: 1 / -1; } }
@media (max-width: 420px){ .footer-grid{ grid-template-columns: 1fr; } }

/* Emanna Digital credit pill. The gold glow is the agency's own mark: keep it hardcoded. */
.footer-credit-bubble{
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1.1rem 0.45rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(235,240,255,0.85);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.footer-credit-bubble:hover, .footer-credit-bubble:focus-visible{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.32);
  transform: translateY(-1px);
  box-shadow:
    0 10px 28px -12px rgba(0,0,0,0.5),
    0 0 0 1px rgba(169,128,63,0.25),
    0 0 22px 4px rgba(169,128,63,0.45),
    0 0 46px 10px rgba(169,128,63,0.22);
}
.footer-credit-bubble:hover img, .footer-credit-bubble:focus-visible img{ filter: drop-shadow(0 0 6px rgba(169,128,63,0.65)); }
.footer-credit-bubble img{ height: 24px; width: auto; display: block; transition: filter 220ms ease; }
.footer-credit-bubble strong{ color: #E7CF9C; font-weight: 700; }

/* ---------- phone: sticky book button ---------- */
.mobile-book{ display: none; }
@media (max-width: 720px){
  .mobile-book{
    display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
    transform: translateY(160%); transition: transform 280ms var(--ease-out);
  }
  .mobile-book.is-visible{ transform: none; }
  .mobile-book .btn{ width: 100%; box-shadow: 0 10px 24px -10px rgba(10,18,60,.6); }
}

/* ---------- toast ---------- */
.toast{ position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 180%); background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 3px; font-weight: 600; font-size: .9375rem; max-width: calc(100% - 32px); transition: transform 280ms var(--ease-out); }
.toast.is-visible{ transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
