/* =====================================================================
   Ben AI Mentor: site styles (shared by all pages)
   ===================================================================== */

/* Local Heebo (variable font). No external font requests. */
@font-face {
  font-family: "Heebo";
  src: url("../fonts/Heebo.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #070B1F;
  --navy-2: #0B1440;
  --card: #0E1838;
  --cyan: #22D3EE;
  --cyan-strong: #00E5FF;
  --text: #FFFFFF;
  --muted: #A9B7D6;
  --line: rgba(34, 211, 238, .35);
  --glow: 0 0 0 1px rgba(34, 211, 238, .35), 0 8px 32px rgba(34, 211, 238, .12);
  --radius: 18px;
  --font: "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  --purple: #755682;
  --lilac: #F1EAF5;
  --focus: #00E5FF;
  --focus-gap: #070B1F;
}

/* Text size steps from the accessibility menu (everything uses rem/em) */
html.a11y-text-1 { font-size: 112.5%; }
html.a11y-text-2 { font-size: 125%; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: 5rem; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--navy);
  background-image:
    radial-gradient(rgba(169, 183, 214, .10) 1px, transparent 1px),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 45%, var(--navy) 100%);
  background-size: 24px 24px, 100% 100%;
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, video { max-width: 100%; display: block; }
a { color: var(--cyan); text-underline-offset: .15em; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-weight: 900; font-size: clamp(1.8rem, 6vw, 2.75rem); }
h3 { font-weight: 800; font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.cyan { color: var(--cyan); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.m-0 { margin: 0; }
.center-inline { margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link: first focusable element, visible on focus */
.skip-link {
  position: absolute; inset-inline-start: 1rem; inset-block-start: -200px;
  background: var(--cyan); color: var(--navy); padding: .7rem 1.1rem; border-radius: 10px;
  font-weight: 800; z-index: 100; text-decoration: none; min-height: 44px;
  display: inline-flex; align-items: center;
}
.skip-link:focus { inset-block-start: 1rem; }

/* Focus: 3px cyan ring plus a dark inner gap, so it reads on navy, on cyan buttons and on white slides */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--focus-gap);
  border-radius: 6px;
}
.btn:focus-visible { border-radius: 999px; }
.gallery:focus-visible { border-radius: 14px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
section { padding-block: 4.5rem; }
.eyebrow {
  display: inline-block; font-weight: 700; color: var(--cyan); font-size: .95rem;
  letter-spacing: .02em; margin-block-end: .6rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Buttons (at least 44x44) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; min-width: 44px;
  padding: .9rem 1.4rem; border-radius: 999px; font-weight: 800; font-size: 1.05rem;
  line-height: 1.3;
  text-decoration: none; border: 2px solid var(--cyan); color: var(--navy);
  background: var(--cyan); box-shadow: 0 6px 24px rgba(34, 211, 238, .25);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(34, 211, 238, .35); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: none; }
.btn-ghost:hover { background: rgba(34, 211, 238, .10); }
.btn-sm { padding: .5rem 1rem; font-size: .95rem; }
.btn .arrow { font-weight: 900; }

/* Header */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: rgba(7, 11, 31, .92); backdrop-filter: blur(10px);
  border-block-end: 1px solid rgba(34, 211, 238, .15);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem;
  flex-wrap: wrap; padding-block: .6rem;
}
.logo {
  font-weight: 900; font-size: 1.2rem; color: var(--text); text-decoration: none;
  direction: ltr; unicode-bidi: isolate;
}
a.logo { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; }
.logo span { color: var(--cyan); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(14, 24, 56, .9), rgba(11, 20, 64, .7));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--glow);
}

/* Hero */
.hero { padding-block: 3rem 4rem; overflow-x: clip; }
.hero .wrap { display: grid; gap: 3rem; align-items: center; }
.hero h1 { font-weight: 900; font-size: clamp(2.3rem, 9vw, 4.2rem); line-height: 1.15; }
.hero h1 .big {
  display: block; color: var(--cyan); font-size: 1.7em; line-height: 1;
  text-shadow: 0 0 30px rgba(34, 211, 238, .35);
}
.hero .sub { font-size: 1.2rem; color: var(--muted); max-width: 38ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-block: 1.6rem 1rem; }
.tagline { font-weight: 800; color: var(--text); }
.tagline::before { content: "✦ "; content: "✦ " / ""; color: var(--cyan); }

.stack { position: relative; height: 420px; max-width: 360px; margin-inline: auto; width: 100%; }
.stack .mini {
  position: absolute; inset-block-start: 0; inset-inline-start: 50%;
  width: 250px; max-width: 80vw; aspect-ratio: 4 / 5; border-radius: 14px; background: #fff; color: var(--purple);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45); padding: 14px; display: flex; flex-direction: column;
  transform-origin: bottom center; overflow: hidden;
}
.stack .mini:nth-child(1) { transform: translateX(50%) rotate(-8deg) translate(40px, 30px); }
.stack .mini:nth-child(2) { transform: translateX(50%) rotate(5deg) translate(-40px, 20px); }
.stack .mini:nth-child(3) { transform: translateX(50%) translateY(0); }
.mini .m-title { margin-block-start: 1.7rem; font-weight: 900; font-size: 1.05rem; line-height: 1.2; color: var(--purple); }
.mini img { margin-block-start: auto; margin-inline: auto; height: 62%; width: auto; object-fit: contain; }
.mini .m-foot { display: flex; justify-content: space-between; font-size: .7rem; color: #5E4A6A; margin-block-start: 6px; }
.badge {
  position: absolute; inset-block-start: 10px; inset-inline-end: 10px;
  background: var(--purple); color: #fff; font-size: .72rem; font-weight: 800;
  padding: .15rem .55rem; border-radius: 999px;
}

/* Problem */
.problem-grid { display: grid; gap: 1.2rem; margin-block-start: 2rem; }
.problem-grid .card p:last-child { margin: 0; }
.vs { display: grid; gap: 1rem; margin-block: 1.2rem; }
.vs div { border-radius: 14px; padding: 1rem 1.2rem; }
.vs .friend { background: rgba(169, 183, 214, .08); border: 1px dashed rgba(169, 183, 214, .6); }
.vs .assistant { background: rgba(34, 211, 238, .08); border: 1px solid var(--line); }
.vs strong { display: block; margin-block-end: .2rem; }
.point { font-size: 1.3rem; font-weight: 800; line-height: 1.5; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { position: relative; padding-inline-start: 4.4rem; }
.steps li::before {
  counter-increment: step; content: counter(step); content: counter(step) / "";
  position: absolute; inset-inline-start: 1.3rem; inset-block-start: 1.4rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--cyan); color: var(--navy); font-weight: 900; font-size: 1.2rem;
}
.steps h3 { margin-block-end: .3rem; }
.steps p { margin: 0; color: var(--muted); }
.time-note {
  margin-block-start: 1.6rem; display: inline-block; padding: .7rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--line); font-weight: 800;
}

/* Features */
.features { display: grid; gap: 1rem; margin-block-start: 2rem; }
.features .icon { font-size: 1.8rem; line-height: 1; margin-block-end: .6rem; display: block; }
.features p { color: var(--muted); margin: 0; }

/* Gallery (scrollable region on mobile, grid on desktop) */
.gallery {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: 1rem 1.5rem; padding-inline: 1.25rem; margin-inline: -1.25rem;
  scrollbar-color: var(--cyan) transparent;
}
.slide {
  position: relative; flex: 0 0 78%; max-width: 320px; scroll-snap-align: center;
  aspect-ratio: 4 / 5; background: #fff; color: #3d3044; border-radius: 14px;
  padding: 7% 7% 5%; display: flex; flex-direction: column;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4); container-type: inline-size;
}
.slide .s-logo {
  width: 13cqw; height: 13cqw; border-radius: 50%; border: 2px dashed var(--purple);
  display: grid; place-items: center; font-size: 2.6cqw; font-weight: 800; color: var(--purple);
  text-align: center; line-height: 1.1;
}
.slide h3 { color: var(--purple); font-weight: 900; font-size: 8.5cqw; line-height: 1.2; margin: 4cqw 0 2cqw; }
.slide p { font-size: 4.6cqw; line-height: 1.5; margin: 0 0 2cqw; color: #4a3d52; }
.slide .s-card { background: var(--lilac); border-radius: 10px; padding: 3cqw 4cqw; font-size: 4.4cqw; line-height: 1.5; color: #4a3d52; margin-block-end: 2cqw; }
.slide .s-card strong { color: var(--purple); }
.slide img { margin-block-start: auto; margin-inline: auto; height: 42%; width: auto; object-fit: contain; }
.slide .s-foot {
  display: flex; justify-content: space-between; align-items: center; margin-block-start: 3cqw;
  border-block-start: 1px solid #e4d9ea; padding-block-start: 2.5cqw; font-size: 3.6cqw; color: #5E4A6A;
}
.slide .badge { font-size: 3.4cqw; }
.gallery-note { color: var(--muted); margin-block-start: .5rem; }

/* Video */
.video-wrap { display: grid; gap: 2rem; align-items: center; }
.video-frame {
  width: 100%; max-width: 320px; margin-inline: auto; aspect-ratio: 9 / 16;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--glow); background: #000;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-media { display: grid; gap: .8rem; justify-items: center; }
.video-note { color: var(--muted); margin: 0; text-align: center; font-size: .95rem; }
.transcript {
  width: 100%; max-width: 32rem; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(14, 24, 56, .7);
}
.transcript summary { min-height: 44px; }
.transcript .answer p { margin-block-end: .8em; }

/* Pricing */
.plans { display: grid; gap: 1.2rem; margin-block-start: 2rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan), 0 12px 48px rgba(34, 211, 238, .25); }
.plan .ribbon {
  position: absolute; inset-block-start: -14px; inset-inline-start: 1.5rem;
  background: var(--cyan); color: var(--navy); font-weight: 900; font-size: .9rem;
  padding: .2rem .8rem; border-radius: 999px;
}
.plan .price { font-size: 2.6rem; font-weight: 900; color: var(--cyan); line-height: 1.2; margin-block: .4rem .2rem; }
.plan .per { color: var(--muted); font-size: 1rem; font-weight: 600; }
.plan ul { padding-inline-start: 1.2rem; margin: 1rem 0 1.5rem; color: var(--muted); }
.plan ul li { margin-block-end: .35rem; }
.plan .btn { margin-block-start: auto; }
.price-notes { margin-block-start: 1.5rem; color: var(--muted); }
.price-notes p { margin-block-end: .4rem; }

/* FAQ and other disclosures (native details/summary) */
.faq { display: grid; gap: .8rem; margin-block-start: 2rem; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 24, 56, .7); }
.faq summary, .transcript summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 800; font-size: 1.08rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center; line-height: 1.4;
  border-radius: 14px;
}
.faq summary::-webkit-details-marker, .transcript summary::-webkit-details-marker { display: none; }
/* Decorative +/× sign: empty alt text so screen readers skip it */
.faq summary::after, .transcript summary::after {
  content: "+"; content: "+" / "";
  color: var(--cyan); font-size: 1.5rem; font-weight: 900; line-height: 1; flex: none;
}
.faq details[open] summary::after, .transcript[open] summary::after { content: "×"; content: "×" / ""; }
.faq .answer, .transcript .answer { padding: 0 1.2rem 1.1rem; color: var(--muted); }
.faq .answer p { margin: 0; }

/* Final CTA */
.final { text-align: center; }
.final .card { padding: 3rem 1.5rem; }
.final h2 .cyan { display: inline-block; }
.final .cta-row { justify-content: center; }

/* Footer (extra bottom space so the floating accessibility button never hides links) */
.site-footer {
  border-block-start: 1px solid rgba(34, 211, 238, .15);
  padding-block: 2.5rem 6.5rem; color: var(--muted); font-size: .95rem;
}
.site-footer .wrap { display: grid; gap: .8rem; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem 1rem; flex-wrap: wrap; }
.site-footer nav a {
  color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; padding-inline: .25rem;
}
.site-footer nav a[aria-current="page"] { color: var(--text); font-weight: 800; }

/* Inner pages (accessibility, terms, privacy, 404) */
.page { padding-block: 3rem 4rem; }
.page h1 { font-weight: 900; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.2; }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.4rem, 4.5vw, 1.8rem); margin-block-start: 2.2rem; }
.prose p, .prose li { color: #DCE3F2; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; margin: 0 0 1em; }
.prose li { margin-block-end: .4rem; }
.prose a { color: var(--cyan); }
.draft-banner {
  background: #FDE68A; color: #1A1406; border: 3px solid #B45309; border-radius: 14px;
  padding: 1rem 1.2rem; font-weight: 800; margin-block-end: 2rem; max-width: 72ch;
}
.draft-banner p { margin: 0; color: #1A1406; }
.todo {
  display: inline; background: rgba(253, 230, 138, .14); color: #FDE68A;
  border: 1px dashed #FDE68A; border-radius: 6px; padding: 0 .35rem; font-weight: 700;
}
.updated { color: var(--muted); }
.note-box { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; background: rgba(14, 24, 56, .7); }

/* =====================================================================
   Accessibility menu (floating button + panel)
   ===================================================================== */
.a11y { position: fixed; inset-block-end: 1rem; inset-inline-end: 1rem; z-index: 90; }
.a11y-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 48px; min-width: 48px; padding: .4rem .9rem .4rem .7rem;
  border-radius: 999px; border: 2px solid var(--navy); background: var(--cyan); color: var(--navy);
  font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.a11y-toggle svg { width: 1.6rem; height: 1.6rem; flex: none; }
.a11y-panel {
  position: absolute; inset-block-end: calc(100% + .6rem); inset-inline-end: 0;
  width: min(20rem, calc(100vw - 2rem)); max-height: calc(100vh - 6rem); overflow-y: auto;
  background: var(--card); color: var(--text); border: 2px solid var(--cyan); border-radius: 16px;
  padding: 1rem; box-shadow: 0 16px 48px rgba(0, 0, 0, .6);
}
.a11y-panel[hidden] { display: none; }
.a11y-title { font-weight: 900; font-size: 1.15rem; margin: 0 0 .6rem; }
.a11y-label { font-weight: 700; margin: .4rem 0 .3rem; color: var(--muted); }
.a11y-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.a11y-list { display: grid; gap: .5rem; margin-block-start: .8rem; }
.a11y-btn {
  min-height: 44px; padding: .45rem .7rem; border-radius: 10px; font: inherit; font-weight: 700; font-size: .95rem;
  background: transparent; color: var(--text); border: 2px solid var(--muted); cursor: pointer;
  text-align: center; line-height: 1.3;
}
.a11y-btn[aria-pressed="true"] { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.a11y-btn[aria-pressed="true"]::after { content: " ✓"; content: " ✓" / ""; }
.a11y-panel a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--cyan); font-weight: 700;
}
.a11y-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-block-start: .6rem; flex-wrap: wrap; }
.a11y-status { min-height: 1.2em; margin: .4rem 0 0; color: var(--muted); font-size: .9rem; }

/* Desktop */
@media (min-width: 760px) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .vs { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .video-wrap { grid-template-columns: 1.2fr 1fr; }
}
@media (min-width: 1000px) {
  .hero .wrap { grid-template-columns: 1.15fr 1fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .gallery {
    display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible;
    margin-inline: 0; padding-inline: 0;
  }
  .slide { max-width: none; }
}

/* =====================================================================
   Motion: system preference and the "stop animations" menu option
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
html.a11y-no-motion { scroll-behavior: auto; }
html.a11y-no-motion *, html.a11y-no-motion *::before, html.a11y-no-motion *::after {
  transition: none !important; animation: none !important; scroll-behavior: auto !important;
}
html.a11y-no-motion .btn:hover { transform: none; }

/* =====================================================================
   High contrast (menu option): black background, white/yellow text,
   underlined links, visible borders
   ===================================================================== */
html.a11y-contrast { --focus: #FFFF00; --focus-gap: #000000; }
/* :where() keeps this base rule at low specificity so the link/accent rules below win */
html.a11y-contrast :where(body, body *:not(img, video, svg, svg *)) {
  background-color: #000 !important;
  background-image: none !important;
  color: #fff !important;
  text-shadow: none !important;
  box-shadow: none !important;
  border-color: #fff !important;
}
html.a11y-contrast a, html.a11y-contrast a * { color: #FFFF00 !important; text-decoration: underline !important; }
html.a11y-contrast .cyan, html.a11y-contrast .eyebrow, html.a11y-contrast h1 .big,
html.a11y-contrast .plan .price, html.a11y-contrast .price * { color: #FFFF00 !important; }
html.a11y-contrast .btn, html.a11y-contrast .a11y-toggle, html.a11y-contrast .a11y-btn,
html.a11y-contrast .card, html.a11y-contrast .slide, html.a11y-contrast .badge,
html.a11y-contrast .ribbon, html.a11y-contrast .faq details, html.a11y-contrast .transcript,
html.a11y-contrast .draft-banner, html.a11y-contrast .a11y-panel, html.a11y-contrast .mini {
  border: 2px solid #fff !important;
}
html.a11y-contrast .a11y-btn[aria-pressed="true"] { background-color: #FFFF00 !important; color: #000 !important; }
html.a11y-contrast .steps li::before { border: 2px solid #fff; }
html.a11y-contrast img { background-color: #fff; border-radius: 8px; }
html.a11y-contrast .todo { color: #FFFF00 !important; border-color: #FFFF00 !important; }
