/*
 * CallCoach consumer site — derived from the Icana "Clarity" design system
 * (design/reference/site-v3.css). Standalone: no Bootstrap, no build step.
 * Raleway = headings, Outfit = body/buttons. Indigo scale is the brand.
 */

/* ============ 1. TOKENS ============ */
:root {
  color-scheme: light;

  --in-50:  #EFF1FE;
  --in-100: #E0E6FE;
  --in-200: #C7D2FF;
  --in-300: #A6B4FD;
  --in-400: #8299F7;
  --in-500: #647FF2;
  --in-600: #4766E5;
  --in-700: #3756CB;
  --in-800: #3146A3;
  --in-900: #2D3F7F;
  --in-950: #1B244B;

  --primary-btn: #3146A3;
  --accent: #4766E5;
  --ink: #16203F;
  --body-color: #3F4657;
  --muted: #646B80;
  --line: #E4E8F7;
  --tint: #F7F8FE;
  --surface: #fff;
  --card-bg: #fff;
  --wash: var(--in-50);
  --wash-line: var(--in-100);
  --ink-strong: var(--in-950);
  --link: var(--in-700);
  --link-hover: var(--in-600);
  --accent-text: var(--in-600);
  --grad: linear-gradient(100deg, #4766E5 0%, #8299F7 100%);
  --grad-dark: linear-gradient(160deg, #1B244B 0%, #2D3F7F 78%, #3146A3 100%);

  --good: #1E9E6A;           /* score-up green, matches the app's drill card */
  --good-soft: #E5F6EE;

  --r-card: 20px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(27, 36, 75, 0.06), 0 2px 8px rgba(27, 36, 75, 0.05);
  --shadow-md: 0 2px 6px rgba(27, 36, 75, 0.06), 0 12px 32px rgba(27, 36, 75, 0.10);
  --shadow-lg: 0 4px 12px rgba(27, 36, 75, 0.08), 0 24px 64px rgba(27, 36, 75, 0.14);

  --sec-y: clamp(4rem, 3rem + 4vw, 7rem);
  --nav-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #EDF0FC;
    --body-color: #C7CDE1;
    --muted: #A4ABC6;
    --line: #262E52;
    --tint: #10152E;
    --surface: #0D1226;
    --card-bg: #151B36;
    --wash: #1B2244;
    --wash-line: #293158;
    --ink-strong: #F4F6FF;
    --link: var(--in-300);
    --link-hover: var(--in-200);
    --accent-text: var(--in-400);
    --good-soft: #12301F;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.45), 0 24px 64px rgba(0, 0, 0, 0.4);
  }
}

/* ============ 2. BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body-color);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
p { margin: 0 0 1rem; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
::selection { background: var(--in-200); color: var(--in-950); }
img { max-width: 100%; }

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: var(--sec-y); }
.section-tint { background: var(--tint); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--grad);
}
.section-title { font-size: clamp(1.75rem, 1.35rem + 1.9vw, 2.625rem); }
.section-lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 46rem;
}
.grad-text {
  background: linear-gradient(95deg, #3756CB 0%, #647FF2 60%, #8299F7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ 3. BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: var(--r-pill);
  padding: 0.85rem 1.75rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.btn-primary {
  background: var(--primary-btn);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--in-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--link);
  border-color: var(--wash-line);
}
.btn-ghost:hover { background: var(--wash); }
.btn-light { background: #fff; color: var(--in-900); }
.btn-light:hover { background: var(--in-100); color: var(--in-950); transform: translateY(-1px); }

/* ============ 4. NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
/* One phrase, one weight — "CallCoach: Sales Rehearsal" reads as a single name */
.wordmark {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
  white-space: nowrap;
}
.wordmark img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.1rem; font-size: 0.95rem; }
.nav-links a { text-decoration: none; }

/* ============ 5. HERO (photo overlay, mirrors icana.ai's hero-overlay) ============ */
.hero-overlay {
  position: relative;
  min-height: clamp(520px, 78vh, 720px);
  display: flex;
  align-items: center;
  background: var(--in-950);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% center;   /* subject sits on the right third */
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(13, 18, 38, 0.94) 0%,
    rgba(13, 18, 38, 0.82) 38%,
    rgba(13, 18, 38, 0.35) 68%,
    rgba(13, 18, 38, 0.15) 100%);
}
.hero-overlay .wrap { position: relative; z-index: 1; padding-block: clamp(3.5rem, 6vh, 5rem); }
.hero-copy { max-width: 34rem; }
.hero-overlay .eyebrow { color: var(--in-300); }
.hero-overlay h1 {
  font-size: clamp(2.4rem, 1.8rem + 3vw, 3.9rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #fff;
}
.hero-overlay .section-lead { color: var(--in-100); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.75rem 0 0.9rem; }
.hero-note { font-size: 0.9rem; color: var(--in-200); }
.hero-note strong { color: #fff; font-weight: 600; }
.hero-overlay .btn-ghost { color: var(--in-100); border-color: rgba(255, 255, 255, 0.35); }
.hero-overlay .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* CSS rendition of the app's drill share card */
.drill-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem 1.75rem 1.5rem;
  max-width: 380px;
  margin-inline: auto;
  transform: rotate(1.5deg);
}
/* Inside the dark band the card needs its light-scheme colors pinned */
.band-dark .drill-card { border: none; }
.drill-card .card-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.drill-card .card-brand img { height: 17px; width: auto; }
.drill-card .card-kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.3rem;
}
.drill-card h3 {
  font-size: 1.45rem; margin-bottom: 1.2rem; color: var(--ink-strong);
}
.drill-card .scores { display: flex; align-items: flex-end; gap: 1.6rem; margin-bottom: 1.2rem; }
.drill-card .score-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.15rem; }
.drill-card .score-avg { font-size: 1.6rem; font-weight: 600; color: var(--muted); font-family: 'Raleway', sans-serif; }
.drill-card .score-this { font-size: 2.9rem; font-weight: 800; color: var(--good); font-family: 'Raleway', sans-serif; line-height: 1; }
.drill-card .score-delta {
  font-size: 0.85rem; font-weight: 600; color: var(--good);
  background: var(--good-soft); border-radius: var(--r-pill);
  padding: 0.15rem 0.6rem; margin-left: 0.4rem; vertical-align: middle;
}
.drill-card .skill-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--wash); border: 1px solid var(--wash-line);
  border-radius: var(--r-pill); padding: 0.35rem 0.85rem;
  font-size: 0.85rem; color: var(--ink);
}
.drill-card .skill-chip b { color: var(--accent-text); }

/* ============ 6. STEPS ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.step {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--wash); border: 1px solid var(--wash-line);
  color: var(--accent-text); font-weight: 700; font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { margin: 0; font-size: 0.97rem; color: var(--muted); }

/* ============ 7. FEATURES ============ */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.feature {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.feature h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.99rem; }

/* ============ 8. CHALLENGE BAND ============ */
.band-dark {
  background: var(--grad-dark);
  border-radius: var(--r-card);
  color: var(--in-100);
  padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; align-items: center;
  box-shadow: var(--shadow-lg);
}
.band-dark h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.band-dark p { color: var(--in-200); margin: 0; }
.band-dark .band-cta { text-align: right; }
@media (max-width: 720px) { .band-dark .band-cta { text-align: left; } }

/* ============ 9. PRICING STRIP ============ */
.pricing {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  padding: 1.9rem 2rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 2.25rem;
}
.price-item h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.price-item p { margin: 0; font-size: 0.94rem; color: var(--muted); }

/* ============ 10. FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: 0.92rem;
  color: var(--muted);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
footer a { text-decoration: none; }

/* ============ 11. FULLSCREEN PAGES (/c/, /r/) ============ */
.full-dark {
  min-height: 100dvh;
  background: var(--grad-dark);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.challenge-card {
  max-width: 460px; width: 100%;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-card);
  padding: 2.4rem 2.2rem 2.1rem;
  color: var(--in-100);
  text-align: center;
  backdrop-filter: blur(6px);
}
.challenge-card .eyebrow { color: var(--in-300); justify-content: center; }
.challenge-card h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 2.4rem); margin-bottom: 0.75rem; }
.challenge-card p { color: var(--in-200); }
.challenge-card .brandline {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--in-300); margin-bottom: 1.6rem;
}
.challenge-card .brandline img { height: 18px; width: auto; }
.code-box {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  margin: 1.4rem 0 0.5rem;
  color: #fff;
  word-break: break-all;
  user-select: all;
}
.code-hint { font-size: 0.8rem; color: var(--in-300); margin-bottom: 1.5rem; }
.challenge-card .btn { width: 100%; }
.challenge-card .after { margin-top: 1.1rem; font-size: 0.87rem; color: var(--in-300); }
.challenge-card .after a { color: var(--in-200); }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 1.2rem;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 12. RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .drill-card { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .band-dark { grid-template-columns: 1fr; }
  .nav-links .btn { padding: 0.6rem 1.15rem; }
  /* Two anchor links don't earn a hamburger — keep wordmark + CTA only */
  .nav-links a:not(.btn) { display: none; }
  .wordmark { font-size: 1rem; gap: 0.5rem; }
  .wordmark img { height: 22px; }
}
