/* =========================================================================
   ErgMonkey marketing site
   Tokens mirror the app (src/assets/css/tokens.css) so marketing and product
   feel like one brand.
   ========================================================================= */

:root {
  --teal-50: #ecfbf8;
  --teal-100: #cff5ee;
  --teal-200: #a2ebde;
  --teal-300: #6ddcc9;
  --teal-400: #3dc9b3;
  --teal-500: #22ad98;
  --teal-600: #158b7b;
  --teal-700: #136f63;

  --ink-950: #071518;
  --ink-900: #0b1f24;
  --ink-800: #12303a;
  --ink-700: #1f4250;

  --gray-25: #fbfcfc;
  --gray-50: #f5f7f8;
  --gray-100: #eceff1;
  --gray-200: #dde2e5;
  --gray-300: #c5ccd1;
  --gray-400: #98a2a9;
  --gray-500: #6b767e;
  --gray-600: #4f5a62;
  --gray-700: #36404a;
  --gray-900: #141a1f;

  --amber: #e08a1e;
  --gold: #f8e3a3;
  --success: #1f9d5c;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", var(--font-sans);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(16, 24, 32, .08), 0 1px 2px rgba(16, 24, 32, .04);
  --shadow-md: 0 8px 24px -6px rgba(16, 24, 32, .12), 0 2px 6px rgba(16, 24, 32, .05);
  --shadow-lg: 0 30px 60px -20px rgba(7, 21, 24, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --wrap: 1180px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-700); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(61, 201, 179, .55); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 20px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease), border-color .16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal-400); color: var(--ink-900); box-shadow: 0 6px 20px -6px rgba(61, 201, 179, .6); }
.btn-primary:hover { background: var(--teal-300); color: var(--ink-900); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .05); }
.btn-outline { color: var(--ink-900); border-color: var(--gray-300); background: #fff; }
.btn-outline:hover { color: var(--ink-900); border-color: var(--teal-400); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand img { height: 30px; width: auto; }
.nav { flex: 1; }
.nav ul { display: flex; gap: 28px; }
.nav a { color: var(--gray-600); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--ink-900); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.link-quiet { color: var(--gray-700); font-weight: 500; font-size: 15px; }
.link-quiet:hover { color: var(--ink-900); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform .2s var(--ease), top .2s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-open .nav-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Eyebrows / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 14px;
}
.eyebrow-dark { color: var(--teal-300); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(61, 201, 179, .2); }

.section { padding: 112px 0; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2, .context-copy h2, .groups-copy h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 800; }
.section-lede { font-size: 18px; color: var(--gray-500); margin-top: 18px; }
.dark .section-lede { color: rgba(255, 255, 255, .66); }

.tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); margin-bottom: 16px;
}

.ticks { display: grid; gap: 10px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 30px; color: var(--gray-700); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23158b7b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, #12303a 0%, transparent 60%), var(--ink-950);
  color: #fff;
  padding: 80px 0 120px;
}
.hero-glow {
  position: absolute; inset: auto -10% -40% 30%; height: 700px;
  background: radial-gradient(closest-side, rgba(61, 201, 179, .28), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hl { background: linear-gradient(100deg, var(--teal-300), var(--teal-400) 60%, #8ff0dd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 19px; color: rgba(255, 255, 255, .72); margin-top: 24px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { font-size: 14px; color: rgba(255, 255, 255, .5); margin-top: 16px; }
.works-with { display: flex; align-items: center; gap: 26px; margin-top: 44px; flex-wrap: wrap; }
.works-with span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .45); font-weight: 600; }
.mono-logo { height: 20px; width: auto; filter: brightness(0) invert(1); opacity: .7; }

.hero-visual { position: relative; }

/* App window mockup */
.app-window {
  background: #fff; color: var(--gray-900);
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
  font-size: 12px;
}
.app-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--gray-50); border-bottom: 1px solid var(--gray-100); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-200); }
.dots i:first-child { background: #ff6159; } .dots i:nth-child(2) { background: #ffbd2e; } .dots i:nth-child(3) { background: #28c941; }
.app-url { flex: 1; text-align: center; font-size: 11px; color: var(--gray-500); background: #fff; border: 1px solid var(--gray-100); border-radius: 6px; padding: 3px 10px; max-width: 260px; margin: 0 auto; }
.app-body { padding: 18px; background: var(--gray-25); }
.app-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.app-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.app-sub { color: var(--gray-500); font-size: 11px; }
.sync-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: var(--teal-700); background: var(--teal-50); padding: 5px 10px; border-radius: 999px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 201, 179, .6); } 70% { box-shadow: 0 0 0 7px rgba(61, 201, 179, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 201, 179, 0); } }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--gray-100); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.kpi-label { color: var(--gray-500); font-size: 10.5px; font-weight: 500; }
.kpi-val { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.kpi-val small { font-size: 11px; color: var(--gray-500); margin-left: 2px; font-weight: 600; }
.kpi-delta { font-size: 10px; color: var(--gray-500); }
.kpi-delta.up { color: var(--teal-600); font-weight: 600; }

.app-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 10px; }
.app-grid-b { grid-template-columns: 1.15fr 1fr; }
.card-mini { background: #fff; border: 1px solid var(--gray-100); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.mini-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 11px; margin-bottom: 6px; }
.muted { color: var(--gray-400); font-weight: 500; }
.chart { width: 100%; display: block; overflow: visible; }
#hero-area, #hero-load { height: 92px; }

.heatmap { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 2.5px; }
.heatmap i { aspect-ratio: 1; border-radius: 2px; background: var(--gray-100); }
.heatmap i.l1 { background: var(--teal-100); } .heatmap i.l2 { background: var(--teal-300); } .heatmap i.l3 { background: var(--teal-400); } .heatmap i.l4 { background: var(--teal-600); }

.wk-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--gray-100); }
.wk-list li:first-child { border-top: 0; padding-top: 0; }
.wk-icon { width: 24px; height: 24px; flex: none; border-radius: 7px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; font-weight: 700; font-size: 10px; }
.wk-icon.s { background: #fff4e6; color: #b45f0f; }
.wk-name { flex: 1; display: flex; flex-direction: column; font-weight: 600; font-size: 11px; line-height: 1.25; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-name em { font-style: normal; color: var(--gray-400); font-weight: 500; font-size: 10px; }
.wk-time { font-family: var(--font-display); font-weight: 700; font-size: 12px; white-space: nowrap; }
.pb { font-size: 9px; background: var(--gold); color: #7a5a00; padding: 2px 5px; border-radius: 4px; margin-left: 2px; vertical-align: 1px; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--gray-900); border-radius: 14px; padding: 12px 16px 12px 12px;
  box-shadow: 0 20px 40px -12px rgba(7, 21, 24, .5);
  font-size: 13px; line-height: 1.3;
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-display); font-size: 14px; }
.float-card span { color: var(--gray-500); font-size: 12px; }
.float-pb { left: -34px; bottom: -28px; }
.badge-ring { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #7a5a00 !important; background: radial-gradient(circle at 30% 30%, #fff3c4, var(--gold) 60%, #e9c45c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Proof strip ---------- */
.proof { background: var(--ink-900); color: #fff; border-top: 1px solid rgba(255, 255, 255, .06); }
.proof-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 30px 24px; border-left: 1px solid rgba(255, 255, 255, .08); }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item strong { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--teal-300); letter-spacing: -.02em; }
.proof-item span { font-size: 14px; color: rgba(255, 255, 255, .62); line-height: 1.45; display: block; margin-top: 2px; }

/* ---------- How it works ---------- */
.how { background: var(--gray-50); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-xl); padding: 32px; position: relative; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink-900); color: var(--teal-300); font-family: var(--font-display); font-weight: 800; margin-bottom: 20px; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--gray-600); }

/* ---------- Features ---------- */
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--gray-100); }
.feature.reverse .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-bottom: 16px; }
.feature-copy > p { color: var(--gray-600); font-size: 17px; }

.panel { color: var(--gray-900); background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-md); position: relative; }
.panel::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(61, 201, 179, .5), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.panel-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.panel-sub { color: var(--gray-500); font-size: 13px; }
.chart-lg { height: auto; aspect-ratio: 520 / 240; }
.chart text { font-family: var(--font-sans); font-size: 11px; fill: var(--gray-400); }

.seg { display: inline-flex; background: var(--gray-100); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; font-size: 12px; font-weight: 600; color: var(--gray-500); padding: 6px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.seg button.on { background: #fff; color: var(--gray-900); box-shadow: var(--shadow-sm); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--gray-600); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend b { font-family: var(--font-display); color: var(--gray-900); }

.chip-up { font-size: 12px; font-weight: 700; color: var(--teal-700); background: var(--teal-50); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.recency { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray-500); white-space: nowrap; }
.recency i { width: 54px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, rgba(61, 201, 179, .15), var(--teal-500)); }
.stat-inline { text-align: right; }
.stat-inline span { display: block; font-size: 12px; color: var(--gray-500); }
.stat-inline strong { font-family: var(--font-display); font-size: 22px; }
.stat-inline em { font-style: normal; font-size: 12px; color: var(--teal-600); }

/* ---------- Reports grid ---------- */
.reports { background: var(--gray-50); }
.report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.report { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 26px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.report:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-200); }
.r-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--ink-900); display: grid; place-items: center; margin-bottom: 18px; }
.r-icon svg { width: 22px; height: 22px; fill: var(--teal-300); stroke: var(--teal-300); stroke-linecap: round; stroke-linejoin: round; stroke-width: 0; }
.r-icon svg [fill="none"] { stroke-width: 2.2; }
.report h3 { font-size: 18px; margin-bottom: 6px; }
.report p { font-size: 14.5px; color: var(--gray-600); line-height: 1.5; }

a.report { display: flex; flex-direction: column; color: inherit; }
a.report:hover { color: inherit; }
.more { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 600; color: var(--teal-600); display: inline-flex; align-items: center; gap: 6px; }
.more::after { content: "→"; transition: transform .2s var(--ease); }
a.report:hover .more::after, .feature-link:hover::after { transform: translateX(4px); }
.feature-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; font-weight: 600; color: var(--teal-600); }
.feature-link::after { content: "→"; transition: transform .2s var(--ease); }
.report-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Report pages ---------- */
.rp-hero { background: radial-gradient(900px 400px at 90% 0%, var(--teal-50), transparent 70%), #fff; padding: 48px 0 56px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--gray-400); margin-bottom: 32px; }
.crumbs a { color: var(--gray-500); }
.crumbs a:hover { color: var(--teal-600); }
.rp-hero-inner { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; max-width: 860px; }
.rp-hero-inner > .r-icon { width: 64px; height: 64px; border-radius: 18px; margin: 4px 0 0; }
.rp-hero-inner > .r-icon svg { width: 32px; height: 32px; }
.rp-hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; }
.rp-hero .section-lede { max-width: 640px; }
.rp-hero .hero-actions { margin-top: 30px; }
.plan-badge { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: var(--gray-600); background: var(--gray-100); padding: 3px 9px; border-radius: 999px; margin-left: 6px; }

.rp-tabs-bar { position: sticky; top: 68px; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.rp-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.rp-tabs::-webkit-scrollbar { display: none; }
.rp-tabs a { flex: none; font-size: 14px; font-weight: 600; color: var(--gray-500); padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.rp-tabs a:hover { color: var(--ink-900); background: var(--gray-50); }
.rp-tabs a.on { background: var(--ink-900); color: #fff; }

.rp-visual { background: linear-gradient(#fff, var(--gray-50)); padding: 56px 0 24px; }
.rp-panel { max-width: 980px; margin: 0 auto; padding: 32px; }
@media (min-width: 901px) { .rp-panel .chart-lg text { font-size: 7.5px; } }
@media (max-width: 600px) { .chart-lg text { font-size: 15px; } }
.rp-panel .chart-lg { max-width: 860px; margin: 0 auto; }
.rp-caption { text-align: center; font-size: 13px; color: var(--gray-400); margin-top: 18px; }
.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.rp-kpis div { background: var(--gray-50); border-radius: 12px; padding: 14px 16px; }
.rp-kpis span { display: block; font-size: 12px; color: var(--gray-500); font-weight: 500; }
.rp-kpis b { font-family: var(--font-display); font-size: 26px; letter-spacing: -.02em; }
.rp-kpis small { font-size: 13px; color: var(--gray-500); margin-left: 3px; }
.rp-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rp-mini { border: 1px solid var(--gray-100); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.rp-mini .mini-head { font-size: 13px; margin-bottom: 12px; }

.pb-table-wrap { overflow-x: auto; }
.pb-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pb-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--gray-200); }
.pb-table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); white-space: nowrap; }
.pb-table td:first-child { font-weight: 600; }
.pb-table td:nth-child(2) { font-family: var(--font-display); font-weight: 700; }
.pb-table td:nth-child(3), .pb-table td:nth-child(4) { color: var(--gray-500); }
.pb-table tr.new td { background: #fffaf0; }
.pb-table tr.todo td { color: var(--gray-400); font-weight: 500; font-family: var(--font-sans); }

.rp-questions { padding-top: 88px; background: var(--gray-50); }
.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.q-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-xl); padding: 30px; }
.q-card h3 { font-size: 21px; margin-bottom: 12px; }
.q-card p { color: var(--gray-600); }

.rp-shows-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.rp-shows .section-head { margin-bottom: 0; position: sticky; top: 150px; }
.shows-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.shows-grid h4 { font-size: 18px; margin-bottom: 8px; padding-top: 18px; border-top: 2px solid var(--teal-400); }
.shows-grid p { color: var(--gray-600); }

.rp-tip { background: var(--ink-900); color: #fff; border-radius: var(--r-xl); padding: 40px 44px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.rp-tip-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-900); background: var(--teal-400); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.rp-tip p { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.rp-related { padding-top: 112px; }

/* ---------- SEO landing pages ---------- */
.seo-hero { padding-top: 32px; }
.seo-hero .hero-inner { margin-top: 36px; }
.seo-hero h1 { font-size: clamp(36px, 4.8vw, 58px); }
.crumbs-dark { position: relative; z-index: 1; margin-bottom: 0; color: rgba(255, 255, 255, .4); }
.crumbs-dark a { color: rgba(255, 255, 255, .6); }
.crumbs-dark a:hover { color: var(--teal-300); }
.hero-panel .panel { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08); }

.prose-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.prose h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin-bottom: 24px; }
.prose p { font-size: 17.5px; line-height: 1.75; color: var(--gray-700); }
.prose p + p { margin-top: 18px; }
.aside-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--r-xl); padding: 30px; position: sticky; top: 100px; }
.aside-card h3 { font-size: 18px; }
.aside-card .ticks { margin-top: 18px; }

.seo-cards, .seo-visual.alt, .seo-related { background: var(--gray-50); }
.seo-visual { background: linear-gradient(#fff, var(--gray-50)); }
.seo-visual.alt { background: var(--gray-50); }
.rp-panel-wrap { max-width: 980px; margin: 0 auto; }
.rp-panel-wrap > .panel { padding: 32px; }
.rp-panel-wrap .chart-lg { max-width: 860px; margin: 0 auto; }
@media (min-width: 901px) { .rp-panel-wrap .chart-lg text { font-size: 7.5px; } }

.metric-table-wrap { max-width: 980px; margin: 0 auto; overflow-x: auto; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-xl); }
.metric-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.metric-table thead th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); font-weight: 600; padding: 16px 24px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.metric-table tbody th { text-align: left; font-family: var(--font-display); font-size: 16px; font-weight: 700; padding: 18px 24px; white-space: nowrap; vertical-align: top; }
.metric-table td { padding: 18px 24px; color: var(--gray-600); vertical-align: top; }
.metric-table td:last-child { color: var(--teal-700); font-weight: 600; font-size: 14px; white-space: nowrap; }
.metric-table tbody tr + tr > * { border-top: 1px solid var(--gray-100); }

.sync-card { padding: 22px; }
.sync-head { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.sync-src, .sync-dst { display: inline-flex; align-items: center; gap: 8px; background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 10px; padding: 8px 12px; }
.sync-src img { height: 14px; width: auto; }
.sync-arrow { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--teal-400) 0 6px, transparent 6px 11px); position: relative; background-size: 22px 2px; animation: flow 1s linear infinite; }
.sync-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--teal-400); border-right: 0; }
@keyframes flow { to { background-position: 22px 0; } }
.sync-progress { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 18px 0 8px; font-size: 13px; color: var(--gray-500); }
.sync-progress b { color: var(--gray-900); font-family: var(--font-display); }
.sync-progress i { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--gray-100); overflow: hidden; }
.sync-progress em { display: block; height: 100%; width: 78%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-500), var(--teal-300)); }
.sync-list li { display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--gray-100); font-size: 13px; }
.sync-list .wk-icon { width: 28px; height: 28px; font-size: 11px; }
.sync-list .wk-name { font-size: 13.5px; }
.sync-list .wk-name em { font-size: 11.5px; }
.sync-list .wk-time { font-size: 14px; }
.sync-ok { font-size: 11px; font-weight: 600; color: var(--teal-700); background: var(--teal-50); padding: 3px 8px; border-radius: 999px; }
.wk-icon.b { background: #e9ecff; color: #3b4cc0; }

@media (max-width: 900px) {
  .prose-grid { grid-template-columns: 1fr; gap: 32px; }
  .aside-card { position: static; }
}
@media (max-width: 600px) {
  .rp-panel-wrap > .panel { padding: 18px; }
  .sync-list li { grid-template-columns: 28px 1fr auto; }
  .sync-ok { display: none; }
  .metric-table thead { display: none; }
  .metric-table tbody tr { display: block; padding: 18px 20px; }
  .metric-table tbody tr + tr { border-top: 1px solid var(--gray-100); }
  .metric-table tbody tr + tr > * { border-top: 0; }
  .metric-table tbody th, .metric-table td { display: block; padding: 0; white-space: normal; }
  .metric-table td { margin-top: 6px; }
  .metric-table td:last-child { margin-top: 10px; white-space: normal; }
  .metric-table td:last-child::before { content: "See it in: "; color: var(--gray-400); font-weight: 500; }
}

/* ---------- Blog ---------- */
.article-hero { padding-bottom: 44px; border-bottom: 1px solid var(--gray-100); }
.article-hero-inner { max-width: 880px; }
.article-hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.03em; margin-top: 14px; text-wrap: balance; }
.article-hero .section-lede { max-width: 720px; }
.article-meta { color: var(--gray-400); font-size: 14px; margin-top: 18px; }
.post-cat { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); }
.blog-hero h1 { margin-top: 0; }
.post-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.post-filters button { border: 1px solid var(--gray-200); background: #fff; color: var(--gray-600); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s, border-color .15s; }
.post-filters button:hover { border-color: var(--teal-400); color: var(--ink-900); }
.post-filters button.on { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.blog-list { padding-top: 56px; background: var(--gray-50); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-xl); padding: 28px; color: inherit; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.post-card:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-200); }
.post-card .post-cat { align-self: flex-start; }
.post-card h3 { font-size: 20px; line-height: 1.25; }
.post-card p { color: var(--gray-600); font-size: 15px; line-height: 1.55; }
.post-meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--gray-400); }
.post-card[hidden] { display: none; }

.article h2 { scroll-margin-top: 90px; margin-top: 44px; }
.article > h2:first-child { margin-top: 0; }
.article h3 { margin-top: 28px; }
.article ol { list-style: decimal; padding-left: 22px; margin: 12px 0; }
.article ol li + li { margin-top: 8px; }
.callout { background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--r-lg); padding: 18px 22px; margin: 24px 0; color: var(--gray-700); }
.callout strong:first-child { display: block; color: var(--teal-700); margin-bottom: 4px; }
.callout.warn { background: #fff8ec; border-color: #f7dfb5; }
.callout.warn strong:first-child { color: #9a5b0b; }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--gray-200); border-radius: var(--r-lg); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); background: var(--gray-50); padding: 12px 16px; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.data-table td { padding: 12px 16px; border-top: 1px solid var(--gray-100); vertical-align: top; }
.data-table tr:first-child td { border-top: 0; }
.data-table td:first-child { font-weight: 600; color: var(--gray-900); white-space: nowrap; }
.article-faq { margin-top: 8px; }
.article-faq summary { font-size: 17px; }
.article-faq details p { padding-right: 0; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 26px 28px; border-radius: var(--r-xl); background: var(--ink-900); color: #fff; }
.article .article-cta strong { font-family: var(--font-display); font-size: 20px; color: #fff; }
.article-cta p { color: rgba(255, 255, 255, .7); margin-top: 4px !important; font-size: 15.5px; line-height: 1.55; }
.article-cta .btn { text-decoration: none; flex: none; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
.legal-layout > * { min-width: 0; }
@media (max-width: 640px) {
  .data-table td:first-child { white-space: normal; min-width: 110px; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .post-grid { grid-template-columns: 1fr; }
  .article-cta { flex-direction: column; align-items: flex-start; }
  .article-cta .btn { width: 100%; }
}

/* ---------- 404 ---------- */
.notfound { padding: 140px 0 160px; text-align: center; }
.notfound-inner { position: relative; z-index: 1; max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.notfound h1 { font-size: clamp(36px, 5vw, 56px); text-wrap: balance; }
.notfound .lede { margin-left: auto; margin-right: auto; text-wrap: balance; }
.notfound .hero-actions { justify-content: center; }
.banana { font-size: 88px; line-height: 1; margin-bottom: 18px; filter: drop-shadow(0 18px 30px rgba(248, 227, 163, .25)); }
.banana span { display: inline-block; animation: wobble 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes wobble { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg) translateY(-6px); } }
.dnf { display: grid; grid-template-columns: repeat(4, auto); gap: 0; margin-top: 30px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; overflow: hidden; text-align: left; }
.dnf div { padding: 14px 20px; border-left: 1px solid rgba(255, 255, 255, .08); }
.dnf div:first-child { border-left: 0; }
.dnf span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .45); font-weight: 600; }
.dnf b { font-family: var(--font-display); font-size: 18px; white-space: nowrap; }
.dnf-tag { color: var(--ink-900); background: var(--gold); padding: 1px 8px; border-radius: 6px; font-size: 15px !important; }
.dnf-note { font-size: 13px; color: rgba(255, 255, 255, .45); margin-top: 10px; }
@media (max-width: 600px) {
  .notfound { padding: 80px 0 100px; }
  .dnf { grid-template-columns: 1fr 1fr; }
  .dnf div:nth-child(3) { border-left: 0; }
  .dnf div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
}

/* ---------- Legal pages ---------- */
.legal-hero { padding-bottom: 40px; border-bottom: 1px solid var(--gray-100); }
.legal-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; }
.legal-updated { color: var(--gray-500); margin-top: 12px; font-size: 15px; }
.legal-body { padding: 56px 0 112px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 72px; justify-content: center; }
.legal-toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.legal-toc > p { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); margin-bottom: 12px; }
.legal-toc ol { list-style: none; border-left: 2px solid var(--gray-100); }
.legal-toc li a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--gray-600); line-height: 1.4; }
.legal-toc li a:hover { color: var(--ink-900); border-left-color: var(--teal-400); }
.legal-other { display: inline-block; margin-top: 24px; font-weight: 600; }
.legal { color: var(--gray-700); font-size: 16.5px; line-height: 1.75; }
.legal-intro { font-size: 19px; line-height: 1.65; color: var(--gray-900); padding-bottom: 32px; border-bottom: 1px solid var(--gray-100); }
.legal section { padding-top: 40px; scroll-margin-top: 90px; }
.legal h2 { font-size: 24px; font-weight: 800; color: var(--gray-900); margin-bottom: 14px; }
.legal h2 span { color: var(--teal-500); margin-right: 4px; }
.legal h3 { font-size: 17px; color: var(--gray-900); margin: 24px 0 6px; }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 12px 0; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--teal-500); }
.legal strong { color: var(--gray-900); }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 20px; }
}

/* ---------- Context / email ---------- */
.context-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.context-visual { position: relative; }
.context-visual::before { content: ""; position: absolute; inset: 8% -6% -6% 10%; background: radial-gradient(closest-side, var(--teal-100), transparent); z-index: -1; }
.email { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-xl); box-shadow: var(--shadow-md); overflow: hidden; max-width: 480px; margin-left: auto; }
.email-top { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--gray-100); }
.email-top img { border-radius: 8px; border: 1px solid var(--gray-100); padding: 3px; }
.email-from { font-weight: 700; font-size: 14px; }
.email-subj { font-size: 13px; color: var(--gray-600); line-height: 1.35; }
.email-time { margin-left: auto; font-size: 12px; color: var(--gray-400); align-self: flex-start; }
.email-body { padding: 22px 20px 24px; }
.email-hero { background: var(--ink-900); color: #fff; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 2px; }
.email-k { font-size: 12px; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.email-big { font-family: var(--font-display); font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.email-delta { font-size: 13px; font-weight: 600; color: var(--teal-300); }
.email-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.email-rows div { background: var(--gray-50); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; }
.email-rows span { grid-column: 1 / -1; font-size: 11px; color: var(--gray-500); }
.email-rows b { font-family: var(--font-display); font-size: 16px; }
.email-rows em { font-style: normal; font-size: 11px; color: var(--gray-500); font-weight: 600; }
.email-rows em.up { color: var(--teal-600); }
.email-splits { display: flex; align-items: flex-end; gap: 4px; height: 54px; margin: 16px 0; }
.email-splits i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--teal-200); }
.email-splits i.best { background: var(--teal-500); }
.email-btn { display: block; text-align: center; background: var(--teal-400); color: var(--ink-900); font-weight: 700; font-size: 14px; padding: 11px; border-radius: 10px; }

/* ---------- Groups ---------- */
.dark { background: var(--ink-950); color: #fff; position: relative; overflow: hidden; }
.groups::before { content: ""; position: absolute; width: 800px; height: 800px; right: -200px; top: -200px; background: radial-gradient(closest-side, rgba(61, 201, 179, .16), transparent); pointer-events: none; }
.groups-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.group-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin: 36px 0 36px; }
.group-feats h4 { font-size: 16px; color: #fff; margin-bottom: 6px; }
.group-feats p { font-size: 14.5px; color: rgba(255, 255, 255, .6); line-height: 1.5; }
.groups-visual { position: relative; }
.board { background: var(--ink-900); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-lg); }
.board-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.board-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.board-sub { font-size: 13px; color: rgba(255, 255, 255, .5); }
.board-pill { font-size: 12px; font-weight: 600; color: var(--teal-300); border: 1px solid rgba(61, 201, 179, .35); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.board-list li { display: grid; grid-template-columns: 26px 34px 1fr auto; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; font-size: 14px; }
.board-list li + li { margin-top: 2px; }
.board-list li.me { background: rgba(61, 201, 179, .12); box-shadow: inset 0 0 0 1px rgba(61, 201, 179, .35); }
.rank { font-family: var(--font-display); font-weight: 800; color: rgba(255, 255, 255, .45); text-align: center; }
.board-list li:nth-child(1) .rank { color: #f5cf63; }
.board-list li:nth-child(2) .rank { color: #d6dde2; }
.board-list li:nth-child(3) .rank { color: #e0a36d; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--ink-900); }
.who { min-width: 0; }
.who b { display: block; font-weight: 600; }
.bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin-top: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-500), var(--teal-300)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.in-view .bar i { transform: scaleX(1); }
.km { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.km small { color: rgba(255, 255, 255, .45); font-weight: 600; margin-left: 2px; }
.float-rotm { right: -24px; bottom: -30px; }
.trophy { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); font-size: 20px; }

/* ---------- Extras ---------- */
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.extra { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; gap: 26px; overflow: hidden; }
.extra-cal { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 40px; align-items: center; }
.extra-cal .cal { margin-top: 0; }
.extra-copy h3 { font-size: 24px; margin-bottom: 8px; }
.extra-copy p { color: var(--gray-600); }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: auto; }
.cal-dow { font-size: 11px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; text-align: center; letter-spacing: .06em; }
.cal-day { background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; min-height: 96px; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.cal-day .d { font-size: 12px; font-weight: 600; color: var(--gray-500); }
.cal-day.today { border-color: var(--teal-400); box-shadow: 0 0 0 3px var(--teal-50); }
.cal-ev { font-size: 10.5px; line-height: 1.3; padding: 5px 6px; border-radius: 7px; font-weight: 600; }
.cal-ev.done { background: var(--teal-400); color: var(--ink-900); }
.cal-ev.done::before { content: "✓ "; }
.cal-ev.plan { border: 1.5px dashed var(--teal-400); color: var(--teal-700); background: var(--teal-50); }
.cal-ev.ski { background: #ffe3bf; color: #7a4100; }

.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: auto; max-width: 360px; width: 100%; align-self: center; }
.medal { aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at 30% 25%, #fff, #dfe5e8 70%); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px var(--gray-200), var(--shadow-sm); }
.medal b { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--gray-700); line-height: 1; }
.medal em { font-style: normal; font-size: 10px; color: var(--gray-500); margin-top: 3px; font-weight: 600; max-width: 70%; line-height: 1.2; }
.medal.gold { background: radial-gradient(circle at 30% 25%, #fff6d5, var(--gold) 60%, #e5bf55); box-shadow: inset 0 0 0 4px #fff5cf, inset 0 0 0 6px #e5bf55, var(--shadow-sm); }
.medal.gold b, .medal.gold em { color: #6e5100; }
.medal.teal { background: radial-gradient(circle at 30% 25%, #e8fbf7, var(--teal-200) 60%, var(--teal-400)); box-shadow: inset 0 0 0 4px #e8fbf7, inset 0 0 0 6px var(--teal-400), var(--shadow-sm); }
.medal.teal b, .medal.teal em { color: var(--teal-700); }
.medal.locked { opacity: .45; filter: grayscale(1); background: repeating-linear-gradient(45deg, #f0f3f4 0 6px, #e8ecee 6px 12px); }

.year { background: linear-gradient(150deg, var(--ink-800), var(--ink-950)); color: #fff; border-radius: 18px; padding: 20px; margin-top: auto; }
.year-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.year-big { font-family: var(--font-display); font-size: 48px; font-weight: 800; letter-spacing: -.03em; color: var(--teal-300); line-height: 1.1; margin-top: 8px; }
.year-big small { font-size: 18px; color: rgba(255, 255, 255, .6); margin-left: 4px; }
.year-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 16px; }
.year-stats b { display: block; font-family: var(--font-display); font-size: 20px; }
.year-stats span { font-size: 11px; color: rgba(255, 255, 255, .55); }
.year-heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 2px; }
.year-heat i { aspect-ratio: 1; border-radius: 1.5px; background: rgba(255, 255, 255, .07); }
.year-heat i.l1 { background: rgba(61, 201, 179, .3); } .year-heat i.l2 { background: rgba(61, 201, 179, .55); } .year-heat i.l3 { background: var(--teal-400); } .year-heat i.l4 { background: var(--teal-200); }

/* ---------- Integrations ---------- */
.integrations { background: var(--gray-50); }
.source-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto 36px; }
.source { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.source img { height: 26px; width: auto; }
.source span { color: var(--gray-500); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 0 auto; }
.chips li { background: #fff; border: 1px solid var(--gray-200); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--gray-700); }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; background: var(--gray-100); border-radius: 999px; padding: 4px; margin-top: 30px; }
.billing-toggle button { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--gray-500); display: inline-flex; align-items: center; gap: 8px; }
.billing-toggle button.on { background: #fff; color: var(--gray-900); box-shadow: var(--shadow-sm); }
.save { font-size: 11px; font-weight: 700; color: var(--teal-700); background: var(--teal-50); padding: 3px 7px; border-radius: 999px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-xl); padding: 34px 30px; display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 22px; }
.plan-desc { color: var(--gray-500); font-size: 14.5px; margin-top: 6px; min-height: 44px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 24px; }
.amt { font-family: var(--font-display); font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.per { color: var(--gray-500); font-size: 15px; }
.plan-list { display: grid; gap: 11px; margin-top: 28px; font-size: 15px; }
.plan-list li { position: relative; padding-left: 26px; color: var(--gray-700); }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%2322ad98' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan-list li:has(b)::before { display: none; }
.plan-list li:has(b) { padding-left: 0; }
.plan-list li.limit { color: var(--gray-500); }
.plan-list li.limit::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='%2398a2a9' stroke-width='2'/%3E%3Cpath d='M10 6v4l2.5 2' fill='none' stroke='%2398a2a9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.plan.featured { background: var(--ink-900); color: #fff; border-color: var(--ink-900); box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.plan.featured .plan-desc, .plan.featured .per { color: rgba(255, 255, 255, .6); }
.plan.featured .plan-list li { color: rgba(255, 255, 255, .85); }
.plan.featured .plan-list b { color: #fff; }
.plan-flag { position: absolute; top: -13px; left: 30px; background: var(--teal-400); color: var(--ink-900); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.pricing-foot { text-align: center; color: var(--gray-500); font-size: 14px; margin-top: 40px; }

/* ---------- FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; }
.faq .section-head { margin-bottom: 0; }
.faq-list details { border-bottom: 1px solid var(--gray-200); }
.faq-list details:first-child { border-top: 1px solid var(--gray-200); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--gray-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%2336404a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; transition: transform .2s var(--ease), background-color .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--teal-100); }
.faq-list details p { color: var(--gray-600); padding: 0 40px 24px 0; }

/* ---------- Final CTA ---------- */
.cta-final {
  position: relative; overflow: hidden; width: 100%;
  background: radial-gradient(900px 420px at 50% 0%, rgba(61, 201, 179, .32), transparent 70%), radial-gradient(700px 400px at 100% 100%, #12303a, transparent 70%), var(--ink-950);
  padding: 128px 0 136px;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 70%);
}
.cta-inner {
  position: relative; z-index: 1;
  color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.cta-mark { width: 72px; height: 72px; padding: 10px; background: #fff; border-radius: 20px; margin-bottom: 24px; box-shadow: 0 10px 30px -10px rgba(61, 201, 179, .6); }
.cta-inner h2 { font-size: clamp(32px, 5vw, 60px); font-weight: 800; letter-spacing: -.03em; max-width: 820px; text-wrap: balance; }
.cta-inner p { text-wrap: balance; }
.cta-inner p { color: rgba(255, 255, 255, .66); font-size: 18px; margin: 16px 0 32px; max-width: 520px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-50); border-top: 1px solid var(--gray-200); color: var(--gray-500); padding: 64px 0 32px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-logo { height: 28px; width: auto; }
.footer-brand p { margin-top: 16px; line-height: 1.6; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-cols h4 { color: var(--gray-900); font-family: var(--font-sans); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--gray-600); padding: 4px 0; }
.footer-cols a:hover { color: var(--teal-600); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--gray-200); margin-top: 48px; padding-top: 24px; font-size: 13px; color: var(--gray-400); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease); }
.in-view .draw { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
  .bar i { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { max-width: 640px; }
  .app-window { transform: none; }
  .float-pb { left: 12px; }
  .report-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .context-inner, .groups-inner { gap: 48px; }
}

@media (max-width: 900px) {
  .nav { position: fixed; inset: 68px 0 auto 0; background: #fff; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .3s var(--ease); z-index: -1; }
  .nav-open .nav { transform: none; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--gray-100); }
  .nav-toggle { display: block; }
  .header-inner { justify-content: space-between; }
  .feature, .context-inner, .groups-inner, .faq-inner { grid-template-columns: 1fr; }
  .feature.reverse .feature-copy { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .proof-inner { grid-template-columns: 1fr 1fr; }
  .proof-item { padding: 24px 20px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .proof-item:nth-child(-n+2) { border-top: 0; }
  .proof-item:first-child { padding-left: 20px; }
  .extras-grid { grid-template-columns: 1fr; }
  .extra-cal { grid-template-columns: 1fr; gap: 26px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; }
  .plan.featured { transform: none; }
  .email { margin: 0 auto; }
  .faq-inner { gap: 32px; }
  .report-grid-3, .q-grid { grid-template-columns: 1fr; }
  .rp-shows-inner { grid-template-columns: 1fr; gap: 40px; }
  .rp-shows .section-head { position: static; }
  .rp-trio { grid-template-columns: 1fr; }
  .rp-kpis { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .header-cta .link-quiet { display: none; }
  .brand img { height: 26px; }
  .hero { padding-bottom: 90px; }
  .lede { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .app-grid, .app-grid-b { grid-template-columns: 1fr; }
  .app-url { display: none; }
  .float-card { position: relative; left: auto; right: auto; bottom: auto; margin: -20px auto 0; width: fit-content; max-width: 92%; }
  .report-grid { grid-template-columns: 1fr; }
  .group-feats { grid-template-columns: 1fr; }
  .source-row { grid-template-columns: 1fr; }
  .cal { gap: 4px; }
  .cal-day { min-height: 74px; padding: 5px; border-radius: 8px; }
  .cal-ev { font-size: 9px; padding: 3px 4px; }
  .extra { padding: 24px; }
  .panel { padding: 18px; }
  .panel-head { flex-wrap: wrap; }
  .cta-final { padding: 88px 0 96px; }
  .cta-inner .btn { width: 100%; }
  .footer-cols { gap: 40px; }
  .rp-hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .rp-hero .hero-actions .btn { width: 100%; }
  .rp-panel { padding: 18px; }
  .shows-grid { grid-template-columns: 1fr; gap: 28px; }
  .rp-tip { grid-template-columns: 1fr; padding: 30px 24px; gap: 16px; }
  .rp-tip-label { justify-self: start; }
}
