/* Playbook (playbook.outvie.tv). Its own brand, separate from Outvie's style.css.
   Navy + infield clay on warm off-white; switches to dark automatically when the visitor's phone or computer is set to dark.
   Mobile first: base rules are for phones, wider screens are added with min-width media queries.
   Colours live here in :root. Text and button colours were checked for contrast (WCAG AA) in both themes. */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #13233f;
  --muted: #475467;
  --line: #e3dcd0;
  --clay: #b5532a;          /* buttons (white text on it) */
  --clay-text: #a14622;     /* clay used as text */
  --on-clay: #ffffff;
  --band: #13233f;          /* the navy pilot band */
  --on-band: #ffffff;
  --on-band-muted: #c9d2e0;
  --mark-bg: #13233f;
  --focus: #1d5fd1;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1626;
    --surface: #142036;
    --ink: #eef1f6;
    --muted: #aeb8c8;
    --line: #26354f;
    --clay: #e8834f;
    --clay-text: #f0955f;
    --on-clay: #0d1626;
    --band: #142036;
    --on-band: #eef1f6;
    --on-band-muted: #aeb8c8;
    --mark-bg: #22385f;
    --focus: #8db4ff;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 8vw, 3.7rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--clay-text); text-underline-offset: .15em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
strong { font-weight: 700; }

.pb-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.pb-narrow { max-width: 720px; }
@media (min-width: 700px) { .pb-wrap { padding: 0 28px; } }

.pb-skip { position: absolute; left: -9999px; top: 0; z-index: 10; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.pb-skip:focus { left: 12px; top: 12px; }

/* Top bar */
.pb-top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.pb-top-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.pb-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.pb-mark { width: 32px; height: 32px; flex: none; }
.pb-mark rect { fill: var(--mark-bg); }

/* Buttons */
.pb-btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 14px 22px; border: 0; border-radius: 999px;
  background: var(--clay); color: var(--on-clay);
  font: 700 1.0625rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 18px -8px color-mix(in srgb, var(--clay) 70%, transparent);
}
.pb-btn:hover { filter: brightness(1.06); }
.pb-btn:disabled { opacity: .7; cursor: progress; }
.pb-btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; box-shadow: none; }

/* Hero */
.pb-hero {
  padding: 48px 0 56px;
  background:
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--clay) 16%, transparent), transparent 60%),
    var(--bg);
}
.pb-hero h1 { max-width: 15ch; }
.pb-eyebrow { color: var(--clay-text); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.pb-lede { font-size: 1.2rem; color: var(--muted); max-width: 38ch; margin-bottom: 28px; }
.pb-hero .pb-btn { width: 100%; }
.pb-note { margin: 12px 0 0; font-size: .95rem; color: var(--muted); }
@media (min-width: 560px) { .pb-hero .pb-btn { width: auto; } }
@media (min-width: 900px) { .pb-hero { padding: 88px 0 96px; } .pb-lede { font-size: 1.3rem; } }

/* Sections */
.pb-section { padding: 56px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .pb-section { padding: 80px 0; } }
.pb-small { font-size: .95rem; color: var(--muted); }

/* Problems: three numbered points */
.pb-problems { list-style: none; counter-reset: p; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.pb-problems li { counter-increment: p; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; }
.pb-problems li::before { content: "0" counter(p); display: block; color: var(--clay-text); font-weight: 800; font-size: .95rem; margin-bottom: 8px; }
.pb-problems p { color: var(--muted); margin: 0; }
@media (min-width: 820px) { .pb-problems { grid-template-columns: repeat(3, 1fr); } }

/* Founder note */
.pb-founder-body { display: grid; gap: 18px; align-items: start; }
.pb-founder-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
@media (min-width: 600px) { .pb-founder-body:has(.pb-founder-photo) { grid-template-columns: 96px 1fr; gap: 24px; } }
.pb-founder blockquote { margin: 0; padding-left: 20px; border-left: 4px solid var(--clay); font-size: 1.2rem; }
.pb-founder blockquote footer, .pb-case-quote footer { font-size: 1rem; font-weight: 700; color: var(--muted); }
.pb-founder blockquote footer::before, .pb-case-quote footer::before { content: "— "; }

/* What we set up */
.pb-cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.pb-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.pb-cards svg { width: 32px; height: 32px; margin-bottom: 14px; fill: none; stroke: var(--clay-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pb-cards p { color: var(--muted); margin: 0; }
@media (min-width: 700px) { .pb-cards { grid-template-columns: 1fr 1fr; } }
.pb-addons { margin: 20px 0 0; color: var(--muted); }
.pb-addons strong { color: var(--ink); }

/* How it works */
.pb-steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; gap: 22px; }
.pb-steps li { counter-increment: s; position: relative; padding-left: 56px; }
.pb-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -4px;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-weight: 800;
}
.pb-steps h3 { margin-bottom: .3em; }
.pb-steps p { color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .pb-steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .pb-steps li { padding-left: 0; padding-top: 56px; }
}

/* 90-day pilot: navy band */
.pb-pilot { background: var(--band); color: var(--on-band); border-top: 0; }
.pb-pilot p { color: var(--on-band-muted); }
.pb-pilot .pb-small { color: var(--on-band-muted); margin: 20px 0 0; }
.pb-metrics { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pb-metrics li { border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: var(--radius); padding: 16px; font-weight: 700; line-height: 1.3; }
@media (min-width: 820px) { .pb-metrics { grid-template-columns: repeat(4, 1fr); } }

/* Case study (only when switched on) */
.pb-case-quote { margin: 0 0 8px; font-size: 1.2rem; }

/* How we operate */
.pb-checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; max-width: 760px; }
.pb-checks li { position: relative; padding-left: 36px; color: var(--muted); }
.pb-checks strong { color: var(--ink); }
.pb-checks li::before {
  content: ""; position: absolute; left: 4px; top: .3em; width: 8px; height: 14px;
  border: solid var(--clay-text); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* FAQ */
.pb-faq { margin-top: 20px; border-top: 1px solid var(--line); }
.pb-faq details { border-bottom: 1px solid var(--line); }
.pb-faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 1.1rem; }
.pb-faq summary::-webkit-details-marker { display: none; }
.pb-faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--clay-text); }
.pb-faq details[open] summary::after { content: "–"; }
.pb-faq details p { color: var(--muted); margin: 0 0 20px; }

/* Audit form */
.pb-audit { background: var(--surface); }
.pb-form { margin-top: 24px; display: grid; gap: 18px; }
.pb-form[hidden], .pb-done[hidden], .pb-error[hidden] { display: none; }
.pb-field { display: grid; gap: 6px; }
.pb-field label { font-weight: 700; font-size: 1rem; }
.pb-optional { font-weight: 400; color: var(--muted); }
.pb-field input, .pb-field select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.3 var(--font); font-size: max(16px, 1rem);   /* 16px+ so phones don't zoom in */
  color: var(--ink); background: var(--bg); border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 10px;
}
.pb-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 20px center, right 14px center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.pb-field input::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.pb-field input[aria-invalid="true"], .pb-field select[aria-invalid="true"] { border-color: #c62828; }
.pb-form .pb-btn { width: 100%; }
@media (min-width: 560px) { .pb-form .pb-btn { width: auto; justify-self: start; } }
.pb-form .pb-small { margin: 0; }
.pb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pb-check:empty { display: none; }
.pb-error { margin: 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, #c62828 12%, var(--surface)); border: 1px solid color-mix(in srgb, #c62828 45%, transparent); font-weight: 600; }
.pb-done { margin-top: 24px; padding: 22px 20px; border-radius: var(--radius); border: 2px solid var(--clay); background: var(--bg); }
.pb-done p { margin: 0; color: var(--muted); }
.pb-fallback { margin-top: 20px; }

/* Privacy / 404 */
.pb-legal { border-top: 0; }
.pb-legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.pb-legal p { color: var(--muted); }
.pb-legal .pb-btn { margin-top: 8px; }

/* Footer */
.pb-foot { border-top: 1px solid var(--line); padding: 28px 0 32px; font-size: .95rem; color: var(--muted); }
.pb-foot-row { display: grid; gap: 14px; }
.pb-foot-brand { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); }
.pb-foot-brand .pb-mark { width: 24px; height: 24px; }
.pb-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pb-foot nav a { color: var(--ink); }
.pb-foot-small { margin: 18px auto 0; font-size: .85rem; }
@media (min-width: 700px) { .pb-foot-row { grid-template-columns: 1fr auto; align-items: center; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
