/* Home page and book page styles. Same tokens as site.css, which the inner pages use. */
/* Colours from the book cover: navy ink, the red dot, and the blue crowd of dots */
:root {
  --page: #f5f7fa;
  --alt: #eaeef4;
  --card: #ffffff;
  --line: #dde3ec;
  --line-strong: #c9d2df;
  --text: #0f1b33;
  --text-2: #46526a;
  --muted: #66718a;

  --ink: #0b1e3d;
  --ink-2: #14294d;
  --on-dark: #eef2f8;
  --on-dark-2: #a9b4c8;
  --dark-line: rgba(238, 242, 248, .12);

  --primary: #d51719;
  --primary-hover: #b81214;
  --accent: #3b82e0;
  --accent-2: #6aa5ee;
  --dot: #d51719; /* the red dot from the cover */

  --display: "Fraunces", Georgia, serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --shadow-xs: 0 1px 2px rgba(11, 30, 61, .05);
  --shadow-md: 0 12px 32px -16px rgba(11, 30, 61, .18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); font-size: 16px; line-height: 1.6; background: var(--page); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
section { padding: 120px 0; }
.alt { background: var(--alt); }
.center { text-align: center; }
.center h2, .center .intro { margin-left: auto; margin-right: auto; }

.eyebrow { font: 600 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
h2 { font-size: 44px; margin-bottom: 20px; max-width: 18em; }
.intro { color: var(--text-2); font-size: 18px; max-width: 36em; }

/* Pill badge */
.badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card); box-shadow: var(--shadow-xs);
  font-size: 14px; color: var(--text-2); margin-bottom: 24px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px; border-radius: 8px; border: 1px solid transparent;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(.98); }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-light { background: var(--card); color: var(--text); border-color: var(--line-strong); }
.btn-light:hover { background: var(--alt); }

/* Nav */
nav.top { position: sticky; top: 0; z-index: 10; background: rgba(245, 247, 250, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo .mark { position: relative; width: 34px; height: 34px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; flex: none; font: 700 14px/1 var(--display); letter-spacing: -.02em; color: #fff; }
.logo .mark::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, #d51719); } /* the cover's red dot */
.logo b { display: block; font: 600 17px/1.1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.logo small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-links .menu-only { display: none; } /* listed in the phone menu only */
/* keep the header on one line as the window narrows: drop the subtitle, then the extra links */
@media (max-width: 1280px) { .logo small { display: none; } .nav-links { gap: 20px; } }
@media (max-width: 1180px) { .nav-links .wide { display: none; } }
@media (max-width: 1040px) { .nav-links { gap: 16px; font-size: 14px; } .nav-links .mid { display: none; } }
.nav-links a:not(.btn) { text-decoration: none; color: var(--text-2); transition: color 150ms var(--ease); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .btn { height: 44px; padding: 0 22px; font-size: 15px; }

/* Hero: navy, like the cover, with a soft blue glow behind the book */
.hero {
  position: relative; overflow: hidden; min-height: calc(100svh - 68px); display: flex; flex-direction: column;
  color: var(--on-dark-2);
  background:
    radial-gradient(40rem 30rem at 74% 40%, rgba(59, 130, 224, .30), transparent 70%),
    radial-gradient(30rem 20rem at 6% 0%, rgba(59, 130, 224, .12), transparent 70%),
    var(--ink);
}
.hero .badge { background: rgba(238, 242, 248, .06); border-color: var(--dark-line); color: var(--on-dark-2); }
.hero .display { color: var(--on-dark); }
.hero .display em { color: #ff4f52; } /* the cover's red, lifted so it reads on navy */
.hero .sub { color: var(--on-dark); }
.hero .lead { color: var(--on-dark-2); }
.hero .creds { border-top-color: var(--dark-line); color: var(--on-dark-2); }
.hero .creds b { color: var(--on-dark); }
.hero .btn-light { background: transparent; color: var(--on-dark); border-color: rgba(238, 242, 248, .3); }
.hero .btn-light:hover { background: rgba(238, 242, 248, .08); }
.hero .trail path { stroke: var(--accent-2); }
.hero .trail circle { fill: #ff4f52; }
.slides { display: grid; flex: 1; position: relative; }
.slide {
  grid-area: 1 / 1; display: flex; align-items: center; padding: 64px 0;
  opacity: 0; visibility: hidden; transition: opacity 180ms ease-out, visibility 0s linear 180ms;
}
.slide.on { opacity: 1; visibility: visible; transition: opacity 420ms var(--ease) 180ms; }
.slide-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; width: 100%; }
.display { font-size: 68px; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 20px; }
.display em { font-style: normal; color: var(--primary); }
.hero .sub { font: 600 22px/1.3 var(--display); letter-spacing: -.01em; margin-bottom: 16px; }
.hero .lead { font-size: 18px; max-width: 34rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.creds { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.creds b { color: var(--text); font-weight: 600; }

/* Dotted trail ending in the red dot, under "the 2%?" */
.trail { position: relative; white-space: nowrap; }
.trail svg { position: absolute; left: 0; bottom: -.16em; width: 100%; height: .3em; overflow: visible; }
.trail path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 9; }
.trail circle { fill: var(--dot); }

.cover-stage { display: flex; justify-content: center; position: relative; }
.cover { width: 330px; aspect-ratio: 435 / 589; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 4px rgba(11, 30, 61, .08), 0 40px 64px -28px rgba(11, 30, 61, .45); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.reach { width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; display: block; }

.biz { display: grid; gap: 12px; max-width: 440px; margin: 0 auto; width: 100%; }
.biz a { display: block; padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-xs); text-decoration: none; transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.biz a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.biz .eyebrow { margin-bottom: 4px; }
.biz b { display: block; font: 600 24px/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.biz p { font-size: 15px; color: var(--text-2); }
.biz .go { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--primary); }

.hero-tabs { position: relative; border-top: 1px solid var(--line); background: rgba(245, 247, 250, .7); }
.hero-tabs .wrap { display: flex; gap: 24px; }
.hero-tabs button { flex: 1; position: relative; background: none; border: 0; cursor: pointer; text-align: left; padding: 20px 0; font: 600 14px/1.2 var(--body); color: var(--muted); transition: color 150ms var(--ease); }
.hero-tabs button:hover, .hero-tabs button.on { color: var(--text); }
.hero-tabs .bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; overflow: hidden; }
.hero-tabs .bar i { position: absolute; inset: 0; background: var(--primary); transform: scaleX(0); transform-origin: left; }
.hero-tabs .on .bar i { transform: scaleX(1); }
.hero.auto .hero-tabs .on .bar i { animation: fill 8s linear both; }
.hero.paused .hero-tabs .on .bar i { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Trust strip */
.trust { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.trust .wrap { display: flex; align-items: center; justify-content: center; gap: 16px 48px; flex-wrap: wrap; }
.trust .eyebrow { color: var(--muted); margin: 0; }
.trust ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 40px; font: 600 17px/1.3 var(--display); color: var(--text-2); letter-spacing: -.01em; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; text-align: left; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; box-shadow: var(--shadow-xs); }
.card .num { position: absolute; top: 20px; right: 24px; font: 500 13px var(--mono); color: var(--line-strong); }
.card .icon { width: 44px; height: 44px; border-radius: 50%; background: #dde9fb; display: grid; place-items: center; margin-bottom: 20px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--text-2); }
.center .card { text-align: center; }
.center .card .icon { margin-left: auto; margin-right: auto; }

/* The four moves */
.moves { grid-template-columns: repeat(4, 1fr); }
.moves .card { text-align: center; padding: 28px 20px; }
.moves .num { position: static; display: block; font: 600 26px/1.5 var(--display); color: var(--primary); }
.moves h3 { font-size: 18px; margin: 8px 0 4px; }
.moves p { font-size: 14px; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 16px; margin: 56px auto 0; max-width: 100%; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.divider::after { background: linear-gradient(90deg, var(--accent), transparent); }
.divider i { width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); flex: none; }
.motto { font: 600 34px/1.2 var(--display); letter-spacing: -.02em; margin-top: 40px; }
.motto em { font-style: normal; color: var(--primary); }

/* Dark navy sections with a blue glow */
.dark { background: radial-gradient(40rem 22rem at 50% 0%, rgba(59, 130, 224, .30), transparent 70%), var(--ink); color: var(--on-dark-2); }
.dark h2, .dark h3 { color: var(--on-dark); }
.dark .eyebrow { color: var(--accent-2); }


/* Buy */
.buy-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 20px; margin-top: 56px; text-align: left; align-items: stretch; }
.buy-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-xs); }
.buy-card h3 { font-size: 21px; }
.buy-card .for { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.buy-card .price { font: 600 40px/1 var(--display); letter-spacing: -.03em; margin: 28px 0; font-variant-numeric: tabular-nums; }
.buy-card .price small { font: 400 14px var(--body); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.buy-card ul { list-style: none; font-size: 15px; color: var(--text-2); border-top: 1px solid var(--line); margin-bottom: 28px; }
.buy-card li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.buy-card .btn { margin-top: auto; }
.buy-card.featured { background: radial-gradient(24rem 14rem at 50% 0%, rgba(59, 130, 224, .4), transparent 70%), var(--ink); border-color: var(--ink); color: var(--on-dark-2); box-shadow: var(--shadow-md); }
.buy-card.featured h3, .buy-card.featured .price { color: var(--on-dark); }
.buy-card.featured .for, .buy-card.featured li { color: var(--on-dark-2); }
.buy-card.featured ul, .buy-card.featured li { border-color: var(--dark-line); }
.isbn { margin-top: 24px; font: 500 12px var(--mono); letter-spacing: .06em; color: var(--muted); }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; position: relative; overflow: hidden; display: grid; place-items: center;
  border-radius: 999px 999px 16px 16px / 520px 520px 16px 16px;
  background: radial-gradient(circle at 50% 35%, #dde9fb, var(--alt) 70%); border: 1px solid var(--line);
}
.portrait span { font: 600 88px/1 var(--display); color: var(--line-strong); letter-spacing: -.04em; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.prose p { color: var(--text-2); font-size: 17px; margin-bottom: 16px; }
.prose p b { color: var(--text); font-weight: 600; }
.prose .eyebrow { color: var(--primary); font-size: 12px; margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span { border: 1px solid var(--line-strong); background: var(--card); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 88px; padding-top: 40px; border-top: 1px solid var(--line); text-align: center; }
.stats b { display: block; font: 600 40px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { display: block; font-size: 14px; color: var(--text-2); margin-top: 8px; }

/* Foundation */
.seva { font: 600 96px/1 var(--display); letter-spacing: -.03em; color: var(--primary); opacity: .9; }
.seva-sub { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.ways { list-style: none; display: grid; gap: 12px; margin: 28px 0 32px; }
.ways li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow-xs); }
.ways b { display: block; font: 600 17px/1.3 var(--display); }
.ways span { font-size: 14px; color: var(--text-2); }

/* Businesses */
.card .eyebrow { margin-bottom: 8px; }
.card .go { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
a.card { text-decoration: none; transition: box-shadow 150ms var(--ease), border-color 150ms var(--ease); }
a.card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }

/* Writing */
.rows { list-style: none; border-top: 1px solid var(--line); margin-top: 40px; }
.row { display: grid; grid-template-columns: 140px 1fr 32px; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.row .date { font: 500 13px var(--mono); color: var(--muted); }
.row .name { font: 600 19px/1.35 var(--display); letter-spacing: -.01em; }
.row .go { color: var(--primary); text-align: right; }
a.row:hover .name { color: var(--primary); }
.all { display: inline-block; margin-top: 24px; font-size: 15px; font-weight: 600; color: var(--primary); text-decoration: none; }

.quote { padding: 96px 0; }
.quote blockquote { font: 600 32px/1.3 var(--display); letter-spacing: -.02em; max-width: 22em; margin: 0 auto; }
.quote cite { display: block; margin-top: 16px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* Speaking */
.band { border-radius: 24px; padding: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.band h2 { font-size: 38px; }
.band .btn { margin-top: 28px; }
.stages { list-style: none; border-top: 1px solid var(--dark-line); }
.stages li { padding: 18px 0; border-bottom: 1px solid var(--dark-line); }
.stages b { display: block; font: 600 18px/1.3 var(--display); color: var(--on-dark); }
.stages span { font-size: 14px; }

/* Request an audience */
.audience { align-items: start; }
.req { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-md); display: grid; gap: 16px; }
.req .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.req label small { font-weight: 400; color: var(--muted); }
.req input, .req select, .req textarea { width: 100%; min-width: 0; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--page); color: var(--text); font: 400 15px/1.4 var(--body); }
.req input, .req select { height: 48px; }
.req textarea { resize: vertical; }
.req input:focus-visible, .req select:focus-visible, .req textarea:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.req .btn { margin-top: 8px; }
.req .small { margin-top: 0; text-align: center; }

/* Newsletter */
.letter h2 { font-size: 48px; }
form.sub { display: flex; gap: 8px; max-width: 480px; margin: 36px auto 0; }
form.sub input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font: inherit; font-size: 15px; }
form.sub input::placeholder { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); margin-top: 16px; }
.thanks { margin-top: 36px; font: 600 22px var(--display); color: var(--primary); }

/* Footer */
footer { background: var(--alt); border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: 14px; color: var(--text-2); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line-strong); }
.foot-top p { margin-top: 16px; max-width: 22em; }
.foot-col h4 { font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 24px; font-size: 13px; color: var(--muted); }
footer a { text-decoration: none; transition: color 150ms var(--ease); }
footer a:hover { color: var(--primary); }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.on { transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1180px) {
  .nav-links .wide { display: none; }
}
@media (max-width: 900px) {
  section { padding: 80px 0; }
  h2 { font-size: 34px; }
  .hero { min-height: 0; }
  .hero-tabs { order: -1; border-top: 0; border-bottom: 1px solid var(--line); }
  .hero-tabs .wrap { gap: 12px; }
  .hero-tabs button { font-size: 13px; padding: 16px 0; }
  .hero-tabs .bar { top: auto; bottom: -1px; }
  .slide { align-items: flex-start; padding: 40px 0 48px; }
  .slide-grid, .split, .band { grid-template-columns: 1fr; gap: 48px; }
  .display { font-size: 46px; }
  .cover { width: 250px; }
  .cover-stage { order: -1; } /* the cover leads on phones so the book stays in view */
  .slide-grid { gap: 28px; }
  .reach { max-width: 280px; }
  .nav-links a:not(.btn):not(.keep) { display: none; }
  .logo small { display: none; }
  .cards, .buy-grid { grid-template-columns: 1fr; }
  .moves { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .row .go { display: none; }
  .band { padding: 40px 24px; }
  .band h2 { font-size: 30px; }
  .portrait { max-width: 380px; }
  .seva { font-size: 64px; }
    .motto, .quote blockquote { font-size: 26px; }
  .letter h2 { font-size: 34px; }
  form.sub { flex-direction: column; }
  form.sub input { flex: none; }
  .req { padding: 24px 20px; }
  .req .two { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .foot-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .display { font-size: 40px; }
  .cover { width: 150px; }
  .nav-links { gap: 14px; }
  .logo { gap: 10px; }
  .logo b { font-size: 15px; }
  .nav-links .btn { height: 40px; padding: 0 16px; font-size: 14px; }
  /* no room beside the name and Menu: the button moves into the open menu (the hero has its own) */
  .nav-links:not(.open) { display: none; }

}

/* Phone menu for the static pages (toggled by auth.js) */
.menu-btn { display: none; align-items: center; height: 40px; padding: 0 14px; margin: 0 10px 0 auto; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font: 600 14px var(--body); cursor: pointer; }
@media (max-width: 900px) {
  nav.top .wrap { position: relative; }
  .menu-btn { display: inline-flex; }
  .nav-links .keep { display: none; }
  .nav-links.open {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px; background: var(--page); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav-links.open a:not(.btn) { display: block !important; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text); }
  .nav-links.open .btn { margin-top: 12px; height: 48px; }
}

/* Credentials sit with the businesses, below the book */
.work-trust { margin-top: 48px; display: flex; align-items: center; justify-content: center; gap: 16px 48px; flex-wrap: wrap; }
.work-trust .eyebrow { color: var(--muted); margin: 0; }
.work-trust ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font: 600 17px/1.3 var(--display); color: var(--text-2); letter-spacing: -.01em; }
.work-quote { margin: 48px auto 0; max-width: 22em; font: 600 24px/1.35 var(--display); letter-spacing: -.02em; }
.work-quote cite { display: block; margin-top: 12px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* How a request works, under the three formats */
.how-order { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 60rem; margin: 48px auto 0; text-align: left; }
.how-order li { display: flex; gap: 12px; font-size: 15px; color: var(--text-2); }
.how-order b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #dde9fb; color: var(--primary); font: 600 13px var(--mono); }
@media (max-width: 900px) {
  .how-order { grid-template-columns: 1fr; gap: 16px; }
  .work-quote { font-size: 20px; }
}

.sample-link { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; text-align: center; }
.sample-link:hover { text-decoration: underline; }
.ov-link { margin-top: 40px; }

/* What readers say: public feedback (reviews.js) */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 0; text-align: left; align-items: start; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-xs); display: grid; gap: 14px; }
.review video { width: 100%; max-height: 420px; border-radius: 10px; background: #000; }
.review-audio { display: grid; gap: 10px; }
.review-audio audio { width: 100%; }
.review-badge { justify-self: start; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: #dde9fb; border-radius: 6px; padding: 3px 8px; }
.review-text { font: 500 19px/1.5 var(--display); color: var(--text); }
.review-text.clamped { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.review-caption { font-size: 15px; color: var(--text-2); }
.review-more { justify-self: start; background: none; border: 0; padding: 0; font: 600 14px var(--body); color: var(--primary); cursor: pointer; }
.review figcaption { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.review figcaption::before { content: "— "; }
.review-all { margin-top: 28px; }
.readers-cta { margin-top: 32px; color: var(--text-2); }
.readers-cta a { color: var(--primary); font-weight: 600; }
@media (max-width: 520px) { .review-grid { grid-template-columns: 1fr; } }

/* Conferences, under the businesses */
.work-stages { margin-top: 48px; }
.work-stages ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 46rem; margin: 16px auto 0; text-align: left; }
.work-stages li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.work-stages b { display: block; font: 600 18px/1.3 var(--display); }
.work-stages span { font-size: 14px; color: var(--text-2); }

/* Talks and workshops */
.talks { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
.ticks { list-style: none; display: grid; gap: 8px; margin-top: 16px; }
.ticks li { position: relative; padding-left: 22px; font-size: 15px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.talks-cred { text-align: center; margin: 32px auto 28px; color: var(--text-2); }
.form-error { font-size: 14px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; }
.req-done { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 40px 32px; text-align: center; box-shadow: var(--shadow-md); }
.req-done b { font: 600 26px var(--display); }
.req-done p { color: var(--text-2); margin-top: 8px; }
@media (max-width: 900px) {
  .talks, .work-stages ul { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .menu-btn { margin-right: 0; } }

/* book page: the trailer, shown with its cover image and a large play button */
.trailer { position: relative; max-width: 880px; margin: 40px auto 48px; border-radius: 16px; overflow: hidden; background: #0b1e3d;
  box-shadow: 0 2px 4px rgba(11, 30, 61, .08), 0 32px 64px -28px rgba(11, 30, 61, .45); }
.trailer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0b1e3d; }
.trailer-play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 28px; border: 0; background: linear-gradient(to top, rgba(11, 30, 61, .35), transparent 45%); cursor: pointer; }
.trailer-play[hidden] { display: none; }
.trailer-icon { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px;
  background: var(--primary, #d51719); color: #fff; box-shadow: 0 10px 30px rgba(213, 23, 25, .45); transition: transform 150ms ease; }
.trailer-play:hover .trailer-icon, .trailer-play:focus-visible .trailer-icon { transform: scale(1.08); }
.trailer-label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #0b1e3d; font: 600 14px var(--body); }
.trailer-label small { font: 500 12px var(--mono); color: #4a5a75; }
@media (max-width: 640px) {
  .trailer { margin: 28px -4px 36px; border-radius: 12px; }
  .trailer-icon { left: 52%; width: 40px; height: 40px; margin: -20px 0 0 -20px; padding-left: 3px; } /* sits in the gap between the name and the cover */
  .trailer-icon svg { width: 20px; height: 20px; }
  .trailer-label { display: none; } /* the small screen has no room for it beside the name and cover */
}

/* the book title set like the cover: heavy condensed capitals, a big red 2 */
.display.cover-title { font-family: "Anton", "Impact", "Arial Narrow Bold", sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: 64px; line-height: .98; letter-spacing: .01em; }
.cover-title .line { display: block; }
.cover-title .big { display: block; font-size: 2em; line-height: .9; letter-spacing: -.01em; }
.cover-title em { color: var(--primary); }
.hero .cover-title em { color: #ff4f52; }
@media (max-width: 900px) { .display.cover-title { font-size: 48px; } }
@media (max-width: 520px) { .display.cover-title { font-size: 40px; } }

/* client recommendations: one slide at a time, the highlight first, the full words below */
.testimonials { margin: 56px auto 0; max-width: 820px; text-align: center; }
.t-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
.t-track::-webkit-scrollbar { display: none; }
.t-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; padding: 36px 40px 32px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-xs); }
.t-slide + .t-slide { margin-left: 0; }
.t-slide blockquote { margin: 0; }
.t-hl { font: 600 26px/1.3 var(--display); letter-spacing: -.02em; color: var(--text); margin: 0 auto; max-width: 30em; }
.t-full { margin: 18px auto 0; max-width: 40em; font-size: 15px; line-height: 1.65; color: var(--text-2); }
.t-slide figcaption { margin-top: 22px; display: grid; gap: 2px; }
.t-slide figcaption b { font: 600 16px var(--body); color: var(--text); }
.t-slide figcaption span { font-size: 14px; color: var(--text-2); }
.t-slide figcaption small { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.t-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.t-nav > button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font-size: 18px; cursor: pointer; }
.t-nav > button:hover { background: var(--alt); }
.t-dots { display: flex; gap: 8px; }
.t-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line-strong); cursor: pointer; }
.t-dots button[aria-current="true"] { background: var(--primary); width: 24px; border-radius: 6px; }
@media (max-width: 640px) {
  .t-slide { padding: 26px 20px 24px; }
  .t-hl { font-size: 20px; }
  .t-full { font-size: 14px; }
}

.biz-points { text-align: left; }
.biz-points li { font-size: 14px; }

/* reader messages: a box about one screen tall that scrolls inside itself */
.review-count { margin: 32px 0 12px; font: 500 12px var(--mono); letter-spacing: .06em; color: var(--muted); min-height: 1em; }
.review-box { position: relative; max-height: min(78vh, 760px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 6px 12px 4px; border-radius: 16px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.review-box::after { content: ""; position: sticky; display: block; bottom: -12px; height: 56px; margin-top: -56px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--page)); opacity: 0; transition: opacity 200ms; }
.review-box.more-below::after { opacity: 1; }
.readers.alt .review-box::after { background: linear-gradient(to bottom, transparent, var(--alt)); }
@media (max-width: 640px) { .review-box { max-height: 75vh; } }
