/* Purple Brock — studio site. Brand: purple #744577 · cream #F0E9B6 · sage #ACCFA3 · teal #84C5B1 */
:root {
  --purple: #744577;
  --purple-deep: #5a2c5d;
  --cream: #f0e9b6;
  --sage: #accfa3;
  --teal: #84c5b1;
  --page: #fbf8ee;
  --card: #ffffff;
  --ink: #241a26;
  --ink-soft: #5b4f5d;
  --line: rgba(116, 69, 119, 0.16);
  --link: #5a2c5d;
  --brock: #744577;
  --on-purple: #ffffff;
  --on-purple-soft: #ecdcee;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #17121a;
    --card: #2a2430;
    --ink: #f3eef4;
    --ink-soft: #c2b8c4;
    --line: rgba(203, 151, 206, 0.18);
    --link: #cb97ce;
    --brock: #8a5a8d;
    --on-purple-soft: #f1e3f2;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ── header / footer ─────────────────────────────────────────────── */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--link); }
.foot { margin-top: 72px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot nav { display: flex; gap: 18px; }

/* ── hero (purple band with Brock trotting along) ────────────────── */
.hero { background: var(--purple); color: var(--on-purple); overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; padding-top: 80px; padding-bottom: 64px; }
.eyebrow { display: inline-block; background: rgba(255,255,255,0.14); color: var(--on-purple-soft); padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -0.025em; margin: 14px 0 14px; }
.hero h1 span { color: var(--cream); }
.hero p.lead { font-size: 19px; color: var(--on-purple-soft); margin: 0 0 24px; max-width: 34em; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--purple-deep); padding: 13px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; }
.store-btn small { display: block; font-size: 12px; font-weight: 600; opacity: 0.75; }
.store-note { margin-top: 10px; font-size: 14px; color: var(--on-purple-soft); }
.phone { justify-self: center; position: relative; }
.phone img { width: min(280px, 70vw); border-radius: 38px; border: 8px solid #1d1520; box-shadow: 0 24px 48px rgba(20, 8, 24, 0.35); }

/* Brock peeking over the top of the phone — a deep purple (darker than the band) so he stays purple but stands out */
/* The same deep-purple Brock grips the top edge of the "Brock's promise" box. */
.phone .peek, .promise .peek { position: absolute; top: -64px; left: 50%; width: 120px; height: 74px; margin: 0 0 0 -60px; z-index: 2; }
.phone .peek .body, .promise .peek .body { background: #4a2350; }

/* ── peeking Brock (two-layer: white markings + purple body via mask) ── */
.peek { position: relative; width: 112px; height: 69px; margin: 0 auto -6px; z-index: 1; }
.peek .marks, .peek .body { position: absolute; inset: 0; }
/* Both layers are black templates (as in the app, which tints them): white markings + purple body. */
.peek .marks { background: #fff; -webkit-mask: url(/img/brock-peek-marks.png) center / contain no-repeat; mask: url(/img/brock-peek-marks.png) center / contain no-repeat; }
.peek .body { background: var(--brock); -webkit-mask: url(/img/brock-peek.png) center / contain no-repeat; mask: url(/img/brock-peek.png) center / contain no-repeat; }
.mini-brock { display: block; width: 30px; height: 17px; background: var(--purple); -webkit-mask: url(/img/brock-walk.png) center / contain no-repeat; mask: url(/img/brock-walk.png) center / contain no-repeat; }
.peek.pop { animation: peekup 0.9s cubic-bezier(.2,1.4,.4,1) 0.2s both; }
@keyframes peekup { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── sections ─────────────────────────────────────────────────────── */
section { padding: 64px 0 0; }
h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 10px; }
.sub { color: var(--ink-soft); margin: 0 0 28px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card h3 { margin: 10px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.dot { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; }
.dot.p { background: rgba(116,69,119,0.14); }
.dot.s { background: rgba(172,207,163,0.35); }
.dot.t { background: rgba(132,197,177,0.32); }
.dot.c { background: rgba(240,233,182,0.6); }

.promise { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px 30px; text-align: center; margin-top: 110px; }
.promise h2 { margin-top: 6px; }
.promise ul { list-style: none; padding: 0; margin: 18px auto 0; display: grid; gap: 10px; max-width: 520px; text-align: left; }
.promise li { display: flex; gap: 12px; align-items: flex-start; }
.promise li b { color: var(--link); }

/* "What should Brock build next?" — app suggestions, sent by email (static site, no forms) */
.ideas { background: rgba(240,233,182,0.45); border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px; text-align: center; }
.ideas .sub { margin: 0 auto 20px; }
.chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 15px; font-weight: 600; }
.idea-btn { display: inline-block; background: var(--purple); color: #fff; padding: 13px 26px; border-radius: 14px; font-weight: 700; text-decoration: none; }
.idea-btn:hover { background: var(--purple-deep); }
.ideas .store-note { color: var(--ink-soft); margin: 10px 0 0; }
@media (prefers-color-scheme: dark) { .ideas { background: rgba(240,233,182,0.07); } }

.shots { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.shots figure { margin: 0; text-align: center; }
.shots img { width: 230px; border-radius: 30px; border: 6px solid #1d1520; }
.shots figcaption { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }

/* ── text pages (privacy / support) ──────────────────────────────── */
.page-head { padding: 34px 0 6px; text-align: center; }
.page-head h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; margin: 6px 0 6px; }
.page-head p { color: var(--ink-soft); margin: 0; }
.prose { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px; margin-top: 18px; }
.prose h2 { font-size: 22px; margin: 26px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; }
.tldr { background: rgba(172,207,163,0.28); border-radius: 16px; padding: 16px 18px; margin: 0 0 8px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--link); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--ink-soft); }
.mail { display: inline-block; margin-top: 8px; font-size: 20px; font-weight: 700; }

/* ── small screens ───────────────────────────────────────────────── */
@media (max-width: 780px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; text-align: center; }
  .phone { margin-top: 56px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .grid { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
}

/* Respect "reduce motion": Brock stands still. */
@media (prefers-reduced-motion: reduce) {
  .peek.pop { animation: none; }
}
