/* ==========================================================================
   يلا نكود — Design System
   Tokens → Base → Layout → Components → Sections → Utilities
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand green (from the logo) */
  --green-50: #EFFAF1;
  --green-100: #DCF4E1;
  --green-200: #B9E9C3;
  --green-300: #93E19D;
  --green-400: #5FCB74;
  --green-500: #40B658;
  --green-600: #23954B;
  --green-700: #187A3D;
  --green-800: #085D31;
  --green-900: #053F21;

  /* Ink & neutrals (green-tinted) */
  --ink: #0E1F16;
  --ink-2: #3A4B42;
  --muted: #6A7B71;
  --line: #E5ECE7;
  --line-2: #D3DED7;
  --surface: #F6FAF7;
  --white: #FFFFFF;

  /* Accents — use sparingly (tints for cards, character colors) */
  --sun: #FFC233;   --sun-tint: #FFF7E0;   --sun-ink: #8A5A00;
  --sky: #3BA8F5;   --sky-tint: #EAF5FE;   --sky-ink: #0F5E99;
  --coral: #FF7A59; --coral-tint: #FFF0EB; --coral-ink: #A23A1E;
  --grape: #8B6CF0; --grape-tint: #F3F0FE; --grape-ink: #4B32A8;

  /* Semantic */
  --bg: var(--white);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --brand: var(--green-500);
  --brand-strong: var(--green-800);

  /* Typography */
  --font-display: "Baloo Bhaijaan 2", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-display: clamp(2.5rem, 1.6rem + 3.4vw, 3.75rem); /* 40 → 60 */
  --fs-h1: clamp(2rem, 1.5rem + 2vw, 2.75rem);          /* 32 → 44 */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.125rem);    /* 28 → 34 */
  --fs-h3: 1.375rem;  /* 22 */
  --fs-lg: 1.125rem;  /* 18 */
  --fs-md: 1rem;      /* 16 */
  --fs-sm: 0.875rem;  /* 14 */
  --fs-xs: 0.75rem;   /* 12 */

  /* Spacing (4pt) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --section-y: clamp(72px, 6vw + 40px, 112px);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Shape */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  /* Elevation (green-tinted) */
  --sh-xs: 0 1px 2px rgba(8, 93, 49, .06);
  --sh-sm: 0 2px 8px -2px rgba(8, 93, 49, .08), 0 1px 2px rgba(8, 93, 49, .04);
  --sh-md: 0 12px 32px -12px rgba(8, 93, 49, .16), 0 2px 6px -2px rgba(8, 93, 49, .06);
  --sh-lg: 0 32px 64px -24px rgba(8, 93, 49, .24);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 200ms;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0; color: var(--ink); font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green-300); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--green-200); color: var(--green-900); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--sm { width: 18px; height: 18px; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section__head { max-width: 640px; margin: 0 auto var(--s-12); text-align: center; display: grid; gap: var(--s-3); justify-items: center; }
.section__title { font-size: var(--fs-h2); }
.section__lead { color: var(--text-2); font-size: var(--fs-lg); }

/* ---------- 4. Components ---------- */

/* Eyebrow pill — `</>` + label */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 5px 14px;
  background: var(--green-50); border: 1px solid var(--green-100);
  color: var(--green-800); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.4;
}
.eyebrow__mark {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; direction: ltr;
  background: var(--white); color: var(--green-600);
  border-radius: var(--r-pill); padding: 2px 8px; box-shadow: var(--sh-xs);
}

/* Buttons */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--btn-h); padding-inline: 22px;
  border: 0; border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-md); line-height: 1; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn--sm { --btn-h: 40px; padding-inline: 16px; font-size: var(--fs-sm); }
.btn--lg { --btn-h: 56px; padding-inline: 28px; font-size: var(--fs-lg); }
.btn--block { width: 100%; }

/* Primary — "bubbly", echoes the logo's 3D edge */
.btn--primary {
  background: var(--green-500); color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 0 var(--green-600), 0 10px 20px -8px rgba(35,149,75,.55);
  margin-bottom: 4px;
}
.btn--primary:hover { background: #46BE5F; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 5px 0 var(--green-600), 0 14px 24px -8px rgba(35,149,75,.55); }
.btn--primary:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 var(--green-600), 0 4px 10px -6px rgba(35,149,75,.5); }

.btn--secondary { background: var(--white); color: var(--green-800); box-shadow: inset 0 0 0 1.5px var(--green-200); }
.btn--secondary:hover { background: var(--green-50); box-shadow: inset 0 0 0 1.5px var(--green-300); }

.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); }

.btn--light { background: var(--white); color: var(--green-800); box-shadow: 0 4px 0 rgba(5,63,33,.35); margin-bottom: 4px; }
.btn--light:hover { transform: translateY(-1px); }
.btn--light:active { transform: translateY(4px); box-shadow: none; }

.btn--wa { background: rgba(255,255,255,.12); color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--wa:hover { background: rgba(255,255,255,.2); }

/* Language switch — a globe and the other language's name */
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding-inline: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1; color: var(--ink-2); white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-btn:hover { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.lang-btn .icon { width: 18px; height: 18px; color: var(--green-600); }

/* Icon badge */
.icon-badge {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--tint, var(--green-50)); color: var(--tone, var(--green-600));
}
.tone-green { --tint: var(--green-50); --tone: var(--green-600); --tone-ink: var(--green-800); }
.tone-sun   { --tint: var(--sun-tint);   --tone: #E8A100;       --tone-ink: var(--sun-ink); }
.tone-sky   { --tint: var(--sky-tint);   --tone: var(--sky);    --tone-ink: var(--sky-ink); }
.tone-coral { --tint: var(--coral-tint); --tone: var(--coral);  --tone-ink: var(--coral-ink); }
.tone-grape { --tint: var(--grape-tint); --tone: var(--grape);  --tone-ink: var(--grape-ink); }

/* Cards */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-8); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.card--tint { background: var(--tint); border-color: transparent; }
.card--tint .icon-badge { background: var(--white); box-shadow: var(--sh-xs); }
.card__title { font-size: var(--fs-h3); margin-block: var(--s-5) var(--s-2); }
.card__text { color: var(--text-2); font-size: var(--fs-md); }

/* Check list */
.checks { display: grid; gap: var(--s-3); }
.checks li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--ink-2); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23187A3D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checks--x li { color: var(--muted); }
.checks--x li::before {
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A7B71' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* Chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500;
}

/* Tabs — segmented control */
.tabs {
  display: inline-flex; gap: 4px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.tab {
  border: 0; background: transparent; border-radius: var(--r-pill);
  padding: 10px 22px; display: grid; justify-items: center; line-height: 1.3;
  color: var(--ink-2); font-weight: 600; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tab small { font-weight: 500; font-size: var(--fs-xs); color: var(--muted); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--white); color: var(--green-800); box-shadow: var(--sh-sm); }
.tab[aria-selected="true"] small { color: var(--green-600); }

/* Accordion */
.faq { display: grid; gap: var(--s-3); max-width: 800px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.faq details[open] { border-color: var(--green-200); box-shadow: var(--sh-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) var(--s-6); font-weight: 600; font-size: var(--fs-lg); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq__icon {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--green-500); color: var(--white); }
.faq details p { padding: 0 var(--s-6) var(--s-6); color: var(--text-2); }

/* ---------- 5. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(8,93,49,.35); }
.header__inner { height: 76px; display: flex; align-items: center; gap: var(--s-6); }
.header__logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: var(--r-pill);
  color: var(--ink-2); font-weight: 500; font-size: 15px; transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a.is-active { color: var(--green-800); background: var(--green-50); }
.header__actions { display: flex; gap: var(--s-2); align-items: center; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); place-items: center; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 5vw, 72px) clamp(64px, 7vw, 104px); isolation: isolate; overflow: hidden; }
.hero::before { /* soft glows */
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -2;
  background:
    radial-gradient(40% 50% at 22% 42%, rgba(147,225,157,.32), transparent 70%),
    radial-gradient(30% 40% at 8% 80%, rgba(59,168,245,.10), transparent 70%),
    radial-gradient(30% 40% at 80% 10%, rgba(255,194,51,.10), transparent 70%);
}
.hero::after { /* faint dot grid, fades out */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(8,93,49,.11) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 70% at 25% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 25% 45%, #000 0%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: var(--s-12); }
.hero__copy { display: grid; gap: var(--s-6); justify-items: start; }
.hero__title { font-size: var(--fs-display); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.hero__title .hl { color: var(--green-500); position: relative; white-space: nowrap; }
.hero__title .hl svg { position: absolute; inset-inline: -4px; bottom: -.12em; width: calc(100% + 8px); height: .32em; color: var(--sun); z-index: -1; }
.hero__lead { font-size: var(--fs-lg); color: var(--text-2); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); padding-top: var(--s-2); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .icon { color: var(--green-500); width: 18px; height: 18px; }

.hero__visual { position: relative; aspect-ratio: 1 / 1; max-width: 600px; justify-self: center; width: 100%; }
.hero__visual .blob {
  position: absolute; inset: 9%; border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%;
  background: linear-gradient(160deg, var(--green-50), #F2FBF4 60%, var(--white));
  border: 1px solid var(--green-100);
}
.hero__visual img.art { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(8,93,49,.14)); }

/* Floating mini cards around the hero art */
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: var(--s-3);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px 10px 12px;
  box-shadow: var(--sh-md); font-size: var(--fs-sm); line-height: 1.35;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-weight: 600; color: var(--ink); }
.float-card span { color: var(--muted); font-size: var(--fs-xs); }
.float-card .icon-badge { width: 36px; height: 36px; border-radius: 10px; }
.float-card .icon-badge .icon { width: 18px; height: 18px; }

.float-card--b { bottom: 4%; inset-inline-end: -2%; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Image fallback (before generated art is added) */
.art-fallback { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.art-fallback img { width: 46%; opacity: .95; }

/* ---------- 7. Why (compare + pillars) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-bottom: var(--s-6); }
.compare__col { border-radius: var(--r-xl); padding: var(--s-8) var(--s-10); }
.compare__col h3 { font-size: var(--fs-h3); margin-bottom: var(--s-5); display: flex; align-items: center; gap: var(--s-3); }
.compare__col--old { background: var(--surface); border: 1px dashed var(--line-2); }
.compare__col--old h3 { color: var(--ink-2); }
.compare__col--new { background: var(--white); border: 1.5px solid var(--green-200); box-shadow: var(--sh-md); position: relative; }
.compare__col--new .tag {
  position: absolute; top: -14px; inset-inline-start: var(--s-10);
  background: var(--green-500); color: var(--white); font-size: var(--fs-xs); font-weight: 600;
  padding: 4px 12px; border-radius: var(--r-pill); box-shadow: 0 3px 0 var(--green-600);
}
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }

/* ---------- 8. Tracks ---------- */
.tracks__tabs { display: flex; justify-content: center; margin-bottom: var(--s-8); }
.track {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s-10); align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--s-8); box-shadow: var(--sh-sm);
}
.track[hidden] { display: none; }
.track.is-entering { animation: fadeUp 360ms var(--ease) both; }
.track__media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); background: var(--tint); display: grid; place-items: center; overflow: hidden; }
.track__media img.art { width: 92%; height: 92%; object-fit: contain; }
/* Art that is cropped at its own edges (e.g. a desk) sits flush with the card corner */
.track__media--bleed { place-items: end start; }
.track__media--bleed img.art { width: 100%; height: 100%; object-position: left bottom; }
.track__media .art-fallback img { width: 40%; }
.track__age {
  position: absolute; top: var(--s-4); inset-inline-start: var(--s-4);
  background: var(--white); color: var(--tone-ink); font-weight: 600; font-size: var(--fs-sm);
  padding: 4px 12px; border-radius: var(--r-pill); box-shadow: var(--sh-xs);
}
.track__body { display: grid; gap: var(--s-5); padding-inline-end: var(--s-4); }
.track__title { font-size: var(--fs-h1); }
.track__title span { color: var(--tone); }
.track__lead { color: var(--text-2); font-size: var(--fs-lg); }
.track__outcome {
  display: flex; gap: var(--s-3); align-items: center; padding: var(--s-4); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-sm);
}
.track__outcome strong { color: var(--ink); }
.track__meta { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- 9a. Pillars — cards with a live mini-visual ---------- */
.pillar {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: transparent; }
.pillar__stage {
  position: relative; isolation: isolate; overflow: hidden;
  height: 176px; border-radius: 18px; background: var(--tint);
  display: grid; place-items: center;
}
.pillar__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--tone) 26%, transparent) 1px, transparent 1.4px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(65% 65% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(65% 65% at 50% 50%, #000, transparent);
}
.pillar__body { padding: 20px 14px 14px; display: grid; gap: 6px; }
.pillar__body h3 { font-size: var(--fs-h3); }
.pillar__body p { color: var(--text-2); font-size: 15px; line-height: 1.75; }

/* Flowchart */
.viz-flow { width: 204px; overflow: visible; filter: drop-shadow(0 3px 6px rgba(8, 93, 49, .08)); }
.viz-flow .node { fill: var(--white); stroke: var(--green-200); stroke-width: 1.5; }
.viz-flow .node--yes { stroke: var(--green-400); }
.viz-flow .dia { fill: var(--green-500); }
.viz-flow .wire { fill: none; stroke: var(--green-400); stroke-width: 2; stroke-dasharray: 4 5; stroke-linecap: round; }
.viz-flow text { font-family: var(--font-body); font-size: 11px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.viz-flow .dia-t { fill: var(--white); }
.pillar:hover .viz-flow .wire { animation: dash 900ms linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }

/* AI chat */
.viz-chat { width: 212px; display: grid; gap: 8px; }
.viz-chat__msg { border-radius: 14px; padding: 8px 12px; font-size: 12px; line-height: 1.5; box-shadow: var(--sh-xs); }
.viz-chat__msg--me { justify-self: start; background: var(--white); color: var(--ink); font-weight: 500; border-start-start-radius: 4px; }
.viz-chat__msg--ai { justify-self: end; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #FFEAB0; border-start-end-radius: 4px; }
.viz-chat__avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--sun); color: var(--white); display: grid; place-items: center; flex: none; }
.viz-chat__avatar .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.viz-chat__lines { display: grid; gap: 4px; width: 96px; }
.viz-chat__lines i { height: 5px; border-radius: 9px; background: rgba(138, 90, 0, .26); }
.viz-chat__lines i:nth-child(2) { width: 78%; }
.viz-chat__lines i:nth-child(3) { width: 52%; }
.viz-chat__check {
  justify-self: end; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--green-700);
  background: var(--white); padding: 3px 10px 3px 8px; border-radius: var(--r-pill); box-shadow: var(--sh-xs);
}
.viz-chat__check .icon { width: 12px; height: 12px; stroke-width: 3; }
.pillar:hover .viz-chat__lines i { animation: shimmer 1.1s ease-in-out infinite; }
.pillar:hover .viz-chat__lines i:nth-child(2) { animation-delay: 120ms; }
.pillar:hover .viz-chat__lines i:nth-child(3) { animation-delay: 240ms; }
@keyframes shimmer { 50% { opacity: .35; } }

/* Password strength */
.viz-pass { width: 204px; display: grid; gap: 10px; }
.viz-pass__field {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  background: var(--white); border: 1.5px solid #9CD0F8; border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(59, 168, 245, .12); color: var(--sky-ink);
}
.viz-pass__field .icon { width: 16px; height: 16px; }
.viz-pass__dots { direction: ltr; font-size: 14px; font-weight: 700; letter-spacing: 1px; line-height: 1; color: var(--ink); }
.viz-pass__caret { width: 1.5px; height: 15px; background: var(--sky); animation: blink 1s steps(1) infinite; }
.viz-pass__meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.viz-pass__meter i { height: 6px; border-radius: 9px; background: var(--sky); }
.viz-pass__label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; color: var(--sky-ink); }
.viz-pass__label span { display: inline-flex; align-items: center; gap: 4px; }
.viz-pass__label .icon { width: 13px; height: 13px; }
.pillar:hover .viz-pass__meter i { animation: seg 1.8s var(--ease) infinite; }
.pillar:hover .viz-pass__meter i:nth-child(2) { animation-delay: 150ms; }
.pillar:hover .viz-pass__meter i:nth-child(3) { animation-delay: 300ms; }
.pillar:hover .viz-pass__meter i:nth-child(4) { animation-delay: 450ms; }
@keyframes seg { 0% { background: rgba(59, 168, 245, .18); } 35%, 100% { background: var(--sky); } }
@keyframes blink { 50% { opacity: 0; } }

/* Mini app being shipped */
.viz-app { position: relative; width: 192px; }
.viz-app__win { background: var(--white); border-radius: 12px; box-shadow: var(--sh-sm); overflow: hidden; }
.viz-app__bar { display: flex; gap: 4px; padding: 7px 9px; border-bottom: 1px solid var(--line); }
.viz-app__bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.viz-app__body { padding: 9px; display: grid; gap: 7px; }
.viz-app__hero { height: 44px; border-radius: 8px; background: linear-gradient(120deg, var(--coral), #FFA98F); padding: 10px; display: grid; gap: 5px; align-content: center; }
.viz-app__hero i { height: 5px; width: 60%; border-radius: 9px; background: rgba(255, 255, 255, .9); }
.viz-app__hero i + i { width: 36%; background: rgba(255, 255, 255, .6); }
.viz-app__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.viz-app__row span { height: 26px; border-radius: 7px; background: var(--coral-tint); }
.viz-app__ship {
  position: absolute; bottom: -12px; inset-inline-end: -14px;
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px 5px 10px;
  background: var(--coral); color: var(--white); font-size: 11.5px; font-weight: 700;
  border-radius: var(--r-pill); box-shadow: 0 3px 0 #E0573A;
  transition: transform 300ms var(--ease);
}
.viz-app__ship .icon { width: 13px; height: 13px; }
.pillar:hover .viz-app__ship { transform: translateY(-4px) rotate(-3deg); }

/* ---------- 9b. Platform showcase ---------- */
.showcase { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: var(--s-10); align-items: center; }
.showcase__list { display: grid; gap: 6px; }
.feat {
  position: relative; overflow: hidden; width: 100%;
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; text-align: start;
  padding: 16px 18px; border: 1px solid transparent; border-radius: var(--r-md); background: transparent;
  transition: background-color 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms var(--ease);
}
.feat:hover { background: rgba(255, 255, 255, .7); }
.feat .icon-badge { width: 42px; height: 42px; border-radius: 12px; }
.feat .icon-badge .icon { width: 20px; height: 20px; }
.feat__text { display: grid; padding-top: 7px; }
.feat__text strong { font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--ink-2); transition: color 250ms var(--ease); }
.feat__desc { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 350ms var(--ease), opacity 350ms var(--ease); }
.feat__desc > span { overflow: hidden; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.75; padding-top: 4px; }
.feat[aria-selected="true"] { background: var(--white); border-color: var(--line); box-shadow: var(--sh-md); }
.feat[aria-selected="true"] strong { color: var(--ink); }
.feat[aria-selected="true"] .feat__desc { grid-template-rows: 1fr; opacity: 1; }
.feat__progress { position: absolute; inset-inline: 18px; bottom: 0; height: 3px; border-radius: 3px; overflow: hidden; }
.feat__progress::after { content: ""; position: absolute; inset: 0; background: var(--tone); transform: scaleX(0); transform-origin: right; }
.showcase.is-playing:not(.is-manual) .feat[aria-selected="true"] .feat__progress::after { animation: progress 6s linear forwards; }
.showcase:hover .feat__progress::after { animation-play-state: paused !important; }
@keyframes progress { to { transform: scaleX(1); } }

.showcase__stage { position: relative; }
.showcase__stage::before {
  content: ""; position: absolute; inset: 6% -3% -5% 8%; z-index: 0;
  background: radial-gradient(closest-side, rgba(147, 225, 157, .5), transparent); filter: blur(24px);
}
.window {
  position: relative; z-index: 1; background: var(--white);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--sh-lg), 0 0 0 6px rgba(255, 255, 255, .7);
}
.window__bar { display: flex; align-items: center; gap: 12px; height: 46px; padding-inline: 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.window__dots, .window__spacer { display: flex; gap: 6px; width: 42px; }
.window__dots i { width: 10px; height: 10px; border-radius: 50%; background: #DCE4DF; }
.window__url {
  margin-inline: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 260px;
  direction: ltr; font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  background: var(--white); border: 1px solid var(--line); padding: 4px 14px; border-radius: var(--r-pill);
}
.window__url .icon { width: 12px; height: 12px; color: var(--green-600); }
.window__url b { color: var(--green-700); font-weight: 600; }
.window__body { display: grid; padding: 24px; }
.pane > * { height: 100%; }
.pane {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 350ms var(--ease), transform 450ms var(--ease), visibility 0s linear 350ms;
}
.pane.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 350ms var(--ease), transform 450ms var(--ease), visibility 0s; }

/* shared mock atoms */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  background: var(--tint, var(--sun-tint)); color: var(--tone-ink, var(--sun-ink));
}
.panel { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.panel__title { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.panel__title span { color: var(--muted); font-weight: 500; }
.bars { display: grid; gap: 11px; }
.bar__label { display: flex; justify-content: space-between; color: var(--ink-2); margin-bottom: 4px; font-size: 12px; font-weight: 500; }
.bar__track { height: 8px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.bar__fill { height: 100%; border-radius: inherit; background: var(--c, var(--green-500)); width: var(--w); transform-origin: right; }
.pane.is-active .bar__fill { animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes rise { from { transform: scaleY(0); } }

/* Pane: parent dashboard */
.dash { display: grid; gap: 14px; align-content: start; }
.dash__head { display: flex; align-items: center; gap: 12px; }
.dash__who strong { display: block; line-height: 1.3; }
.dash__who span { font-size: 13px; color: var(--muted); }
.pill { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--green-50); color: var(--green-700); font-size: 12px; font-weight: 600; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px rgba(64, 182, 88, .2); }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: grid; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b { font-family: var(--font-display); font-size: 26px; line-height: 1.35; color: var(--ink); }
.kpi small { font-size: 11px; color: var(--green-600); font-weight: 600; }
.dash__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.week { display: flex; justify-content: space-between; gap: 6px; height: 128px; }
.week span { flex: 1; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.week i { align-self: end; width: 100%; max-width: 20px; height: var(--h); border-radius: 6px 6px 3px 3px; background: var(--green-100); transform-origin: bottom; }
.week .is-today { color: var(--green-700); font-weight: 700; }
.week .is-today i { background: var(--green-500); }
.pane.is-active .week i { animation: rise 700ms var(--ease) both; }
.note { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--green-50); color: var(--green-900); font-size: 13px; }
.note .icon { width: 18px; height: 18px; color: var(--green-600); }

/* Pane: code playground */
.ide { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.ide__editor { display: flex; flex-direction: column; background: #0F1F17; border-radius: 14px; overflow: hidden; color: #CFE9D6; }
.ide__tabs { display: flex; gap: 2px; padding: 8px 8px 0; background: #0A1710; }
.ide__tabs span { font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border-radius: 8px 8px 0 0; color: #6F8F7C; }
.ide__tabs .is-on { background: #0F1F17; color: #E6F5EA; }
.ide__code { font-variant-ligatures: none; flex: 1; padding: 12px 0; font-family: var(--font-mono); font-size: 13px; line-height: 2; }
.ide__code > div { display: flex; gap: 16px; padding-inline: 14px; white-space: pre; }
.ide__code .ln { width: 12px; text-align: right; color: #4D6B59; }
.ide__code .hl { background: rgba(255, 122, 89, .1); box-shadow: inset 2px 0 0 var(--coral); }
.ide__code .k { color: #7FDB93; }
.ide__code .f { color: #FFD772; }
.ide__code .b { color: #8CCBFF; }
.ide__code .o { text-decoration: underline wavy var(--coral); text-underline-offset: 5px; }
.ide__console { margin: 0 10px 10px; padding: 8px 12px 10px; border-radius: 10px; background: #0A1710; font-family: var(--font-mono); font-size: 12px; line-height: 1.95; color: #9DB8A6; }
.ide__console-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 11px; color: #6F8F7C; }
.ide__run { padding: 1px 8px; border-radius: 6px; background: rgba(127, 219, 147, .1); color: #7FDB93; }
.ide__console > div:not(.ide__console-head) { display: flex; align-items: baseline; gap: 8px; }
.ide__console .ok { color: #7FDB93; }
.ide__console .bad { color: #FF9C82; }
.ide__console .is-fail { color: #FFD2C6; }
.ide__console em { margin-left: auto; font-style: normal; font-size: 11px; color: #FF9C82; }
.ide__ai { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--sun-tint), var(--white) 40%); }
.ide__ai-head { display: flex; align-items: center; gap: 10px; }
.ide__ai-head strong { display: block; font-size: 14px; line-height: 1.3; }
.ide__ai-head small { font-size: 11.5px; color: var(--muted); }
.spark { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--sun); color: var(--white); box-shadow: 0 3px 0 #E8A100; }
.spark .icon { width: 18px; height: 18px; }
.ide__chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.bubble { align-self: flex-start; max-width: 94%; padding: 9px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; border-start-start-radius: 4px; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }
.bubble code { direction: ltr; unicode-bidi: isolate; font-variant-ligatures: none; font-family: var(--font-mono); font-size: 11.5px; background: var(--surface); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.bubble--me { align-self: flex-end; background: var(--green-500); border-color: transparent; color: var(--white); border-radius: 14px; border-start-end-radius: 4px; box-shadow: 0 2px 0 var(--green-600); }
.bubble--me code { background: rgba(255, 255, 255, .22); color: var(--white); }
.bubble--typing { display: flex; gap: 4px; padding: 12px 14px; }
.bubble--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s ease-in-out infinite; }
.bubble--typing i:nth-child(2) { animation-delay: 150ms; }
.bubble--typing i:nth-child(3) { animation-delay: 300ms; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.ide__input { display: flex; align-items: center; gap: 8px; padding: 5px; padding-inline-start: 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); font-size: 12.5px; color: var(--muted); }
.ide__input > span:first-child { flex: 1; }
.ide__send { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green-500); color: var(--white); box-shadow: 0 2px 0 var(--green-600); }
.ide__send .icon { width: 14px; height: 14px; transform: scaleX(-1); }

/* Pane: live class */
.live { display: grid; grid-template-columns: 1fr 184px; grid-template-rows: 1fr auto; gap: 12px; }
.live__stage { display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, var(--sky-tint), var(--white) 75%); }
.live__top { display: flex; align-items: center; gap: 10px; }
.live__badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--white); color: #D93B3B; font-size: 12px; font-weight: 700; box-shadow: var(--sh-xs); }
.live__badge i { width: 7px; height: 7px; border-radius: 50%; background: #E5484D; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(229, 72, 77, .18); } }
.live__title { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.live__time { margin-inline-start: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); direction: ltr; }
.live__screen { flex: 1; display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 24px; }
.blocks { display: grid; gap: 6px; width: 200px; }
.blk { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--white); box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.blk b { padding: 0 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; }
.blk--start { background: var(--green-500); border-radius: 16px 16px 10px 10px; }
.blk--loop { display: block; padding: 0 0 10px; background: var(--sun); color: #4A3200; }
.blk--loop > span { display: flex; gap: 8px; align-items: center; padding: 8px 14px; }
.blk__inner { display: grid; gap: 6px; margin-inline-start: 16px; padding-inline-end: 10px; }
.blk--move { background: var(--sky); }
.blk--turn { background: var(--coral); }
.live__canvas { display: grid; justify-items: center; gap: 8px; }
.live__canvas svg {
  width: 136px; height: 136px; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-sm);
  background-color: var(--white);
  background-image: linear-gradient(var(--surface) 1px, transparent 1px), linear-gradient(90deg, var(--surface) 1px, transparent 1px);
  background-size: 12px 12px;
}
.live__path { fill: none; stroke: var(--green-500); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 240; }
.live__sprite rect { fill: var(--green-600); }
.live__sprite circle { fill: var(--white); }
.pane.is-active .live__path { animation: draw 2.2s var(--ease) 300ms both; }
@keyframes draw { from { stroke-dashoffset: 240; } }
.live__result { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--white); color: var(--green-700); font-size: 11.5px; font-weight: 600; box-shadow: var(--sh-xs); }
.live__result .icon { width: 12px; height: 12px; stroke-width: 3; }
.live__coach { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .96); box-shadow: var(--sh-sm); font-size: 12px; font-weight: 600; }
.live__coach .avatar { width: 28px; height: 28px; font-size: 13px; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 12px; }
.wave i { width: 3px; height: 100%; border-radius: 3px; background: var(--green-500); animation: wave 900ms ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: 150ms; }
.wave i:nth-child(3) { animation-delay: 300ms; }
@keyframes wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.live__side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.live__side-head { display: flex; justify-content: space-between; padding-inline: 2px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.live__side-head span { color: var(--muted); }
.live__people { display: grid; gap: 6px; }
.person { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.person .avatar { width: 26px; height: 26px; font-size: 12px; }
.person small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.person.is-hand { border-color: #FFD873; background: var(--sun-tint); }
.person.is-hand small { color: var(--sun-ink); }
.live__chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 8px; border-radius: 12px; background: var(--surface); }
.msg { padding: 6px 9px; border-radius: 10px; background: var(--white); box-shadow: var(--sh-xs); font-size: 11.5px; line-height: 1.6; color: var(--ink-2); }
.msg b { display: block; font-size: 11px; color: var(--tone-ink); }
.msg--coach { background: var(--green-50); box-shadow: none; }
.live__controls { grid-column: 1 / -1; display: flex; justify-content: center; gap: 10px; }
.ctrl { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.ctrl .icon { width: 18px; height: 18px; }
.ctrl--end { width: auto; padding-inline: 18px; border-radius: var(--r-pill); border: 0; background: #E5484D; color: var(--white); font-size: 13px; font-weight: 600; }

/* Pane: projects & badges */
.proj { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
.proj__level { display: grid; gap: 10px; padding: 16px 18px; border-radius: 14px; color: var(--white); background: linear-gradient(110deg, var(--green-500), var(--green-400)); box-shadow: 0 4px 0 var(--green-600); }
.proj__level-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.proj__level-top strong { font-family: var(--font-display); font-size: 19px; }
.proj__pct { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1; }
.proj__level small { font-size: 12px; opacity: .92; }
.xp { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.xp i { display: block; width: 84%; height: 100%; border-radius: inherit; background: var(--white); transform-origin: right; }
.pane.is-active .xp i { animation: grow 1.1s var(--ease) both; }
.proj__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.pcard__thumb { flex: 1; min-height: 124px; display: grid; place-items: center; padding: 14px; background: var(--tint); }
.pcard__body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; line-height: 1.4; }
.pcard__body strong { display: block; font-size: 13.5px; }
.pcard__body div span { font-size: 11.5px; color: var(--muted); }
.status { flex: none; padding: 2px 8px; border-radius: var(--r-pill); font-size: 10.5px; font-weight: 700; }
.status--live { background: var(--green-50); color: var(--green-700); }
.status--wip { background: var(--sun-tint); color: var(--sun-ink); }
.pv-quiz, .pv-money, .pv-bot { width: 100%; max-width: 156px; }
.pv-quiz { display: grid; gap: 8px; }
.pv-quiz__q { padding: 7px; border-radius: 10px; background: var(--white); box-shadow: var(--sh-xs); text-align: center; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.pv-quiz__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.pv-quiz__opts i { padding: 4px 0; border-radius: 8px; background: rgba(255, 255, 255, .8); text-align: center; font-style: normal; font-size: 12px; font-weight: 700; color: var(--coral-ink); }
.pv-quiz__opts .is-right { background: var(--green-500); color: var(--white); box-shadow: 0 2px 0 var(--green-600); }
.pv-quiz__track { position: relative; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .75); }
.pv-quiz__track b { position: absolute; inset-block: 0; inset-inline-start: 0; width: 62%; border-radius: inherit; background: var(--coral); }
.pv-money { display: grid; padding: 10px 12px; border-radius: 12px; background: var(--white); box-shadow: var(--sh-xs); }
.pv-money__label { font-size: 10.5px; color: var(--muted); }
.pv-money b { font-family: var(--font-display); font-size: 17px; line-height: 1.4; color: var(--ink); }
.pv-money__bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-top: 6px; }
.pv-money__bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--sky); opacity: .35; transform-origin: bottom; }
.pv-money__bars i:nth-child(4) { opacity: 1; }
.pane.is-active .pv-money__bars i { animation: rise 700ms var(--ease) both; }
.pv-bot { display: grid; gap: 6px; }
.pv-bot__q { justify-self: start; padding: 5px 10px; border-radius: 10px; border-start-start-radius: 3px; background: var(--white); box-shadow: var(--sh-xs); font-size: 11px; font-weight: 600; color: var(--ink); }
.pv-bot__a { justify-self: end; width: 82%; display: grid; gap: 4px; padding: 9px 10px; border-radius: 10px; border-start-end-radius: 3px; background: var(--sun); }
.pv-bot__a i { height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .9); }
.pv-bot__a i:nth-child(2) { width: 80%; }
.pv-bot__a i:nth-child(3) { width: 50%; }
.proj__badges { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px dashed var(--line-2); border-radius: 14px; }
.proj__badges > strong { font-size: 13px; margin-inline-end: 4px; }
.proj__badges > small { margin-inline-start: auto; font-size: 12px; color: var(--muted); }
.badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--tone); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .06); }
.badge .icon { width: 18px; height: 18px; }
.badge.is-locked { background: var(--surface); color: #B8C6BE; box-shadow: none; border: 1px dashed var(--line-2); }

/* Pane: safety */
.safe { display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.safe__hero { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(110deg, var(--grape-tint), var(--white)); }
.safe__shield { width: 52px; height: 52px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--grape); color: var(--white); box-shadow: 0 4px 0 #6E50D6; }
.safe__hero strong { display: block; font-size: 16px; line-height: 1.4; }
.safe__hero span { font-size: 13px; color: var(--muted); }
.safe__list { display: grid; grid-auto-rows: 1fr; gap: 8px; }
.srow { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; line-height: 1.45; }
.srow .icon-badge { width: 34px; height: 34px; border-radius: 10px; }
.srow .icon-badge .icon { width: 17px; height: 17px; }
.srow > div { flex: 1; }
.srow strong { display: block; font-size: 13.5px; }
.srow span { font-size: 12px; color: var(--muted); }
.toggle { position: relative; width: 38px; height: 22px; flex: none; border-radius: 99px; background: var(--green-500); }
.toggle::after { content: ""; position: absolute; top: 3px; inset-inline-end: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }

/* ---------- 10. Journey steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.steps__path { position: absolute; top: 28px; inset-inline: 12%; width: 76%; height: 40px; overflow: visible; pointer-events: none; }
.steps__track { fill: none; stroke: var(--green-200); stroke-width: 2.5; stroke-dasharray: 2 10; stroke-linecap: round; }
.steps__fill { fill: none; stroke: var(--green-500); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.steps__dot {
  position: absolute; top: 0; left: 0; z-index: 1; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: var(--green-500); border: 3px solid var(--white);
  box-shadow: 0 0 0 5px rgba(64, 182, 88, .18), 0 4px 10px rgba(35, 149, 75, .35);
  opacity: 0; transition: opacity 250ms var(--ease); pointer-events: none;
}
.steps.is-moving .steps__dot { opacity: 1; }
.step { position: relative; text-align: center; display: grid; justify-items: center; gap: var(--s-3); }
.step__num {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--white); border: 1.5px solid var(--green-200); color: var(--green-700);
  font-family: var(--font-display); font-weight: 800; font-size: 22px; box-shadow: 0 4px 0 var(--green-100);
  position: relative; z-index: 2;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.step h3 { font-size: 1.1875rem; margin-top: var(--s-2); }
.step p { color: var(--text-2); font-size: var(--fs-sm); max-width: 240px; }
.step h3, .step p { transition: opacity 400ms var(--ease); }
/* Scroll-driven states (set by app.js; without JS every step reads as normal) */
.steps.is-ready .step:not(.is-done) h3,
.steps.is-ready .step:not(.is-done) p { opacity: .4; }
.step.is-done .step__num { background: var(--green-500); border-color: var(--green-500); color: var(--white); box-shadow: 0 4px 0 var(--green-600); animation: pop 450ms var(--ease); }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.1); } 100% { transform: none; } }

/* ---------- 11. Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: var(--s-6); }
.plan { position: relative; display: grid; gap: var(--s-6); align-content: start; border-radius: var(--r-xl); padding: var(--s-10) var(--s-8) var(--s-8); }
.plan:hover { transform: none; }
.plan--featured { border: 1.5px solid var(--green-300); box-shadow: var(--sh-lg); }
.plan__badge {
  position: absolute; top: -14px; inset-inline-start: var(--s-8);
  background: var(--sun); color: #4A3200; font-size: var(--fs-xs); font-weight: 700;
  padding: 4px 12px; border-radius: var(--r-pill); box-shadow: 0 3px 0 #E8A100;
}
.plan__head { display: grid; gap: var(--s-2); }
.plan__head h3 { font-size: var(--fs-h3); display: flex; align-items: center; gap: var(--s-3); }
.plan__head p { color: var(--muted); font-size: var(--fs-sm); }
.plan hr { border: 0; border-top: 1px dashed var(--line-2); margin: 0; }

/* Prices */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price__now { display: inline-flex; align-items: baseline; gap: 6px; }
.price__now b { direction: ltr; font-family: var(--font-display); font-size: 46px; font-weight: 800; line-height: 1; color: var(--ink); }
.price__now small { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.price__old { direction: ltr; font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.price__save { align-self: center; padding: 3px 10px; border-radius: var(--r-pill); background: var(--coral-tint); color: var(--coral-ink); font-size: 12px; font-weight: 700; }
.price__per { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.plan__badge--soft { background: var(--sky-tint); color: var(--sky-ink); box-shadow: 0 3px 0 #C3E2FA; }
.plans__note { margin-top: var(--s-8); text-align: center; color: var(--text-2); font-size: 15px; }
.link-btn { padding: 0; border: 0; background: none; color: var(--green-700); font-weight: 700; text-decoration: underline; text-decoration-color: var(--green-200); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.link-btn:hover { text-decoration-color: var(--green-500); }

/* Track meta chips */
.track__meta .chip { background: var(--tint); border-color: transparent; color: var(--tone-ink); font-weight: 600; font-size: 13px; }
.track__meta .chip .icon { width: 16px; height: 16px; }

/* ---------- 11b. Reviews ---------- */
.reviews { overflow: hidden; }
.stars { display: inline-flex; gap: 2px; }
.star { width: 20px; height: 20px; }
.stars--lg .star { width: 30px; height: 30px; }
.reviews__rail {
  overflow: hidden; padding-block: 6px 26px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.reviews__track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.reviews__rail:hover .reviews__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(50%); } }
.review {
  flex: none; width: 340px; margin: 0; margin-inline-end: 20px; padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 14px; position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
.review::after { content: "\201D"; position: absolute; top: 4px; inset-inline-end: 18px; font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--green-100); }
.review blockquote { flex: 1; margin: 0; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.review figcaption { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line-2); line-height: 1.4; }
.review figcaption .avatar { width: 40px; height: 40px; font-size: 16px; }
.review figcaption b { display: block; font-size: 14.5px; }
.review figcaption small { font-size: 12.5px; color: var(--muted); }
.reviews__dots { display: none; }

/* ---------- 11c. Booking dialog ---------- */
body:has(.book[open]) { overflow: hidden; }
.book {
  width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; overflow: auto;
  border-radius: var(--r-lg); background: var(--white); color: var(--ink); box-shadow: var(--sh-lg);
}
.book::backdrop { background: rgba(5, 63, 33, .38); backdrop-filter: blur(4px); }
.book[open] { animation: bookIn 320ms var(--ease); }
@keyframes bookIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.book__form, .book__done { display: grid; gap: 18px; padding: 24px; }
.book__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.book__head h2 { font-size: 1.5rem; }
.book__head p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.book__close { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink-2); }
.book__close:hover { background: var(--line); }
.book fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.book__field { display: grid; gap: 8px; }
.book__field legend, .book__label { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.book__label { margin-bottom: 0; }
.book__field legend em { font-style: normal; font-weight: 500; color: var(--muted); }
.book input[type="text"], .book input[type="tel"] {
  width: 100%; height: 50px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); text-align: right;
  background: var(--white); border: 1.5px solid var(--line-2); border-radius: 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.book input[type="text"]:focus, .book input[type="tel"]:focus { outline: none; border-color: var(--green-400); box-shadow: 0 0 0 4px rgba(64, 182, 88, .15); }
.book input::placeholder { color: #A9B6AE; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; height: 40px; padding-inline: 6px; border-radius: 10px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--white); color: var(--green-800); box-shadow: var(--sh-sm), inset 0 0 0 1.5px var(--green-300); }
.seg input:focus-visible + span { outline: 3px solid var(--green-300); outline-offset: 1px; }
.kid { display: flex; align-items: center; gap: 8px; }
.kid + .kid { margin-top: 8px; }
.kid .seg { flex: 1; }
.kid__remove { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--coral-tint); color: var(--coral-ink); }
.kid__remove .icon { width: 16px; height: 16px; }
#addKid { justify-self: start; margin-top: 4px; font-size: 14px; }
.book__err { display: none; font-size: 12.5px; font-weight: 600; color: #D93B3B; }
.book__field.is-invalid .book__err { display: block; }
.book__field.is-invalid input[type="text"], .book__field.is-invalid input[type="tel"] { border-color: #E5484D; }
.book__field.is-invalid .seg { border-color: #F3A5A7; }
.book__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: -4px; font-size: 12.5px; color: var(--muted); text-align: center; }
.book__note .icon { width: 14px; height: 14px; color: var(--green-600); }
.book__done { justify-items: center; padding: 40px 28px 28px; text-align: center; }
.book__done h2 { font-size: 1.625rem; }
.book__done p { color: var(--text-2); }
.book__check { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: var(--green-500); color: var(--white); box-shadow: 0 5px 0 var(--green-600); animation: pop 500ms var(--ease); }
.book__check .icon { width: 36px; height: 36px; stroke-width: 3; }

/* ---------- 12. CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--green-500); color: var(--white); border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: var(--s-8);
  box-shadow: 0 6px 0 var(--green-600), var(--sh-lg);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%); mask-image: linear-gradient(to left, #000, transparent 70%);
}
.cta h2 { color: var(--white); font-size: var(--fs-h1); }
.cta p { color: rgba(255,255,255,.88); font-size: var(--fs-lg); margin-top: var(--s-3); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: flex-end; }
.cta__mark { position: absolute; inset-inline-end: -20px; bottom: -40px; font-family: var(--font-mono); font-weight: 700; font-size: 220px; line-height: 1; color: rgba(255,255,255,.08); z-index: -1; direction: ltr; }

/* ---------- 13. Footer ---------- */
.footer { padding-block: var(--s-16) var(--s-8); border-top: 1px solid var(--line); margin-top: var(--section-y); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-10); }
.footer__brand img { height: 52px; width: auto; margin-bottom: var(--s-4); }
.footer__brand p { color: var(--muted); font-size: var(--fs-sm); max-width: 300px; }
.footer__credit { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--muted); transition: color var(--dur) var(--ease); }
.footer__credit svg { display: block; height: 10px; width: auto; color: var(--ink); transition: color var(--dur) var(--ease); }
.footer__credit:hover, .footer__credit:hover svg { color: var(--green-700); }
.footer h4 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--s-4); color: var(--ink); }
.footer ul { display: grid; gap: var(--s-2); }
.footer li a { color: var(--muted); font-size: var(--fs-sm); transition: color var(--dur) var(--ease); }
.footer li a:hover { color: var(--green-700); }
.footer__bottom { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: var(--fs-xs); }
.footer__bottom code { font-family: var(--font-mono); color: var(--green-600); direction: ltr; display: inline-block; }

/* ---------- 14. Mobile CTA bar ---------- */
.mobile-bar {
  position: fixed; inset-inline: 12px; bottom: 12px; z-index: 60; display: none; gap: var(--s-2);
  padding: 8px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--sh-lg);
  transform: translateY(140%); transition: transform 300ms var(--ease);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { flex: 1; margin-bottom: 4px; }
.mobile-bar .btn--icon { flex: none; width: 48px; padding: 0; background: var(--green-50); color: var(--green-700); }

/* ---------- 15. Motion utilities ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header__actions .btn--ghost { display: none; }
  .header__inner { justify-content: space-between; }
  .nav.is-open {
    display: grid; position: absolute; top: 76px; inset-inline: 12px; margin: 0; padding: var(--s-3);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  }
  .nav.is-open a { padding: 12px 16px; font-size: var(--fs-md); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: var(--s-6); }
  .showcase__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scroll-snap-type: x mandatory; }
  .showcase__list::-webkit-scrollbar { display: none; }
  .feat { flex: none; width: auto; grid-template-columns: auto auto; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: var(--r-pill); border-color: var(--line); background: var(--white); scroll-snap-align: start; }
  .feat .icon-badge { width: 32px; height: 32px; border-radius: 50%; }
  .feat .icon-badge .icon { width: 16px; height: 16px; }
  .feat__text { padding: 0; }
  .feat__text strong { font-size: 14px; white-space: nowrap; }
  .feat__desc { display: none; }
  .feat[aria-selected="true"] { border-color: var(--tone); box-shadow: var(--sh-sm); }
  .feat__progress { inset-inline: 16px; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero__copy { justify-items: center; text-align: center; }
  .hero__ctas, .hero__trust { justify-content: center; }
  .hero__visual { max-width: 460px; }
  .compare, .track, .cta, .plans { grid-template-columns: 1fr; }
  .compare__col { padding: var(--s-8) var(--s-6); }
  .track { padding: var(--s-5); gap: var(--s-6); }
  .track__media { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-10); }
  .steps__path { display: none; }
  .cta__actions { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .mobile-bar { display: flex; }
  .footer { padding-bottom: 96px; }
}
@media (max-width: 600px) {
  .header__actions .btn--primary { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .window__body { padding: 14px; min-height: 0; }
  .window__url { min-width: 0; }
  .window__dots, .window__spacer { width: auto; }
  .window__spacer { display: none; }
  .dash__kpis { gap: 8px; }
  .kpi { padding: 8px 10px; }
  .kpi b { font-size: 20px; }
  .kpi small { display: none; }
  .dash__grid, .ide, .live { grid-template-columns: 1fr; }
  .dash__grid .panel + .panel { display: none; }
  .live__people { grid-template-columns: 1fr 1fr; }
  .live__side, .live__title { display: none; }
  .ide__console, .ide__input, .ide__chat .bubble:first-child { display: none; }
  .window { zoom: .9; }
  .window__bar { height: 40px; }
  .note, .bubble--typing, .ide__code > div:nth-child(5), .srow span { display: none; }
  .ide { gap: 10px; }
  .ide__ai { padding: 12px; gap: 10px; }
  .ide__code { padding: 8px 0; line-height: 1.9; }
  .srow { padding: 9px 12px; }
  .safe__hero { padding: 12px; }
  .safe__shield { width: 44px; height: 44px; border-radius: 14px; }
  .live__screen { gap: 10px; }
  .blocks { width: 168px; }
  .blk { font-size: 11.5px; padding: 7px 10px; }
  .blk--loop > span { padding: 7px 10px; }
  .blk__inner { margin-inline-start: 10px; padding-inline-end: 8px; }
  .live__canvas svg { width: 96px; height: 96px; }
  .proj__grid { grid-template-columns: 1fr 1fr; }
  .proj__grid .pcard:nth-child(3), .proj__badges > small { display: none; }
  .proj__badges { gap: 8px; padding: 10px 12px; }
  .badge { width: 34px; height: 34px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 8px 6px; font-size: var(--fs-sm); }
  .float-card { display: none; }
  .steps { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--s-2); }
}

/* ---------- 17. Mobile experience ---------- */
@media (max-width: 600px) {
  /* Hero: the kids come first, at a calm size */
  .hero { padding-block: 12px 56px; }
  .hero__grid { gap: 20px; }
  .hero__visual { order: -1; max-width: 320px; }
  .hero__copy { gap: 18px; }

  /* Journey becomes a vertical timeline whose line fills on scroll */
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before, .steps::after { content: ""; position: absolute; inset-inline-start: 27px; top: 28px; bottom: 44px; width: 2px; border-radius: 2px; }
  .steps::before { background: repeating-linear-gradient(to bottom, var(--green-200) 0 4px, transparent 4px 10px); }
  .steps::after { background: var(--green-500); transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step { grid-template-columns: 56px 1fr; column-gap: 16px; row-gap: 2px; align-items: start; justify-items: start; text-align: start; }
  .step__num { grid-row: span 2; }
  .step h3 { margin-top: 4px; }
  .step p { max-width: none; }
}

@media (max-width: 600px) {
  :root { --section-y: 64px; }
  html { scroll-padding-top: 72px; }
  body { -webkit-tap-highlight-color: transparent; }

  /* Header */
  .header__inner { height: 64px; }
  .header__logo img { height: 40px; }
  .nav.is-open { top: 64px; }

  /* Hero */
  .hero__visual { max-width: 290px; }
  .hero__title { font-size: 2.125rem; line-height: 1.28; }
  .hero__lead { font-size: var(--fs-md); line-height: 1.85; }
  .hero__ctas { width: 100%; flex-direction: column; gap: 10px; padding-top: 0; }
  .hero__ctas .btn { width: 100%; }
  .hero__trust { gap: 8px; }
  .hero__trust span { padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; }
  .hero__trust .icon { width: 15px; height: 15px; }

  /* Section heads */
  .section__head { margin-bottom: 32px; gap: 10px; }
  .section__title { font-size: 1.625rem; }
  .section__lead { font-size: var(--fs-md); }

  /* Compare */
  .compare { gap: 22px; margin-bottom: 20px; }
  .compare__col { padding: 22px 20px; border-radius: var(--r-lg); }
  .compare__col h3 { font-size: 1.1875rem; margin-bottom: 14px; }
  .compare__col--new .tag { inset-inline-start: 20px; }
  .checks { gap: 10px; }
  .checks li { font-size: 15px; }

  /* Pillars: swipeable row with a peek of the next card */
  .pillars {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
  }
  .pillars::-webkit-scrollbar { display: none; }
  .pillar { flex: 0 0 80%; scroll-snap-align: start; }
  .pillar:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .pillar__stage { height: 156px; }
  .pillar__body { padding: 16px 12px 12px; }
  .pillar__body h3 { font-size: 1.1875rem; }
  .pillar__body p { font-size: 14px; }

  /* Tracks */
  .tracks__tabs { margin-bottom: 20px; }
  .track { padding: 12px; gap: 18px; border-radius: var(--r-lg); }
  .track__media { aspect-ratio: 16 / 11; }
  .track__body { gap: 14px; padding: 0 6px 6px; }
  .track__title { font-size: 1.75rem; }
  .track__lead { font-size: var(--fs-md); }
  .track__outcome { padding: 12px; }
  .track__body .btn { width: 100%; }

  /* Journey */
  .step h3 { font-size: 1.0625rem; }

  /* Plans */
  .plan { padding: 30px 20px 20px; gap: 18px; }
  .plan__badge { inset-inline-start: 20px; }

  /* FAQ */
  .faq summary { font-size: var(--fs-md); padding: 16px 18px; }
  .faq details p { padding: 0 18px 18px; font-size: 15px; }
  .faq summary .faq__icon { width: 28px; height: 28px; }

  /* Final CTA */
  .cta { padding: 32px 22px; border-radius: var(--r-lg); gap: 22px; }
  .cta h2 { font-size: 1.625rem; }
  .cta p { font-size: var(--fs-md); }
  .cta__actions { flex-direction: column; }
  .cta__actions .btn { width: 100%; }
  .cta__mark { font-size: 140px; bottom: -24px; }

  /* Footer */
  .footer { padding-top: 48px; margin-top: 64px; }
  .footer__grid { gap: 28px 20px; }
}

/* ---------- 18. Tablet (601–860px): side by side, compact ---------- */
@media (min-width: 601px) and (max-width: 860px) {
  :root { --section-y: 80px; }
  .section__head { margin-bottom: 40px; }
  .section__title { font-size: 1.875rem; }

  /* Hero: two columns again, text a little smaller */
  .hero { padding-block: 24px 64px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 24px; }
  .hero__copy { justify-items: start; text-align: start; gap: 18px; }
  .hero__title { font-size: 2.375rem; line-height: 1.25; }
  .hero__lead { font-size: var(--fs-md); }
  .hero__ctas, .hero__trust { justify-content: flex-start; }
  .hero__ctas .btn--lg { --btn-h: 50px; padding-inline: 20px; font-size: var(--fs-md); }
  .hero__trust { gap: 6px 14px; font-size: 13px; }
  .hero__visual { max-width: none; }
  .float-card { padding: 8px 12px 8px 10px; }
  .float-card--b { bottom: 0; inset-inline-end: 0; }

  /* Why */
  .compare { grid-template-columns: 1fr 1fr; gap: 16px; }
  .compare__col { padding: 26px 22px; border-radius: var(--r-lg); }
  .compare__col h3 { font-size: 1.1875rem; }
  .compare__col--new .tag { inset-inline-start: 22px; }
  .checks { gap: 10px; }
  .checks li { font-size: 14.5px; }
  .pillars { gap: 14px; }
  .pillar__stage { height: 150px; }

  /* Tracks: image beside the content */
  .track { grid-template-columns: .9fr 1.1fr; gap: 22px; padding: 16px; }
  .track__media { aspect-ratio: 1 / 1; }
  .track__body { gap: 14px; padding-inline-end: 4px; }
  .track__title { font-size: 1.75rem; }
  .track__lead { font-size: 15px; }
  .track__body .checks li { font-size: 14px; }
  .track__outcome { padding: 10px 12px; font-size: 13px; }

  /* Journey: back to the horizontal path */
  .steps { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .steps__path { display: block; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: 13px; }

  /* Plans: side by side, tighter */
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .plan { padding: 30px 18px 18px; gap: 16px; }
  .plan__badge { inset-inline-start: 18px; }
  .plan__head h3 { font-size: 1.125rem; }
  .plan__head p { font-size: 13px; }
  .plan .checks li { font-size: 14px; }
  .plan .btn--lg { --btn-h: 50px; font-size: 15px; padding-inline: 16px; }

  /* FAQ */
  .faq summary { font-size: 1.0625rem; }

  /* Final CTA: text beside the buttons */
  .cta { grid-template-columns: 1fr auto; padding: 36px 32px; gap: 24px; }
  .cta h2 { font-size: 1.75rem; }
  .cta p { font-size: var(--fs-md); }
  .cta__actions { flex-direction: column; }

  /* The header already carries the booking button on tablets */
  .mobile-bar { display: none; }
  .footer { padding-bottom: var(--s-8); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
}

/* ---------- 19. Reviews & booking on small screens ---------- */
@media (max-width: 860px) {
  .review { width: 300px; }
}
@media (max-width: 600px) {
  .price__now b { font-size: 40px; }
  .reviews__rail { -webkit-mask-image: none; mask-image: none; padding-block: 0; }
  .reviews__track {
    width: auto; animation: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 6px var(--gutter) 18px; scroll-padding-inline: var(--gutter);
  }
  .reviews__track::-webkit-scrollbar { display: none; }
  .review { width: calc(100vw - var(--gutter) * 2); margin-inline-end: 12px; scroll-snap-align: center; }
  .review.is-clone { display: none; }
  .reviews__dots { display: flex; justify-content: center; gap: 6px; }
  .reviews__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line-2); transition: width 300ms var(--ease), background-color 300ms var(--ease); }
  .reviews__dots button.is-active { width: 24px; background: var(--green-500); }

  /* Booking dialog becomes a bottom sheet */
  .book { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .book[open] { animation: sheetIn 340ms var(--ease); }
  .book__form, .book__done { padding: 20px 18px 24px; gap: 16px; }
  .book__head h2 { font-size: 1.3125rem; }
  .seg span { font-size: 13px; height: 38px; }
}
@keyframes sheetIn { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .reviews__track { width: auto; overflow-x: auto; }
}

/* Login link appears inside the mobile menu only (the header shows its own button on desktop) */
.nav__login { display: none; }
@media (max-width: 1080px) {
  .nav.is-open .nav__login { display: block; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); border-radius: 0; color: var(--green-700); font-weight: 600; }
}

/* ---------- 18. English (left-to-right) ---------- */
/* Logical properties flip most of the layout on their own; these are the physical leftovers */
[dir="ltr"] .icon:has(> use[href="#i-arrow"]) { transform: scaleX(-1); }
[dir="ltr"] .ide__send .icon { transform: none; }
[dir="ltr"] .feat__progress::after, [dir="ltr"] .bar__fill, [dir="ltr"] .xp i { transform-origin: left; }
[dir="ltr"] .steps__path { transform: scaleX(-1); }
[dir="ltr"] .reviews__track { animation-name: marquee-ltr; }
@keyframes marquee-ltr { to { transform: translateX(-50%); } }
[dir="ltr"] .cta::before { -webkit-mask-image: linear-gradient(to right, #000, transparent 70%); mask-image: linear-gradient(to right, #000, transparent 70%); }
[dir="ltr"] .book input[type="text"], [dir="ltr"] .book input[type="tel"] { text-align: left; }
