/* Market Bite Test: shared stylesheet. Light theme, system fonts, no external requests.
   Each page sets its own accent through body[data-prop]. Media (photos and short loops)
   is self-hosted under /assets/media/<prop>/ so the CSP stays 'self'. */
:root {
  --bg: #ffffff;
  --surface: #f5f4f0;
  --ink: #15171b;
  --muted: #5b616b;
  --line: #e4e2dc;
  --accent: #1f5f4a;
  --accent-ink: #ffffff;
  --accent-soft: #e7f1ec;
  --accent-dark: #174a39;
  --warn-soft: #fff6e3;
  --warn-line: #e8c97d;
  --error: #b42318;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 10px 30px rgba(20, 20, 20, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 36em;
  color-scheme: light;
}
/* Second View: indigo, the colour of a message bubble you have not answered. */
body[data-prop="sv-dating"], body[data-prop="sv-social"], body[data-prop="sv-everyday"] {
  --accent: #3140c4; --accent-soft: #eceefc; --accent-dark: #2733a3;
}
body[data-prop="vinyl"] { --accent: #c0471e; --accent-soft: #fbe9df; --accent-dark: #9e3814; }
body[data-prop="ev"] { --accent: #d4881f; --accent-ink: #14110a; --accent-soft: #fcefd9; --accent-dark: #b26f12; }
body[data-prop="hendon"] { --accent: #b33d2b; --accent-soft: #f9e8e4; --accent-dark: #8f2e20; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.2vw + 1rem, 3.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(1.5rem, 2vw + .8rem, 2.1rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1160px; }
.site-head { padding: 14px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 800; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); font-size: 1.05rem; }
.tag { display: inline-block; font-size: .82rem; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: var(--warn-soft); border: 1px solid var(--warn-line); color: #6b4a00; }
.tag.live { background: var(--accent-soft); border-color: transparent; color: var(--accent-dark); }

/* ---------- Hero with media ---------- */
.hero { padding: 8px 0 32px; }
.hero .subhead { font-size: 1.15rem; color: var(--muted); max-width: var(--measure); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .tag { margin-bottom: 14px; }
.hero-grid { display: grid; gap: 22px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-copy > :last-child { margin-bottom: 0; }
.hero-media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  aspect-ratio: 4 / 3; isolation: isolate; }
.hero-media > img, .hero-media > video, .hero-media > picture > img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; margin: 0; color: #fff; font-size: .88rem;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.hero-media .caption strong { font-weight: 650; }
.hero-media.tall { aspect-ratio: 4 / 5; }
.hero-note { margin-top: 22px; }
@media (min-width: 880px) {
  .hero { padding: 16px 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 48px; }
  .hero-grid.media-first { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); }
  .hero-grid.media-first .hero-media { order: -1; }
  .hero-media { aspect-ratio: auto; height: 100%; min-height: 480px; }
  .hero-media.tall { min-height: 560px; }
  .hero-grid.stretch { align-items: stretch; }
}

/* Dark hero variant (used by EV: an overnight product deserves a night-time hero). */
.hero.dark { background: #0c1527; color: #f4f6fb; margin-bottom: 8px; padding-top: 0; }
.hero.dark .site-head-inline { padding-top: 14px; }
.hero.dark .subhead { color: #c3cadb; }
.hero.dark .note { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #f4f6fb; }
.hero.dark .bullets li::before { background-color: rgba(255,255,255,.12); }
.hero.dark .hero-media { background: #0c1527; }
.hero.dark .small.muted, .hero.dark .muted { color: #b7bfd0; }

/* ---------- Sections ---------- */
section { padding: 32px 0; }
@media (min-width: 880px) { section { padding: 44px 0; } }
.band { background: var(--surface); padding: 44px 0; margin: 24px 0; }
.band > .wrap > h2:first-child, .band > .wrap.wide > h2:first-child { margin-top: 0; }
.band > .wrap > :last-child, .band > .wrap.wide > :last-child { margin-bottom: 0; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: var(--measure); }

/* Full-width photo strip with a caption. Use between sections, not inside cards. */
.strip { margin: 32px 0; }
.strip figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 16 / 7; background: var(--surface); }
.strip img, .strip video { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; font-size: .95rem;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.strip figcaption strong { font-weight: 700; display: block; font-size: 1.15rem; margin-bottom: 2px; letter-spacing: -0.01em; }
@media (max-width: 640px) { .strip figure { aspect-ratio: 4 / 3; } }

/* Two-column: copy beside a photo. */
.split { display: grid; gap: 22px; align-items: center; }
.split-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); position: relative; }
.split-media img, .split-media video { width: 100%; height: 100%; object-fit: cover; }
.split-media.portrait { aspect-ratio: 4 / 5; }
.split-copy > :last-child { margin-bottom: 0; }
@media (min-width: 880px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .split.media-first .split-media { order: -1; }
}
/* On phones the copy always comes first and the form keeps its photo for wide screens only. */
@media (max-width: 879px) {
  .split .split-media { order: 1; }
  .form-split .split-media { display: none; }
}

/* Photo credit, kept quiet. */
.credit { font-size: .8rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px; border-radius: 12px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 1.02rem;
  text-decoration: none; cursor: pointer; transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--accent); }
.btn.secondary:hover { background: var(--accent-soft); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.block { width: 100%; }

/* ---------- Cards, lists, notes ---------- */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.bullets { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; max-width: var(--measure); }
.bullets li { position: relative; padding-left: 30px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2315171b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Numbered steps: only for content that really is a sequence. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; max-width: var(--measure); }
.steps li { position: relative; padding-left: 44px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .95rem; display: flex; align-items: center; justify-content: center; }
@media (min-width: 880px) { .steps.row { grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: none; } .steps.row.four { grid-template-columns: repeat(4, 1fr); } }

.note { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 14px 16px; font-size: .95rem; }
.note.info { background: var(--accent-soft); border-color: transparent; }
.note.thanks { background: var(--accent-soft); border-color: transparent; font-size: 1.05rem; }
.note > :last-child { margin-bottom: 0; }

.example { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); position: relative; }
.example::before { content: "Example"; position: absolute; top: -11px; left: 14px; background: var(--bg); padding: 0 6px;
  font-size: .8rem; font-weight: 650; color: var(--muted); }
.band .example { background: var(--bg); }
.band .example::before { background: var(--bg); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form .field { display: grid; gap: 6px; }
.form label { font-weight: 600; font-size: .95rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=number], .form input[type=url],
.form select, .form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1.5px solid #cdcac2; border-radius: 10px;
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); outline-offset: 0; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.form .check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.form-status { margin: 0; font-size: .95rem; color: var(--muted); }
.form-status.is-error { color: var(--error); font-weight: 600; }
[hidden] { display: none !important; }

/* Form beside a photo on wide screens; the photo is sticky so it stays in view while the form scrolls. */
.form-split { display: grid; gap: 24px; align-items: start; }
.form-split > div > h2:first-child { margin-top: 0; }
.form-split .split-media { aspect-ratio: 4 / 3; }
@media (min-width: 880px) {
  .form-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; }
  .form-split .split-media { position: sticky; top: 24px; aspect-ratio: 4 / 5; }
}

.muted { color: var(--muted); }
.small { font-size: .88rem; }
.site-foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 48px; color: var(--muted); font-size: .9rem; }
.site-foot a { color: var(--muted); }
.site-foot p { margin: 0 0 .5em; }

table.data { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--bg); }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.data th:first-child, table.data td:first-child, table.data th:nth-child(2), table.data td:nth-child(2) { text-align: left; }
table.data thead th { position: sticky; top: 0; background: #f3f1ec; font-weight: 650; }
table.data tr.total td { font-weight: 700; background: #f8f7f3; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
