/* Tindal & Rowe Physiotherapy — concept / demo site by DDDD
   Calm clinical: soft sage, warm sand, deep forest green. */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&display=swap"); /* DDDD concept banner only */

:root {
  --paper: #f7f3ec;
  --sand: #ece2d0;
  --sand-deep: #dccbb0;
  --sage: #dfe7da;
  --sage-mid: #c3d2bc;
  --sage-deep: #8fa888;
  --forest: #1f3d32;
  --forest-2: #2c5243;
  --ink: #1b2822;
  --muted: #4b5a52;
  --line: #d9d2c4;
  --card: #fffdf9;
  --clay: #a4532f;
  --ok: #2c6a4c;
  --err: #a3341f;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --pill: 999px;

  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 48px);
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-5: 48px; --sp-6: 72px; --sp-7: 112px;

  --shadow: 0 1px 2px rgba(31, 61, 50, .05), 0 8px 24px -12px rgba(31, 61, 50, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--forest-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--forest); }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); }
h4 { font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: 0; color: var(--ink); }
em { font-style: italic; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--forest); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Demo bar ---------- */
/* ---------- DDDD concept banner — v4 studio style (bar only) ----------
   Paper, ink, a 2px ink rule, a thin sun highlighter, terracotta link,
   Bricolage Grotesque. The four-cell wordmark is drawn with empty
   pseudo-elements (decorative, never announced); the sentence and href
   are untouched. Link tap target is 44px tall. */
.demo-bar {
  --dd-paper: #FBF6EC; --dd-ink: #1D1B16; --dd-terra: #B8442A; --dd-terra-ink: #9A3520;
  --dd-sun: #F5BF35; --dd-sky: #BFDDF5;
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  column-gap: 10px; row-gap: 0;
  box-sizing: border-box; min-height: 46px;
  padding: 4px 16px;
  background: var(--dd-paper); color: var(--dd-ink);
  border-bottom: 2px solid var(--dd-ink);
  font: 500 13.5px/1.35 "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0; text-align: center;
}
.demo-bar strong {
  font-weight: 700; color: var(--dd-ink);
  padding: 0 .2em;
  background: linear-gradient(transparent 56%, var(--dd-sun) 56%, var(--dd-sun) 94%, transparent 94%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.demo-bar > span { white-space: nowrap; }
.demo-bar a {
  display: inline-flex; align-items: center; vertical-align: middle;
  min-height: 44px; margin: -4px 0; padding: 0 2px;
  color: var(--dd-terra); font-weight: 800; letter-spacing: .02em;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.demo-bar a:hover { color: var(--dd-terra-ink); text-decoration-thickness: 2px; }
.demo-bar a:focus-visible { outline: 2px solid var(--dd-ink); outline-offset: 0; border-radius: 4px; }
.demo-bar a::before, .demo-bar a::after {
  content: ""; flex: none; box-sizing: border-box;
  width: 12px; height: 12px; border-radius: 3px;
  border: 1.5px solid var(--dd-ink);
}
.demo-bar a::before {
  order: -2; margin: 0 30px 0 2px;
  background: var(--dd-paper);
  box-shadow: 14px 0 0 -1.5px var(--dd-sun), 14px 0 0 0 var(--dd-ink),
              28px 0 0 -1.5px var(--dd-sky), 28px 0 0 0 var(--dd-ink);
}
.demo-bar a::after {
  order: -1; margin-right: 6px;
  background: var(--dd-terra);
  transform: rotate(-10deg) translateY(-1px);
}
@media (max-width: 520px) { .demo-bar { font-size: 13px; padding: 5px 14px; } }
@media (forced-colors: active) { .demo-bar { border-bottom-color: CanvasText; } .demo-bar a::before, .demo-bar a::after { forced-color-adjust: none; } }
.demo-bar .sep { margin: 0 -.2em; }
.demo-bar .nw { white-space: nowrap; }
@media (max-width: 520px) { .demo-bar .sep { display: none; } .demo-bar .nw { display: block; } }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--sp-4); min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); margin-right: auto; }
.brand:hover { color: var(--forest); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%; background: var(--sage);
  display: grid; place-items: center; flex: none; position: relative; overflow: hidden;
}
.brand-mark::before { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--forest); left: 4px; top: 8px; }
.brand-mark::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--sand-deep); right: 5px; top: 5px; mix-blend-mode: multiply; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1; letter-spacing: -.01em; }
.brand-sub { display: block; font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-top: 5px; font-weight: 700; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: 8px 12px; border-radius: var(--pill);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: var(--sage); color: var(--forest); }
.nav a[aria-current="page"] { background: var(--sage); color: var(--forest); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1rem/1 var(--sans); padding: 15px 24px; border-radius: var(--pill);
  border: 1.5px solid var(--forest); background: var(--forest); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--forest-2); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--forest); }
.btn.ghost:hover { background: var(--sage); color: var(--forest); }
.btn.light { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.btn.light:hover { background: #fff; }
.btn.sm { padding: 11px 18px; font-size: .93rem; }
.btn[disabled] { opacity: .65; cursor: progress; }
.arrow { transition: transform .2s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(3px); }

.menu-toggle {
  display: none; font: 700 .95rem var(--sans); color: var(--forest);
  background: var(--sage); border: 0; border-radius: var(--pill); padding: 10px 16px; cursor: pointer;
}

@media (max-width: 1080px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 72px; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav { display: none; width: 100%; padding-bottom: 8px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 12px 14px; border-radius: var(--r-sm); font-size: 1.05rem; }
  .nav .nav-book { display: block; }
  .nav .nav-book a { background: var(--forest); color: #fff; text-align: center; margin-top: 8px; border-radius: var(--pill); }
}
@media (min-width: 1081px) { .nav .nav-book { display: none; } }

/* ---------- Page head / breadcrumbs ---------- */
.page-head { padding: var(--sp-6) 0 var(--sp-5); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: var(--sp-3); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sage-deep); }
.crumbs a { color: var(--muted); }
.page-head h1 { max-width: 16ch; }
.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 58ch; line-height: 1.55; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--forest-2); margin-bottom: var(--sp-2);
}
.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: 4px 11px; border-radius: var(--pill); background: var(--sand); color: #5b4526;
}
.tag.sage { background: var(--sage); color: var(--forest); }

/* ---------- Sections ---------- */
section { padding: var(--sp-6) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head p { margin: 0; color: var(--muted); max-width: 46ch; }
.band-sage { background: var(--sage); }
.band-sand { background: var(--sand); }
.band-forest { background: var(--forest); color: #eef2ea; }
.band-forest h2, .band-forest h3 { color: #fff; }
.band-forest .muted, .band-forest p { color: #d6dfd3; }
.muted { color: var(--muted); }
.rounded-band { border-radius: var(--r-lg); margin: 0 var(--gut); }

.grid { display: grid; gap: var(--sp-3); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border-radius: var(--r); padding: var(--sp-4);
  border: 1px solid rgba(31, 61, 50, .08); box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(31,61,50,.06), 0 18px 36px -18px rgba(31,61,50,.3); color: inherit; }
a.card .more { color: var(--forest); font-weight: 700; display: inline-flex; gap: .4em; margin-top: var(--sp-2); }

/* ---------- Home hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 var(--sp-6); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-bottom: var(--sp-4); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; aspect-ratio: 1 / 1.05; }
.hero-art svg { width: 100%; height: 100%; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

.hurts {
  position: relative; z-index: 2;
  background: var(--card); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow); border: 1px solid rgba(31,61,50,.08);
  display: grid; grid-template-columns: .9fr 1.4fr; gap: var(--sp-4); align-items: center;
}
.hurts h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin-bottom: .3em; }
.hurts p { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips a {
  display: inline-flex; align-items: center; gap: .45em; padding: 11px 18px; border-radius: var(--pill);
  background: var(--sage); color: var(--forest); font-weight: 700; text-decoration: none; font-size: .97rem;
  transition: background .2s var(--ease);
}
.chips a:hover { background: var(--sage-mid); }
.chips a.alt { background: var(--sand); color: #4f3b20; }
.chips a.alt:hover { background: var(--sand-deep); }
@media (max-width: 860px) { .hurts { grid-template-columns: 1fr; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { position: relative; padding-top: 64px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--forest); color: #fff; font: 500 1.3rem var(--serif);
}
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li { padding: 0 0 0 64px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage-mid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231f3d32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.band-forest .checks li::before { background-color: #cfe0c8; }

/* ---------- Avatars ---------- */
.avatar {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  font: 400 2.1rem/1 var(--serif); color: var(--forest); background: var(--sage); flex: none;
  position: relative; overflow: hidden;
}
.avatar.sand { background: var(--sand); color: #5b4526; }
.avatar.forest { background: var(--forest); color: #f0ece2; }
.avatar.clay { background: #efd9c9; color: #7d3b1e; }
.avatar.sm { width: 56px; height: 56px; font-size: 1.4rem; }

.person { display: flex; flex-direction: column; gap: var(--sp-2); }
.person .role { font-weight: 700; color: var(--forest-2); margin: 0; }
.demo-note { font-size: .85rem; font-weight: 700; color: #7d3b1e; background: #f6e6da; padding: 6px 12px; border-radius: 10px; display: inline-block; line-height: 1.35; align-self: flex-start; }
.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* ---------- Conditions ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.jump a { padding: 7px 14px; border-radius: var(--pill); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; background: var(--card); }
.jump a:hover { border-color: var(--forest); color: var(--forest); }
.condition { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-5); padding: var(--sp-5) 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.condition:first-of-type { border-top: 0; }
.condition h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.condition .cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.condition h3 { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-2); margin-bottom: .7em; }
.condition ul { margin: 0; padding-left: 1.1em; }
.condition li { margin-bottom: 6px; }
@media (max-width: 860px) { .condition, .condition .cols { grid-template-columns: 1fr; gap: var(--sp-3); } }

/* ---------- Timetable ---------- */
.timetable { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.day { background: var(--card); border-radius: var(--r); padding: 18px; border: 1px solid rgba(31,61,50,.08); }
.day h3 { font-family: var(--sans); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--forest-2); margin: 0 0 12px; }
.day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.slot { border-radius: 12px; padding: 10px 12px; background: var(--sage); }
.slot.mat { background: var(--sand); }
.slot.strength { background: #e9e0ef; }
.slot time { display: block; font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; }
.slot span { font-size: .88rem; color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 var(--sp-3); padding: 0; list-style: none; font-size: .92rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; background: var(--sage); }
.legend i.mat { background: var(--sand); }
.legend i.strength { background: #e9e0ef; }
@media (max-width: 1080px) { .timetable { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .timetable { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font: 400 1.3rem/1.3 var(--serif); color: var(--forest);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details > div { padding: 0 0 20px; color: var(--muted); max-width: 64ch; }

/* ---------- Timeline (first visit) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 2px; background: var(--sage-mid); }
.timeline li { position: relative; padding: 0 0 var(--sp-4) 72px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .when {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--forest); display: grid; place-items: center; font: 500 1.15rem var(--serif); color: var(--forest);
}
.timeline h3 { margin-bottom: .25em; padding-top: 8px; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- Articles ---------- */
.post-card .meta, .post-meta { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 12px; }
.post-card h3 { font-size: 1.5rem; }
.post-thumb { border-radius: 14px; aspect-ratio: 16 / 9; margin-bottom: var(--sp-3); overflow: hidden; background: var(--sage); }
.post-thumb svg { width: 100%; height: 100%; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.prose { font-size: 1.08rem; max-width: 66ch; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose .intro { font-family: var(--serif); font-size: 1.4rem; line-height: 1.45; color: var(--forest); }
.notice {
  border-radius: var(--r); padding: 18px 22px; background: #f6e6da; color: #5a2c15; font-size: .97rem; margin: 0 0 var(--sp-4);
  border: 1px solid #ecd2bf;
}
.notice strong { color: #5a2c15; }
.notice.sage { background: var(--sage); color: var(--forest); border-color: var(--sage-mid); }
.sidebar { display: grid; gap: var(--sp-3); position: sticky; top: 64px; }
.widget { background: var(--card); border-radius: var(--r); padding: var(--sp-3); border: 1px solid rgba(31,61,50,.08); }
.widget h2 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--forest-2); margin-bottom: 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.widget.cta { background: var(--forest); color: #e8eee4; }
.widget.cta h2 { color: #cfe0c8; }
.widget.cta p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; color: #fff; }
@media (max-width: 960px) { .post-layout { grid-template-columns: minmax(0, 1fr); } .sidebar { position: static; } }

/* ---------- Forms & booking ---------- */
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.book-layout > * { min-width: 0; }
@media (max-width: 960px) { .book-layout { grid-template-columns: minmax(0, 1fr); } }
.avatar.any { font: 700 .72rem/1 var(--sans); letter-spacing: .04em; background: var(--forest); color: #fff; }
fieldset { border: 0; margin: 0 0 var(--sp-4); padding: var(--sp-4); background: var(--card); border-radius: var(--r-lg); border: 1px solid rgba(31,61,50,.08); box-shadow: var(--shadow); min-width: 0; }
legend { float: left; width: 100%; padding: 0; margin-bottom: var(--sp-3); font: 400 1.6rem/1.2 var(--serif); color: var(--forest); display: flex; gap: 14px; align-items: center; }
legend + * { clear: both; }
legend .n { width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: #fff; display: inline-grid; place-items: center; font-size: 1.05rem; flex: none; }
.fs-hint { color: var(--muted); margin: -8px 0 var(--sp-3); font-size: .95rem; clear: both; }

.choices { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice label {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s;
  height: 100%;
}
.choice label b { display: block; font-weight: 700; }
.choice label small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.45; margin-top: 2px; }
.choice .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--sage-deep); flex: none; margin-top: 2px; position: relative; background: #fff; }
.choice input:checked + label { border-color: var(--forest); background: var(--sage); }
.choice input:checked + label .dot { border-color: var(--forest); }
.choice input:checked + label .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--forest); }
.choice input:focus-visible + label { outline: 3px solid var(--clay); outline-offset: 2px; }
.choice:hover label { border-color: var(--sage-deep); }
.choice .avatar.sm { width: 40px; height: 40px; font-size: 1.1rem; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: var(--sp-2); scrollbar-width: thin; }
.day-btn {
  flex: none; min-width: 86px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  font: 600 .9rem/1.25 var(--sans); color: var(--ink); cursor: pointer; text-align: center;
}
.day-btn b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: var(--forest); }
.day-btn[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.day-btn[aria-pressed="true"] b { color: #fff; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.times .choice label { justify-content: center; padding: 12px 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.times .choice input:disabled + label { opacity: .45; text-decoration: line-through; cursor: not-allowed; background: transparent; }
.times .choice input:disabled { cursor: not-allowed; }

.field { margin-bottom: var(--sp-3); }
.field label, .label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .help { display: block; font-size: .9rem; color: var(--muted); margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-3); }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1.5px solid #bfb6a5; border-radius: 12px; padding: 13px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--sage-deep); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(164, 83, 47, .35); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--forest); flex: none; }
.error-msg { display: none; color: var(--err); font-weight: 700; font-size: .92rem; margin-top: 6px; }
.invalid .error-msg { display: block; }
.invalid input, .invalid textarea, .invalid select { border-color: var(--err); }
fieldset.invalid { border-color: var(--err); box-shadow: 0 0 0 2px rgba(163, 52, 31, .25); }
.error-summary { display: none; background: #fbe9e4; border: 1.5px solid var(--err); color: #6d2213; border-radius: var(--r); padding: 18px 22px; margin-bottom: var(--sp-4); }
.error-summary.show { display: block; }
.error-summary h2 { font: 700 1.05rem var(--sans); color: #6d2213; margin: 0 0 6px; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: #6d2213; font-weight: 700; }

.summary { position: sticky; top: 64px; }
.summary .widget { padding: var(--sp-4); }
.summary dl { margin: 0 0 var(--sp-3); display: grid; gap: 12px; }
.summary dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); }
.summary dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.2rem; color: var(--forest); }
.summary dd.empty { font-family: var(--sans); font-size: .95rem; color: #8a8a80; font-style: italic; }
@media (max-width: 960px) { .summary { position: static; } }

.success { display: none; }
.success.show { display: block; }
.success-card { background: var(--card); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow); border: 1px solid rgba(31,61,50,.08); }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; margin-bottom: var(--sp-3); }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(40px, 6vw, 80px); border-radius: var(--r-lg); background: var(--forest); color: #e5ece1; display: grid; grid-template-columns: 1.4fr auto; gap: var(--sp-4); align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #cfdacb; max-width: 52ch; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(195, 210, 188, .12); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--sp-6); background: #e7e0d2; padding: var(--sp-6) 0 var(--sp-4); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-4); }
.site-footer h2 { font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--forest-2); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--forest); text-decoration: underline; }
.placeholder { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; background: rgba(255,255,255,.6); padding: 1px 6px; border-radius: 6px; color: #5b4526; white-space: nowrap; }
.footer-base { margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid #cfc5b2; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: .88rem; }
.footer-base a { text-decoration: underline; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
