/* ==========================================================================
   anxiousdentist.co.uk — design system
   One stylesheet. Tokens first. No build step.

   Brief: the visitor is already anxious before the page loads. Nothing here
   should read as clinical, urgent or shiny. Warm paper, sage green, soft clay.
   Generous line-height, large comfortable type, slow and minimal motion.
   Deliberately unlike humanoconsulting.co.uk (Newsreader/Inter, teal) and
   alchemise.capital (mono/black) so the brands never read as siblings.
   ========================================================================== */

:root {
  /* Surfaces */
  --oat:        #FBF8F3;
  --oat-2:      #F4EFE6;
  --oat-3:      #EDE6D9;
  --white:      #FFFFFF;

  /* Ink — all body text meets WCAG AA on --oat */
  --ink:        #1F2A26;
  --ink-2:      #4A5852;
  --ink-3:      #6E7C76;

  /* Sage — the calm primary. Large text and surfaces only. */
  --sage:       #6B8F7D;
  --sage-soft:  #DCE8E1;
  --sage-deep:  #2F4A3F;
  --sage-line:  #52705F;

  /* Clay — one warm accent, used sparingly */
  --clay:       #C87B5C;
  --clay-deep:  #A85F42;
  --clay-soft:  #F6E7DE;

  --line:       rgba(31, 42, 38, 0.12);
  --line-soft:  rgba(31, 42, 38, 0.07);
  --line-light: rgba(251, 248, 243, 0.22);

  --radius:     14px;
  --radius-lg:  22px;
  --radius-pill: 999px;

  --wrap:       1120px;
  --ease:       cubic-bezier(0.33, 0.68, 0.35, 1);

  --sans: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
}

/* --------------------------------------------------------------- Reset --- */

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

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

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

body {
  margin: 0;
  background: var(--oat);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;          /* 17px — comfortable, not shouty */
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 700px) {
  body { font-size: 1.125rem; line-height: 1.78; }
}

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

a { color: inherit; }

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--sage-deep);
  color: var(--oat);
  padding: 0.85rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------ Typography - */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: 'SOFT' 40, 'WONK' 0, 'opsz' 40;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 6.2vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.85rem, 3.9vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.tighter { letter-spacing: -0.028em; }

.lede {
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 46ch;
}
.lede-wide { max-width: 62ch; }

.statement {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 60, 'opsz' 40;
  font-size: clamp(1.5rem, 3.1vw, 2.15rem);
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 30ch;
}

.hl {
  background: linear-gradient(transparent 52%, var(--clay-soft) 52%, var(--clay-soft) 94%, transparent 94%);
  padding: 0 0.08em;
}

.keyword { color: var(--sage-deep); font-style: italic; }

.small { font-size: 0.95rem; line-height: 1.68; color: var(--ink-2); }
.tiny  { font-size: 0.84rem; line-height: 1.6; color: var(--ink-3); }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage-line);
  margin-bottom: 1.5rem;
}

.eyebrow-line {
  position: relative;
  padding-bottom: 1.1rem;
  margin-bottom: 2.75rem;
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.prose > * + * { margin-top: 1.15rem; }
.prose h3 { margin-top: 2.6rem; }
.prose h2 { margin-top: 3.2rem; }
.prose p, .prose li { max-width: 68ch; }
.prose a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--clay-deep); }

/* ---------------------------------------------------------------- Layout - */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 900px) {
  .wrap { padding: 0 2.5rem; }
}

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tight { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.tint { background: var(--oat-2); }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split-lead { grid-template-columns: 0.85fr 1.15fr; gap: 4.5rem; }
  .sticky-head { position: sticky; top: 7rem; align-self: start; }
}

.grid { display: grid; gap: 1.25rem; }

@media (min-width: 640px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-1 { grid-template-columns: 1fr; }
}

.measure { max-width: 68ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------ Head - */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42rem;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.wordmark .mark {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 80, 'opsz' 20;
  font-size: 1.42rem;
  letter-spacing: -0.028em;
  color: var(--ink);
  font-weight: 400;
}
.wordmark .mark b { font-weight: 600; }

.wordmark .smile {
  width: 26px;
  flex-shrink: 0;
  align-self: center;
  margin-left: 0.1rem;
  color: var(--clay);
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 940px) {
  .nav { display: flex; }
}

.nav > a {
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav > a:hover { color: var(--ink); }
.nav > a.btn { color: var(--oat); }
.nav > a.btn-ghost { color: var(--ink); }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  padding: 0;
}

@media (min-width: 940px) { .burger { display: none; } }

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.burger span { position: relative; }
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }

.burger[aria-expanded='true'] span { background: transparent; }
.burger[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] span::after  { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: var(--oat);
}
.mobile-nav.open { display: block; }
@media (min-width: 940px) { .mobile-nav, .mobile-nav.open { display: none; } }

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.5rem 1.5rem;
}
.mobile-nav li + li { border-top: 1px solid var(--line-soft); }
.mobile-nav a {
  display: block;
  padding: 0.95rem 0;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.88rem 1.55rem;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
  line-height: 1.2;
}

.btn:hover { transform: translateY(-1px); }
.btn .arw { transition: transform 0.22s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.btn-primary { background: var(--sage-deep); color: var(--oat); }
.btn-primary:hover { background: #24392F; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--white); }

.btn-light { background: var(--oat); color: var(--sage-deep); }
.btn-light:hover { background: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--oat);
  border-color: var(--line-light);
}
.btn-outline-light:hover { border-color: var(--oat); background: rgba(251,248,243,0.08); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.btn-block { width: 100%; justify-content: center; }

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

.hero {
  padding: clamp(3.25rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero-grid { display: grid; gap: 2.75rem; }

@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4.5rem; align-items: end; }
}

.hero h1 .line { display: block; }

.hero-aside > p {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 44ch;
}

.triad {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.triad li {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sage-deep);
  background: var(--sage-soft);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.05rem;
}

/* ----------------------------------------------------------------- Cards - */

.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.75rem;
}

.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--ink-2); font-size: 1rem; }

.card-flat {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--sage);
  border-radius: 0;
  padding: 1.4rem 0 0;
}

.card-quote {
  background: var(--oat-2);
  border: 0;
}
.card-quote p {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 70, 'opsz' 30;
  font-size: 1.16rem;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.card-quote p::before { content: '\201C'; }
.card-quote p::after  { content: '\201D'; }
.card-quote .who {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.num {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  color: var(--clay-deep);
  margin-bottom: 0.85rem;
}

/* ----------------------------------------------------------------- Bands - */

.band {
  background: var(--sage-deep);
  color: var(--oat);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.band-2 { background: #263B32; }
.band-tight { padding: clamp(3rem, 6.5vw, 5rem) 0; }

.band h2, .band h3, .band .statement { color: var(--oat); }
.band p, .band li { color: rgba(251, 248, 243, 0.82); }
.band .lede { color: rgba(251, 248, 243, 0.86); }
.band .eyebrow { color: #A9C7B6; }
.band .eyebrow-line { border-bottom-color: var(--line-light); }
.band .num { color: #D8A184; }
.band .card { background: rgba(251, 248, 243, 0.05); border-color: var(--line-light); }
.band .card-flat { background: transparent; border-top-color: var(--sage-line); }
.band .hl {
  background: linear-gradient(transparent 52%, rgba(200,123,92,0.45) 52%,
              rgba(200,123,92,0.45) 94%, transparent 94%);
}

/* ----------------------------------------------------------------- Steps - */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.9rem 1fr;
  gap: 1.35rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.steps > li:last-child { border-bottom: 1px solid var(--line); }

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--clay-deep);
  padding-top: 0.42rem;
}

.steps h3 { margin-bottom: 0.55rem; }
.steps p { color: var(--ink-2); font-size: 1rem; }

.band .steps > li { border-color: var(--line-light); }
.band .steps > li::before { color: #D8A184; }

/* ------------------------------------------------------------- Checklist - */

.ticks {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.ticks li {
  position: relative;
  padding: 0 0 0 2.1rem;
  margin-bottom: 0.95rem;
  color: var(--ink-2);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 1.1rem;
  height: 0.55rem;
  border-left: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: rotate(-45deg);
  border-radius: 1px;
}

.ticks.crosses li::before {
  width: 0.95rem;
  height: 0.95rem;
  top: 0.45em;
  border: 0;
  transform: none;
  background:
    linear-gradient(to bottom, transparent 44%, var(--clay) 44%, var(--clay) 56%, transparent 56%),
    linear-gradient(to right, transparent 44%, var(--clay) 44%, var(--clay) 56%, transparent 56%);
  border-radius: 2px;
}

.band .ticks li::before { border-color: #A9C7B6; }

/* --------------------------------------------------------------- Callout - */

.callout {
  background: var(--sage-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.85rem;
  margin: 2.5rem 0;
}
.callout h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.callout p, .callout li { color: var(--ink-2); font-size: 1rem; max-width: 62ch; }
.callout--clay { background: var(--clay-soft); }
.callout--plain { background: var(--oat-2); }

/* ------------------------------------------------------------------- FAQ - */

.faq { margin-top: 2rem; border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 50, 'opsz' 30;
  font-size: 1.16rem;
  line-height: 1.35;
  letter-spacing: -0.014em;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.42rem;
  border-right: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }

.faq .answer { padding: 0 0 1.6rem; }
.faq .answer p, .faq .answer li { color: var(--ink-2); font-size: 1rem; max-width: 66ch; }
.faq .answer > * + * { margin-top: 0.9rem; }

/* ------------------------------------------------------------------ Form - */

.form { margin-top: 2rem; }

.field { margin-bottom: 1.35rem; }

.field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.field .hint {
  display: block;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--ink-3);
  margin-top: 0.15rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-soft);
  outline: none;
}

.field textarea { min-height: 8.5rem; resize: vertical; }

.field-row { display: grid; gap: 1.35rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-note {
  font-size: 0.86rem;
  color: var(--ink-3);
  margin-top: 1.25rem;
  max-width: 56ch;
}

/* ------------------------------------------------------------- Contact ­-- */

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 1.15rem 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.3rem;
}
.contact-list .v { font-size: 1.05rem; font-weight: 500; }
.contact-list a { color: var(--sage-deep); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ Foot - */

.site-foot {
  background: var(--oat-2);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}

.foot-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.75rem;
}

@media (min-width: 700px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; } }

.foot-blurb {
  margin-top: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.66;
  color: var(--ink-2);
  max-width: 34ch;
}

.site-foot h4 { margin-bottom: 1.1rem; }

.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.7rem; }
.site-foot li a {
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.site-foot li a:hover { color: var(--ink); text-decoration: underline; }

.foot-base {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}
.foot-base p { font-size: 0.84rem; color: var(--ink-3); margin: 0; }

/* ---------------------------------------------------------------- Reveal - */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------- Print - */

@media print {
  .site-head, .mobile-nav, .btn-row, .skip { display: none; }
  body { background: #fff; font-size: 11pt; }
  .band { background: #fff; color: #000; }
  .band h2, .band p { color: #000; }
}
