/* RoleDrills landing page */
:root {
  --primary: #0F766E;
  --primary-strong: #0B5E57;
  --primary-soft: #E4F2EF;
  --mint: #5EEAD4;
  --amber: #FBBF77;
  --ink: #0A1210;
  --ink-2: #111C19;
  --ink-line: rgba(255, 255, 255, 0.08);
  --bg: #F7F7F4;
  --surface: #FFFFFF;
  --text: #121816;
  --muted: #5B6560;
  --subtle: #8A928E;
  --border: #E6E6E1;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --radius: 10px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--primary-soft); color: var(--primary-strong); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.icon { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.container { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }

/* ---------- Buttons & pills ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--text); color: #fff;
  font: 600 14px/1 var(--font-sans);
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.button .icon { transition: transform .25s var(--ease); }
.button:hover { background: #000; box-shadow: 0 6px 20px -6px rgba(10, 18, 16, .45); }
.button:hover .icon { transform: translateX(3px); }
.button:active { transform: scale(.98); }
.button-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.button.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.button.ghost:hover { background: var(--surface); border-color: #d4d4ce; box-shadow: none; }
.button.light { background: #fff; color: var(--ink); }
.button.light:hover { background: var(--primary-soft); }
.button.block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(15,118,110,.5); animation: ping 2s infinite; }
.pill-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); color: #fff; padding: 4px 10px; font-size: 12px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(15,118,110,.45); } 80%,100% { box-shadow: 0 0 0 8px rgba(15,118,110,0); } }

.link-quiet { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; }
.link-quiet:hover { color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(247, 247, 244, .8); backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--border); }
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand img { display: block; border-radius: 8px; }
.site-nav { display: flex; gap: 30px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.site-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(94, 234, 212, .28), rgba(94, 234, 212, 0) 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; }
.hero h1 em { color: var(--primary); font-size: 1.08em; }
.hero-lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.hero-notes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--subtle); font-size: 13px; }
.hero-notes li { display: inline-flex; align-items: center; gap: 6px; }
.hero-notes .icon { color: var(--primary); width: 14px; height: 14px; }

/* ---------- Live call card ---------- */
.call {
  position: relative;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  color: #E8F0EE;
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 80px -30px rgba(10, 18, 16, .55), 0 0 0 1px rgba(10,18,16,.9);
  display: grid; gap: 16px;
  isolation: isolate;
}
.call::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(600px 280px at 50% 22%, var(--speaker-glow, rgba(94,234,212,.16)), transparent 70%);
  transition: background .6s var(--ease);
}
.call[data-who="rep"] { --speaker-glow: rgba(251, 191, 119, .14); }

.call-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.call-title { display: flex; align-items: center; gap: 10px; color: rgba(232,240,238,.85); font-weight: 500; }
.rec { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: rgba(248, 113, 113, .12); color: #FCA5A5; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rec span { width: 6px; height: 6px; border-radius: 50%; background: #F87171; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.call-time { font-variant-numeric: tabular-nums; color: rgba(232,240,238,.55); font-size: 13px; }

.call-stage { position: relative; display: grid; justify-items: center; gap: 14px; padding: 18px 0 4px; }
.orb { --level: 0; --c: var(--mint); position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.call[data-who="rep"] .orb { --c: var(--amber); }
.orb-core {
  width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--c) 35%, color-mix(in srgb, var(--c) 40%, #0A1210) 100%);
  box-shadow: 0 0 calc(24px + var(--level) * 50px) color-mix(in srgb, var(--c) 60%, transparent);
  transform: scale(calc(1 + var(--level) * .18));
  transition: background .6s var(--ease);
}
.orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  transform: scale(calc(.7 + var(--level) * .35));
  opacity: calc(.2 + var(--level) * .8);
}
.orb-ring.r2 { transform: scale(calc(.82 + var(--level) * .5)); opacity: calc(.08 + var(--level) * .45); }

.speaker { display: grid; justify-items: center; gap: 2px; text-align: center; }
.speaker strong { font-size: 16px; font-weight: 600; color: #fff; }
.speaker span { font-size: 12px; color: rgba(232,240,238,.55); }
.wave { width: 100%; height: 56px; display: block; }

.transcript {
  height: 132px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--ink-line);
  font-size: 13.5px; line-height: 1.5;
  mask-image: linear-gradient(to bottom, transparent 0, #000 36px);
}
.line { display: grid; grid-template-columns: 44px 1fr; gap: 10px; animation: rise .5s var(--ease) both; }
.line b { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.line.ai b { color: var(--mint); }
.line.rep b { color: var(--amber); }
.line span { color: rgba(232,240,238,.9); }
.line .w { opacity: 0; transition: opacity .25s; }
.line .w.on { opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.call-rubric { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--ink-line); color: rgba(232,240,238,.4); font-size: 12px; font-weight: 500;
  transition: all .5s var(--ease);
}
.chip .icon { width: 12px; height: 12px; opacity: .4; }
.chip.on { color: #CCFBF1; border-color: rgba(94,234,212,.35); background: rgba(94,234,212,.1); }
.chip.on .icon { opacity: 1; color: var(--mint); }

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--border); background: var(--surface); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-inner div { padding: 26px 0; display: grid; gap: 2px; text-align: center; }
.strip-inner div + div { border-left: 1px solid var(--border); }
.strip strong { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.strip span { color: var(--subtle); font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 120px) 0; }
.section-head { display: grid; gap: 14px; max-width: 620px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; font-weight: 600; }
.section-head h2 em { color: var(--primary); }
.eyebrow { color: var(--primary); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.6; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 14px 28px; display: grid; gap: 10px; align-content: start; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(10,18,16,.18); }
.step-visual { height: 180px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); margin-bottom: 14px; position: relative; overflow: hidden; display: grid; place-items: center; }
.step-num, .step h3, .step p { padding-inline: 10px; }
.step-num { font-size: 12px; color: var(--subtle); font-weight: 600; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 20px; font-weight: 600; }
.step p { color: var(--muted); font-size: 15px; }

.vis-chat { align-content: center; gap: 12px; padding: 18px; place-items: stretch; }
.mini-input { display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 10px 10px 12px; font-size: 12.5px; min-height: 44px; }
.mini-text { color: var(--text); }
.caret { width: 1.5px; height: 14px; background: var(--primary); animation: blink 1s steps(1) infinite; }
.mini-send { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; background: var(--text); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.mini-send .icon { width: 12px; height: 12px; }
.mini-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; font-size: 13px; opacity: 0; transform: translateY(8px); transition: all .5s var(--ease); }
.mini-card.on { opacity: 1; transform: none; }
.mini-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-tags span { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-weight: 500; }

.vis-voice { align-content: center; gap: 22px; }
.mini-bars { display: flex; align-items: center; gap: 4px; height: 56px; }
.mini-bars span { width: 4px; height: 100%; border-radius: 4px; background: var(--primary); transform-origin: center; animation: eq 1.1s ease-in-out infinite; }
.mini-bars span:nth-child(3n) { animation-duration: .9s; }
.mini-bars span:nth-child(4n) { animation-duration: 1.3s; }
.mini-bars span:nth-child(5n+1) { animation-duration: .75s; }
.mini-bars span:nth-child(odd) { animation-delay: -.4s; }
.mini-bars span:nth-child(3n+2) { animation-delay: -.7s; background: #14B8A6; }
@keyframes eq { 0%,100% { transform: scaleY(.15); } 50% { transform: scaleY(1); } }
.mini-assign { display: flex; align-items: center; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: #fff; border: 2px solid var(--bg); margin-left: -8px; }
.avatar:first-child { margin-left: 0; }
.a1 { background: #0F766E; } .a2 { background: #B45309; } .a3 { background: #334155; }
.mini-label { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-weight: 500; }

.vis-score { place-items: center; }
.ring { width: 120px; height: 120px; transform: rotate(-90deg); grid-area: 1 / 1; }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: var(--border); }
.ring-fg { stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.in .ring-fg { stroke-dashoffset: 14; }
.ring-label { grid-area: 1 / 1; display: flex; align-items: baseline; gap: 2px; }
.ring-label strong { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.ring-label span { color: var(--subtle); font-size: 12px; }

/* Report */
.report-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.report-grid .section-head { margin: 0; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--primary); width: 18px; height: 18px; margin-top: 3px; }

.report { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; display: grid; gap: 24px; box-shadow: 0 40px 80px -40px rgba(10,18,16,.22); }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.report-head > div:first-child { display: grid; gap: 4px; }
.report-kicker { font-size: 12px; color: var(--subtle); font-weight: 500; }
.report-head strong { font-size: 18px; letter-spacing: -0.02em; }
.report-score { font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; }
.report-score small { font-size: 15px; color: var(--subtle); font-weight: 500; letter-spacing: 0; }
.criteria { display: grid; gap: 16px; }
.crit { display: grid; gap: 8px; }
.crit-row { display: flex; justify-content: space-between; font-size: 14px; }
.crit-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--primary); transition: width 1.4s var(--ease); }
.crit:nth-child(2) .bar i { transition-delay: .1s; }
.crit:nth-child(3) .bar i { transition-delay: .2s; }
.crit:nth-child(4) .bar i { transition-delay: .3s; }
.crit.warn .bar i { background: #D97706; }
.in .bar i { width: var(--w); }
.report-note { padding: 14px 16px; border-radius: 14px; background: #FFF7ED; color: #7C2D12; font-size: 14px; line-height: 1.5; }
.note-tag { display: block; font-size: 12px; font-weight: 600; color: #C2410C; margin-bottom: 4px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.tier h3 { font-size: 18px; font-weight: 600; }
.tier-top { display: flex; justify-content: space-between; align-items: center; }
.tier-desc { color: var(--muted); font-size: 14px; min-height: 44px; }
.tier-price { display: flex; align-items: baseline; gap: 6px; padding-block: 4px; }
.tier-price strong { font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.tier-price span { color: var(--subtle); font-size: 14px; }
.tier ul { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--border); display: grid; gap: 12px; font-size: 14px; }
.tier li { display: flex; gap: 10px; align-items: flex-start; }
.tier li .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--primary); }
.tier.featured { background: var(--ink); border-color: var(--ink); color: #E8F0EE; box-shadow: 0 40px 80px -30px rgba(10,18,16,.5); position: relative; overflow: hidden; }
.tier.featured::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 320px; height: 320px; background: radial-gradient(closest-side, rgba(94,234,212,.22), transparent); pointer-events: none; }
.tier.featured .tier-desc, .tier.featured .tier-price span { color: rgba(232,240,238,.6); }
.tier.featured .tier-price strong, .tier.featured h3 { color: #fff; }
.tier.featured ul { border-top-color: var(--ink-line); }
.tier.featured li .icon { color: var(--mint); }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-item { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 10px; align-content: start; }
.trust-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 8px; }
.trust-icon .icon { width: 20px; height: 20px; }
.trust-item h3 { font-size: 18px; font-weight: 600; }
.trust-item p { color: var(--muted); font-size: 14.5px; }

/* CTA */
.cta-wrap { padding-block: clamp(72px, 10vw, 120px); }
.cta { position: relative; overflow: hidden; border-radius: 32px; background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 24px; text-align: center; }
.cta-wave { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.cta-content { position: relative; display: grid; gap: 18px; justify-items: center; }
.cta h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; font-weight: 600; max-width: 760px; }
.cta h2 em { color: var(--mint); }
.cta p { color: rgba(232,240,238,.65); font-size: 17px; margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { padding-block: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.brand-sm { font-size: 15px; gap: 8px; }
.brand-sm img { border-radius: 6px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { color: var(--subtle); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .pricing .reveal:nth-child(2), .trust .reveal:nth-child(2) { transition-delay: .08s; }
.steps .reveal:nth-child(3), .pricing .reveal:nth-child(3), .trust .reveal:nth-child(3) { transition-delay: .16s; }
.hero-copy .reveal:nth-child(2) { transition-delay: .06s; }
.hero-copy .reveal:nth-child(3) { transition-delay: .12s; }
.hero-copy .reveal:nth-child(4) { transition-delay: .18s; }
.hero-copy .reveal:nth-child(5) { transition-delay: .24s; }
.hero-grid > .call.reveal { transition-delay: .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .report-grid { grid-template-columns: 1fr; }
  .steps, .pricing, .trust { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .site-nav { display: none; }
  .tier-desc { min-height: 0; }
}
@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-inner div:nth-child(3) { border-left: 0; }
  .strip-inner div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .header-actions .link-quiet { display: none; }
  .hero-lead { font-size: 16px; }
  .call { border-radius: 22px; padding: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
