/* The UK Paid Clinical Trials Playbook - shared stylesheet
   Design idea: the price block is styled like a volunteer ID wristband.
   Edit the colours in :root to rebrand everything at once. */

:root {
  --paper: #f7f2e8;
  --paper-2: #efe8d9;
  --ink: #11302d;
  --ink-soft: #3d5552;
  --accent: #d9662b;      /* wristband orange */
  --accent-dark: #b24d18;
  --line: #d8cfba;
  --white: #fffdf8;
  --max: 1040px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color-scheme: light;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }
li { margin-bottom: .45em; }

/* ---- top bar ---- */
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.topbar nav a { font-size: .92rem; margin-left: 16px; color: var(--ink-soft); }

/* ---- hero ---- */
.hero { padding: 56px 0 40px; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent-dark); margin-bottom: 14px; }
.hero h1 { max-width: 20ch; }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.25fr 1fr; } }

/* ---- the wristband ---- */
.band {
  position: relative;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 22px 22px 20px 30px;
  box-shadow: 6px 6px 0 var(--ink);
}
.band::before { /* orange ID strip down the left side */
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
  background: var(--accent);
  border-right: 2px solid var(--ink);
  border-radius: 12px 0 0 12px;
}
.band .tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.band .price { font-family: var(--serif); font-size: 3.2rem; font-weight: 700; line-height: 1; margin: 6px 0 4px; }
.band .sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 14px; }
.barcode { height: 26px; margin: 14px 0 0; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 13px, transparent 13px 15px); opacity: .85; }
.band ul.ticks { list-style: none; padding: 0; margin: 0 0 16px; font-size: .96rem; }
.band ul.ticks li { padding-left: 1.5rem; position: relative; margin-bottom: .35em; }
.band ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700; }

/* ---- buttons ---- */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1.1rem;
  padding: 15px 28px; border-radius: 10px; border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.btn:hover { color: #fff; background: var(--accent-dark); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.block { display: block; width: 100%; }
.fine { font-size: .85rem; color: var(--ink-soft); }

/* ---- sections ---- */
section { padding: 52px 0; }
.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--ink); color: var(--paper); }
.dark a { color: #ffd2b5; }
.dark .fine { color: #b9c9c6; }
.section-head { max-width: 46rem; margin-bottom: 28px; }

.cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .cards.two { grid-template-columns: 1fr 1fr; } .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .num { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--accent-dark); line-height: 1; display: block; margin-bottom: 8px; }

.pull { font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 2rem); line-height: 1.3; border-left: 6px solid var(--accent); padding: 4px 0 4px 20px; margin: 28px 0; max-width: 34rem; }

.stats { display: grid; gap: 14px; margin: 22px 0; }
@media (min-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.7rem; }
.stat span { color: var(--ink-soft); font-size: .95rem; }

.parts { list-style: none; padding: 0; margin: 0; }
.parts li { display: grid; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
@media (min-width: 700px) { .parts li { grid-template-columns: 9rem 1fr; } }
.parts li:last-child { border-bottom: 1px solid var(--line); }
.parts strong { font-family: var(--serif); color: var(--accent-dark); }

.centres { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 14px 0 0; }
.centres li { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }

.yes li, .no li { list-style: none; position: relative; padding-left: 1.7rem; }
.yes, .no { padding: 0; }
.yes li::before { content: "✓"; position: absolute; left: 0; color: #2f7d4f; font-weight: 700; }
.no li::before { content: "✕"; position: absolute; left: 0; color: #a33a2a; font-weight: 700; }

.guarantee { border: 2px dashed var(--accent); border-radius: 16px; padding: 28px; background: var(--white); display: grid; gap: 18px; }
@media (min-width: 700px) { .guarantee { grid-template-columns: auto 1fr; align-items: center; } }
.seal { width: 112px; height: 112px; border-radius: 50%; border: 3px solid var(--ink); background: var(--accent); color: #fff; display: grid; place-content: center; text-align: center; font-family: var(--serif); line-height: 1; justify-self: start; }
.seal b { font-size: 2.6rem; display: block; }
.seal span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; }

details { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 0; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent-dark); }
details[open] summary::after { content: "–"; }
details .answer { padding: 0 18px 16px; color: var(--ink-soft); }
details .answer p:last-child { margin-bottom: 0; }

.notice { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--ink); border-radius: 8px; padding: 14px 18px; font-size: .95rem; color: var(--ink-soft); }

/* ---- plain document pages (policies, thank-you, affiliates) ---- */
.doc { padding: 44px 0 64px; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.5rem; margin-top: 1.8em; }
.doc .updated { color: var(--ink-soft); font-size: .9rem; }
.toc-box { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 20px; margin: 20px 0; }
.toc-box ul { margin: 0; }
table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; background: var(--white); }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--paper-2); }
.table-scroll { overflow-x: auto; }
.copy-block { background: var(--white); border: 1px dashed var(--ink-soft); border-radius: 8px; padding: 14px 16px; margin: 12px 0; white-space: pre-wrap; font-size: .95rem; }

/* ---- footer ---- */
footer { background: var(--ink); color: #c9d6d3; padding: 36px 0 44px; font-size: .88rem; }
footer a { color: #ffd2b5; }
footer p { margin-bottom: .8em; }
footer .links a { margin-right: 16px; }

/* ---- mobile sticky buy bar ---- */
.stickybuy { display: none; }
@media (max-width: 879px) {
  .stickybuy { display: block; position: sticky; bottom: 0; background: var(--ink); padding: 10px 16px; z-index: 10; }
  .stickybuy .btn { padding: 12px 16px; font-size: 1rem; box-shadow: none; border-color: #fff; }
}

@media print { .stickybuy, .topbar nav { display: none; } body { background: #fff; } }
