/* ============================================================
   Triptico home — index-v2.css
   Purpose-built stylesheet for the v2 landing page (no app legacy).
   Design language: light luminance-gradient page, white cards with soft
   layered shadows, Outfit type, ink/muted text, Triptico blue accent.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #e3e6eb;
  --ink: #111827;
  --muted: #6b7280;
  --accent: #3498db;
  --accent-ink: #ffffff;
  --error: #b91c1c;
  --gold: #ffda79;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-card:
    rgba(14, 63, 126, 0.06) 0px 0px 0px 1px,
    rgba(42, 51, 70, 0.04) 0px 2px 2px -1px,
    rgba(42, 51, 70, 0.04) 0px 6px 6px -3px,
    rgba(42, 51, 70, 0.03) 0px 12px 12px -6px;
  --shadow-panel:
    rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
    rgba(0, 0, 0, 0.2) 0px -3px 0px inset;

  --content-max: 1160px;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* Luminance (light -> dark) diagonal so the depth is visible regardless of
     colour vision. */
  background-color: var(--bg);
  background-image: linear-gradient(
    160deg,
    #f9fafc 0%,
    #f1f4f8 50%,
    #e3e9f2 100%
  );
  background-attachment: fixed;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  color: var(--ink);
  font-family:
    'Outfit',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 24px;
  min-height: 2.75rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0 1px 2px,
    rgba(0, 0, 0, 0.06) 0 -2px 0 inset;
  transition:
    filter 0.15s ease,
    transform 0.02s ease,
    background 0.15s ease;
}
.btn:hover {
  filter: brightness(1.07);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.btn--outline {
  background: var(--surface);
  color: var(--accent);
  box-shadow: none;
}
.btn--outline:hover {
  background: rgba(52, 152, 219, 0.07);
  filter: none;
}
.link-btn {
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover {
  color: var(--ink);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  /* Bar spans the viewport; its contents align to the content column on wide
     screens (max() keeps the 24px floor, so narrow screens are unchanged). */
  padding: 12px max(24px, calc((100% - var(--content-max)) / 2));
  background: var(--surface);
  box-shadow:
    rgba(9, 30, 66, 0.06) 0 1px 2px,
    rgba(9, 30, 66, 0.12) 0 8px 24px -16px;
}
.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--accent);
  border-radius: 9px;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0 1px 2px,
    rgba(0, 0, 0, 0.1) 0 -2px 0 inset,
    rgba(255, 255, 255, 0.18) 0 2px 0 inset;
}
.brand-logo img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  display: block;
}
.brand-name {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.site-nav {
  justify-self: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.nav-link:hover {
  color: var(--ink);
  background: rgba(17, 24, 39, 0.05);
}
.nav-caret {
  width: 10px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.18s ease;
}
.nav-link[aria-expanded='true'] .nav-caret {
  transform: rotate(180deg);
}
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.signin-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#cancel-signin-dialog {
  cursor: pointer;
  position: absolute;
  top: 1vmin;
  right: 1vmin;
  padding: 1vmin;
  width: 3vmin;
  height: 3vmin;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-colour);
  opacity: 0.5;
  font-weight: 500;
}

/* ---------- Header panels (Teachers / Students) ---------- */
.nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  /* Offsets resolve against the full-width header, not its padding, so the
     panels need the same constraint to line up with the content column. */
  left: max(16px, calc((100% - var(--content-max)) / 2));
  right: max(16px, calc((100% - var(--content-max)) / 2));
  z-index: 10;
  min-height: 158px;
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}
.nav-panel[hidden] {
  display: none;
}
.panel-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.panel-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 24px;
  background: none;
  border: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  font: inherit;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  /* transition: background 0.15s ease; */
}
.panel-card:first-child {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.panel-card:last-child {
  border-right: 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.panel-card:hover {
  background: #fff;
  box-shadow: rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}
.panel-icon {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--ink);
  flex-shrink: 0;
}
.panel-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.panel-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  margin: 0;
}
.panel-text strong {
  font-size: 0.95rem;
  font-weight: 600;
}
.panel-text span {
  font-size: 0.82rem;
  color: var(--muted);
}
/* Students panel: info cell (col 2) + code cell (cols 3-4), framed by dividers */
.panel-split {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
}
.panel-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 24px;
}
.panel-split .panel-cell:first-child {
  grid-column: 2;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  /* border-right: 1px solid rgba(0, 0, 0, 0.05); */
  background: #fff;
  box-shadow: rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}
.panel-cell--form {
  grid-column: 3 / 5;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  box-shadow: rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}
#code-title.is-error {
  color: var(--error);
}
.code-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
  padding: 6px;
  border-radius: var(--radius-md);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.code-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink);
}
.code-form input:focus {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}
.code-go {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
}
.code-go svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  display: block;
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ---------- Layout helpers ---------- */
main {
  display: block;
}
.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}
.lede {
  max-width: 56ch;
  margin: 12px auto 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 72px 32px 64px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 1.15fr;
  gap: 56px;
  align-items: center;
  /* Fill the viewport (minus the sticky header) so the hero sits as one neat,
     uncramped screen; the in-copy scroll note signals there's more below. */
  min-height: calc(100svh - 70px);
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero-count {
  display: inline-block;
  min-width: 2ch; /* matches the pre-rendered "19"; JS re-reserves for the live total */
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
/* After the count lands (plus a hold), the number settles into the headline
   colour — the animation is the emphasis, not a permanent highlight. */
.hero-count.is-settled {
  color: inherit;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-count {
    transition: color 1.6s ease;
  }
}
.hero-sub {
  margin-top: 18px;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.75;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chip svg {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
/* Hero media: video card */
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #0b1f17;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
}
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: rgba(11, 31, 23, 0.16);
  cursor: pointer;
  transition: background 0.15s ease;
}
.video-overlay:hover {
  background: rgba(11, 31, 23, 0.26);
}
.video-card.is-playing .video-overlay {
  display: none;
}
.video-overlay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding-left: 3px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--accent-ink);
  color: var(--accent-ink);
}
.video-overlay-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: block;
}
.video-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(
    to top,
    rgba(11, 31, 23, 0.85),
    rgba(11, 31, 23, 0)
  );
  transition: opacity 0.3s ease;
}
.video-card.is-started .video-bar {
  display: flex;
}
.video-card.is-idle .video-bar {
  opacity: 0;
  pointer-events: none;
}
.vb-toggle {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0 0 0 2px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
}
.vb-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}
.vb-icon {
  display: flex;
}
.vb-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}
.vb-scrub {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}
.vb-scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.vb-scrub::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.vb-time {
  flex: none;
  min-width: 8ch;
  text-align: right;
  color: #fff;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.hero-media-note {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Tier sections ---------- */
.tier {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 72px 32px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  scroll-margin-top: 90px; /* clear the sticky header on anchor jumps */
}
/* Flip swaps the items left/right, so mirror the column tracks too — otherwise
   the media lands in the narrow 1fr track and renders smaller than the unflipped
   tiers (where it sits in the wide 1.15fr track). */
.tier--flip {
  grid-template-columns: 1.15fr 1fr;
}
.tier--flip .tier-copy {
  order: 2;
}
.tier--flip .tier-media {
  order: 1;
}
.kicker {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.tier h2 {
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tier-copy p:not(.kicker) {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}
.tier-copy p:first-of-type:not(.kicker) {
  color: var(--ink);
  font-weight: 500;
}
.idea-card {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  /* Grid so all three ideas can stack in one cell (see .idea below): the card
     keeps the tallest idea's height, so the nav buttons and the image opposite
     stay put while ideas cycle. */
  display: grid;
  grid-template-columns: 100%;
}
.idea-card .idea-nav {
  grid-row: 3;
}
.idea-card h3 {
  grid-row: 1;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
/* Match the .tier-copy p:not(.kicker) specificity (0,2,1) and win on source order
   so EVERY idea reads the same. Without this, idea 0 (the card's first <p>) picks
   up the .tier-copy lead-paragraph emphasis (ink, 500) while ideas 1 & 2 fall to
   the muted secondary-paragraph rule — the bold-black vs grey split. */
.tier-copy .idea-card p {
  margin-top: 6px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}
/* --- Idea carousel: ideas, captions and images share a data-idea index; only
   the .is-active one shows. All three ideas occupy the SAME grid cell, so the
   card is always as tall as its tallest idea — visibility (not display) keeps
   the hidden ones contributing their height. --- */
.idea {
  grid-row: 2;
  grid-column: 1;
  visibility: hidden;
}
.idea.is-active {
  visibility: visible;
}
/* :not() raises specificity above the later `.tier-media img { display:block }`
   rule, so only the active image shows regardless of rule order. */
.tier-media img:not(.is-active) {
  display: none;
}
.tier-media .cap {
  display: none;
}
.tier-media .cap.is-active {
  display: inline;
}
.idea-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}
.idea-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.15s ease;
}
.idea-dot:hover {
  background: var(--muted);
}
.idea-dot.is-active {
  background: var(--accent);
}
.idea-arrow {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--border);
  cursor: pointer;
  transition: color 0.15s ease;
}
.idea-arrow:hover {
  color: var(--muted);
}
.idea-arrow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.tier-media img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.tier-media img:hover {
  transform: scale(1.01);
}
/* ---------- Framed tier media ----------
   Each tier's cycling screenshot sits on the front-of-class display bezel
   carried over from the home-v2 prototype (screenBck.webp, mirroring its
   .landing-screen-frame/.landing-screenshot pattern): the screenshot scales
   to 0.85 so the display shows around it. */
.tier-media--framed .screen-frame {
  background-image: url('/images/screenBck.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.tier-media--framed img {
  transform: scale(0.85);
  transform-origin: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  box-shadow:
    rgba(9, 30, 66, 0.25) 0px 1px 1px,
    rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
}
.tier-media--framed img:hover {
  transform: scale(1);
}
.tier-media figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.cap-divider {
  margin: 0 6px;
  color: var(--border);
}
.cap-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}
.cap-link:hover {
  text-decoration: underline;
}

/* ---------- "For any classroom" band ---------- */
.band {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 72px 32px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  scroll-margin-top: 90px;
}
.band-media img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.band h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.band-copy p {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}
.band-copy p:first-of-type {
  color: var(--ink);
  font-weight: 500;
}
.band-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.band-chips li {
  padding: 6px 14px;
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  box-shadow: var(--shadow-card);
}

/* ---------- Testimonials ---------- */
.quotes {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 72px 32px;
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.quote-card {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.quote-card blockquote {
  margin: 0 0 12px;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}
.quote-card figcaption {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Pricing tease + final CTA ---------- */
.pricing-tease,
.final-cta {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 72px 32px;
  text-align: center;
}
/* The closing ask gets a card to lift it off the page — same visual language as
   .quote-card (surface + radius + the shared --shadow-card token), sized as its
   own centred block. */
.final-cta {
  width: fit-content;
  max-width: min(92vw, var(--content-max));
  margin: 0 auto 96px;
  padding: 72px 96px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ---------- FAQ / objections (sits above pricing) ---------- */
.faq-tease {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 32px 24px;
}
.faq-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
/* Hide the native disclosure triangle (Safari/Firefox). */
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--accent);
}
/* Plus/minus marker that flips to a minus when open. */
.faq-marker {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}
.faq-marker::before,
.faq-marker::after {
  content: '';
  position: absolute;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.2s ease;
}
.faq-marker::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}
.faq-marker::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}
.faq-item[open] .faq-marker::after {
  transform: scaleY(0);
}
.faq-answer {
  padding: 0 22px 20px;
}
.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}
.faq-answer a {
  color: var(--accent);
}
/* Inline dialog trigger styled as a link inside answer copy. */
.faq-inline-link {
  font: inherit;
  padding: 0;
  background: none;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  .faq-marker::before,
  .faq-marker::after {
    transition: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  box-shadow: rgba(9, 30, 66, 0.05) 0 -1px 2px;
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand {
  max-width: 34ch;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.footer-logo img {
  width: 36px;
  height: 36px;
  background: #3498db;
  border-radius: 6px;
  padding: 2px;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0 1px 2px,
    rgba(0, 0, 0, 0.1) 0 -2px 0 inset,
    rgba(255, 255, 255, 0.18) 0 2px 0 inset;
}
.footer-logo span {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-tagline {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.footer-social svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.footer-social:hover {
  color: var(--ink);
  border-color: var(--muted);
}
.footer-col h2 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.footer-col ul {
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.footer-col li + li {
  margin-top: 4px;
}
/* Links and dialog-trigger buttons share one look (the buttons are reset to
   read as plain links). */
.footer-col a,
.footer-link {
  display: inline-block;
  padding: 5px 0;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}
.footer-col a:hover,
.footer-link:hover {
  color: var(--accent);
}
.footer-base {
  padding: 18px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-base p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Dialogs ---------- */
.dlg {
  border: none;
  border-radius: var(--radius-lg);
  padding: 32px;
  width: min(92vw, 480px);
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: var(--shadow-panel);
  font-family: inherit;
  color: var(--ink);
}
.dlg::backdrop {
  background: rgba(17, 24, 39, 0.45);
}
.dlg--split {
  width: min(92vw, 860px);
}
.dlg--wide {
  /* Roomy enough for four uncramped plan columns on large screens, while still
     reading as a focused overlay rather than a full page. */
  width: min(94vw, 1360px);
}
.dlg-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  /* grid-centre the × glyph — as text it sits high in the circle */
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 0;
  color: var(--muted);
  cursor: pointer;
}
.dlg-close:hover {
  background: rgba(17, 24, 39, 0.06);
  color: var(--ink);
}
.dlg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.dlg h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}
/* Intro line under a dialog heading (compact single-column dialogs). */
.dlg-sub {
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}
.dlg-copy p {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}
.dlg-copy p:first-of-type {
  margin-top: 0;
}
.dlg-photo {
  margin-top: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
/* About: lead/credential line stands out above the muted body paragraphs. */
.dlg-copy p.about-lead {
  color: var(--ink);
  font-weight: 500;
}
/* About: founder headshot in the right column — circular, matching the live site. */
.about-portrait-col {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Stretch to the text column's height (the grid is align-items:start) so the
     portrait can centre vertically as well as horizontally. */
  align-self: stretch;
}
.about-portrait-lg {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    rgba(0, 0, 0, 0.2) 0 1px 2px,
    rgba(0, 0, 0, 0.15) 0 6px 12px -3px,
    rgba(0, 0, 0, 0.1) 0 -4px 0 inset;
}
.dlg-images {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dlg-images img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
/* Forms */
.dlg-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dlg-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}
.dlg-form input,
.dlg-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  resize: none; /* no grippy handles on single-line inputs */
}
.dlg-form textarea {
  resize: vertical; /* only the message box may grow */
}
.dlg-form input:focus,
.dlg-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-note {
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}
.form-note a {
  color: var(--accent);
}
/* (Sign-in/sign-up dialogs are the live site's own — js/dialogs/auth.js +
   dialog.css + sign-in-forms.css — so no stub tab/form styles are needed.) */
/* Pricing dialog */
.dlg-head {
  text-align: center;
  margin-bottom: 24px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.plan {
  position: relative; /* anchors the "Most popular" badge */
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.plan--featured {
  border-color: var(--accent);
  box-shadow: rgba(52, 152, 219, 0.18) 0 4px 18px -6px;
}
.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
/* Alternative billing line under a price (e.g. "or £29.99 / year — save 16%").
   .plan .price-alt so it outranks the generic `.plan p` colour. */
.plan .price-alt {
  margin-top: -4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}
.plan h3 {
  font-size: 1rem;
  font-weight: 700;
}
.price {
  font-size: 1.5rem;
  font-weight: 700;
}
.price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}
.plan p {
  font-size: 0.85rem;
  color: var(--muted);
}
.plan ul {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
}
.plan li {
  margin-bottom: 4px;
}
.plan-cta {
  margin-top: 12px;
}
.plans-note {
  margin-top: 18px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
/* Try-it-live dialog */
.dlg--try {
  /* Fill the screen generously, but cap by HEIGHT too: the 16:10 frame's height
     is width/1.6, so bounding width by (height budget × 1.6) keeps the whole
     dialog — frame + footer + padding — inside the viewport with no scroll. */
  width: min(96vw, 1500px, calc((90dvh - 96px) * 1.6));
  padding: 16px;
  /* let the close button float outside the frame's corner */
  overflow: visible;
}
.try-frame-wrap {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
}
/* Float the close clear of the activity, in the backdrop off the dialog's
   top-right corner — a white chip so it reads as a control, not over the frame. */
.dlg--try .dlg-close {
  top: -16px;
  right: -16px;
  background: var(--surface);
  box-shadow:
    rgba(9, 30, 66, 0.08) 0 1px 2px,
    rgba(9, 30, 66, 0.22) 0 8px 24px -12px;
}
.dlg--try .dlg-close:hover {
  background: var(--bg);
  color: var(--ink);
}
.try-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.try-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.try-footer p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Reveal-on-scroll (subtle, motion-safe) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }
  .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .panel-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .panel-card {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
  }
  .panel-split {
    grid-template-columns: 1fr;
  }
  .panel-split .panel-cell:first-child,
  .panel-cell--form {
    grid-column: auto;
    border: 0;
  }
}
@media (max-width: 880px) {
  /* Header collapses: brand + burger on top; nav + actions stack below. */
  .site-header {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
  .site-nav,
  .nav-actions {
    flex-basis: 100%;
    display: none;
  }
  .site-header.nav-open .site-nav {
    display: block;
  }
  .site-header.nav-open .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 8px;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
  }
  .nav-panel {
    position: static;
    min-height: 0;
    box-shadow: none;
    border-radius: 0;
    padding-left: 10px;
  }
  .panel-cards {
    grid-template-columns: 1fr;
  }
  .panel-card {
    padding: 12px 8px;
  }
  .panel-cell {
    padding: 12px 8px;
  }
  /* Single-column sections */
  .hero,
  .tier,
  .band {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px;
  }
  .hero {
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 64px;
  }
  .tier--flip .tier-copy {
    order: 0;
  }
  .tier--flip .tier-media {
    order: 0;
  }
  .band-media {
    order: 1;
  }
  .quote-grid {
    grid-template-columns: 1fr;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .dlg-grid {
    grid-template-columns: 1fr;
  }
  .quotes,
  .pricing-tease,
  .final-cta,
  .faq-tease {
    padding: 48px 24px;
  }
  .faq-tease {
    padding-bottom: 16px;
  }
  /* Card sizing relaxes on small screens. */
  .final-cta {
    width: auto;
    margin: 0 16px 48px;
  }
  /* Footer columns stack; brand spans the full width above the link lists. */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px 24px 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

/* ---------- Hero scroll instruction (quiet text, not a competing button) ---------- */
.hero-scroll-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition:
    color 0.15s ease,
    opacity 0.35s ease;
}
/* The cue only means something before the journey starts: index-v2.js fades
   it out on the first scroll and back in at the top. */
.hero-scroll-note.is-faded {
  opacity: 0;
  pointer-events: none;
}
.hero-scroll-note:hover {
  color: var(--ink);
}
/* Desktop: the hero fills the viewport, so the cue sits centred at its base —
   a page-level "there's more below" signal, tucked into the hero's bottom
   padding so it never overlaps content. In-flow on small screens, where the
   hero scrolls naturally. */
@media (min-width: 881px) {
  .hero-scroll-note {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .bob {
    display: inline-block;
    animation: bob 1.6s ease-in-out infinite;
  }
  @keyframes bob {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(4px);
    }
  }
}

/* ---------- "See all … activities" catalogue links ---------- */
.see-all {
  margin-top: 18px;
}
.see-all-link {
  background: #ffe9af;
  border: 0;
  padding: 6px 12px;
  border-radius: 6px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  box-shadow:
    rgba(14, 63, 126, 0.06) 0px 0px 0px 1px,
    rgba(42, 51, 70, 0.03) 0px 1px 1px -0.5px,
    rgba(42, 51, 70, 0.04) 0px 2px 2px -1px,
    rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px,
    rgba(42, 51, 70, 0.03) 0px 5px 5px -2.5px,
    rgba(42, 51, 70, 0.03) 0px 10px 10px -5px,
    rgba(42, 51, 70, 0.03) 0px 24px 24px -8px;
  transition: color 0.15s ease;
}
.see-all-link:hover {
  background: var(--gold);
}
/* .see-all-link strong {
  color: var(--accent);
} */
/* ============================================================
   SEE ALL ACTIVITIES PANEL — the EXACT live-site pattern, reused.
   Markup + module: js/features/see-all-panel.js (same as index.html).
   Card styles come from css/activity-choice-panel.css (linked in <head>);
   the rules below are copied verbatim from the live css/index.css section,
   plus the legacy colour vars they depend on.
   ============================================================ */
/* The FULL live :root palette — the reused live components (buttons.css,
   dialog.css, sign-in-forms.css, auth dialogs) reference all of these. A missing
   one fails silently (e.g. no --red-colour made the Cancel button invisible). */
:root {
  --white-colour: #fff;
  --grey-colour: #333;
  --dark-colour: #3498db;
  --light-colour: #f7f7f7;
  --yellow-colour: #ffda79;
  --green-colour: #16a085;
  --blue-colour: #007acc;
  --red-colour: #e8332c;
  --black-colour: #330000;
  --pink-colour: #ef5777;
  --chosen-font: 'Outfit', sans-serif;
}
/* Live base rules the reused components assume (from live index.css): form
   controls do NOT inherit the page font by default, and links should follow
   their context rather than browser default blue/purple. */
button,
input,
select,
textarea {
  font-family: inherit;
}
a {
  color: inherit;
}
/* From css/dialog.css (used between lesson sections in the panel) */
.horizontalDivider {
  width: 100%;
  height: 2px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid white;
}

/* -------------------------------------------------------------------------- */
/*                           SEE ALL ACTIVITIES PANEL                         */
/* -------------------------------------------------------------------------- */

/* Base resources-pane styles (normally from activity-choice-overlay.css) */
.see-all-panel.resources-pane {
  background-color: var(--white-colour);
  overflow: hidden;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 9fr;
  align-items: center;
  justify-items: center;
}

/* Panel slide-out positioning */
.see-all-panel.resources-pane {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100%;
  width: 100%;
  max-width: 700px;
  border-radius: 0;
  transition: right 0.3s ease;
  border-left: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 1001;
}

.see-all-panel.resources-pane.show {
  right: 0;
}

.see-all-panel .resources-header {
  padding: 0 3vmin;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--white-colour);
  width: 100%;
  height: 100%;
  text-wrap: balance;
}

.see-all-panel .resources-header .top-title {
  font-size: 2.5vmin;
  font-weight: 500;
  color: var(--grey-colour);
  text-transform: none;
  width: 85%;
}

.see-all-panel .all-resources {
  overflow-y: auto;
  overscroll-behavior: contain;
  height: 95%;
  width: 95%;
}

.see-all-panel .all-resources-section-title {
  font-size: 1.5vmin;
  width: 100%;
  text-align: left;
  margin-left: 10%;
  text-transform: uppercase;
  font-weight: 900;
  color: #999;
}

.see-all-panel .all-resources-section-title:first-child {
  margin-top: 0;
}

/* Backdrop */
#see-all-holder.menuHolder {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

#see-all-holder.menuHolder.visible {
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  overscroll-behavior: contain;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .see-all-link {
    font-size: 3vmin;
  }

  .see-all-panel.resources-pane {
    width: 85%;
    max-width: none;
  }

  .see-all-panel .circleButton {
    width: 8vmin;
    height: 8vmin;
  }
}
