/* Page layout for supple.clinic. Colors, type and spacing come from tokens.css; buttons from supple.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 720px) { .wrap { padding: 0 var(--space-6); } }
.narrow > p, .narrow > h2 { max-width: 65ch; }

.skip { position: absolute; left: -9999px; top: var(--space-2); background: var(--surface-raised); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { left: var(--space-2); }

/* Type scale (design system: display, h1, h2, h3, eyebrow) */
.display, .h1, .h2, .h3 { font-family: var(--font-display); color: inherit; margin: 0 0 var(--space-4); }
.display { font-size: clamp(40px, 7vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -0.5px; }
.h1 { font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -0.3px; }
.h2 { font-size: 26px; line-height: 32px; font-weight: 800; margin-bottom: var(--space-5); }
.h3 { font-size: 17px; line-height: 24px; font-weight: 700; margin-bottom: var(--space-2); }
.eyebrow { font-family: var(--font-display); font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--primary); margin: 0 0 var(--space-4); }
.eyebrow--muted { color: var(--ink-muted); margin: 0; }

/* Header */
.top { padding: var(--space-5) 0; }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.top__logo img { width: 160px; }
@media (min-width: 720px) { .top__logo img { width: 180px; } }

/* Hero */
.hero { padding: var(--space-7) 0 64px; }
.hero__inner > * { max-width: 820px; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-muted); max-width: 62ch; margin-bottom: var(--space-6); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Sections */
.section { padding: 64px 0; }
.section--cream { background: var(--cream); }
.section--line { border-top: 1px solid var(--line); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-4); }
@media (min-width: 720px) { .card { padding: var(--space-5); } }
.card p { font-size: 15px; line-height: 24px; color: var(--ink-muted); }

.columns { display: grid; gap: var(--space-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.list li { position: relative; padding-left: var(--space-5); }
.list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-deep); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.timeline li { border-top: 2px solid var(--primary); padding-top: var(--space-3); }
.timeline p { margin-top: var(--space-2); }

/* Call to action and footer sit on the brand fill (olive in both themes) */
.cta { background: var(--brand); color: var(--on-brand); padding: 72px 0; }
.cta__inner { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 880px) { .cta__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7); } }
.cta__intro p { color: var(--on-brand); font-size: 19px; max-width: 40ch; }

/* Request form: a raised card on the olive band, so the design system's fields read as usual */
.request { background: var(--surface-raised); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-5); display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .request { padding: var(--space-6); } }
.request__row { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .request__row { grid-template-columns: 1fr 1fr; } }
.request textarea.sp-input { min-height: 112px; padding-top: var(--space-3); padding-bottom: var(--space-3); resize: vertical; font-family: var(--font-sans); }
.request .sp-btn { width: 100%; }
.request__optional { font-weight: 600; color: var(--ink-muted); }
.request__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.request__status { font-size: 15px; line-height: 22px; margin: 0; }
.request__status:empty { display: none; }
.request__status--error { color: var(--danger); }
.request__done h3 { margin-bottom: var(--space-2); }
.request__done p { color: var(--ink-muted); }
.request[hidden], .request__done[hidden] { display: none; }

.foot { background: var(--brand); color: var(--on-brand); border-top: 1px solid rgba(244, 239, 227, 0.18); padding: var(--space-6) 0; }
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.foot p { margin: 0; font-size: 14px; }
