/* ============================================================
   KenAI Landing — shared styles
   Brand: KenAI-Brand-Colours.pdf v1.0
   - Brand purple  #6F36DD  (CTAs, highlights, focus rings)
   - Success       #00BF63  (Submitted / on-track)
   - Error         #D4183D  (errors, "not included")
   - Radius 10px, solid colours only (no gradients), dark-first
   - Background overridden to pure black per marketing request
   ============================================================ */

/* ---------- Self-hosted fonts ----------
   Display: Chivo (Light 300 / ExtraBold 800)
   Body:    DM Sans (400 / 500 / 600 / 700) */

@font-face {
  font-family: "Chivo";
  src: url("../fonts/Chivo-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chivo";
  src: url("../fonts/Chivo-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --surface: #18181a;   /* cards, quotes, form panels (brand bg-secondary);
                           #1C1C1E is reserved for the menu bar only */
  --surface-2: #232323; /* buttons, chips, inputs */
  --border: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --text-70: rgba(255, 255, 255, 0.7);
  --text-50: rgba(255, 255, 255, 0.5);
  --text-30: rgba(255, 255, 255, 0.3);
  --brand: #6f36dd;
  --brand-soft: rgba(111, 54, 221, 0.16);
  --success: #00bf63;
  --success-soft: rgba(0, 191, 99, 0.14);
  --error: #d4183d;
  --error-soft: rgba(212, 24, 61, 0.14);
  --radius: 10px;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Chivo", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 840px; }

/* ---------- Header ---------- */

/* fixed bar, hidden over the hero — slides in once the user scrolls
   past it (.site-header--visible toggled by js/main.js) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  /* same surface tone as the app's cards/sidebar (#1C1C1E) —
     no border, no shadow */
  background: #1c1c1e;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.35s;
}
.site-header--visible {
  transform: translateY(0);
  visibility: visible;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.site-header .logo img { height: 52px; width: auto; }

.header-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: #7e48e6; }

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn--secondary:hover { border-color: rgba(255, 255, 255, 0.45); }

.btn--small { padding: 9px 16px; font-size: 14px; }

/* ---------- Type helpers ---------- */

.eyebrow {
  display: block;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
/* eyebrow on pure black needs the lighter tint for contrast */
.eyebrow { color: #9d6ff5; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

h3 { font-size: 19px; font-weight: 700; }

.lead { color: var(--text-70); font-size: clamp(17px, 2vw, 20px); }

.micro-proof {
  color: var(--text-50);
  font-size: 14px;
  margin-top: 16px;
}
.micro-proof strong { color: var(--text-70); font-weight: 600; }

.section-intro { color: var(--text-70); max-width: 640px; }

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }

.section-head { margin-bottom: 36px; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 84px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .lead { margin-top: 18px; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 6fr 5fr; gap: 56px; }
}

/* ---------- Status pills ---------- */

.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.5;
}
.pill--progress { color: #b493f2; background: var(--brand-soft); }
.pill--submitted { color: var(--success); background: var(--success-soft); }
.pill--locked { color: var(--text-30); background: rgba(255, 255, 255, 0.06); }

/* ---------- Cards / quotes / callouts ---------- */

.card {
  background: var(--surface);
  border: none;
  border-radius: 14px;
  padding: 24px;
}

.card--pad-lg { padding: 32px; }

.quote {
  position: relative;
  background: var(--surface);
  border: none;
  border-radius: 14px;
  padding: 20px 24px 20px 58px;
  color: var(--text-70);
  font-size: 16.5px;
  margin: 24px 0 0;
}
.quote::before {
  content: "\201C";
  position: absolute;
  left: 20px;
  top: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 42px;
  line-height: 1;
  color: var(--brand);
}
.quote--legal { font-size: 14.5px; }
.quote--legal::before { color: var(--text-30); }

.grid { display: grid; gap: 20px; }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Steps (product contract) ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: 14px;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps--6 { }

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: none;
  border-radius: 14px;
  padding: 18px;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}
.steps li b { display: block; margin-bottom: 2px; }
.steps li span { color: var(--text-50); font-size: 14px; }

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; border-radius: 14px; }

table.tbl { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--surface); }
table.tbl th, table.tbl td { padding: 14px 18px; text-align: left; vertical-align: top; }
table.tbl th {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-50);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
}
table.tbl td { border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-70); font-size: 15px; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

table.tbl .price { color: var(--text); font-weight: 700; white-space: nowrap; }

/* ---------- mobile: tables stack into labeled rows ---------- */

@media (max-width: 640px) {
  .table-scroll { overflow: hidden; border-radius: 14px; }
  table.tbl { min-width: 0; }
  table.tbl thead { display: none; }
  table.tbl, table.tbl tbody, table.tbl tr, table.tbl td { display: block; width: 100%; }

  table.tbl tr { padding: 16px 18px; }
  table.tbl tr + tr { border-top: 1px solid rgba(255, 255, 255, 0.06); }

  table.tbl td {
    padding: 0;
    border: none;
    white-space: normal;
  }
  table.tbl td + td { margin-top: 10px; }

  table.tbl td::before {
    content: attr(data-label);
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-30);
    margin-bottom: 2px;
  }

  table.tbl td:first-child { white-space: normal; }
  table.tbl tbody tr:hover td { background: transparent; }
}

/* Compare table (ChatGPT vs KenAI) */
table.tbl--compare td:first-child { color: var(--text-50); font-weight: 500; }
table.tbl--compare td:last-child { color: var(--text); font-weight: 600; }
table.tbl--compare th:last-child { color: #9d6ff5; }

/* ---------- Check / cross lists (freemium preview) ---------- */

.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-70); }
.checklist .ic {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}
.checklist--yes .ic { background: var(--success-soft); color: var(--success); }
.checklist--no .ic { background: var(--error-soft); color: var(--error); }
.checklist--no li { color: var(--text-50); }

/* ---------- Chips (selectors) ---------- */

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  background: var(--surface-2);
  border: none;
  color: var(--text-70);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}
.chip:hover { background: #2c2c2f; }
.chip[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}
.chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.chip--waitlist { position: relative; }
.chip--waitlist::after {
  content: "waitlist";
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-30);
  margin-left: 8px;
}
.chip--waitlist[aria-pressed="true"]::after { color: rgba(255, 255, 255, 0.7); }

.selector-label {
  display: block;
  font-weight: 700;
  font-size: 17px;
  margin: 26px 0 12px;
}
.selector-label:first-child { margin-top: 0; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--surface);
  border: none;
  border-radius: 14px;
  padding: 28px;
}
@media (min-width: 760px) { .form-card { padding: 36px; } }

.form-grid { display: grid; gap: 18px; }
@media (min-width: 760px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-70);
  margin-bottom: 7px;
}
.field label .req { color: #9d6ff5; }

.field input[type="email"],
.field input[type="text"],
.field select {
  width: 100%;
  background: var(--surface-2);
  border: none;
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  padding: 12px 14px;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field input:focus, .field select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand);
}

.form-note { color: var(--text-50); font-size: 13px; margin-top: 16px; }
.form-note a { color: var(--text-70); text-decoration: underline; }

.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* checkbox chips for multi-select subjects */
.check-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.check-chips label {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-70);
  cursor: pointer;
  margin: 0;
}
.check-chips input { position: absolute; opacity: 0; pointer-events: none; }
.check-chips label:has(input:checked) {
  background: var(--brand);
  color: #fff;
}
.check-chips label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Feature bullets ---------- */

.feature { padding: 22px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-50); font-size: 14.5px; }
.feature .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand);
  margin-bottom: 14px;
}
.feature .dot--green { background: var(--success); }

/* ---------- Mockup showcase ---------- */

.mockup-wrap { display: flex; justify-content: center; }
.mockup-wrap img { width: 100%; height: auto; max-width: 880px; }
.mockup-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; max-width: 620px; margin: 0 auto; }

.caption { text-align: center; color: var(--text-30); font-size: 13px; margin-top: 14px; }

/* ---------- Pricing cards ---------- */

.plan-highlight { position: relative; }
.plan-highlight .plan-badge,
.plan-card--hl .plan-badge,
.plan-card--best .plan-badge {
  position: absolute;
  top: -12px; left: 20px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- Form success (shown in place of the form after submit) ---------- */

.form-success { text-align: center; padding: 24px 0; }
.form-success .tick {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.form-success p { color: var(--text-70); margin-top: 10px; }

/* ---------- Notices / legal ---------- */

.notice {
  color: var(--text-50);
  font-size: 14px;
  background: var(--surface);
  border: none;
  border-radius: 14px;
  padding: 16px 20px;
}

.disclaimers { display: grid; gap: 12px; }

/* ---------- rotating notices (pricing intro slideshow) ---------- */

.notice-rotator { display: grid; gap: 16px; }
.notice-slide {
  grid-column: 1;
  grid-row: 1;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  padding: 24px;
  color: var(--text-50);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.notice-slide.is-active { opacity: 1; pointer-events: auto; }
.notice-slide .clarity-icon { width: 40px; height: 40px; margin-bottom: 14px; }
.notice-slide .clarity-icon svg { width: 20px; height: 20px; }
.notice-slide p { margin: 0; }

.notice-label {
  display: block;
  color: #9d6ff5;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}


/* ---------- Footer (mirrors the live eduken.ai footer) ---------- */

.site-footer {
  background: #000000;
  padding: 44px 0 40px;
  color: var(--text-50);
  font-size: 13.5px;
  line-height: 1.7;
}

.foot-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

.foot-text p { margin-bottom: 4px; }
.foot-text a { color: var(--text-70); text-decoration: underline; }
.foot-text a:hover { color: var(--text); }
.foot-copy { margin-top: 16px; color: var(--text-30); }

.foot-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
}
.foot-nav a { color: var(--text-50); text-decoration: none; }
.foot-nav a:hover { color: var(--text); text-decoration: underline; }
/* coming-soon tracks — non-clickable, dimmed like the nav dropdown */
.foot-nav .fn-soon { color: var(--text-30); cursor: default; }
.fn-head {
  color: var(--text-70);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fn-head--gap { margin-top: 12px; }

.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.foot-social a:hover { background: var(--brand); transform: translateY(-2px); }

/* ============================================================
   V2 — Dynamic design layer
   Alternating #000000 / #121213 bands, animated hero backdrop
   (kenai-bg.png), floating AI head (ai-head.png), scroll-reveal
   and hover micro-interactions. Honors prefers-reduced-motion.
   ============================================================ */

html { scroll-padding-top: 104px; }

/* ---------- alternating background bands ---------- */

body > section:nth-of-type(even) { background: #121213; }

/* the block right before the (black) footer must never be black itself */
body > section:last-of-type { background: #121213; }

.site-footer { margin-top: 0; }

/* ---------- keyframes ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* pure symmetric zoom — starts receded and faint, eases up to natural
   size while brightening; no translate, so the image stays centered */
@keyframes panZoom {
  from { transform: scale(0.9); opacity: 0.4; }
  to { transform: scale(1); opacity: 0.8; }
}

@keyframes chipPop {
  0% { transform: scale(0.9); }
  60% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

/* ---------- animated hero backdrop (kenai-bg.png) ---------- */

.hero, .ty-hero { position: relative; overflow: hidden; isolation: isolate; }
.hero > .container, .ty-hero > .container { position: relative; z-index: 1; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/kenai-bg.png") center / cover no-repeat;
  opacity: 0.8;
  animation: panZoom 26s ease-in-out infinite alternate;
  will-change: transform;
}

/* fade the dots out toward the bottom so sections blend in */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
  pointer-events: none;
}

/* ---------- hero entrance choreography ---------- */

.hero-copy > * { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.34s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.44s; }

/* ---------- scroll reveal (class added by JS) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal--in { opacity: 1; transform: none; }

/* ---------- hover micro-interactions ---------- */

.btn { transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.18s ease, box-shadow 0.18s ease; }
/* subtle: just a gentle lighten (base rule) plus a soft, close shadow */
.btn--primary:hover {
  box-shadow: 0 3px 10px rgba(111, 54, 221, 0.25);
}

.card {
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  background: #1e1e21;
}

.steps li { transition: transform 0.25s ease, background-color 0.25s ease; }
.steps li:hover { transform: translateY(-4px); background: #1e1e21; }

table.tbl tbody tr { transition: background-color 0.15s ease; }
table.tbl tbody tr:hover td { background: rgba(111, 54, 221, 0.07); }

.chip { transition: border-color 0.12s ease, background-color 0.12s ease,
    color 0.12s ease, transform 0.15s ease; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { animation: chipPop 0.3s ease; }
.check-chips label { transition: background-color 0.12s ease, border-color 0.12s ease, transform 0.15s ease; }
.check-chips label:hover { transform: translateY(-2px); }

/* ---------- simple page header (pricing / preview) ----------
   direct and compact: no logo, no backdrop, no hero choreography;
   the fixed menu is always visible, so the body reserves its height */

body[data-header-always] { padding-top: 88px; }

.page-head { padding: 64px 0 12px; text-align: center; }
.page-head h1 { font-size: clamp(28px, 3.2vw, 40px); }
.page-head .lead { margin-top: 12px; }
.page-head .hero-ctas { justify-content: center; margin-top: 24px; }

/* ---------- header nav ---------- */

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
/* desktop: menu sits on the right, next to the header CTA */
@media (min-width: 881px) {
  .site-nav { margin-left: auto; margin-right: 32px; }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: none;
  background: none;
  border-radius: var(--radius);
  color: var(--text-70);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
.nav-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.nav-caret { font-size: 10px; opacity: 0.6; transition: transform 0.2s ease; }
.nav-item--dropdown:hover .nav-caret,
.nav-item--dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-item--dropdown { position: relative; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* padding-top keeps the hover alive across the gap under the button */
.dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 10px;
  display: none;
  z-index: 60;
}
.nav-item--dropdown:hover .dropdown,
.nav-item--dropdown:focus-within .dropdown,
.nav-item--dropdown.open .dropdown { display: block; }

.dropdown__panel {
  min-width: 240px;
  background: #1c1c1e; /* same surface as the menu bar — no border, no shadow */
  border-radius: var(--radius);
  padding: 8px;
  animation: dropIn 0.22s ease backwards;
}
.dropdown__panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.4;
}
.dropdown__panel a:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
/* non-clickable track names — dimmed to read as disabled */
.dropdown__panel span {
  display: block;
  padding: 8px 12px;
  color: var(--text-30);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  cursor: default;
}

/* ---------- hamburger (tablet / mobile) ---------- */

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-burger:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* open state: bars form an X */
.site-header.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-burger { display: flex; }

  /* nav becomes a panel dropping from the header bar */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1c1c1e; /* same surface as the bar */
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 20px 22px;
  }
  .site-header.nav-open .site-nav { display: flex; }

  .site-nav .nav-link { width: 100%; justify-content: flex-start; }

  /* tracks submenu unfolds in place instead of floating */
  .nav-item--dropdown { position: static; }
  .dropdown { position: static; padding-top: 0; }
  .dropdown__panel {
    min-width: 0;
    background: transparent;
    padding: 0 0 6px 14px;
    animation: none;
  }
  .dropdown__panel a,
  .dropdown__panel span { padding: 9px 12px; }
}

/* small phones (iPhone SE / 13 mini): logo + app icon + CTA + burger
   are wider than the bar, so flexbox squashes them. Shrink every item
   until the row fits with all four present. */
@media (max-width: 520px) {
  .site-header .container { height: 60px; padding: 0 16px; }
  .site-header .logo img { height: 36px; }
  .header-cta { gap: 6px; }
  /* .site-header prefix outranks the base .header-applink rule below */
  .site-header .header-applink { width: 36px; height: 36px; flex: none; }
  .header-cta .btn--small {
    padding: 8px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  .nav-burger { width: 40px; padding: 10px 8px; flex: none; }
}
/* the very narrowest phones (320px) */
@media (max-width: 360px) {
  .site-header .container { padding: 0 10px; }
  .site-header .logo img { height: 28px; }
  .site-header .header-applink { width: 32px; height: 32px; }
  .header-cta { gap: 5px; }
  .header-cta .btn--small { padding: 7px 8px; font-size: 12.5px; }
  .nav-burger { width: 36px; padding: 9px 7px; }
}

/* ---------- offer card (preview page opener) ---------- */

.offer-card {
  background: var(--surface);
  border-radius: 14px;
  padding: clamp(32px, 5vw, 56px);
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 860px) {
  .offer-card { grid-template-columns: 1fr auto; gap: 56px; }
}

.offer-badge {
  display: inline-block;
  background: var(--brand-soft);
  color: #9d6ff5;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.offer-copy h1 { font-size: clamp(28px, 3.2vw, 40px); }
.offer-copy p { color: var(--text-70); max-width: 54ch; margin-top: 12px; }
.offer-copy .hero-ctas { margin-top: 26px; }

.offer-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(80px, 10vw, 136px);
  line-height: 1;
  color: var(--brand);
  user-select: none;
}

/* ---------- track cards (route blocks, live-site style) ---------- */

.track-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.track-card:hover { transform: translateY(-4px); background: #1e1e21; }

.tc-name {
  color: #9d6ff5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tc-sub {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  margin: 8px 0 20px;
}
.track-card .btn { width: 100%; }

.tc-alt {
  display: inline-block;
  margin-top: 12px;
  color: #9d6ff5;
  font-size: 13.5px;
  font-weight: 600;
}
.tc-alt:hover { text-decoration: none; color: #b493f2; }
.tc-alt .arr { display: inline-block; transition: transform 0.2s ease; }
.tc-alt:hover .arr { transform: translateX(4px); }

.tc-deliv {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  text-align: left;
  flex-grow: 1;
}
.tc-row {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.tc-label {
  display: block;
  color: var(--text-30);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.tc-row p { color: var(--text-70); font-size: 13.5px; line-height: 1.5; }

/* ---------- pricing: intro path + plan cards ---------- */

.price-path {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 300px;
}
.pp-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.pp-step {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pp-label { color: var(--text-70); font-size: 14.5px; flex-grow: 1; }
.pp-price { font-family: var(--font-display); font-weight: 800; font-size: 16px; }

/* single-column centered variant (pricing intro) */
.offer-card--solo { display: block; text-align: center; }
.offer-card--solo .offer-copy p {
  margin-left: auto;
  margin-right: auto;
  max-width: 62ch;
}

.plan-card {
  position: relative;
  background: var(--surface);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.plan-card:hover { transform: translateY(-4px); background: #1e1e21; }
.plan-card--hl { background: var(--brand-soft); }
.plan-card--hl:hover { background: rgba(111, 54, 221, 0.22); }

.plan-cat {
  color: #9d6ff5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.plan-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.plan-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.1;
  margin: 12px 0 6px;
}
.plan-price .per {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-50);
}
.plan-price .price-was {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-30);
  text-decoration: line-through;
  margin-right: 2px;
}
.plan-card--best {
  border: 1px solid rgba(111, 54, 221, 0.6);
}
.plan-card--best:hover {
  background: var(--surface);
  border-color: rgba(157, 111, 245, 0.85);
}
.plan-desc { color: var(--text-50); font-size: 14.5px; }
.plan-card .checklist {
  margin-top: 18px;
  gap: 8px;
  font-size: 14px;
  flex-grow: 1;
  align-content: start;
}
.plan-card .checklist .ic { background: var(--brand-soft); color: #9d6ff5; opacity: 0.65; }
.plan-cta { margin-top: 22px; }
.plan-cta .btn { width: 100%; }

/* ---------- FAQ accordion ---------- */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.7fr);
  gap: 56px;
  align-items: start;
}
.faq-intro p { color: var(--text-50); margin-top: 14px; max-width: 32ch; }
.faq-intro .faq-more { color: var(--text-70); margin-top: 22px; }

.faq-list { display: grid; gap: 6px; }
.faq-item {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  transition: background-color 0.2s ease;
}
.faq-item:hover { background: rgba(255, 255, 255, 0.04); }
.faq-item[open] { background: var(--surface); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num {
  flex: none;
  width: 34px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(157, 111, 245, 0.45);
  transition: color 0.2s ease;
}
.faq-q { flex: 1; }
.faq-item summary::after {
  content: "+";
  flex: none;
  align-self: center;
  color: var(--text-30);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}
.faq-item summary:hover .faq-num,
.faq-item[open] .faq-num { color: #9d6ff5; }
.faq-item summary:hover::after,
.faq-item[open] summary::after { color: #9d6ff5; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 48px 20px 74px; }
.faq-a p { color: var(--text-70); font-size: 15px; }
.faq-a p + p { margin-top: 10px; }
.faq-flow { font-weight: 600; color: #9d6ff5; }

@media (max-width: 900px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro p { max-width: none; }
  .faq-intro br { display: none; }
  .faq-a { padding-right: 0; }
}

/* ---------- exam clarity statement (parent page) ---------- */

.clarity-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: #9d6ff5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.clarity-icon svg { width: 22px; height: 22px; }

.clarity-grid {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}
@media (min-width: 760px) {
  .clarity-grid { grid-template-columns: repeat(3, 1fr); }
}

.clarity-item {
  text-align: left;
  background: var(--surface);
  border-radius: 14px;
  padding: 28px 22px;
}
.clarity-item h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  margin: 14px 0 6px;
}
.clarity-item p {
  color: var(--text-50);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 34ch;
  margin: 0;
}

.clarity-sub {
  margin-top: 34px;
  color: var(--text-50);
  font-size: 14.5px;
}

/* route grids: narrower, centered cards */
.grid--route {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
/* track scroller: three cards in view, the rest reachable by horizontal scroll */
.track-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* top padding keeps the card hover lift inside the scroll clip */
  padding-top: 8px;
  margin-top: -8px;
  /* no visible scrollbar — the row scrolls by swipe / trackpad */
  scrollbar-width: none;
}
.track-scroller::-webkit-scrollbar { display: none; }
.track-scroller .track-card { scroll-snap-align: start; }
@media (max-width: 880px) {
  .track-scroller { grid-auto-columns: min(320px, 82%); }
}

/* tracks that are not open yet */
.track-card--soon { opacity: 0.55; }
.track-card--soon:hover { transform: none; background: var(--surface); }
.btn--disabled { pointer-events: none; cursor: default; opacity: 0.7; }

/* ---------- responsive visibility helpers ---------- */

@media (min-width: 768px) {
  .mobile-only { display: none !important; }
}
@media (max-width: 767.98px) {
  .desktop-only { display: none !important; }
}

/* ---------- header logo hover ---------- */

.site-header .logo img { transition: transform 0.25s ease; }
.site-header .logo:hover img { transform: scale(1.05); }

/* thank-you tick pop */
.ty-hero .tick { animation: chipPop 0.5s 0.2s ease backwards; }

/* ---------- reduced motion: switch it all off ---------- */

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

/* ============================================================
   V3 — Centered hero, matching the live eduken.ai first screen:
   stacked logo → light headline → bold tagline → translucent
   copy panel → pill CTAs, dotted walls on both sides with a
   clean centre corridor. No app photo in the hero.
   ============================================================ */

.hero--center { text-align: center; padding: 140px 0; margin-top: 24px; }

/* the dotted walls: zoomed out (full image width), anchored to the top
   so the image never crops there — overflow crops at the bottom only,
   where the fade gradient hides it */
.hero--center::before {
  opacity: 0.8;
  background-size: 100% auto;
  background-position: center top;
  transform-origin: center top;
  /* same zoom as panZoom, plus a scroll-driven parallax shift:
     js/main.js updates --hero-shift so the dots drift down and slide
     under the next section while the content scrolls normally */
  animation-name: panZoomShift;
}

@keyframes panZoomShift {
  from { transform: translateY(var(--hero-shift, 0px)) scale(0.9); opacity: 0.5; }
  to { transform: translateY(var(--hero-shift, 0px)) scale(1); opacity: 0.7; }
}

/* narrow screens: full-width dots would shrink to a sliver — cover instead */
@media (max-width: 900px) {
  .hero--center::before { background-size: cover; }
}

.hero--center .hero-logo {
  height: clamp(96px, 12vw, 150px);
  width: auto;
  margin: 0 auto 30px;
}

.hero--center h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 300;
  letter-spacing: 0.005em;
}

/* set by js/main.js on ≥768px viewports: hero text stays on one
   line, font auto-shrunk to fit; phones wrap normally */
.oneline { white-space: nowrap; }
.hero-panel.oneline { max-width: max-content; }

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 800;
  letter-spacing: -0.005em;
  margin-top: 12px;
}

.hero-panel {
  background: rgba(24, 24, 26, 0.72);
  border: none;
  border-radius: 8px;
  padding: 20px 30px;
  max-width: 860px;
  margin: 30px auto 0;
  color: var(--text-70);
  font-size: clamp(16px, 1.8vw, 18.5px);
  line-height: 1.65;
  backdrop-filter: blur(8px);
}

.hero--center .hero-ctas { justify-content: center; margin-top: 32px; }

/* pill buttons, live-site style */
.hero--center .btn { border-radius: 999px; padding: 14px 32px; }

.hero--center .micro-proof { margin-top: 24px; }

/* "Open KenAI Web App" link pinned to the hero's top-right corner —
   out of flow, so it never affects the hero's padding. Borderless; a
   hairline rule below it runs to the right edge of the page (the wide
   ::after is clipped by the hero's overflow: hidden). */
.hero-applink {
  position: absolute;
  top: 24px;
  /* right edge lines up with the centered .container content edge */
  right: max(20px, calc((100% - 1120px) / 2 + 20px));
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  color: var(--text-70);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
.hero-applink:hover { color: var(--text); }
.hero-applink svg { width: 15px; height: 15px; flex: none; }
.hero-applink::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 1px;
  background: var(--border);
}

/* thank-you heroes use the narrow (840px) container */
.ty-hero .hero-applink { right: max(20px, calc((100% - 840px) / 2 + 20px)); }

/* icon-only app link in the fixed header; the label shows as a tooltip */
.header-applink {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-70);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.header-applink:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.header-applink svg { width: 18px; height: 18px; flex: none; }
.header-applink::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  white-space: nowrap;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
  color: var(--text);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.header-applink:hover::after,
.header-applink:focus-visible::after { opacity: 1; transform: translateY(0); }

/* entrance choreography for centered hero content */
.hero--center .container > * { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.hero--center .container > *:nth-child(1) { animation-delay: 0.05s; }
.hero--center .container > *:nth-child(2) { animation-delay: 0.14s; }
.hero--center .container > *:nth-child(3) { animation-delay: 0.24s; }
.hero--center .container > *:nth-child(4) { animation-delay: 0.34s; }
.hero--center .container > *:nth-child(5) { animation-delay: 0.44s; }
.hero--center .container > *:nth-child(6) { animation-delay: 0.54s; }

/* logo drifts gently, like something alive */
.hero--center .hero-logo { animation: fadeUp 0.7s 0.05s cubic-bezier(0.16, 1, 0.3, 1) backwards; }

/* product screenshots section below the hero */
.demo-showcase { max-width: 920px; margin: 0 auto; }
.demo-cards { max-width: 920px; margin: 20px auto 0; }

/* ---------- legal pages (privacy policy / teen privacy notice) ----------
   standalone documents: no menu, no footer; the title shares the same
   left-aligned block as the body text */

.legal { padding: 64px 0 84px; text-align: justify; }
.legal h1 { font-size: clamp(26px, 2.8vw, 34px); margin: 0 0 10px; }
.legal .lead { margin: 0 0 16px; font-size: 16px; }
.legal h2 { font-size: 19px; margin: 40px 0 10px; }
.legal h3 { font-size: 16.5px; margin: 26px 0 8px; }
.legal .legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 22px;
  margin: 0 0 32px;
  font-size: 14px;
}
.legal .legal-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-50);
  text-decoration: none;
}
.legal .legal-links a:hover { color: var(--text); }
.legal .legal-links svg { width: 15px; height: 15px; flex: none; }
.legal p { color: var(--text-70); margin: 0 0 14px; line-height: 1.65; }
.legal ul { color: var(--text-70); margin: 0 0 14px; padding-left: 22px; line-height: 1.65; }
.legal ul li { margin-bottom: 8px; }
.legal .legal-meta { color: var(--text-50); font-size: 14px; }
.legal .notice { margin-top: 20px; }
