/* Crewchief brand site. One stylesheet, no web fonts, no JavaScript.
   Palette and type: docs/gtm/brand.md. Design notes: docs/gtm/site-design.md */
:root {
  --chalk: #F7F5EF;
  --chalk-2: #EFECE3;
  --ink: #1B1F24;
  --ink-2: #252A31;
  --ink-soft: #3A4048;      /* secondary text, 9.6:1 on chalk */
  --orange: #E8612C;        /* fills only, always with ink text (4.87:1) */
  --orange-soft: #FBE3D8;
  --green: #2F6B4F;         /* links, card headings: 5.8:1 on chalk */
  --green-soft: #DCEBE3;
  --line: #C9CCD1;
  --white: #FFFFFF;

  /* agent colours, used on the dark console panels only (all 7:1 or better on ink) */
  --a-coordinator: #F59E6B;
  --a-attendance: #8FD3AE;
  --a-subs: #F2C94C;
  --a-refs: #9BBEF7;
  --a-scores: #F4A09A;
  --a-schedule: #CDB5FF;
  --a-inbox: #9AD7DE;
  --a-registration: #F5B3D6;
  --a-payments: #B9E58F;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --measure: 65ch;
  --radius: 14px;
  --wrap: 74rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }

h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; margin: 0 0 1rem; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; }
p, ul, ol, dl, table { margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--chalk); }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
strong { font-weight: 700; }

.skip {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--chalk); padding: 0.75rem 1rem; border-radius: 8px;
}
.skip:focus { top: 0.5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
.prose { max-width: var(--measure); }
main:focus { outline: none; }

/* ---------- header and footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: blur(10px); background: rgba(247, 245, 239, 0.8); } }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; }
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--orange); }
.wordmark::before {
  content: ""; width: 0.9rem; height: 0.9rem; margin-right: 0.45rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F38A5B, var(--orange) 60%, #B9461A);
  box-shadow: inset 0 0 0 2px rgba(27, 31, 36, 0.15);
}
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; border-radius: 8px;
}
.site-nav a:hover { background: var(--chalk-2); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
.site-nav .nav-cta a { background: var(--ink); color: var(--chalk); padding: 0 0.9rem; }
.site-nav .nav-cta a:hover { background: var(--ink-2); }
@media (min-width: 60rem) { .site-nav { margin-left: auto; } }

.site-footer { background: var(--ink); color: var(--chalk); padding: 3rem 0 2rem; margin-top: 5rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .wordmark { color: var(--chalk); }
.site-footer a { color: var(--chalk); }
.site-footer p, .site-footer li { color: #D5D8DD; font-size: 0.95rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: #D5D8DD; margin: 0 0 0.75rem; }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section.tight { padding: 3rem 0; }
.section.alt { background: var(--chalk-2); }
.dark { background: var(--ink); color: var(--chalk); }
.dark a { color: var(--a-attendance); }
.dark .kicker { color: var(--a-coordinator); }
.dark .sub { color: #D5D8DD; }
.kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 0.75rem;
}
.sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.section-head { max-width: 50rem; margin-bottom: 2.5rem; }

/* ---------- hero ---------- */
.hero { padding: 4rem 0 3rem; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -14rem; top: -10rem; width: 38rem; height: 38rem; border-radius: 50%;
  border: 3px solid var(--line); opacity: 0.6; pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; right: -4rem; top: 0; width: 18rem; height: 18rem; border-radius: 50%;
  border: 3px solid var(--line); opacity: 0.6; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero h1 em {
  font-style: normal; color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(transparent 60%, var(--orange) 60%, var(--orange) 92%, transparent 92%);
}
.hero .sub { font-size: 1.25rem; max-width: 52ch; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem;
  border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 700; text-decoration: none;
  border: 2px solid var(--orange); transition: transform .2s var(--ease), background .2s;
}
.button:hover { background: #F07A4B; border-color: #F07A4B; transform: translateY(-1px); }
.button.secondary { background: transparent; border-color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: var(--chalk); }
.dark .button.secondary { border-color: var(--chalk); color: var(--chalk); }
.dark .button.secondary:hover { background: var(--chalk); color: var(--ink); }

/* status chips */
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.6rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; vertical-align: middle;
  border: 1.5px solid var(--ink); color: var(--ink); background: var(--white);
}
.chip::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.chip.ready { background: var(--green-soft); border-color: var(--green); color: #1F4A36; }
.chip.ready::before { background: var(--green); }
.chip.pilot { background: var(--orange-soft); border-color: var(--orange); }
.chip.pilot::before { background: var(--orange); }
.chip.coming { background: var(--white); border-style: dashed; }
.chip.coming::before { background: transparent; border: 1.5px solid var(--ink); }

/* ---------- pain grid ---------- */
.pain-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.pain {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
  position: relative; overflow: hidden;
}
.pain .clock {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.4rem;
}
.pain .clock small { font-size: 0.95rem; font-weight: 700; letter-spacing: 0; color: var(--ink-soft); }
.pain h3 { margin: 0.5rem 0 0.4rem; }
.pain p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.pain .quote { display: block; margin-top: 0.8rem; font-family: var(--mono); font-size: 0.82rem; color: var(--ink); background: var(--chalk); border-radius: 8px; padding: 0.5rem 0.65rem; }
.pain .bar { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--orange); width: var(--w, 50%); transform-origin: left; }

/* the working: cost math */
.math { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 56rem) { .math { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.ledger { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.ledger table { width: 100%; border-collapse: collapse; margin: 0; font-size: 1rem; }
.ledger th, .ledger td { padding: 0.55rem 0; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; }
.ledger td.num, .ledger th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 1rem; }
.ledger tr.total td, .ledger tr.total th { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 800; }
.ledger caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; }
.big-number {
  background: var(--ink); color: var(--chalk); border-radius: var(--radius); padding: 1.75rem;
}
.big-number .n { font-size: clamp(3rem, 8vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--a-coordinator); }
.big-number p { color: #D5D8DD; }
.big-number strong { color: var(--chalk); }
.fine { font-size: 0.88rem; color: var(--ink-soft); }
.dark .fine, .big-number .fine { color: #B9BEC6; }

/* ---------- console panels: activity feed and run trace ---------- */
.console {
  background: #12151A; border: 1px solid #2E343D; border-radius: var(--radius); color: #E6E8EB;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); overflow: hidden;
}
.console-bar {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1rem; border-bottom: 1px solid #2E343D;
  font-family: var(--mono); font-size: 0.8rem; color: #B9BEC6;
}
.console-bar .dots { display: inline-flex; gap: 0.35rem; }
.console-bar .dots i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #3A4048; display: block; }
.console-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--a-attendance); }
.console-bar .live::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--a-attendance); }
.console-bar .example { margin-left: auto; border: 1px solid #4A515B; border-radius: 999px; padding: 0 0.55rem; color: #D5D8DD; }
.console-bar .example + .live { margin-left: 0.5rem; }

.feed-window { height: 24rem; overflow: hidden; position: relative; }
.feed-window::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4rem; pointer-events: none;
  background: linear-gradient(transparent, #12151A);
}
.feed { list-style: none; margin: 0; padding: 0.5rem 0; font-family: var(--mono); font-size: 0.8rem; line-height: 1.45; }
.feed li {
  display: grid; grid-template-columns: 2.9rem 6.4rem 1fr; gap: 0.5rem; padding: 0.42rem 1rem; margin: 0;
  border-left: 3px solid transparent;
}
.feed li:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.feed time { color: #8C939D; }
.feed .ag { font-weight: 700; color: var(--c, #E6E8EB); }
.feed .ag::before { content: "● "; font-size: 0.7em; vertical-align: 0.15em; }
.feed .act { color: #C9CED6; }
.feed .act b { color: #FFFFFF; font-weight: 600; }
.feed li.hand { border-left-color: var(--c); background: rgba(255, 255, 255, 0.04); }
.feed li.warn .act b { color: var(--a-subs); }
@media (max-width: 34rem) {
  .feed li { grid-template-columns: 3.3rem 1fr; }
  .feed .act { grid-column: 1 / -1; }
}
.c-coordinator { --c: var(--a-coordinator); }
.c-attendance { --c: var(--a-attendance); }
.c-subs { --c: var(--a-subs); }
.c-refs { --c: var(--a-refs); }
.c-scores { --c: var(--a-scores); }
.c-schedule { --c: var(--a-schedule); }
.c-inbox { --c: var(--a-inbox); }
.c-registration { --c: var(--a-registration); }
.c-payments { --c: var(--a-payments); }

/* run trace (waterfall) */
.trace { list-style: none; margin: 0; padding: 0.6rem 0 1rem; font-family: var(--mono); font-size: 0.78rem; }
.trace li { display: grid; grid-template-columns: 13.5rem 1fr; gap: 0.75rem; align-items: center; padding: 0.28rem 1rem; margin: 0; }
.trace .lbl { padding-left: calc(var(--d, 0) * 1rem); color: #D5D8DD; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trace .lbl::before { content: "└ "; color: #5A616B; }
.trace li.root .lbl::before { content: "▸ "; color: var(--a-coordinator); }
.trace .lbl b { color: var(--c, #fff); font-weight: 700; }
.trace .track { position: relative; height: 1.1rem; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), #232830 calc(10% - 1px) 10%); border-radius: 3px; }
.trace .span {
  position: absolute; top: 0.15rem; bottom: 0.15rem; left: var(--s); width: var(--w); min-width: 4px;
  background: var(--c, #9AA1AB); border-radius: 3px; transform-origin: left center;
}
.trace .span em { position: absolute; left: calc(100% + 0.4rem); top: -0.1rem; font-style: normal; color: #8C939D; white-space: nowrap; font-size: 0.72rem; }
.trace li.wait .span { background: repeating-linear-gradient(45deg, var(--c) 0 4px, transparent 4px 8px); opacity: 0.9; }
.trace-axis { display: grid; grid-template-columns: 13.5rem 1fr; gap: 0.75rem; padding: 0 1rem 0.4rem; font-family: var(--mono); font-size: 0.7rem; color: #8C939D; }
.trace-axis span:last-child { display: flex; justify-content: space-between; }
@media (max-width: 34rem) {
  .trace li, .trace-axis { grid-template-columns: 8.5rem 1fr; }
  .trace .span em { display: none; }
}
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; padding: 0.8rem 1rem; border-top: 1px solid #2E343D; font-family: var(--mono); font-size: 0.75rem; color: #B9BEC6; margin: 0; list-style: none; }
.legend li { margin: 0; }
.legend li::before { content: "■ "; color: var(--c); }

.obs-grid { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .obs-grid { grid-template-columns: 1.1fr 1fr; } }
.obs-points { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 2rem; }
.obs-points div { border-top: 2px solid #3A4048; padding-top: 0.9rem; }
.obs-points h3 { font-size: 1.05rem; color: var(--chalk); margin-bottom: 0.3rem; }
.obs-points p { color: #C9CED6; font-size: 0.98rem; margin: 0; }
.caption { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.75rem; }
.dark .caption { color: #B9BEC6; }

/* ---------- the crew ---------- */
.crew { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.agent {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.1rem;
  position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.agent:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -20px rgba(27, 31, 36, 0.45); }
.agent::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: var(--radius) var(--radius) 0 0; background: var(--hue); }
.agent.lead { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
@media (min-width: 52rem) { .agent.lead { grid-column: span 2; } }
.agent .badge {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; margin-bottom: 0.7rem;
  background: var(--hue); color: var(--ink); font-weight: 800; font-size: 1.05rem;
}
.agent .badge svg { width: 1.4rem; height: 1.4rem; }
.agent h3 { margin: 0 0 0.2rem; font-size: 1.2rem; }
.agent .role { color: var(--ink-soft); margin-bottom: 0.8rem; font-size: 1rem; }
.agent.lead .role { color: #D5D8DD; }
.agent dl { margin: 0; font-size: 0.88rem; display: grid; gap: 0.5rem; }
.agent dt { font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.agent.lead dt { color: #B9BEC6; }
.agent dd { margin: 0; }
.tools { display: flex; flex-wrap: wrap; gap: 0.3rem; list-style: none; padding: 0; margin: 0; }
.tools li { margin: 0; font-family: var(--mono); font-size: 0.76rem; padding: 0.1rem 0.45rem; border-radius: 6px; background: var(--chalk); border: 1px solid var(--line); }
.agent.lead .tools li { background: #2A3038; border-color: #3A4048; color: var(--chalk); }
.h-coordinator { --hue: var(--a-coordinator); }
.h-attendance { --hue: var(--a-attendance); }
.h-subs { --hue: var(--a-subs); }
.h-refs { --hue: var(--a-refs); }
.h-scores { --hue: var(--a-scores); }
.h-schedule { --hue: var(--a-schedule); }
.h-inbox { --hue: var(--a-inbox); }

/* handoff diagram */
.handoff { width: 100%; height: auto; display: block; margin: 0 auto; max-width: 62rem; }
.handoff text { font-family: var(--font); }

/* ---------- stat strip ---------- */
.stats { display: grid; gap: 1px; background: #2E343D; border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin: 2rem 0 0; padding: 0; list-style: none; }
.stats li { background: var(--ink-2); padding: 1.2rem; margin: 0; }
.stats b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--chalk); }
.stats span { font-size: 0.88rem; color: #C9CED6; }

/* ---------- channels ---------- */
.channels { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.channel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.channel .ico { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 10px; background: var(--chalk-2); margin-bottom: 0.7rem; }
.channel .ico svg { width: 1.3rem; height: 1.3rem; }
.channel h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.channel p { margin: 0.5rem 0 0; font-size: 0.98rem; color: var(--ink-soft); }

/* ---------- phone mock + chat ---------- */
.phone {
  width: min(100%, 22rem); margin: 0 auto; background: var(--ink); border-radius: 2.2rem; padding: 0.7rem;
  box-shadow: 0 40px 70px -35px rgba(27, 31, 36, 0.65);
}
.phone-screen { background: var(--white); border-radius: 1.7rem; padding: 1rem 0.85rem 1.2rem; min-height: 26rem; }
.phone-top { text-align: center; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
.phone-top b { display: block; color: var(--ink); font-size: 0.95rem; }
.chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.chat li { margin: 0; display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; }
.chat li.me { align-self: flex-end; align-items: flex-end; }
.chat .from { font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); margin: 0 0.4rem 0.1rem; }
.chat .bubble { background: var(--chalk-2); border-radius: 1.1rem 1.1rem 1.1rem 0.3rem; padding: 0.5rem 0.8rem; font-size: 0.95rem; line-height: 1.4; }
.chat li.me .bubble { background: var(--green-soft); border-radius: 1.1rem 1.1rem 0.3rem 1.1rem; }
.chat li.divider { align-self: center; max-width: none; font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.5rem; }

/* ---------- timeline (how it works) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 1.35rem; top: 0.5rem; bottom: 0.5rem; width: 3px; background: var(--line); border-radius: 3px; }
.timeline > li { position: relative; padding: 0 0 2.5rem 4rem; margin: 0; }
.timeline .t {
  position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--hue, var(--orange)); color: var(--ink); font-weight: 800; font-size: 0.72rem; text-align: center; line-height: 1.05;
  border: 3px solid var(--chalk);
}
.timeline h3 { margin: 0.4rem 0 0.4rem; }
.timeline .who { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.step-grid { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .step-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.sms {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 1rem; font-size: 0.95rem; margin: 0 0 0.6rem;
}
.sms .from { display: block; font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.logline { font-family: var(--mono); font-size: 0.8rem; background: #12151A; color: #E6E8EB; border-radius: 10px; padding: 0.7rem 0.9rem; margin: 0 0 0.6rem; }
.logline .ag { color: var(--c); font-weight: 700; }

/* ---------- pricing: cartridge + DLC ---------- */
.cart-row { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) { .cart-row { grid-template-columns: 1.5fr 1fr; align-items: stretch; } }
.cartridge {
  position: relative; background: var(--ink); color: var(--chalk); border-radius: 18px 18px 10px 10px;
  padding: 2.2rem 1.8rem 1.8rem; overflow: hidden;
}
.cartridge::before {
  content: ""; position: absolute; top: 0; left: 1.8rem; right: 1.8rem; height: 0.7rem;
  background: repeating-linear-gradient(90deg, #3A4048 0 0.9rem, transparent 0.9rem 1.3rem); border-radius: 0 0 4px 4px;
}
.cartridge .label {
  background: var(--orange); color: var(--ink); border-radius: 10px; padding: 1.2rem 1.3rem; margin-bottom: 1.4rem;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem;
}
.cartridge .label h2, .cartridge .label h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.cartridge .price { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.cartridge .price small { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.cartridge ul { list-style: none; padding: 0; display: grid; gap: 0.15rem 1.5rem; }
@media (min-width: 40rem) { .cartridge ul { grid-template-columns: 1fr 1fr; } }
.cartridge li { padding-left: 1.6rem; position: relative; color: #E6E8EB; }
.cartridge li::before { content: "✓"; position: absolute; left: 0; color: var(--a-attendance); font-weight: 800; }
.cartridge li .chip { margin-left: 0.2rem; font-size: 0.68rem; padding: 0 0.45rem; }
.cartridge p { color: #D5D8DD; }
.pilot-card { background: var(--white); border: 2px dashed var(--ink); border-radius: var(--radius); padding: 1.6rem; }
.pilot-card .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 0.4rem 0 0.8rem; }

.dlc-shelf { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); }
.dlc {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 12px 12px 8px 8px;
  padding: 1.5rem 1.2rem 1.2rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.dlc:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: 0 18px 30px -20px rgba(27, 31, 36, 0.45); }
.dlc::before {
  content: ""; position: absolute; top: 0; left: 1.2rem; right: 1.2rem; height: 0.45rem;
  background: repeating-linear-gradient(90deg, var(--line) 0 0.6rem, transparent 0.6rem 0.9rem);
}
.dlc .tag-dlc { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-soft); }
.dlc h3 { margin: 0.3rem 0 0.4rem; font-size: 1.15rem; }
.dlc p { font-size: 0.97rem; color: var(--ink-soft); }
.dlc .sticker {
  position: absolute; right: -0.4rem; top: -0.7rem; background: var(--orange); color: var(--ink); font-weight: 800;
  border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.95rem; transform: rotate(6deg); box-shadow: 0 4px 0 rgba(27, 31, 36, 0.2);
}

/* ---------- generic cards and tables ---------- */
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card h3 { margin-top: 0; color: var(--green); }
.card > :last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
table.plain { border-collapse: collapse; width: 100%; background: var(--white); border-radius: var(--radius); overflow: hidden; font-size: 1rem; }
table.plain th, table.plain td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.plain thead th { background: var(--ink); color: var(--chalk); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* status board */
.board { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.board section { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.board h3 { margin: 0 0 0.75rem; }
.board ul { padding-left: 1.1rem; margin: 0; }
.board li { font-size: 0.98rem; }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 700; font-size: 1.1rem; position: relative; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 0.85rem; font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.2rem; max-width: var(--measure); }
.faq h2 { margin-top: 2.5rem; font-size: 1.4rem; }

/* contact */
.mail-card { background: var(--ink); color: var(--chalk); border-radius: var(--radius); padding: 2rem; }
.mail-card a.big { font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 800; color: var(--a-coordinator); word-break: break-all; }

/* article */
article.prose h2 { margin-top: 2.5rem; font-size: 1.6rem; }

/* ---------- stage 2: sign-up relay and split tracker ---------- */
.relay { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; counter-reset: relay; }
@media (min-width: 62rem) { .relay { grid-template-columns: repeat(6, 1fr); } }
.relay > li {
  margin: 0; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; min-width: 0;
}
.relay > li::before {
  counter-increment: relay; content: counter(relay);
  width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--chalk); font-weight: 800; font-size: 0.9rem;
}
@media (min-width: 62rem) {
  .relay > li:not(:last-child)::after {
    content: ""; position: absolute; right: -0.62rem; top: 1.9rem; width: 0.5rem; height: 0.5rem;
    border-top: 2px solid var(--ink-soft); border-right: 2px solid var(--ink-soft); transform: rotate(45deg);
  }
}
.relay .actor { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.relay h3 { font-size: 1.02rem; margin: 0; line-height: 1.25; }
.relay p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }
.relay .breaks {
  margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--ink); background: var(--orange-soft);
  border-left: 3px solid var(--orange); border-radius: 6px; padding: 0.45rem 0.55rem;
}
.relay .breaks::before { content: "Breaks: "; font-weight: 800; }

.split-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 62rem) { .split-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.tracker { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem; box-shadow: 0 30px 50px -35px rgba(27, 31, 36, 0.5); }
.tracker header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; align-items: baseline; }
.tracker h3 { margin: 0; font-size: 1.15rem; }
.tracker .meta { font-size: 0.85rem; color: var(--ink-soft); }
.tracker .money { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin: 0.8rem 0 0.3rem; }
.tracker .money small { font-size: 1rem; color: var(--ink-soft); font-weight: 700; letter-spacing: 0; }
.meter { height: 0.75rem; border-radius: 999px; background: var(--chalk-2); overflow: hidden; margin-bottom: 0.5rem; }
.meter span { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--green), #4E9A75); border-radius: 999px; transform-origin: left; }
.deadline { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.85rem; font-weight: 700; background: var(--orange-soft); border-radius: 999px; padding: 0.15rem 0.7rem; margin: 0.3rem 0 0.9rem; }
.roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; font-size: 0.93rem; }
.roster li { display: grid; grid-template-columns: 1fr auto auto; gap: 0.6rem; align-items: center; padding: 0.4rem 0; border-bottom: 1px dashed var(--line); margin: 0; }
.roster li:last-child { border-bottom: 0; }
.roster .amt { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 0.88rem; }
.pill { font-size: 0.72rem; font-weight: 800; border-radius: 999px; padding: 0.1rem 0.5rem; border: 1.5px solid currentColor; white-space: nowrap; }
.pill.paid { color: #1F4A36; background: var(--green-soft); }
.pill.due { color: var(--ink); background: var(--orange-soft); border-color: var(--orange); }
.pill.waiver { color: var(--ink); background: var(--white); border-style: dashed; }
.cap-mark { font-size: 0.7rem; font-weight: 800; color: var(--green); margin-left: 0.3rem; }
.team-math { margin-top: 2.5rem; }

/* ===================================================================
   Motion. Everything is visible by default: the fades only run when
   the reader has not asked for reduced motion. No JavaScript.
   =================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tail { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes flow { to { stroke-dashoffset: -24; } }

@media (prefers-reduced-motion: no-preference) {
  /* Every piece of text in main fades up. Components fade as one block. */
  main > :not(.hero) :is(h1, h2, h3, h4, p, li, dt, dd, summary, figcaption, blockquote, th, td,
           .agent, .pain, .dlc, .channel, .cartridge, .pilot-card, .console, .phone, .card, .ledger, .big-number, .board section, details, .relay > li, .tracker, .crew-mini li, .equation)
    :not(:is(.agent, .pain, .dlc, .channel, .cartridge, .pilot-card, .console, .phone, .card, .ledger, .big-number, .board section, details, .relay > li, .tracker, .crew-mini li, .equation) *) {
    animation: rise 0.8s var(--ease) both;
  }
  /* The first screen fades in on load, one line after another. */
  .hero :is(.kicker, h1, .sub, .actions, .chips, .hero-art) { animation: rise 0.9s var(--ease) both; }
  .hero h1 { animation-delay: 0.08s; }
  .hero .sub { animation-delay: 0.2s; }
  .hero .actions { animation-delay: 0.32s; }
  .hero .chips { animation-delay: 0.42s; }
  .hero .hero-art { animation-delay: 0.3s; }

  /* Below the fold, text fades in as it scrolls into view where the browser supports it. */
  @supports (animation-timeline: view()) {
    main > :not(.hero) :is(h1, h2, h3, h4, p, li, dt, dd, summary, figcaption, blockquote, th, td,
           .agent, .pain, .dlc, .channel, .cartridge, .pilot-card, .console, .phone, .card, .ledger, .big-number, .board section, details, .relay > li, .tracker, .crew-mini li, .equation)
      :not(:is(.agent, .pain, .dlc, .channel, .cartridge, .pilot-card, .console, .phone, .card, .ledger, .big-number, .board section, details, .relay > li, .tracker, .crew-mini li, .equation) *) {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    .meter span { animation: grow linear both; animation-timeline: view(); animation-range: entry 30% cover 50%; }
    .pain .bar { animation: grow linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  }

  /* The activity feed scrolls like a live log tail. */
  .feed-track { animation: tail 48s linear infinite; }
  .feed-window:hover .feed-track, .feed-window:focus-within .feed-track { animation-play-state: paused; }
  .console-bar .live::before { animation: pulse 1.6s ease-in-out infinite; }

  /* Run trace spans draw left to right. */
  .trace .span { animation: grow 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 0.12s + 0.3s); }

  /* Handoff arrows flow. */
  .handoff .flow { stroke-dasharray: 6 6; animation: flow 1.2s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .feed-window { overflow-y: auto; }
  .feed-track .dup { display: none; }
}

/* small screens: header scrolls away, consoles stay compact */
@media (max-width: 48rem) {
  .site-header { position: static; }
  .console-bar .dots { display: none; }
  .trace .lbl { padding-left: calc(var(--d, 0) * 0.4rem); }
  .hero::before, .hero::after { display: none; }
}

/* ---------- home: compact crew list and cost equation ---------- */
.crew-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; align-content: start; }
.crew-mini li { display: flex; gap: 0.8rem; align-items: center; margin: 0; padding: 0.7rem 0.8rem; border: 1px solid #2E343D; border-radius: 12px; background: var(--ink-2); color: #D5D8DD; font-size: 0.98rem; }
.crew-mini .badge { flex: none; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 10px; background: var(--hue); color: var(--ink); font-weight: 800; font-size: 0.9rem; }
.crew-mini b { color: var(--chalk); margin-right: 0.3rem; }
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 2rem; }
.equation .term { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 1rem; min-width: 7rem; }
.equation .term b { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.equation .term small { font-size: 0.82rem; color: var(--ink-soft); }
.equation .term.hot { background: var(--orange-soft); border-color: var(--orange); }
.equation .term.core { background: var(--ink); border-color: var(--ink); }
.equation .term.core b { color: var(--a-coordinator); }
.equation .term.core small { color: #D5D8DD; }
.equation .op { font-size: 1.4rem; font-weight: 800; color: var(--ink-soft); }

/* ---------- hero: how joining a league works today (wireframes) ---------- */
.clunk { margin: 0; }
.clunk-title { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.6rem; }
.screens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem 0.7rem; }
@media (max-width: 34rem) { .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scr { margin: 0; position: relative; min-width: 0; }
@media (min-width: 62rem) {
  .scr:nth-child(odd) .win { transform: rotate(-1.2deg); }
  .scr:nth-child(even) .win { transform: rotate(1deg) translateY(6px); }
}
.scr .n {
  position: absolute; left: -0.45rem; top: -0.55rem; z-index: 2; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--chalk); font-weight: 800; font-size: 0.8rem;
}
.scr .win { background: var(--white); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; box-shadow: 0 10px 22px -16px rgba(27, 31, 36, 0.55); }
.scr .bar { display: flex; align-items: center; gap: 0.22rem; padding: 0.3rem 0.45rem; background: var(--chalk-2); border-bottom: 1px solid var(--line); }
.scr .bar i { width: 0.38rem; height: 0.38rem; border-radius: 50%; background: var(--line); display: block; }
.scr .url { margin-left: 0.3rem; font-family: var(--mono); font-size: 0.62rem; color: var(--ink-soft); background: var(--white); border-radius: 4px; padding: 0 0.3rem; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.scr .body { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.55rem 0.55rem 0.6rem; min-height: 7.2rem; }
.scr .body b { font-size: 0.75rem; }
.scr .field { display: block; height: 0.8rem; border: 1px solid var(--line); border-radius: 3px; background: var(--chalk); }
.scr .field.sel { position: relative; }
.scr .field.sel::after { content: "\25BE"; position: absolute; right: 0.2rem; top: -0.2rem; font-size: 0.6rem; color: var(--ink-soft); }
.scr .field.card { background: repeating-linear-gradient(90deg, var(--chalk) 0 1.1rem, var(--white) 1.1rem 1.3rem); }
.scr .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; }
.scr .check { display: block; height: 0.6rem; width: 70%; border-left: 0.6rem solid var(--line); background: linear-gradient(var(--chalk-2), var(--chalk-2)) 0.3rem center / 100% 0.3rem no-repeat; }
.scr .line { display: block; height: 0.35rem; width: 85%; background: var(--chalk-2); border-radius: 3px; }
.scr .line.short { width: 45%; }
.scr .glyph { font-size: 1.4rem; line-height: 1; color: var(--ink-soft); }
.scr .store { display: block; height: 0.95rem; width: 70%; border-radius: 4px; background: var(--ink); }
.scr .btn { margin-top: auto; display: block; text-align: center; font-size: 0.62rem; font-weight: 700; padding: 0.15rem 0; border-radius: 4px; background: #9AA1AB; color: var(--white); }
.scr .btn.ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.scr > p { margin: 0.35rem 0 0; font-size: 0.8rem; font-weight: 700; text-align: center; }
.scr .sticky {
  position: absolute; right: -0.3rem; bottom: 2.6rem; z-index: 2; background: #FFE58A; color: var(--ink); font-size: 0.66rem; font-weight: 700;
  padding: 0.2rem 0.4rem; border-radius: 2px; transform: rotate(4deg); box-shadow: 0 3px 6px -2px rgba(27, 31, 36, 0.35); max-width: 70%;
}
.tally { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.tally li { margin: 0; background: var(--orange-soft); border: 1px solid var(--orange); border-radius: 10px; padding: 0.55rem 0.65rem; }
.tally b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.tally span { font-size: 0.76rem; line-height: 1.25; display: block; margin-top: 0.2rem; }
.versus { margin-top: 0.9rem; background: var(--ink); color: var(--chalk); border-radius: 12px; padding: 0.8rem 0.9rem; }
.vs-label { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--a-attendance); margin-bottom: 0.4rem; }
.vs-text { margin: 0 0 0.4rem; background: var(--green-soft); color: var(--ink); border-radius: 1rem 1rem 1rem 0.3rem; padding: 0.5rem 0.75rem; font-size: 0.9rem; max-width: 30rem; }
.vs-note { margin: 0; font-size: 0.82rem; color: #D5D8DD; }
.versus a { color: var(--a-attendance); }
@media (prefers-reduced-motion: no-preference) {
  .hero .scr { animation: rise 0.7s var(--ease) both; animation-delay: calc(0.25s + var(--i) * 0.12s); }
  .hero .tally, .hero .versus { animation: rise 0.7s var(--ease) both; animation-delay: 1.05s; }
}

/* ---------- group chat (home: #group-chat) ---------- */
.chat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); gap: 3rem; align-items: start; }
.chat-copy .sub { max-width: 40rem; }
.chat-points { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .9rem; max-width: 38rem; }
.chat-points li { padding-left: 1.6rem; position: relative; color: var(--ink-soft); }
.chat-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--orange); }
.chat-points b { color: var(--ink); }

.im-phone { margin: 0; }
.im-screen { background: #fff; border: 10px solid var(--ink); border-radius: 2.4rem; overflow: hidden; box-shadow: 0 24px 60px rgba(27, 31, 36, .18); display: flex; flex-direction: column; height: 44rem; }
.im-head { text-align: center; padding: .9rem .75rem .6rem; border-bottom: 1px solid #E5E5EA; background: #F9F9FB; }
.im-head b { display: block; font-size: .95rem; color: #000; }
.im-head small { display: block; font-size: .72rem; color: #6B6B70; margin-top: .1rem; }
.im-avatars { display: inline-flex; margin-bottom: .3rem; }
.im-avatars i { font-style: normal; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 700; color: #fff; background: #8E8E93; border: 2px solid #F9F9FB; margin-left: -.45rem; }
.im-avatars i:first-child { margin-left: 0; background: #2F6B4F; }
.im-avatars i:last-child { background: var(--orange); color: var(--ink); }

.im-thread { list-style: none; margin: 0; padding: .75rem .7rem 1rem; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: .32rem; scrollbar-width: thin; }
.im-day { align-self: center; font-size: .68rem; color: #8E8E93; margin: .7rem 0 .25rem; font-weight: 600; }
.im { max-width: 80%; position: relative; }
.im p { margin: 0; padding: .45rem .75rem; border-radius: 1.1rem; font-size: .86rem; line-height: 1.35; }
.im .who { display: block; font-size: .66rem; color: #8E8E93; margin: .25rem 0 .12rem .75rem; }
.im.bot, .im.other { align-self: flex-start; }
.im.bot p, .im.other p { background: #E9E9EB; color: #000; }
.im.bot p { background: #FDEEE6; }
.im.me { align-self: flex-end; }
.im.me p { background: #0A84FF; color: #fff; }
.im.media { max-width: 62%; }
.im-video, .im.media img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 1.1rem; background: #222; }
.tapback { position: absolute; top: -.6rem; right: -.6rem; background: #E9E9EB; border: 2px solid #fff; border-radius: 1rem; padding: .05rem .4rem; font-size: .7rem; color: #000; }
.tapback.me-tb { right: auto; left: -.7rem; }

.im-poll { margin-top: .3rem; background: #fff; border: 1px solid #E5E5EA; border-radius: .9rem; padding: .5rem .65rem; display: grid; gap: .3rem; min-width: 13rem; }
.poll-row { display: grid; grid-template-columns: 4.2rem 1fr 1.2rem; align-items: center; gap: .45rem; font-size: .74rem; color: #000; }
.poll-row b { text-align: right; }
.poll-bar { height: .45rem; border-radius: 1rem; background: linear-gradient(90deg, #34C759 var(--w), #E5E5EA var(--w)); }
.poll-row.out .poll-bar { background: linear-gradient(90deg, #FF3B30 var(--w), #E5E5EA var(--w)); }
.poll-row.wait .poll-bar { background: linear-gradient(90deg, #8E8E93 var(--w), #E5E5EA var(--w)); }

.im-pay { margin-top: .3rem; background: #fff; border: 1px solid #E5E5EA; border-radius: .9rem; padding: .6rem .65rem; display: grid; gap: .5rem; min-width: 13rem; }
.pay-line { display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem; color: #000; }
.pay-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.pay { text-align: center; border-radius: .55rem; padding: .38rem .3rem; font-size: .76rem; font-weight: 600; }
.pay.apple { background: #000; color: #fff; }
.pay.split { background: #E9E9EB; color: #0A84FF; }

.im-compose { border-top: 1px solid #E5E5EA; padding: .55rem .8rem .8rem; }
.im-compose span { display: block; border: 1px solid #D1D1D6; border-radius: 1.2rem; padding: .35rem .8rem; font-size: .8rem; color: #8E8E93; }
.im-phone .caption { margin-top: .9rem; }

/* ---------- plug in, then grow (home: #plug-in) ---------- */
.stages { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: none; }
.stage { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.1rem; position: relative; }
.stage.now { border: 2px solid var(--orange); }
.stage-n { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.stage h3 { margin: .35rem 0 .15rem; color: var(--green); }
.stage-time { margin: 0 0 .7rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.stage p { color: var(--ink-soft); }
.stage:not(:last-child)::after { content: "→"; position: absolute; right: -1.05rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--ink-soft); }

@media (max-width: 960px) {
  .chat-grid { grid-template-columns: 1fr; }
  .im-phone { max-width: 23rem; margin: 0 auto; }
  .stages { grid-template-columns: 1fr; }
  .stage:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -1.3rem; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .im-video { animation: none; } }

/* ---------- media (home: #media) ---------- */
.media-stats { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.media-stats li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.1rem; }
.media-stats b { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--ink); margin-bottom: .4rem; }
.media-stats span { color: var(--ink-soft); font-size: .95rem; }
.media-turn { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; color: var(--ink); margin: 2.2rem 0 1.4rem; max-width: 46rem; }
.media-turn em { font-style: normal; background: linear-gradient(transparent 60%, var(--orange-soft) 60%); }
.media-flow { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.media-flow li { border-left: 3px solid var(--orange); padding: .2rem 0 .2rem 1rem; }
.media-flow h3 { margin: .2rem 0 .3rem; font-size: 1.05rem; color: var(--green); }
.media-flow p { margin: 0; color: var(--ink-soft); }
.mf-n { font-family: var(--mono); font-size: .75rem; color: var(--ink-soft); }
@media (max-width: 960px) {
  .media-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-flow { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .media-stats { grid-template-columns: 1fr; } }
