/* Roam Motion — site styles. Mobile-first, system fonts, no external requests. */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --text: #16181b;
  --muted: #4a4f57;
  --line: #d8d3c8;
  --accent: #cf1a50;          /* logo red, a shade deeper so text reads 4.9:1 on the light page */
  /* Buttons use the logo colours: gradient runs #ee4355 -> #dd215b. */
  --button-bg: #dd215b;       /* logo, darker end; white text 4.7:1 */
  --button-bg-hover: #c41c50;
  --button-text: #ffffff;
  --placeholder-bg: #ece8de;
  --placeholder-stripe: #e2ddd0;
  --focus: #1a5fb4;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wide: 56rem; /* caps the whole container; text fills it, never a narrower column */
  --gutter: 1rem;
  --radius: 6px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --surface: #1a1d20;
    --text: #ecebe7;
    --muted: #a9adb3;
    --line: #2f3439;
    --accent: #f04d5e;        /* logo red, lighter end nudged up: 4.8:1 on dark cards, 5.3:1 on the page */
    --placeholder-bg: #1d2024;
    --placeholder-stripe: #23272b;
    --focus: #8ab4f8;
  }
}

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw + 0.5rem, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2.125rem); }
h3 { font-size: 1.25rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  z-index: 10;
}
.skip-link:focus { top: 0.5rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
/* On wide windows, centre on the window itself. 100vw includes a classic scrollbar,
   so the container doesn't sit half a scrollbar left of centre. No effect with overlay scrollbars. */
@media (min-width: 64rem) {
  .wrap { margin-left: max(0px, calc((100vw - var(--wide)) / 2)); margin-right: auto; }
}

/* Header and nav: wraps on small screens, no JS menu needed. */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand img { height: 1.75rem; width: auto; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.125rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li + li { margin-top: 0; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.975rem;
  display: inline-block;
  padding: 0.25rem 0;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Sections */
section { padding: 3rem 0; }
section + section { border-top: 1px solid var(--line); }
@media (min-width: 48rem) { section { padding: 4.5rem 0; } }

.eyebrow {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.lede { font-size: 1.1875rem; color: var(--muted); }

.hero { padding-top: 2.5rem; }
.hero .summary { font-size: 1.1875rem; }
.hero .summary span { display: block; }

/* Heading sized to fit the container on one line from tablet up; wraps on phones.
   3.6cqi leaves ~10% headroom over Segoe UI so wider system fonts still fit. */
.fit-line { container-type: inline-size; }
@media (min-width: 48rem) {
  .fit-line > h2 { font-size: min(2.125rem, 3.6cqi); }
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.button {
  display: inline-block;
  padding: 0.75rem 1.125rem;
  border-radius: var(--radius);
  border: 2px solid var(--button-bg);
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}
.button:hover { background: var(--button-bg-hover); border-color: var(--button-bg-hover); }
.button.secondary { background: transparent; border-color: var(--accent); color: var(--accent); }
.button.secondary:hover { background: transparent; text-decoration: underline; text-underline-offset: 0.2em; }

/* Grids */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grid.two, .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .decision { color: var(--muted); }
.card.secondary-offer { border-style: dashed; }
.card .note { color: var(--muted); font-size: 0.9375rem; margin-top: 0.5rem; }
.tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.05rem 0.6rem;
  margin-bottom: 0.5rem;
}

/* Offer detail blocks */
.offer { scroll-margin-top: 1rem; }
.offer + .offer { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.offer-body { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .offer-body { grid-template-columns: 1fr 1fr; align-items: start; } }
/* An offer whose media is hidden has one child: let the text take the full row. */
.offer-body > :only-child { grid-column: 1 / -1; }
.offer dl dt { font-weight: 600; margin-top: 1rem; }
.offer dl dt:first-child { margin-top: 0; }
.offer dl dd { margin: 0.25rem 0 0; }

/* Numbered steps */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.steps > li { counter-increment: step; margin: 0; padding-left: 3rem; position: relative; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.9375rem;
}
.steps h3 { margin-bottom: 0.35rem; }

.not-list li::marker { content: "✕  "; color: var(--muted); }

/* Media placeholders: clearly marked slots for real capture media (see docs/SITE-PLAN.md). */
.media-placeholder {
  margin: 0;
  border: 2px dashed var(--muted);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      -45deg,
      var(--placeholder-bg) 0 14px,
      var(--placeholder-stripe) 14px 28px
    );
  color: var(--muted);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.5rem 1rem;
  aspect-ratio: 16 / 9;
  min-height: 10rem;
}
.media-placeholder.portrait { aspect-ratio: 4 / 5; }
.media-placeholder.doc { aspect-ratio: 8.5 / 11; max-width: 22rem; }
.media-placeholder strong {
  display: block;
  color: var(--text);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.media-placeholder span { display: block; font-size: 0.9375rem; max-width: 28rem; }

.text-placeholder {
  border: 2px dashed var(--muted);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--muted);
}
.text-placeholder strong { color: var(--text); }

/* Contact */
.email-big {
  font-size: clamp(1.375rem, 4vw + 0.5rem, 2.25rem);
  font-weight: 700;
  word-break: break-word;
}

.contact-details { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 40rem) { .contact-details { grid-template-columns: auto 1fr; gap: 2.5rem; } }
.contact-details dt {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-details dd { margin: 0.25rem 0 0; font-size: 1.1875rem; }
address { font-style: normal; }

/* Legal pages */
.updated { color: var(--muted); font-size: 0.9375rem; }
.legal h2 { font-size: 1.375rem; margin-top: 2.25rem; }

/* Footer: dark in both colour schemes. */
.site-footer {
  --footer-bg: #0c0d0f;
  --footer-text: #ecebe7;
  --footer-muted: #a9adb3;
  --footer-line: #2a2e33;
  --focus: #8ab4f8;
  background: var(--footer-bg);
  color: var(--footer-muted);
  font-size: 0.9375rem;
  padding: 3rem 0 2rem;
}
.site-footer a { color: var(--footer-text); text-underline-offset: 0.2em; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) { .footer-grid { grid-template-columns: 1.3fr 1.5fr 1fr 1fr; } }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}
.footer-logo img { height: 2.5rem; width: auto; }
.footer-brand p { margin: 0.75rem 0 0; }
.footer-heading {
  color: var(--footer-text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}
.site-footer address { line-height: 1.7; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav li + li { margin-top: 0.35rem; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; }
/* Rule sits on the text block, so it spans the text width, not the container padding. */
.footer-bottom p { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--footer-line); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Spacing utilities (no inline styles: the CSP blocks them) */
.spaced { margin-top: 1.25rem; }
.spaced-lg { margin-top: 2rem; }
