/*
 * theme.css — WRITTEN BY THE PLATFORM. Do not edit.
 *
 * Palette: Your colours (custom)
 * Source colours: #121e19 #f7faf8 #163c35 #7fd3b5 #ffffff
 *
 * Every value below is either one of those five or derived from them, and each
 * one is contrast-corrected against this palette's own background. Consume
 * them with var(--token); never write a colour value in app code.
 */

:root {
  --canvas: #163c35;
  --surface: #2d5049;
  --surface-2: #22463f;
  --border: #375751;
  --border-strong: #5c7772;
  --ink: #f7faf8;
  --muted: #b3c0bd;
  --accent: #7fd3b5;
  --accent-hover: #92dac0;
  --accent-ink: #121e19;
  --accent-text: #7fd3b5;
  --accent-strong: #92dac0;
  --accent-soft: #2d5d51;
  --accent-border: #45806f;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #164b37;
  --success-strong: #86be9b;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #39412b;
  --warning-strong: #d6a076;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #3a3530;
  --danger-strong: #db8a8a;}

/**
 * app.css — The Close Lab.
 *
 * Loads after design.css and theme.css and is unlayered, so everything here
 * wins outright. Two things happen below: a small retune of the shared
 * tokens (tighter radius, deeper shadow — a masterclass, not a dashboard),
 * then the page-specific sections design.css has no opinion about: the hero,
 * the roadmap, the countdown, the pricing band.
 *
 * Every colour is a var(--token); nothing here is a hex, rgb() or hsl().
 */

:root {
  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px color-mix(in srgb, var(--ink) 25%, transparent);
  --shadow-raised: 0 30px 70px -28px color-mix(in srgb, var(--ink) 70%, transparent);
}

/* ---- Cards: red border on every card, per request -------------------- */
.card {
  border-color: var(--danger);
}

/* ---- Brand mark: a monogram with real presence, not a flat chip ------- */
.brand-mark {
  position: relative;
  border-radius: var(--radius-sm);
  background: linear-gradient(155deg, var(--accent) 0%, var(--accent-hover) 100%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 35%, transparent),
    inset 0 -6px 10px -4px color-mix(in srgb, var(--ink) 35%, transparent),
    0 6px 16px -6px color-mix(in srgb, var(--accent) 75%, transparent);
  font-family: var(--font-mono);
  letter-spacing: -0.04em;
  text-shadow: 0 1px 0 color-mix(in srgb, white 20%, transparent);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--accent-ink) 18%, transparent);
  pointer-events: none;
}
.brand:hover .brand-mark {
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 40%, transparent),
    inset 0 -6px 10px -4px color-mix(in srgb, var(--ink) 35%, transparent),
    0 8px 20px -6px color-mix(in srgb, var(--accent) 90%, transparent);
}
.brand-name {
  font-weight: var(--fw-semi);
  letter-spacing: -0.01em;
}

/* ---- Shared section rhythm ---------------------------------------------- */
.section { padding-block: var(--s-10); }

.eyebrow {
  display: block;
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--accent-text);
  margin-bottom: var(--s-2);
}

.section-title {
  font-size: var(--t-3xl);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: var(--lh-tight);
}

.on-accent { color: var(--accent-ink); }
.on-accent-muted { color: var(--accent-ink); opacity: 0.82; }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding: var(--s-12) var(--s-6) var(--s-10);
  margin: var(--s-6) 0 var(--s-9);
  text-align: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 55% at 82% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%),
    var(--surface);
}

.hero-inner {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-inner > * + * {
  margin-top: var(--s-5);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 20%, transparent), transparent),
    var(--accent-soft);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--accent-ink) 12%, transparent),
    0 6px 18px -10px color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--accent-strong);
  font-size: var(--t-xs);
  font-weight: var(--fw-medium);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.hero-sub {
  font-size: var(--t-lg);
  line-height: var(--lh);
  color: var(--muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--s-2);
}

/* The hero sits on --surface, so the system's transparent ghost border
   reads as no border at all. Give the hero's secondary action a visible
   outline of its own, without changing .btn-ghost anywhere else. */
.hero-actions .btn-ghost {
  border-color: var(--border-strong);
  color: var(--ink);
}
.hero-actions .btn-ghost:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--s-3);
}

/* ---- Stats bar ------------------------------------------------------------ */
.stats-bar { padding-block: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
  padding: var(--s-7) var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-block { text-align: center; }
.stat-num {
  font-family: var(--font-mono);
  font-size: var(--t-3xl);
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: -0.01em;
}
.stat-lbl {
  margin-top: var(--s-1);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--muted);
}

/* ---- Problem cards --------------------------------------------------------- */
.problem-card { text-align: left; }
.problem-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Curriculum roadmap ----------------------------------------------------- */
.roadmap { display: flex; flex-direction: column; max-width: 640px; }
.roadmap-step { display: flex; gap: var(--s-5); position: relative; padding-bottom: var(--s-7); }
.roadmap-step:last-child { padding-bottom: 0; }
.roadmap-step:last-child .roadmap-line { display: none; }

.roadmap-num {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--t-sm);
  position: relative;
  z-index: 1;
}
.roadmap-line {
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--border-strong);
}
.roadmap-body { padding-top: var(--s-1); }

/* ---- Instructor ------------------------------------------------------------- */
.instructor-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-7);
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--danger);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  box-shadow: var(--shadow);
}
@media (max-width: 640px) {
  .instructor-card { grid-template-columns: 1fr; text-align: center; }
  .instructor-card > .instructor-avatar { margin-inline: auto; }
}
.instructor-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--t-xl);
  flex-shrink: 0;
}
.instructor-bio { color: var(--muted); max-width: 62ch; line-height: var(--lh); }

/* ---- Testimonials ------------------------------------------------------------ */
.testimonial-card { text-align: left; }
.testimonial-quote { font-size: var(--t-lg); line-height: var(--lh); color: var(--ink); }

/* ---- Countdown ----------------------------------------------------------------- */
.countdown { display: flex; gap: var(--s-3); margin: var(--s-4) 0 var(--s-6); flex-wrap: wrap; }
.countdown-cell {
  background: color-mix(in srgb, var(--accent-ink) 14%, transparent);
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
  text-align: center;
  min-width: 64px;
}
.countdown-num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t-2xl);
  font-weight: 700;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.countdown-lbl {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--accent-ink);
  opacity: 0.78;
}

/* ---- Pricing --------------------------------------------------------------------- */
.pricing-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-9);
  align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: var(--radius-lg);
  padding: var(--s-9);
  box-shadow: var(--shadow-raised);
}
@media (max-width: 860px) {
  .pricing-band { grid-template-columns: 1fr; padding: var(--s-7); }
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--danger);
  border-radius: var(--radius-lg);
  padding: var(--s-7);
  box-shadow: var(--shadow-raised);
}
.pricing-amount {
  font-family: var(--font-mono);
  font-size: var(--t-4xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pricing-list { display: flex; flex-direction: column; margin-top: var(--s-5); }
.pricing-list li + li { margin-top: var(--s-3); }
.pricing-list li { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--t-sm); color: var(--ink); }
.pricing-list li .icon { color: var(--success-text); flex-shrink: 0; margin-top: 2px; }

/* ---- Final CTA ------------------------------------------------------------------- */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border: 1px solid var(--danger);
  border-radius: var(--radius-lg);
  padding: var(--s-10) var(--s-6);
}
.final-cta-sub { max-width: 42ch; margin-inline: auto; }
.final-cta-btn { background: var(--surface); color: var(--ink); }
.final-cta-btn:hover { background: var(--surface-2); }

/* ---- Footer -------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding-top: var(--s-6); margin-top: var(--s-9); }

/* ---- Small screens --------------------------------------------------------------- */
@media (max-width: 480px) {
  .section { padding-block: var(--s-9); }
  .pricing-amount { font-size: var(--t-3xl); }
  .countdown-cell { min-width: 56px; padding: var(--s-2) var(--s-3); }
}
