/* ============================================================
   Rankd Call Trainer — marketing landing page.
   Same design system as rankdnow.com (brand.css tokens): violet-
   first, light and colorful. Hero pairs the pitch with the
   40-second "About our CSR Trainer" explainer video.
   ============================================================ */

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 255, .8);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.site-header nav { display: flex; flex-direction: row; align-items: center; gap: 26px; }
.site-header nav a.navlink { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.site-header nav a.navlink:hover { color: var(--violet); }
.header-cta { display: flex; align-items: center; gap: 12px; }
/* mobile: collapse the text links but keep Products reachable (tap to open) */
@media (max-width: 900px) {
  .site-header nav.main { gap: 0; }
  .site-header nav.main .navlink { display: none; }
  .navdrop-card { max-width: calc(100vw - 24px); }
}
/* phones: the bar can't fit brand lockup + Products + two buttons, and flex
   items refuse to shrink below content — so shed weight in stages instead
   of letting them overlap */
@media (max-width: 640px) {
  .site-header .brand .tag { display: none; } /* logo alone is plenty */
  .site-header .bar { gap: 10px; }
  .header-cta { gap: 8px; }
  .header-cta .btn { padding: 8px 13px; font-size: 13.5px; white-space: nowrap; }
}
@media (max-width: 420px) {
  .header-cta .btn-ghost { display: none; } /* Log in folds away; signup page links to it */
}

/* products hover menu — same component as rankdnow.com so the two product
   sites feel like one family and you can hop between them */
.navdrop { position: relative; }
.navdrop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--ink-2);
}
.navdrop-btn svg { width: 13px; height: 13px; transition: transform .18s ease; }
.navdrop:hover .navdrop-btn, .navdrop:focus-within .navdrop-btn { color: var(--violet); }
.navdrop:hover .navdrop-btn svg, .navdrop:focus-within .navdrop-btn svg { transform: rotate(180deg); }
.navdrop-menu {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  padding-top: 14px; /* hover bridge from the button to the card */
  opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease;
  z-index: 70;
}
.navdrop:hover .navdrop-menu, .navdrop:focus-within .navdrop-menu,
.navdrop.open .navdrop-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.navdrop-card {
  width: 356px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px; overflow: hidden;
}
.navdrop-card a.prod {
  display: flex; align-items: center; gap: 13px; padding: 13px 14px;
  border-radius: var(--r-sm); transition: background .12s ease;
}
.navdrop-card a.prod:hover { background: var(--violet-050); }
.navdrop-card .p-ico {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--violet-100); color: var(--violet-700);
}
.navdrop-card .p-ico svg { width: 19px; height: 19px; }
.navdrop-card a.prod:nth-child(2) .p-ico { background: var(--sky-100); color: var(--sky-700); }
.navdrop-card .p-txt { flex: 1; min-width: 0; }
.navdrop-card .p-txt b { display: flex; align-items: center; gap: 7px; font-size: 14.5px; }
.navdrop-card .p-txt small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.navdrop-card .p-price { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.navdrop-card .p-here {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; background: var(--violet-100); color: var(--violet-700);
  border-radius: var(--r-pill); padding: 2px 7px;
}

/* ---------- promo ribbon ---------- */
.promo-ribbon {
  display: none; justify-content: center; align-items: center; gap: 10px;
  background: linear-gradient(90deg, var(--violet-700), var(--violet));
  color: #fff; font-weight: 700; font-size: 14px; padding: 9px 16px; text-align: center;
}
.promo-ribbon.on { display: flex; }
.promo-ribbon .code {
  font-family: var(--mono); background: rgba(255,255,255,.16);
  border-radius: var(--r-pill); padding: 2px 10px; letter-spacing: .06em;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero-mesh {
  position: absolute; inset: -20% -10% auto -10%; height: 760px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 50% at 12% 8%, rgba(124,58,237,.20), transparent 70%),
    radial-gradient(34% 46% at 88% 4%, rgba(14,165,233,.16), transparent 70%),
    radial-gradient(40% 50% at 70% 38%, rgba(17,179,100,.13), transparent 72%),
    radial-gradient(30% 40% at 26% 46%, rgba(245,158,11,.12), transparent 70%);
  filter: blur(8px);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 14px 0 16px; }
.hero h1 .hl {
  background: linear-gradient(90deg, var(--violet), var(--indigo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { font-size: 18px; color: var(--ink-2); line-height: 1.6; max-width: 520px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.cta-sub { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.trust-row svg { width: 15px; height: 15px; color: var(--green); flex: none; }

/* ---------- hero explainer video ---------- */
.hero-video-col { align-self: center; }
.hero-video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--r-lg); overflow: hidden; background: #000;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-video-cap { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 14px; font-family: var(--mono); }

/* ---------- section scaffolding ---------- */
section.band { padding: 74px 0; }
section.band.tint { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 12px 0 12px; }
.sec-head p { color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }

/* tie-in strip */
.tiein { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 22px 0; }
.tiein .lockup { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink-2); font-size: 14.5px; }
.tiein img { height: 20px; }
.tiein .sep { color: var(--ink-4); }
.tiein .line { font-size: 14.5px; color: var(--ink-2); }
.tiein .line b { color: var(--violet-700); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 26px 24px; overflow: hidden; }
.step .num {
  font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1;
  color: var(--violet-100); position: absolute; top: 16px; right: 20px;
}
.step .ico {
  width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--violet-100); color: var(--violet-700); margin-bottom: 16px;
}
.step:nth-child(2) .ico { background: var(--sky-100); color: var(--sky-700); }
.step:nth-child(3) .ico { background: var(--amber-100); color: var(--amber-700); }
.step .ico svg { width: 21px; height: 21px; }
.step h3 { font-size: 18.5px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- product mock ("see exactly what you get") ---------- */
.appmock {
  max-width: 980px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.appmock .chrome {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.appmock .dots { display: flex; gap: 5px; }
.appmock .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.appmock .urlbar {
  flex: 1; max-width: 320px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 5px 14px;
}
.appmock .livechip {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-700);
}
.appmock .livechip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.appmock-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.appmock-panel { padding: 26px 28px; }
.appmock-panel + .appmock-panel { border-left: 1px solid var(--line); }
.appmock-panel .panel-k {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px;
}

/* scorecard panel */
.am-score { display: flex; align-items: center; gap: 18px; }
.am-dial { position: relative; width: 92px; height: 92px; flex: none; }
.am-dial svg { transform: rotate(-90deg); }
.am-dial .n {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 28px;
}
.am-score .verdict { font-family: var(--display); font-weight: 800; font-size: 18px; }
.am-score .badges { justify-content: flex-start; margin-top: 8px; }
.am-checks { margin-top: 18px; display: grid; gap: 9px; }
.am-check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.am-check .ic {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.am-check .ic svg { width: 11px; height: 11px; }
.am-check.pass .ic { background: var(--green-100); color: var(--green-700); }
.am-check.miss .ic { background: var(--coral-100); color: #be123c; }
.am-coach {
  margin-top: 16px; background: var(--violet-050); border: 1.5px solid var(--violet-100);
  border-radius: var(--r-sm); padding: 12px 14px; font-size: 13px; line-height: 1.55; color: var(--ink-2);
}
.am-coach b { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: 4px; }

@media (max-width: 860px) {
  .appmock-body { grid-template-columns: 1fr; }
  .appmock-panel + .appmock-panel { border-left: none; border-top: 1px solid var(--line); }
}

/* ---------- personas ---------- */
.personas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.persona { padding: 18px 18px 16px; transition: transform .15s ease, box-shadow .2s ease; }
.persona:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.persona .tag { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.persona h4 { font-size: 15.5px; margin: 6px 0 8px; }
.persona q { display: block; font-size: 13px; color: var(--ink-2); font-style: italic; line-height: 1.5; quotes: '"' '"'; }

/* ---------- leaderboard section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split .copy h2 { font-size: clamp(24px, 3vw, 34px); margin: 12px 0 14px; }
.split .copy p { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.split .copy ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.split .copy li { display: flex; gap: 11px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.split .copy li svg { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 2px; }
.split .copy li b { color: var(--ink); }

.lb-mock { padding: 20px 22px; box-shadow: var(--shadow-lg); }
.lb-mock .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lb-mock .hd h4 { font-size: 15.5px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.lb-row:last-child { border-bottom: none; }
.lb-row .rk { font-family: var(--display); font-weight: 800; color: var(--ink-3); width: 18px; }
.lb-row .who { font-weight: 700; flex: 1; }
.lb-row .who small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11.5px; }
.lb-row .xp { font-family: var(--mono); font-weight: 700; color: var(--violet-700); }
.lb-bar { height: 6px; border-radius: var(--r-pill); background: var(--bg-2); width: 90px; overflow: hidden; }
.lb-bar i { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, #8b5cf6, var(--violet)); }

/* ---------- pricing ---------- */
.price-card {
  max-width: 460px; margin: 0 auto; text-align: center; padding: 40px 36px 34px;
  border: 1.5px solid var(--violet-100); box-shadow: var(--shadow-lg); position: relative;
}
.price-card .plan-eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.price-figure { font-family: var(--display); font-weight: 800; font-size: 62px; letter-spacing: -.03em; margin: 12px 0 2px; }
.price-figure small { font-size: 20px; color: var(--ink-3); font-weight: 700; }
.price-note { color: var(--ink-3); font-size: 14px; }
.price-includes { margin: 24px 0; padding: 0; list-style: none; display: grid; gap: 11px; text-align: left; }
.price-includes li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.price-includes svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 2px; }
.price-promo {
  display: none; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--green-700);
  background: var(--green-100); border-radius: var(--r-sm); padding: 9px 12px;
}
.price-promo.on { display: block; }

/* ---------- faq ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 15.5px;
  padding: 17px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 18px; color: var(--violet); transition: transform .18s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 20px 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }

/* ---------- final cta ---------- */
.cta-band { text-align: center; padding: 80px 0 90px; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 14px; }
.cta-band p { color: var(--ink-2); font-size: 16.5px; margin-bottom: 26px; }

/* ---------- scroll reveal ---------- */
.reveal-up { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal-up.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-video-col { max-width: 560px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .personas { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .personas { grid-template-columns: 1fr; }
  .price-figure { font-size: 52px; }
}
