/* Amphion book page (book.amphionstudio.com). Grammar A, the Amphion "Wake-Up"
   storybook in its Atlantean blue paint: pill + circle geometry, soft tinted
   shadows, sub-1 degree tilts, the honey-gold moon for the action.
   External file on purpose: the desk serves this page under a strict CSP
   (style-src 'self'), so there is no inline style anywhere on the page.

   Theme: DARK is the default and lives on :root, so the page paints dark before
   any script runs. Light is the opt-in override (data-theme="light" on <html>,
   set by book.js from the viewer's saved pick). Every surface that carries text
   or a control is opaque: tints are color-mix of two solid colors, never of a
   color and transparent. Alpha is left only on shadows, the backdrop wash and
   the decorative rings, none of which sit under text. */

@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/Wnz6HAc5bAfYB2Q7ZjYY.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/6NUu8FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0K7iN7hzFUPJH58nib14c7qv8.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/static/fonts/6NUs8FyLNQOQZAnv9ZwNjucMHVn85Ni7emAe9lKqZTnbB-gzTK0K1ChJdt9vIVYX9G37lvd9mv0iQg.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2'); }

/* ---- dark (default): the amphionstudio.com night palette ---- */
:root {
  color-scheme: dark;
  --bg: #182233; --paper: #202c40; --ink: #eef4f8; --ink-soft: #aebccc; --ink-faint: #8a9ab0;
  /* tint (fills), bright (dots), deep (text + selected borders), line (resting control borders, >= 3:1 on paper) */
  --azure: #2b5a94; --azure-bright: #8fc6f4; --azure-deep: #8fc6f4; --azure-line: #6388ac;
  --sea: #1c6a61;   --sea-bright: #6fe0d0;   --sea-deep: #6fe0d0;   --sea-line: #4f9896;
  --sand: #6b561b;  --sand-bright: #f2cf5e;  --sand-deep: #f2cf5e;  --sand-line: #9e8e52;
  --moon-1: #f7dd8c; --moon-2: #e2b53e; --moon-ink: #14315c; --moon-focus: #f7dd8c;
  --on-accent: #182233;
  --error: #ff9cbb;
  --field-bg: #182233; --field-line: #8396b0;
  --line: #344860; --divider: #3d546f; --toggle-hover: #304259; --selection: #47627f;
  --backdrop: #0d141f; --body-top: #141f33; --body-bottom: #172a44;
  --wash-1: rgba(143,198,244,.12); --wash-2: rgba(111,224,208,.10); --wash-3: rgba(242,207,94,.08);
  --ring-1: color-mix(in srgb, var(--moon-2) 46%, transparent);
  --ring-2: color-mix(in srgb, var(--azure-bright) 34%, transparent);
  --ring-3: color-mix(in srgb, var(--sea-bright) 24%, transparent);
  --shadow-paper: 0 1px 2px rgba(0,0,0,.4), 0 18px 44px -16px rgba(0,0,0,.5), 0 44px 110px -36px rgba(143,198,244,.14);
  --shadow-card: 0 1px 2px rgba(0,0,0,.35), 0 26px 60px -30px rgba(0,0,0,.62), 0 50px 120px -50px rgba(111,224,208,.12);
  --shadow-pill: 0 10px 26px -16px rgba(0,0,0,.7);
  --shadow-moon: 0 18px 40px -14px rgba(226,181,62,.42), 0 4px 14px -6px rgba(0,0,0,.45);
  --shadow-moon-up: 0 24px 50px -14px rgba(226,181,62,.55), 0 4px 14px -6px rgba(0,0,0,.45);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238fc6f4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  --r-card: 28px; --pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* default accent until an instrument is picked */
  --acc: var(--azure); --acc-bright: var(--azure-bright); --acc-deep: var(--azure-deep); --acc-line: var(--azure-line);
}

/* ---- light (opt-in): the original morning paint ---- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7fbfc; --paper: #fdfeff; --ink: #22303f; --ink-soft: #4c5e78; --ink-faint: #6b7a8f;
  --azure: #a9cdee; --azure-bright: #7fb3e4; --azure-deep: #1d4e89; --azure-line: #6b8cb2;
  --sea: #9fdcd4;   --sea-bright: #74c9be;   --sea-deep: #176a62;   --sea-line: #4a8b85;
  --sand: #f0dca8;  --sand-bright: #ccb67b;  --sand-deep: #7a5e12;  --sand-line: #978146;
  --moon-1: #f7dd8c; --moon-2: #e2b53e; --moon-ink: #14315c; --moon-focus: #14315c;
  --on-accent: #f4fafc;
  --error: #8f2d52;
  --field-bg: #ffffff; --field-line: #7d8fa5;
  --line: #d7e8f7; --divider: #d0dbe7; --toggle-hover: #e6f0fa; --selection: #c2dcf3;
  --backdrop: #d8e7f0; --body-top: #e9f2fb; --body-bottom: #e8f5f2;
  --wash-1: rgba(127,179,228,.38); --wash-2: rgba(116,201,190,.3); --wash-3: rgba(226,181,62,.24);
  --ring-1: color-mix(in srgb, var(--moon-2) 60%, transparent);
  --ring-2: color-mix(in srgb, var(--azure-bright) 55%, transparent);
  --ring-3: color-mix(in srgb, var(--sea-bright) 42%, transparent);
  --shadow-paper: 0 1px 2px rgba(34,48,63,.06), 0 18px 44px -16px rgba(29,78,137,.22), 0 44px 110px -36px rgba(23,106,98,.18);
  --shadow-card: 0 1px 2px rgba(34,48,63,.05), 0 26px 60px -30px rgba(29,78,137,.34), 0 50px 120px -50px rgba(23,106,98,.2);
  --shadow-pill: 0 10px 30px -18px rgba(34,48,63,.35);
  --shadow-moon: 0 18px 40px -12px rgba(226,181,62,.62), 0 4px 14px -6px rgba(122,86,8,.28);
  --shadow-moon-up: 0 24px 50px -14px rgba(226,181,62,.75), 0 4px 14px -6px rgba(122,86,8,.28);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231d4e89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}

/* instrument key: Voice = azure, Piano = seafoam, Guitar = sand-gold */
.acc-voice  { --acc: var(--azure); --acc-bright: var(--azure-bright); --acc-deep: var(--azure-deep); --acc-line: var(--azure-line); }
.acc-piano  { --acc: var(--sea);   --acc-bright: var(--sea-bright);   --acc-deep: var(--sea-deep);   --acc-line: var(--sea-line); }
.acc-guitar { --acc: var(--sand);  --acc-bright: var(--sand-bright);  --acc-deep: var(--sand-deep);  --acc-line: var(--sand-line); }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }
svg { display: block; }

html {
  background:
    radial-gradient(900px 600px at 10% -6%, var(--wash-1), transparent 64%),
    radial-gradient(820px 640px at 94% 26%, var(--wash-2), transparent 62%),
    radial-gradient(700px 520px at 50% 108%, var(--wash-3), transparent 60%),
    var(--backdrop);
  background-repeat: no-repeat;
  min-height: 100%;
  scrollbar-color: var(--azure-line) var(--bg);
}
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.6; color: var(--ink);
  background: linear-gradient(180deg, var(--body-top) 0%, var(--bg) 24%, var(--bg) 72%, var(--body-bottom) 100%);
  max-width: 980px; margin: 28px auto; min-height: calc(100vh - 56px);
  border-radius: 36px; box-shadow: var(--shadow-paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
@media (max-width: 820px) { body { margin: 0; border-radius: 0; box-shadow: none; min-height: 100vh; } }

::selection { background: var(--selection); color: var(--ink); }
h1, h2 { font-family: 'Fraunces', Georgia, serif; line-height: 1.12; font-weight: 600; }
a { color: var(--azure-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--azure-deep); outline-offset: 3px; }
.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; }

/* ---- skip link ---- */
.skip {
  position: fixed; left: 14px; top: -64px; z-index: 50;
  background: var(--azure-deep); color: var(--on-accent); padding: 10px 18px;
  border-radius: var(--pill); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: top 160ms ease;
}
.skip:focus { top: 14px; }

/* ---- header: the wordmark pill, with the sun/moon switch riding in it ---- */
.top { position: relative; z-index: 1; display: flex; justify-content: center; padding: 22px 20px 0; }
.bar {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 4px 4px 14px; border-radius: var(--pill);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-pill);
}
.mark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 0 12px 0 2px; border-radius: var(--pill); white-space: nowrap;
  color: var(--ink); text-decoration: none;
}
.lyre { width: 26px; height: 26px; color: var(--azure-deep); flex: none; transition: transform 300ms var(--ease); }
.mark:hover .lyre, .mark:focus-visible .lyre { transform: rotate(-8deg); }
.mark-word { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 22px; letter-spacing: -.01em; line-height: 1; }
.mark-tail { display: inline-block; font-family: 'Caveat', 'Comic Sans MS', cursive; font-size: 23px; font-weight: 600; line-height: 1; color: var(--azure-deep); transform: rotate(-2deg) translateY(1px); }
.theme-toggle {
  flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--azure-line);
  transition: transform 300ms var(--ease), background 160ms ease, border-color 160ms ease;
}
.theme-toggle:hover { background: var(--toggle-hover); border-color: var(--azure-deep); transform: rotate(18deg); }
.theme-toggle svg { width: 20px; height: 20px; pointer-events: none; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
/* small phones: the wordmark and the switch share one pill on one line */
@media (max-width: 359px) {
  .top { padding-left: 12px; padding-right: 12px; }
  .bar { padding-left: 10px; }
  .mark { gap: 7px; padding-right: 8px; }
  .lyre { width: 22px; height: 22px; }
  .mark-word, .mark-tail { font-size: 20px; }
}

/* ---- main column ---- */
main { display: block; max-width: 760px; margin: 0 auto; padding: 0 20px 24px; }

/* ---- hero: the breath rings rise behind the title like the studio's sunrise,
   and fade out before the copy, so no stroke ever runs through a line of text ---- */
.hero { position: relative; isolation: isolate; text-align: center; padding: clamp(44px, 8vw, 76px) 0 clamp(30px, 4.4vw, 44px); }
.rings {
  position: absolute; left: 50%; width: 0; height: 0; z-index: -1; pointer-events: none;
  /* the title's first line: hero top padding + half its 1.12 line box */
  top: calc(clamp(44px, 8vw, 76px) + .56 * clamp(2.5rem, 7.4vw, 3.7rem));
}
.rings span {
  position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 57%);
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 57%);
}
.rings span:nth-child(1) { width: min(170px, 44vw); height: min(170px, 44vw); border: 2px solid var(--ring-1); }
.rings span:nth-child(2) { width: min(270px, 70vw); height: min(270px, 70vw); border: 1.5px solid var(--ring-2); }
.rings span:nth-child(3) { width: min(370px, 90vw); height: min(370px, 90vw); border: 1.5px solid var(--ring-3); }
@media (prefers-reduced-motion: no-preference) {
  .rings span { animation: breathe 6.4s ease-in-out infinite; }
  .rings span:nth-child(2) { animation-delay: .7s; }
  .rings span:nth-child(3) { animation-delay: 1.4s; }
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(.96); }
  50% { transform: translate(-50%, -50%) scale(1.04); }
}
.doodle {
  position: absolute; top: clamp(20px, 4vw, 40px); right: max(6px, calc(50% - 230px));
  width: clamp(36px, 7vw, 50px); height: clamp(36px, 7vw, 50px);
  color: var(--sea-deep); opacity: .75; transform: rotate(12deg);
}
.hero h1 { font-size: clamp(2.5rem, 7.4vw, 3.7rem); letter-spacing: -.015em; text-wrap: balance; color: var(--ink); }
.hero h1 em { font-style: italic; color: var(--azure-deep); }
.lede { max-width: 44ch; margin: 16px auto 0; font-size: clamp(16.5px, 2vw, 18.5px); text-wrap: pretty; }
.small { max-width: 52ch; margin: 10px auto 0; font-size: 15px; color: var(--ink-soft); text-wrap: pretty; }
.noscript { margin: 0 0 20px; padding: 14px 18px; border-radius: 18px; background: color-mix(in srgb, var(--sand) 45%, var(--paper)); border: 1.5px solid var(--sand-line); text-align: center; }

/* ---- the form card ---- */
.card {
  position: relative; counter-reset: step;
  background: var(--paper); border-radius: var(--r-card);
  padding: clamp(18px, 4.6vw, 40px);
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--line);
}
.step { border: 0; min-width: 0; counter-increment: step; }
.step + .step { margin-top: 28px; padding-top: 26px; border-top: 1.5px dashed var(--divider); }
/* floated legend: lays out like a normal heading, no fieldset-border magic */
.step-legend {
  float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.2rem, 2.8vw, 1.45rem); font-weight: 600; line-height: 1.2;
}
.step-legend ~ * { clear: both; }
.step-legend::before {
  content: counter(step); flex: none; display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-family: 'Inter', system-ui, sans-serif; font-size: 15px; font-weight: 700; color: var(--moon-ink);
  background: linear-gradient(160deg, #fcefc4, var(--moon-1));
  border: 1.5px solid #c9a443;
  box-shadow: 0 8px 18px -10px rgba(226,181,62,.9);
}
.hint { color: var(--ink-soft); font-size: 15.5px; }

/* ---- instrument pills ---- */
.picks { display: flex; flex-wrap: wrap; gap: 12px; }
.pick { position: relative; display: inline-flex; }
.pick input, .opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.pick-face {
  display: inline-flex; align-items: center; gap: 11px; min-height: 52px; padding: 12px 26px 12px 18px;
  border-radius: var(--pill); background: var(--paper); font-weight: 600; font-size: 16.5px;
  border: 1.5px solid var(--acc-line);
  box-shadow: var(--shadow-pill);
  transition: transform 220ms var(--ease), background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.pick-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--acc-bright); border: 1px solid var(--acc-deep); transition: box-shadow 180ms ease; }
.pick:hover .pick-face { border-color: var(--acc-deep); transform: translateY(-1px) rotate(-.6deg); }
.pick input:checked + .pick-face {
  background: color-mix(in srgb, var(--acc) 48%, var(--paper)); border-color: var(--acc-deep);
  box-shadow: inset 0 0 0 1.5px var(--acc-deep), var(--shadow-pill);
}
:root[data-theme="light"] .pick input:checked + .pick-face { box-shadow: inset 0 0 0 1.5px var(--acc-deep), 0 12px 24px -16px var(--acc-deep); }
.pick input:checked + .pick-face .pick-dot { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--acc-deep); }
.pick input:focus-visible + .pick-face { outline: 3px solid var(--azure-deep); outline-offset: 3px; }
/* phone: the three instruments share one row */
@media (max-width: 480px) {
  .picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pick { display: flex; }
  .pick-face { width: 100%; justify-content: center; gap: 8px; padding: 10px 12px; font-size: 15.5px; }
}

/* ---- length options ---- */
.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.opt { position: relative; display: flex; }
.opt-face {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; align-content: start; gap: 4px 12px;
  width: 100%; padding: 16px 18px 16px; border-radius: 22px;
  background: color-mix(in srgb, var(--acc) 14%, var(--paper));
  border: 1.5px solid var(--acc-line);
  transition: transform 220ms var(--ease), background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.opt-name { font-weight: 700; font-size: 16.5px; }
.opt-price { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.65rem; line-height: 1; color: var(--acc-deep); }
.opt-sub { grid-column: 1 / -1; font-size: 14px; color: var(--ink-soft); }
.opt-note { grid-column: 1 / -1; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.opt:hover .opt-face { border-color: var(--acc-deep); transform: translateY(-1px) rotate(.5deg); }
.opt input:checked + .opt-face {
  background: color-mix(in srgb, var(--acc) 42%, var(--paper)); border-color: var(--acc-deep);
  box-shadow: inset 0 0 0 1.5px var(--acc-deep), 0 14px 28px -18px rgba(0,0,0,.45);
}
:root[data-theme="light"] .opt input:checked + .opt-face { box-shadow: inset 0 0 0 1.5px var(--acc-deep), 0 14px 28px -18px var(--acc-deep); }
/* the drawn check (one stroke, same as the slot check) in a badge on the chosen card */
.opt input:checked + .opt-face::after {
  content: ""; position: absolute; top: -10px; right: -8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--acc-deep);
  box-shadow: 0 0 0 2px var(--paper);
}
.opt input:checked + .opt-face::before {
  content: ""; position: absolute; top: -3px; right: -1px; z-index: 1;
  width: 12px; height: 12px; background: var(--on-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.2 6.4l2.4 2.4 5.2-5.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.2 6.4l2.4 2.4 5.2-5.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.opt input:focus-visible + .opt-face { outline: 3px solid var(--azure-deep); outline-offset: 3px; }

/* ---- time slots ---- */
.slots-status { color: var(--ink-soft); font-size: 15.5px; }
.slots-status:empty { display: none; }
.slots-status.is-loading::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px;
  border-radius: 50%; border: 2px solid var(--acc-line); border-top-color: var(--acc-deep);
}
@media (prefers-reduced-motion: no-preference) { .slots-status.is-loading::before { animation: spin 900ms linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.slots-status.is-alert {
  color: var(--ink); padding: 14px 18px; border-radius: 18px;
  background: color-mix(in srgb, var(--sand) 38%, var(--paper));
  border: 1.5px solid var(--sand-line);
}
.slots { display: grid; gap: 18px; }
.slots[aria-busy="true"] { opacity: .55; }
.day { display: grid; gap: 8px; }
.day-name { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.04rem; }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; min-width: 100px; padding: 9px 16px; border-radius: var(--pill); cursor: pointer;
  background: var(--paper); color: var(--ink); font-size: 15.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  border: 1.5px solid var(--acc-line);
  transition: transform 200ms var(--ease), background 160ms ease, border-color 160ms ease;
}
.time:not(:disabled):hover { background: color-mix(in srgb, var(--acc) 24%, var(--paper)); border-color: var(--acc-deep); transform: translateY(-1px); }
/* :hover listed too, so a picked time keeps its fill under the pointer (the hover rule above outranks a bare [aria-pressed]) */
.time[aria-pressed="true"], .time[aria-pressed="true"]:hover { background: var(--acc); border-color: var(--acc-deep); box-shadow: inset 0 0 0 1.5px var(--acc-deep); }
.time[aria-pressed="true"]::before {
  content: ""; flex: none; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.2 6.4l2.4 2.4 5.2-5.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.2 6.4l2.4 2.4 5.2-5.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* a full 4-lesson pack: the unpicked times read as resting, not faded through */
.time:disabled { cursor: not-allowed; color: var(--ink-faint); background: var(--paper); border-style: dashed; transform: none; }
.time:focus-visible { outline: 3px solid var(--azure-deep); outline-offset: 2px; }
.slot-count { font-weight: 600; font-size: 15.5px; }
.slot-count:not(:empty) { margin-top: 14px; }

/* ---- the pack note: top of the time step, the moment a pack is picked (built by the page script; the empty
   live region around it stays in the layout at zero height so its first words are announced) ---- */
.pack-note {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 12px 16px;
  border-radius: 18px; font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--ink);
  background: color-mix(in srgb, var(--acc) 22%, var(--paper));
  border: 1.5px solid var(--acc-line);
  text-wrap: pretty;
}
.pack-note-icon { flex: none; width: 22px; height: 22px; color: var(--acc-deep); }
@media (prefers-reduced-motion: no-preference) { .pack-note { animation: note-in 240ms var(--ease) both; } }
@keyframes note-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---- "Show later times": the next week under the list ---- */
.more-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 18px;
  padding: 10px 22px; border-radius: var(--pill); cursor: pointer;
  background: var(--paper); color: var(--ink); font-size: 15.5px; font-weight: 600;
  border: 1.5px solid var(--acc-line);
  transition: transform 200ms var(--ease), background 160ms ease, border-color 160ms ease;
}
.more-btn:hover { background: color-mix(in srgb, var(--acc) 24%, var(--paper)); border-color: var(--acc-deep); transform: translateY(-1px); }
.more-btn:focus-visible { outline: 3px solid var(--azure-deep); outline-offset: 3px; }
.more-btn[aria-disabled="true"], .more-btn[aria-disabled="true"]:hover { cursor: wait; color: var(--ink-soft); background: var(--paper); border-style: dashed; transform: none; }
.more-icon { flex: none; width: 18px; height: 18px; color: var(--acc-deep); }
.more-status { color: var(--ink-soft); font-size: 15px; }
.more-status:not(:empty) { margin-top: 10px; }
@media (max-width: 480px) { .more-btn { width: 100%; } }

/* ---- student fields ---- */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .field-wide { grid-column: 1 / -1; }
  .field-check { align-self: end; }
}
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field > label { font-weight: 600; font-size: 15px; }
.field > label.check { font-weight: 500; font-size: 15.5px; }
.req { color: var(--error); margin-left: 2px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 16px;
  background: var(--field-bg); color: var(--ink); font-size: 16px; caret-color: var(--azure-deep);
  border: 1.5px solid var(--field-line);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: var(--select-arrow);
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px;
}
.field select option { background: var(--field-bg); color: var(--ink); }
.field input:not([type="checkbox"]):hover, .field select:hover, .field textarea:hover { border-color: var(--azure-deep); }
.field input:not([type="checkbox"]):focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--azure-deep); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 1px var(--error); }
.field-error { margin-top: 6px; color: var(--error); font-size: 14.5px; font-weight: 600; }
.field .field-error { margin-top: 0; }

/* checkboxes: native, tinted, big enough to hit */
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 15.5px; line-height: 1.5; }
.check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--azure-deep); cursor: pointer; }
.check a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---- the 24-hour note ---- */
.notice {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 30px; padding: 14px 18px;
  border-radius: 20px; font-size: 15px; line-height: 1.5;
  background: color-mix(in srgb, var(--sea) 26%, var(--paper));
  border: 1.5px solid var(--sea-line);
}
.notice-icon { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--sea-deep); }
.agree-wrap { margin-top: 14px; }

/* honeypot: off-screen for people, still in the DOM for bots */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* the Turnstile widget reserves its height so the button does not jump */
.cf-turnstile { margin-top: 18px; min-height: 65px; display: flex; justify-content: center; }

/* ---- the moon: "Book it" and "Pay now" ---- */
.submit-row { display: flex; justify-content: center; margin-top: 18px; }
.moon {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; min-width: 240px; padding: 16px 44px; border-radius: var(--pill); cursor: pointer;
  background: linear-gradient(160deg, var(--moon-1) 0%, var(--moon-2) 100%);
  color: var(--moon-ink); font-size: 19px; font-weight: 700; text-decoration: none;
  border: 1.5px solid #b8932f;
  box-shadow: var(--shadow-moon);
  transition: transform 240ms var(--ease), box-shadow 240ms ease, filter 180ms ease;
}
.moon:hover, .moon:focus-visible {
  transform: translateY(-3px) scale(1.02); filter: brightness(1.05);
  box-shadow: var(--shadow-moon-up);
}
.moon:active { transform: scaleX(1.05) scaleY(.92); }
.moon:focus-visible { outline: 3px solid var(--moon-focus); outline-offset: 4px; }
/* busy (sending) or not wired yet: a resting moon, still solid, the label still crisp */
.moon:disabled { cursor: wait; transform: none; filter: saturate(.45); box-shadow: none; }
.moon-ring { position: absolute; inset: -5px; border-radius: inherit; border: 2px solid var(--moon-2); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .moon:not(:disabled):hover .moon-ring, .moon:focus-visible .moon-ring { animation: ping 900ms cubic-bezier(.2, .7, .3, 1) 1; }
}
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3, 1.45); } }
@media (max-width: 520px) { .moon { width: 100%; min-width: 0; } }

/* ---- result: errors under the button, the booking in place of the form ---- */
.result.is-error {
  margin-top: 18px; padding: 14px 18px; border-radius: 18px; font-weight: 600;
  background: color-mix(in srgb, var(--error) 10%, var(--paper));
  border: 1.5px solid color-mix(in srgb, var(--error) 55%, var(--paper));
}
.result.is-booked {
  position: relative; text-align: center; padding: clamp(26px, 5vw, 44px);
  background: var(--paper); border-radius: var(--r-card); box-shadow: var(--shadow-card);
  border: 1.5px solid var(--sea-line);
}
.result h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -.01em; }
.result h2:focus:not(:focus-visible) { outline: none; }
.lessons { list-style: none; display: grid; gap: 8px; max-width: 420px; margin: 20px auto; }
.lessons li { padding: 10px 18px; border-radius: var(--pill); font-weight: 600; font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--azure) 28%, var(--paper)); border: 1.5px solid var(--azure-line); }
.inv-line { font-weight: 700; font-size: 17.5px; font-variant-numeric: tabular-nums; }
.pay-row { margin: 18px 0 6px; }
.pay-by { color: var(--ink-soft); }
.result-msg { margin-top: 10px; text-wrap: pretty; }

/* ---- footer ---- */
.foot { text-align: center; padding: 30px 20px 40px; font-size: 14.5px; color: var(--ink-soft); }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin-top: 4px; }
.foot-links li + li::before { content: "\00B7"; margin-right: 18px; color: var(--ink-soft); }
@media (max-width: 480px) { .foot-links li + li::before { content: none; } }
.foot a { display: inline-block; padding: 8px 2px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* reduced motion: no transitions, no tilts, nothing breathing */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pick:hover .pick-face, .opt:hover .opt-face, .time:hover, .moon:hover, .moon:focus-visible, .theme-toggle:hover, .more-btn:hover { transform: none; }
}
