/* ============================================================
   VIOLA — editorial "quiet luxury" design system
   Ivory dotted paper · ink serif display · bronze small caps.
   All fonts self-hosted (OFL licences in /fonts).
   ============================================================ */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #201f1c;
  --ink-soft: #45443f;
  --paper: #f2f0ea;
  --paper-deep: #eae7df;
  --card: #faf8f3;
  --dark: #181714;
  --bronze: #a98a56;
  --bronze-soft: #c9ad79;
  --line: #dcd8cb;
  --muted: #8b8779;
  --ok: #5d7052;
  --danger: #9c4a3c;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 380;
  overflow-x: clip;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(32, 31, 28, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.2rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.55rem; }
@media (max-width: 640px) { .only-lg { display: none; } }

a { color: inherit; }

/* The horizontal gutter must survive `padding: X 0` shorthands set by
   section classes and inline styles on the same element. */
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 28px !important; }

.eyebrow {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 560;
  margin-bottom: 20px;
}

.lede { font-size: 1.06rem; color: var(--ink-soft); max-width: 620px; }

/* ---------- Navigation ---------- */

header.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}
.nav .brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: 24px;
}
.nav ul { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav a:not(.brand):not(.btn) {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.nav a:not(.brand):not(.btn):hover { color: var(--ink); }
.nav .menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--ink); }
.nav .menu-btn svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.6; fill: none; display: block; }
@media (max-width: 780px) {
  header.site-head { position: relative; z-index: 40; }
  .nav .menu-btn { display: block; }
  .nav ul { display: none; }
  body.nav-open .nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 30px 28px 36px;
  }
  body.nav-open .nav ul li.hide-sm { display: block; }
  body.nav-open .nav ul a:not(.btn) { font-size: 1.05rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dark);
  color: var(--card);
  border: 1px solid var(--dark);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 460;
  text-decoration: none;
  padding: 15px 30px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn .arrow { font-family: var(--sans); }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn.ghost:hover { background: var(--dark); color: var(--card); }
.btn.hairline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.hairline:hover { border-color: var(--ink); }
.btn.small { padding: 10px 20px; font-size: 0.85rem; }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: var(--card); }
.btn.wide { justify-content: center; width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.text-link {
  font-size: 0.95rem;
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none; border: none; cursor: pointer; font-family: var(--sans);
}

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

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(242, 240, 234, 0.94) 0%, rgba(242, 240, 234, 0.72) 46%, rgba(242, 240, 234, 0.15) 100%),
    url('/media/hero') center 40% / cover no-repeat,
    url('/img/hero.jpg') center 40% / cover no-repeat,
    linear-gradient(115deg, #ece8de 0%, #e4dfd3 55%, #d8d2c2 100%);
}
.hero-inner { position: relative; padding: 96px 0; width: 100%; }
.hero h1 { max-width: 22ch; }
.hero .lede { margin: 30px 0 42px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Sections ---------- */

section.block { padding: 110px 0; }
section.block.tight { padding: 80px 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split .photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: linear-gradient(160deg, #e7e2d6, #d5cfc0);
  display: block;
}

.ticks { list-style: none; margin-top: 34px; }
.ticks li {
  position: relative;
  padding: 10px 0 10px 36px;
  font-size: 1rem;
  color: var(--ink-soft);
}
.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--bronze);
  font-weight: 600;
}

/* ---------- Feature cards ("Built different") ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 64px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
}
.feature .glyph { color: var(--bronze); margin-bottom: 34px; }
.feature .glyph svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.feature .cat {
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 580;
  margin-bottom: 14px;
}
.feature h3 { margin-bottom: 16px; font-size: 1.7rem; }
.feature p { font-size: 0.96rem; color: var(--ink-soft); flex: 1; }
.feature .btn { margin-top: 34px; align-self: stretch; justify-content: center; }

/* ---------- Treatment rows ---------- */

.treatment-list { margin-top: 56px; border-top: 1px solid var(--line); }
.treatment-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: none;
  padding: 48px 46px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
@media (max-width: 700px) { .treatment-row { flex-direction: column; gap: 18px; padding: 34px 26px; } }
.treatment-row .cat {
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 580;
  margin-bottom: 12px;
}
.treatment-row h3 { font-size: 2rem; margin-bottom: 14px; }
.treatment-row .desc { max-width: 56ch; color: var(--ink-soft); font-size: 0.98rem; }
.treatment-row .book-link {
  display: inline-block;
  margin-top: 26px;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.treatment-row .book-link:hover { color: var(--bronze); border-color: var(--bronze); }
.treatment-row .meta { text-align: right; white-space: nowrap; }
.treatment-row .price { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.treatment-row .duration { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }

/* ---------- Studio cards ---------- */

.studios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  margin-top: 60px;
}
.studio-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 52px 46px;
}
.studio-card .dot {
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-bottom: 44px;
}
.studio-card h3 { font-size: 2.1rem; margin-bottom: 8px; }
.studio-card .sub { color: var(--muted); font-size: 0.98rem; margin-bottom: 28px; }
.studio-card .addr { font-size: 0.98rem; color: var(--ink-soft); }
.studio-card .addr .pin { color: var(--muted); margin-right: 6px; }
.studio-card .hours { color: var(--ink-soft); font-size: 0.98rem; margin-top: 6px; margin-left: 22px; }
.studio-card .actions { display: flex; align-items: center; gap: 26px; margin-top: 38px; }
.studio-card .out-link { font-size: 0.95rem; text-decoration: none; }
.studio-card .out-link:hover { color: var(--bronze); }

/* ---------- Info cards (clinic page etc.) ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 40px 36px;
}
.card h3 { margin-bottom: 12px; }
.grid { display: grid; gap: 28px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ---------- Forms ---------- */

label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 540;
  margin: 26px 0 10px;
}
input, select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 15px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.25s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.notice {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  padding: 16px 22px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 22px 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.notice.error { border-color: var(--danger); color: var(--danger); }
.notice.ok { border-left: 2px solid var(--ok); }

/* ---------- Booking wizard ---------- */

.stepper {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5vw, 64px);
  padding: 56px 0 10px;
}
.step { text-align: center; }
.step .ball {
  width: 40px; height: 40px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.step .lbl { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.step.current .ball { background: var(--dark); border-color: var(--dark); color: var(--card); }
.step.current .lbl { color: var(--ink); }
.step.done .ball { background: var(--dark); border-color: var(--dark); color: var(--card); }
@media (max-width: 640px) { .step .lbl { display: none; } .stepper { gap: 14px; } }

.wizard-pane { max-width: 880px; margin: 0 auto; padding: 40px 28px 110px; }
.wizard-pane h2.q { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.wizard-pane .hint { color: var(--muted); margin-bottom: 40px; }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
}
.wizard-nav .back {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  display: inline-flex; gap: 10px; align-items: center;
}
.wizard-nav .back:hover { color: var(--bronze); }

.choice-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 40px 42px;
  margin-bottom: 22px;
  cursor: pointer;
  font-family: var(--sans);
  position: relative;
  transition: border-color 0.25s ease;
}
.choice-card:hover { border-color: var(--ink-soft); }
.choice-card.selected { border-color: var(--ink); outline: 1px solid var(--ink); }
.choice-card .dot { display: block; width: 8px; height: 8px; border-radius: 50%; margin-bottom: 26px; }
.choice-card h3 { font-size: 1.9rem; margin-bottom: 10px; }
.choice-card .line2 { color: var(--ink-soft); font-size: 0.96rem; }
.choice-card .tick {
  position: absolute; top: 50%; right: 42px; transform: translateY(-50%);
  font-size: 1.2rem; display: none;
}
.choice-card.selected .tick { display: block; }

.choice-card.treatment { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.choice-card.treatment .meta { text-align: right; white-space: nowrap; }
.choice-card.treatment .price { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.choice-card.treatment .duration { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }

.reco-banner {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  padding: 16px 22px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 34px;
  display: flex; gap: 12px; align-items: baseline;
}
.reco-banner .spark { color: var(--bronze); }

/* triage */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 26px 0 8px; }
.pill {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pill:hover { border-color: var(--ink-soft); }
.pill.on { background: var(--dark); border-color: var(--dark); color: var(--card); }
/* Recipient chooser — three equal cards with a line icon. Squared to match
   the slot/day cards rather than the rounded pain-map pills, so the booking
   flow reads as one family. */
.recipient-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.recipient-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 18px 8px 16px;
  font-family: var(--sans);
  font-size: 0.87rem;
  line-height: 1.3;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.recipient-choice svg {
  width: 23px; height: 23px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
  color: var(--bronze);
  transition: color 0.2s ease;
}
.recipient-choice:hover { border-color: var(--ink-soft); }
.recipient-choice.on { background: var(--dark); border-color: var(--dark); color: var(--card); }
.recipient-choice.on svg { color: var(--bronze-soft); }
@media (max-width: 400px) {
  .recipient-grid { gap: 8px; }
  .recipient-choice { font-size: 0.8rem; padding: 16px 4px 14px; }
}

.sensation-label {
  font-size: 0.68rem; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--bronze); font-weight: 570; margin-top: 40px;
}
.triage-figure { max-width: 320px; margin: 10px auto 0; }
.triage-figure .body-svg .region { cursor: pointer; }

/* time step */
.day-strip {
  display: flex; gap: 14px; overflow-x: auto;
  padding-bottom: 18px; margin-top: 8px;
  scrollbar-width: thin;
}
.day-card {
  min-width: 86px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
  padding: 18px 10px;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.2s ease;
}
.day-card .dow { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.day-card .num { font-family: var(--serif); font-size: 1.9rem; line-height: 1.2; margin: 4px 0; }
.day-card .mon { font-size: 0.8rem; color: var(--muted); }
.day-card:hover { border-color: var(--ink-soft); }
.day-card.on { background: var(--dark); border-color: var(--dark); }
.day-card.on .dow, .day-card.on .num, .day-card.on .mon { color: var(--card); }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 34px;
}
.slot {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 16px 10px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s ease;
}
.slot:hover { border-color: var(--ink); }
.slot.selected { background: var(--dark); border-color: var(--dark); color: var(--card); }

/* review table */
.review-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
.review-table th {
  text-align: left;
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); font-weight: 540;
  padding: 22px 30px;
  border-bottom: 1px solid var(--line);
  width: 220px;
  vertical-align: top;
}
.review-table td { padding: 22px 30px; border-bottom: 1px solid var(--line); text-align: right; font-size: 1rem; }
.review-table tr:last-child th, .review-table tr:last-child td { border-bottom: none; }
.deposit-note { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }

/* ---------- Deposit panel (pending page) ---------- */

.deposit-panel {
  background: var(--dark);
  color: var(--paper);
  padding: 48px 44px;
  margin: 30px 0;
}
.deposit-panel .eyebrow { color: var(--bronze-soft); }
.deposit-panel .big { font-family: var(--serif); font-size: 3rem; color: var(--bronze-soft); line-height: 1.1; }
.deposit-panel code {
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.07);
  padding: 6px 16px;
  color: var(--bronze-soft);
}

/* ---------- Symptom mapper page ---------- */

.mapper-layout { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .mapper-layout { grid-template-columns: 1fr; } }

.body-svg { width: 100%; height: auto; user-select: none; }
/* Sculpted figure with anatomically-shaped muscle zones. */
.body-svg .outline { /* figure colours live on the shapes themselves */ }
.body-svg .detail path { fill: none; stroke: #d8cebc; stroke-width: 1.2; stroke-linecap: round; }
.body-svg .zone-lines path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: 0.75; pointer-events: none; }
.body-svg .region {
  fill: url(#muscleGrad);
  stroke: #ffffff;
  stroke-width: 2;
  cursor: pointer;
  transition: fill 0.3s ease, stroke 0.3s ease, opacity 0.3s ease;
}
.body-svg .region:hover { fill: #b89f85; }
.body-svg .region.active,
.body-svg .region.sel-2 { fill: var(--dark); stroke: #b89f85; stroke-width: 3; }
.body-svg .region.sel-1 { fill: #b89f85; stroke: #ffffff; }
.body-svg .region.sel-3 { fill: #a05c48; stroke: #b89f85; stroke-width: 3; }
/* When uploaded artwork is present the vector figure steps aside and the
   zones become translucent overlays on the illustration. */

/* Front/back segmented toggle */
.seg-toggle {
  display: flex;
  background: #ece3d7;
  border-radius: 999px;
  padding: 4px;
  max-width: 280px;
  margin: 0 auto 26px;
}
.seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 11px 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 560;
  color: #8c8782;
  cursor: pointer;
  transition: all 0.3s ease;
}
.seg-btn.active { background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); }

.muscle-figure { max-width: 340px; margin: 0 auto; }

/* Slide-up treatment sheet */
.bottom-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 110%);
  width: min(480px, 100%);
  background: #fff;
  border-radius: 26px 26px 0 0;
  padding: 26px 30px 34px;
  box-shadow: 0 -10px 40px rgba(24, 23, 20, 0.18);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  z-index: 60;
}
.bottom-sheet.show { transform: translate(-50%, 0); }
.bottom-sheet .drag-handle {
  width: 40px; height: 5px;
  background: #e0dcd6;
  border-radius: 3px;
  margin: 0 auto 18px;
}
.bottom-sheet h4 { font-size: 1.5rem; margin: 0 0 10px; }
.bottom-sheet p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 22px; }
.badge {
  display: inline-block;
  background: #f9f4ee;
  color: var(--bronze);
  font-size: 0.7rem;
  font-weight: 640;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(24, 23, 20, 0.5);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  z-index: 50;
  backdrop-filter: blur(3px);
}
.modal-backdrop.open { display: flex; animation: fadeIn 0.25s ease; }
.modal {
  background: var(--card);
  border-top: 2px solid var(--bronze);
  max-width: 460px; width: 100%;
  padding: 44px 40px;
  animation: rise 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

.choice-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
.choice {
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.92rem;
  transition: all 0.2s ease;
}
.choice:hover { border-color: var(--ink-soft); }
.choice.selected { background: var(--dark); border-color: var(--dark); color: var(--card); }

.mapper-summary { border: 1px solid var(--line); background: var(--card); padding: 40px 36px; }
.mapper-summary ul { list-style: none; }
.mapper-summary li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; display: flex; justify-content: space-between; gap: 12px; }
.reco { background: var(--paper-deep); border-left: 2px solid var(--bronze); padding: 20px 26px; margin-top: 22px; }

/* ---------- Tables (admin / portal) ---------- */

table.list { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: 0.92rem; }
table.list th {
  text-align: left; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line);
}
table.list td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: none; }

.tag { display: inline-block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 12px; border: 1px solid currentColor; }
.tag.pending { color: var(--bronze); }
.tag.confirmed { color: var(--ok); }
.tag.cancelled, .tag.expired, .tag.no_show { color: var(--danger); }
.tag.completed { color: var(--muted); }

/* ---------- Admin day view ---------- */

.day-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .day-columns { grid-template-columns: 1fr; } }
.day-col { background: var(--card); border: 1px solid var(--line); }
.day-col header { padding: 15px 20px; color: var(--card); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; }
.appt { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.appt .time { font-family: var(--serif); font-size: 1.3rem; }
.appt .meta { font-size: 0.84rem; color: var(--muted); }
.appt form { display: inline; }

.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 34px 0; }

details.panel { background: var(--card); border: 1px solid var(--line); margin: 18px 0; }
details.panel summary { padding: 16px 24px; cursor: pointer; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
details.panel .inner { padding: 4px 24px 28px; }

/* ---------- Signature pad ---------- */

.sig-pad { border: 1px dashed var(--bronze); background: var(--card); touch-action: none; width: 100%; height: 160px; }

/* ---------- Video ---------- */

video.homework { width: 100%; background: var(--dark); border: 1px solid var(--line); }

/* ---------- Footer ---------- */

footer.site {
  background: var(--dark);
  color: #b9b4a7;
  padding: 90px 0 56px;
  margin-top: 30px;
  font-size: 0.95rem;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 780px) { footer.site .cols { grid-template-columns: 1fr; gap: 40px; } }
footer.site .brand {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--paper);
  display: block;
  text-decoration: none;
  margin-bottom: 22px;
}
footer.site .col-title {
  font-size: 0.66rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: #7e796d; margin-bottom: 22px; font-weight: 560;
}
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 12px; }
footer.site a { color: #cfcaba; text-decoration: none; }
footer.site a:hover { color: var(--bronze-soft); }
footer.site p.legal { margin-top: 64px; color: #6e6a5f; font-size: 0.78rem; }

/* ---------- Page transitions ---------- */

main { animation: pageIn 0.45s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
