/* ==========================================================================
   Thistle Therapy - site styles
   Plain CSS, no build step. Colours and sizes live in :root below.
   ========================================================================== */

:root {
  /* Colour */
  --bg: #f4efe6;          /* page cream */
  --paper: #faf7f2;       /* lighter panels */
  --ink: #2a2824;         /* main text */
  --muted: #6e6a62;       /* secondary text */
  --subtle: #8a847a;
  --moss: #3d4f42;        /* primary green */
  --moss-deep: #2c3a31;
  --sage: #6b7c6a;
  --sage-soft: #d5ddd2;
  --mist: #e7eadf;        /* pale green panels */
  --line: #ddd4c6;        /* borders */
  --thistle: #c9a6c9;     /* lilac accent */
  --error: #8a3d35;
  --cow-coat: #b3622a;    /* highland cow */
  --cow-dark: #8c4720;
  --cow-light: #d98d45;
  --cow-horn: #eadfc2;
  --cow-muzzle: #5e4034;
  --cow-hoof: #3a2a22;

  /* Type */
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;

  /* Layout */
  --wrap: 72rem;
  --gutter: 1.25rem;
  --radius: 12px;
  --radius-lg: 28px;
  --shadow: 0 0 0 1px rgb(42 40 36 / 0.06), 0 1px 2px -1px rgb(42 40 36 / 0.06), 0 2px 4px 0 rgb(42 40 36 / 0.04);
  --shadow-hover: 0 0 0 1px rgb(42 40 36 / 0.08), 0 1px 2px -1px rgb(42 40 36 / 0.08), 0 8px 20px -8px rgb(42 40 36 / 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
  :root { --gutter: 2rem; }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.5rem; line-height: 1.3; }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1rem; }

a { color: inherit; }

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

::selection { background: var(--sage-soft); color: var(--ink); }

:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 1rem; z-index: 50;
  background: var(--moss); color: var(--paper); padding: 0.5rem 1rem; border-radius: var(--radius);
}
.skip:focus { left: 1rem; }

.muted { color: var(--muted); }
.lead { font-size: 1.25rem; line-height: 1.6; color: var(--muted); }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.photo { overflow: hidden; border-radius: var(--radius-lg); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ratio-photo { aspect-ratio: 4 / 3; }
.ratio-tall { aspect-ratio: 3 / 4; }
.ratio-portrait { aspect-ratio: 2 / 3; }
.ratio-portrait img { object-position: top; }

.icon { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
.section { padding-block: 4rem; }
.section-paper { background: var(--paper); border-block: 1px solid var(--line); }
.section-mist { background: var(--mist); }
@media (min-width: 768px) { .section { padding-block: 6rem; } }

.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-wide-left { grid-template-columns: 1.1fr 0.9fr; }
  .split-top { align-items: start; }
  .split .order-last { order: 2; }
}
.stack > * + * { margin-top: 1.25rem; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1.25rem;
  border: 0; border-radius: var(--radius);
  font: 500 1rem/1 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 150ms, box-shadow 150ms, transform 150ms;
}
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 3rem; padding: 0 1.5rem; font-size: 1.125rem; }
.btn-primary { background: var(--moss); color: var(--paper); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--moss-deep); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: var(--shadow); }
.btn-outline:hover { background: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--bg); }
.btn .icon { transition: transform 200ms; }
.btn:hover .icon { transform: translateX(2px); }

@media (max-width: 639px) {
  .actions-stack { flex-direction: column; }
  .actions-stack .btn { width: 100%; }
}

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--line); }
html { scroll-padding-top: calc(var(--header-h, 5rem) + 5rem); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-block: 1.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand svg { width: 2.1rem; height: 2.1rem; color: var(--moss); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.site-nav a {
  display: inline-block; padding-block: 0.35rem;
  color: var(--muted); text-decoration: none; font-size: 1.0625rem;
  border-bottom: 2px solid transparent;
  transition: color 150ms, border-color 150ms;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--sage-soft); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--moss); }
@media (max-width: 520px) { .site-nav ul { gap: 0.25rem 1.1rem; } }

/* ---------- Thistle illustrations ---------- */
.tuft { stroke: var(--thistle); }

.thistle-art { width: min(70%, 17rem); margin-inline: auto; color: var(--moss); }

/* Only hide the lines when JavaScript is running, so the drawing is never lost */
.js .thistle-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .thistle-draw.is-drawing path { animation: draw 1.8s cubic-bezier(0.6, 0.1, 0.3, 1) forwards; }
.js .thistle-draw.is-drawing .d2 { animation-delay: 0.4s; }
.js .thistle-draw.is-drawing .d3 { animation-delay: 0.8s; }
.js .thistle-draw.is-drawing .d4 { animation-delay: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Entrance animation ---------- */
.rise { animation: rise 500ms var(--ease) both; }
.rise-1 { animation-delay: 80ms; }
.rise-2 { animation-delay: 160ms; }
.rise-3 { animation-delay: 240ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  .rise, .js .thistle-draw.is-drawing path { animation: none; }
  .js .thistle-draw path { stroke-dashoffset: 0; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 39%; opacity: 0.7; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg), rgb(244 239 230 / 0.7), rgb(42 40 36 / 0.2));
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: 3rem; align-items: start;
  min-height: 50vh; padding-top: 7rem; padding-bottom: 1rem;
}
.hero h1, .hero h2 { margin-top: 1rem; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.hero .eyebrow { color: var(--moss); margin: 0; }
.hero-lede { margin-top: 1.25rem; font-size: 1.25rem; color: rgb(42 40 36 / 0.8); }
.hero .btn-outline { background: rgb(250 247 242 / 0.8); }
.hero-photo { display: none; box-shadow: var(--shadow-hover); aspect-ratio: 4 / 5; }
.hero-art { display: none; }
@media (min-width: 768px) { .hero-inner { padding-bottom: 1rem; } }
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.35fr 0.65fr; }
  .hero-photo { display: block; }
  .hero-art { display: grid; }
  /* every two-column section on the home page shares the hero's 1.35 / 0.65 split (mirrored when the photo is on the left) */
  .hero ~ .section .split { grid-template-columns: 1.35fr 0.65fr; }
  .hero ~ .section .split-wide-left { grid-template-columns: 0.65fr 1.35fr; }
}

/* Home carousel: three slides stacked in one grid cell, cross-fading */
.carousel-track { display: grid; position: relative; z-index: 1; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(2rem); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), visibility 1.2s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero-art { place-items: center; aspect-ratio: 4 / 5; }
.hero-art .thistle-art { width: auto; height: 100%; max-width: 100%; stroke-width: 3; }
.js .slide:not(.is-active) .thistle-draw path { animation: none; stroke-dashoffset: 1; }
.hero-photo img { object-position: top; }
.carousel-controls { display: none; position: relative; z-index: 1; align-items: center; gap: 0.25rem; padding-bottom: 1.25rem; }
.js .carousel-controls { display: flex; justify-content: center; }
.carousel-controls button { all: unset; box-sizing: border-box; cursor: pointer; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; }
.carousel-controls button:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.carousel-dot::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 999px; background: rgb(42 40 36 / 0.35); transition: width 0.3s var(--ease), background 0.3s; }
.carousel-dot.is-active::before { width: 1.5rem; background: var(--moss); }
.carousel-pause span { width: 0.65rem; height: 0.7rem; border-inline: 3px solid var(--ink); }
.carousel-pause[aria-pressed="true"] span { width: 0; height: 0; border: solid transparent; border-width: 0.4rem 0 0.4rem 0.65rem; border-left-color: var(--ink); }
.carousel-pause { margin-right: 0.5rem; }

/* Inner-page hero (Services) */
.page-hero { position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; padding-block: 6rem; }
.page-hero .lead { margin-top: 1.25rem; }
@media (min-width: 768px) { .page-hero .wrap { padding-block: 8rem; } }

.intro .lead { margin-top: 1.25rem; }

/* ---------- Home: service cards ---------- */
.cards { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: block; padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--bg); box-shadow: var(--shadow);
  text-decoration: none; transition: box-shadow 200ms;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card h3 { transition: color 150ms; }
.card:hover h3 { color: var(--moss); }
.card p { margin-top: 0.75rem; font-size: 1rem; color: var(--muted); }
.card .more { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 1.25rem; font-size: 1rem; font-weight: 500; color: var(--moss); }
.card .more .icon { width: 0.875rem; height: 0.875rem; transition: transform 200ms; }
.card:hover .more .icon { transform: translateX(2px); }

/* ---------- Home: steps ---------- */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; }
.steps li { display: flex; gap: 1rem; }
.steps li + li { margin-top: 1.5rem; }
.steps .num { font-family: var(--font-display); font-size: 1rem; color: var(--sage); padding-top: 0.2rem; }
.steps p { margin-top: 0.25rem; font-size: 1rem; color: var(--muted); }

/* ---------- Testimonials / dark band ---------- */
.band-dark { background: var(--moss); color: var(--paper); }
.band-dark .eyebrow { color: var(--sage-soft); }
.quotes { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quotes blockquote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; }
.quotes blockquote p { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.02em; }
.quotes footer { margin-top: 1.5rem; font-size: 1rem; color: rgb(250 247 242 / 0.7); }

/* ---------- Call-to-action band ---------- */
.cta { background: var(--moss); color: var(--paper); }
.cta .wrap {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem;
  padding-block: 4rem;
}
.cta h2 { max-width: 36rem; }
.cta p { margin-top: 1rem; color: rgb(250 247 242 / 0.8); }
@media (min-width: 768px) {
  .cta .wrap { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 5rem; }
}

/* ---------- Services page ---------- */
.subnav-bar { position: sticky; top: var(--header-h, 5rem); z-index: 90; height: 0; } /* zero height: the tab overlays the hero so the hero sits flush under the header */
.subnav {
  display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none;
  padding: 1rem 1rem 1rem calc(2.7rem - 0.75rem - 1px); /* 2.7rem = brand icon + gap, so "Low mood" lines up under the T of Thistle */
  font-size: 1rem;
  background: var(--bg); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a { position: relative; flex: none; padding: 0.5rem 0.75rem; border-radius: var(--radius); color: var(--muted); text-decoration: none; }
.subnav a:hover { background: var(--mist); color: var(--ink); }
.subnav a::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.2rem; height: 2px;
  background: var(--moss); transform: scaleX(0); transform-origin: left; transition: transform 300ms ease;
}
.subnav a.is-active { color: var(--ink); }
.subnav a.is-active::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .subnav a::after { transition: none; } }
@media (max-width: 1100px) { .subnav { flex-wrap: wrap; overflow-x: visible; } }
@media (max-width: 600px) { .subnav-bar { display: none; } }

.service { padding-block: 3.5rem; scroll-margin-top: 1rem; }
.service:nth-of-type(even) { background: var(--paper); }
@media (min-width: 768px) { .service { padding-block: 5rem; } }
@media (min-width: 1024px) { .service:nth-of-type(even) .photo { order: 2; } }
.service .summary { margin-top: 1rem; font-size: 1.25rem; }
.service .body { margin-top: 1rem; color: var(--muted); }
.service .who { margin-top: 1.5rem; padding: 1rem 1.25rem; font-size: 1.125rem; color: var(--ink); background: var(--paper); border-left: 3px solid color-mix(in srgb, var(--sage) 30%, transparent); border-radius: 0 var(--radius) var(--radius) 0; }
.service .who strong { display: block; margin-bottom: 0.25rem; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); }

.strip { border-top: 1px solid var(--line); padding-block: 4rem; }
.strip .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.strip h2 { font-size: 1.875rem; }
.strip p { margin-top: 0.5rem; color: var(--muted); }
@media (min-width: 768px) { .strip .wrap { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- About page ---------- */
.credentials { margin-top: 0.5rem; color: var(--sage); }
.bio { margin-top: 2rem; font-size: 1.25rem; color: var(--muted); }
.list-lines { list-style: none; margin: 2rem 0 0; padding: 0; }
.list-lines li { padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.list-lines li + li { margin-top: 1rem; }
.list-lines li:last-child { border-bottom: 0; }

.quote-band .wrap { display: grid; gap: 2rem; align-items: center; padding-block: 4rem; }
.quote-band .photo { max-height: 20rem; }
.quote-band blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.quote-band footer { margin-top: 1.5rem; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); }
@media (min-width: 768px) { .quote-band .wrap { grid-template-columns: 1fr 1.2fr; } }

/* ---------- Pricing page ---------- */
.fees { display: grid; gap: 1rem; }
@media (min-width: 768px) { .fees { grid-template-columns: repeat(3, 1fr); } }
.fee { display: flex; flex-direction: column; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.fee h2 { margin-top: 0.75rem; font-size: 1.5rem; }
.fee .price { margin-top: 1rem; font-family: var(--font-display); font-size: 2.25rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.fee .detail { flex: 1; margin-top: 1rem; font-size: 1rem; color: var(--muted); }
.fee .btn { margin-top: 2rem; }
.fee .eyebrow { margin: 0; }
.fee-featured { background: var(--moss); color: var(--paper); box-shadow: var(--shadow-hover); }
.fee-featured .eyebrow { color: var(--sage-soft); }
.fee-featured .detail { color: rgb(250 247 242 / 0.8); }

.extras { display: grid; gap: 1rem; }
@media (min-width: 768px) { .extras { grid-template-columns: 1fr 1fr; } }
.extra { padding: 1.75rem; border-radius: var(--radius-lg); background: var(--mist); }
.extra .row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.extra h2, .extra .price { font-size: 1.5rem; }
.extra .price { font-family: var(--font-display); }
.extra p.detail { margin-top: 0.75rem; font-size: 1rem; color: var(--muted); }

.ticks { list-style: none; margin: 2rem 0 0; padding: 0; }
.ticks li { display: flex; gap: 0.75rem; color: var(--muted); }
.ticks li + li { margin-top: 1rem; }
.ticks .icon { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; color: var(--moss); }

/* FAQ - native <details>, no script needed */
.wrap-narrow > * { max-width: 48rem; }
.faq-group { font-size: 1.5rem; margin-top: 3rem; }
.faq-group:first-child { margin-top: 0; }
.faq { margin-top: 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.25rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.35;
  transition: color 150ms;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--moss); }
.faq summary .icon { width: 1.25rem; height: 1.25rem; color: var(--sage); transition: transform 200ms; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding-bottom: 1.25rem; color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 3.5rem; align-items: start; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
  .contact-aside { position: sticky; top: 1.5rem; }
}
.contact-aside > * + * { margin-top: 1.5rem; }

.panel { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.panel-mist { background: var(--mist); box-shadow: none; }
.panel p { font-size: 1rem; color: var(--muted); }
.panel p + p, .panel h2 + p { margin-top: 0.75rem; }

.info { list-style: none; margin: 1.25rem 0 0; padding: 0; font-size: 1rem; }
.info li { display: flex; gap: 0.75rem; }
.info li + li { margin-top: 1rem; }
.info .icon { margin-top: 0.3rem; color: var(--sage); }
.info .label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); }
.info a { text-decoration: none; }
.info a:hover { color: var(--moss); }

/* Form */
.form { margin-top: 2.5rem; }
.field + .field { margin-top: 1.25rem; }
.field label, .field legend { display: block; margin-bottom: 0.5rem; font-size: 1rem; font-weight: 500; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%; min-height: 2.75rem; padding: 0.6rem 0.75rem;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: border-color 150ms, box-shadow 150ms;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgb(61 79 66 / 0.25); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field ::placeholder { color: var(--subtle); }
fieldset.field { border: 0; margin: 1.25rem 0 0; padding: 0; min-width: 0; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.choice label {
  display: flex; align-items: center; justify-content: center; min-height: 2.75rem; margin: 0;
  padding: 0 0.75rem; border-radius: var(--radius); text-align: center; font-size: 1rem; font-weight: 500;
  background: var(--paper); box-shadow: var(--shadow); cursor: pointer; transition: background-color 150ms;
}
.choice label:hover { background: var(--mist); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice input:checked + span { color: inherit; }
.choice label:has(input:checked) { background: var(--moss); color: var(--paper); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--moss); outline-offset: 2px; }

.consent { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 1rem; font-weight: 400 !important; color: var(--muted); }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.3rem; flex: none; accent-color: var(--moss); }

.error-text { margin-top: 0.5rem; font-size: 1rem; color: var(--error); }
.error-text:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form .btn { margin-top: 1.5rem; }
@media (max-width: 639px) { .form .btn { width: 100%; } }

.notice { padding: 2rem; border-radius: var(--radius-lg); background: var(--mist); }
.notice .tick { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius); background: var(--moss); color: var(--paper); }
.notice .tick .icon { width: 1.25rem; height: 1.25rem; }
.notice h3 { margin-top: 1.25rem; }
.notice p { margin-top: 0.75rem; color: var(--muted); }
.notice-error { background: #f3e3df; }
.notice-error h3 { margin-top: 0; }

[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer p, .site-footer li { font-size: 1rem; }
.site-footer .about { margin-top: 1rem; max-width: 24rem; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.site-footer li + li { margin-top: 0.5rem; }
.site-footer .eyebrow { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--moss); }
.site-footer .plain { color: var(--muted); }
.footer-base { border-top: 1px solid var(--line); }
.footer-base .wrap {
  display: flex; flex-direction: column; gap: 0.75rem; padding-block: 1.5rem;
  font-size: 0.8125rem; color: var(--subtle);
}
.footer-base p { font-size: 0.875rem; }
@media (min-width: 640px) { .footer-base .wrap { flex-direction: row; justify-content: space-between; } }

/* ---------- 404 ---------- */
.not-found { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6rem 1.5rem; text-align: center; }
.not-found p { max-width: 28rem; margin-top: 1rem; color: var(--muted); }

/* Small spacing fixes */
h1 + .lead, h1 + .credentials + .lead { margin-top: 1.25rem; }
.footer-base p + p { margin-top: 0; }

/* ---------- Highland cow (home page) ---------- */
/* JS adds .go to start a 24s walk: in from the left, pause mid-screen, look at you, turn, walk back off. Click for a moo. */
.cow {
  --w: 11rem;
  position: fixed; left: 0; bottom: 0; z-index: 50; width: var(--w);
  pointer-events: none;
  transform: translateX(calc(var(--w) * -1.3));
}
@media (max-width: 600px) { .cow { --w: 8rem; } }
.cow svg { display: block; width: 100%; height: auto; overflow: visible; }
.cow svg * { pointer-events: auto; cursor: pointer; }
.cow svg { pointer-events: none; }
.cow .coat { fill: var(--cow-coat); }
.cow .coat-dark { fill: var(--cow-dark); }
.cow .coat-light { fill: var(--cow-light); }
.cow .muzzle { fill: var(--cow-muzzle); }
.cow .hoof { fill: var(--cow-hoof); }
.cow .eye-white { fill: #fff; }
.cow .horn { fill: none; stroke: var(--cow-horn); stroke-width: 6; stroke-linecap: round; }
.cow .tail { fill: none; stroke: var(--cow-dark); stroke-width: 5; stroke-linecap: round; }
.cow .streak { fill: none; stroke: var(--cow-dark); stroke-width: 3; stroke-linecap: round; opacity: 0.5; }
.cow .head-front { opacity: 0; }

.cow.go { animation: cow-path 24s linear both; }
.cow.go .cow-flip { animation: cow-flip 24s step-end both; }
.cow.go .head-side { animation: head-side 24s step-end both; }
.cow.go .head-front { animation: head-front 24s step-end both; }
.cow.go .bob { animation: cow-bob 0.4s ease-in-out 24, cow-bob 0.4s ease-in-out 14.88s 22; }
.cow .leg { transform-box: fill-box; transform-origin: 50% 0; }
.cow .leg-a { --s: 1; }
.cow .leg-b { --s: -1; }
.cow.go .leg { animation: leg-swing 0.8s ease-in-out 12, leg-swing 0.8s ease-in-out 14.88s 11; }

@keyframes cow-path {
  0% { transform: translateX(calc(var(--w) * -1.3)); }
  40%, 62% { transform: translateX(calc(50vw - var(--w) / 2)); }
  100% { transform: translateX(calc(var(--w) * -1.3)); }
}
@keyframes cow-flip { 0% { transform: scaleX(1); } 62% { transform: scaleX(-1); } 100% { transform: scaleX(-1); } }
@keyframes head-side { 0% { opacity: 1; } 42% { opacity: 0; } 60% { opacity: 1; } 100% { opacity: 1; } }
@keyframes head-front { 0% { opacity: 0; } 42% { opacity: 1; } 60% { opacity: 0; } 100% { opacity: 0; } }
@keyframes leg-swing {
  0%, 100% { transform: rotate(calc(var(--s) * -18deg)); }
  50% { transform: rotate(calc(var(--s) * 18deg)); }
}
@keyframes cow-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

.cow-bubble {
  position: absolute; left: 50%; bottom: 100%; margin-bottom: 0.1rem;
  padding: 0.35rem 1rem; white-space: nowrap;
  background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  font: 600 1.15rem var(--font-display);
  opacity: 0; transform: translateX(-50%) scale(0); transform-origin: 50% 100%;
}
.cow-bubble::after {
  content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px;
  border: 7px solid transparent; border-top-color: var(--ink);
}
.cow.moo .cow-bubble { animation: cow-moo 2.4s ease both; }
@keyframes cow-moo {
  0% { opacity: 0; transform: translateX(-50%) scale(0); letter-spacing: 0; }
  12% { opacity: 1; transform: translateX(-50%) scale(1.15); }
  20% { transform: translateX(-50%) scale(1); }
  35% { transform: translateX(-50%) rotate(-4deg); letter-spacing: 0.12em; }
  50% { transform: translateX(-50%) rotate(4deg); }
  65% { transform: translateX(-50%) rotate(-3deg); letter-spacing: 0.2em; }
  80% { opacity: 1; transform: translateX(-50%) rotate(0); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.8); letter-spacing: 0.2em; }
}
/* Other pages: just the head, slowly rising from the bottom edge. Click for a moo. */
.cow-peek { --w: 7rem; left: auto; right: 3rem; bottom: 0; transform: translateY(105%); }
@media (max-width: 600px) { .cow-peek { --w: 5rem; right: 1rem; } }
.cow-peek .head-front { opacity: 1; }
.cow-peek.go { animation: cow-peek 14s ease-in-out both; }
.cow-peek.go .head-front { animation: none; }
@keyframes cow-peek {
  0% { transform: translateY(105%); }
  25%, 70% { transform: translateY(8%); }
  100% { transform: translateY(105%); }
}
@media (prefers-reduced-motion: reduce) { .cow { display: none; } }

/* ---------- Privacy & terms ---------- */
.legal h2 { font-size: 1.75rem; margin-top: 3.5rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.2rem; margin-top: 2rem; }
.legal p, .legal ul { margin-top: 1rem; color: var(--muted); }
.legal ul { padding-left: 1.25rem; list-style: disc; }
.legal li + li { margin-top: 0.5rem; }
