/* @import MUST come before any other rules per CSS spec */
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&family=JetBrains+Mono:wght@400;500&family=Inter:wght@400;500;700;800&family=Jersey+15&display=swap");

/* ─────────────────────────────────────────────────────────────
   Tokens — Palette B (Sand) — warmer beige direction
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #F0E6D2;
  --surface: #E5D8BC;
  --surface-deep: #D8C7A1;
  --text: #2D2620;
  --text-soft: #6B5F52;
  --dot: rgba(45, 38, 32, 0.08);
  --border: rgba(45, 38, 32, 0.18);
  --border-strong: #2D2620;
  --button-bg: #2D2620;
  --button-text: #F0E6D2;

  --font-arabic: "Thmanyah", "Tajawal", "IBM Plex Sans Arabic",
                 "Noto Naskh Arabic", system-ui, sans-serif;
  --font-mono:  "JetBrains Mono", "IBM Plex Mono", ui-monospace,
                "SF Mono", monospace;

  --pixel-cursor: 24px;
  --max-width: 720px;
}

/* Thmanyah Sans — local OTFs in /fonts */
@font-face {
  font-family: "Thmanyah";
  src: url("fonts/thmanyahsans-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah";
  src: url("fonts/thmanyahsans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah";
  src: url("fonts/thmanyahsans-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah";
  src: url("fonts/thmanyahsans-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah";
  src: url("fonts/thmanyahsans-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* English mode: Inter for body, Jersey 15 for display headings */
body.is-en {
  --font-arabic: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display-en: "Jersey 15", "Inter", sans-serif;
}

body.is-en .hero__title,
body.is-en .values__title,
body.is-en .form__title,
body.is-en .value-card__title,
body.is-en .tooltip__name {
  font-family: var(--font-display-en);
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────────────
   Wordmark — inline brand pill, sits above the hero headline
   ───────────────────────────────────────────────────────────── */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem;
  border: 2px solid var(--border-strong);
  background: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--text);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--border-strong);
  transition: transform 100ms ease, box-shadow 100ms ease;
  direction: ltr;
  align-self: center;
  margin-bottom: 0.25rem;
}

.wordmark:hover,
.wordmark:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--border-strong);
}

.wordmark__icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.wordmark__icon svg {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

/* ─────────────────────────────────────────────────────────────
   Language switcher
   ───────────────────────────────────────────────────────────── */
.lang-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem; /* physical right — same corner in both languages */
  z-index: 20;
  display: inline-flex;
  border: 2px solid var(--border-strong);
  background: var(--bg);
  font-family: var(--font-mono);
  box-shadow: 4px 4px 0 var(--border-strong);
  /* Lock direction so AR (left) / EN (right) don't swap when language toggles */
  direction: ltr;
}
.lang-switcher__btn {
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  background: transparent;
  color: var(--text);
}
.lang-switcher__btn + .lang-switcher__btn {
  border-left: 2px solid var(--border-strong);
}
.lang-switcher__btn.is-active {
  background: var(--text);
  color: var(--bg);
}

/* ─────────────────────────────────────────────────────────────
   Reset
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: 0; padding: 0; cursor: inherit; }

html {
  font-family: var(--font-arabic);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  /* subtle pixel dot grid — fills the whole canvas */
  background-image:
    radial-gradient(circle, var(--dot) 1px, transparent 1.5px);
  background-size: 22px 22px;
  background-position: 0 0;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────────────────────────
   Custom 8-bit cursor (whole page)
   Two-tone: black outline + white fill.
   Hotspot tuned to the arrow tip.
   ───────────────────────────────────────────────────────────── */
html, body {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 12 12' shape-rendering='crispEdges'><g fill='%232D2620'><rect x='1' y='1' width='1' height='1'/><rect x='1' y='2' width='2' height='1'/><rect x='1' y='3' width='3' height='1'/><rect x='1' y='4' width='4' height='1'/><rect x='1' y='5' width='5' height='1'/><rect x='1' y='6' width='6' height='1'/><rect x='1' y='7' width='7' height='1'/><rect x='1' y='8' width='4' height='1'/><rect x='1' y='9' width='2' height='1'/><rect x='4' y='9' width='2' height='1'/><rect x='5' y='10' width='2' height='1'/><rect x='6' y='11' width='1' height='1'/></g><g fill='%23FAFAFA'><rect x='2' y='2' width='1' height='1'/><rect x='2' y='3' width='1' height='2'/><rect x='3' y='3' width='1' height='3'/><rect x='2' y='5' width='2' height='3'/><rect x='4' y='4' width='1' height='4'/><rect x='5' y='5' width='1' height='3'/><rect x='6' y='6' width='1' height='2'/><rect x='2' y='8' width='2' height='1'/></g></svg>") 1 1, auto;
}

/* Pointer state — chunkier finger for clickables */
a, button, [role="button"], label, select, input, textarea {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 14 14' shape-rendering='crispEdges'><g fill='%232D2620'><rect x='5' y='1' width='2' height='1'/><rect x='4' y='2' width='1' height='4'/><rect x='7' y='2' width='1' height='4'/><rect x='3' y='5' width='1' height='1'/><rect x='2' y='6' width='1' height='6'/><rect x='8' y='5' width='1' height='1'/><rect x='9' y='5' width='1' height='1'/><rect x='10' y='5' width='1' height='1'/><rect x='11' y='6' width='1' height='6'/><rect x='3' y='12' width='9' height='1'/></g><g fill='%23FAFAFA'><rect x='5' y='2' width='2' height='4'/><rect x='4' y='6' width='1' height='6'/><rect x='5' y='6' width='6' height='6'/></g></svg>") 6 1, pointer;
}

input, textarea {
  cursor: text;
}

/* ─────────────────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4rem);
  padding: 1.25rem 1.5rem 1rem;
}

/* In LTR, reverse flex order so El Abbasy (DOM[1]) lands on the right
   and Maher (DOM[3]) lands on the left, matching the RTL composition */
[dir="ltr"] .hero {
  flex-direction: row-reverse;
}

.hero__center {
  position: relative;
  flex: 1 1 auto;
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  z-index: 2;
}

/* PRESS-START style microcopy above the giant headline */
.hero__tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  letter-spacing: 0.32em;
  color: var(--text-soft);
  margin: 0 0 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  direction: ltr;
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--border-strong);
  background: var(--bg);
}

.hero__tagline::before,
.hero__tagline::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--border-strong);
  display: inline-block;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: clamp(4rem, 16vw, 11rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

/* Arabic glyphs in Thmanyah have descenders/diacritics that bleed past the
   line box — give the first line generous breathing room in Arabic mode */
body:not(.is-en) .hero__title-line-1 {
  line-height: 1.35;
  padding-bottom: 0.1em;
}

.hero__title-line-2 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7em;
  letter-spacing: 0.02em;
}

/* In Arabic mode, line 2 is Arabic text — use Arabic font and tighter sizing */
body:not(.is-en) .hero__title-line-2 {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 0.5em;
  letter-spacing: 0;
}

.hero__subtitle {
  font-family: var(--font-arabic);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-soft);
  margin: 1rem 0 0;
  max-width: 42ch;
  align-self: center;
}

/* Giant ghost watermark behind the title */
.hero__watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(12rem, 40vw, 32rem);
  color: var(--surface-deep);
  opacity: 0.5;
  letter-spacing: -0.05em;
  user-select: none;
  line-height: 1;
}

/* ─────────────────────────────────────────────────────────────
   Characters
   ───────────────────────────────────────────────────────────── */
.character {
  position: relative;
  display: block;
  width: clamp(170px, 26vw, 340px);
  aspect-ratio: 1086 / 1448;
  isolation: isolate;
  outline: none;
}

.character img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  user-select: none;
  pointer-events: none;
  transform-origin: 50% 90%; /* tilt around feet */
  animation: bob 1.6s ease-in-out infinite alternate;
  transition: transform 120ms ease-out;
}

/* Flex layout: characters are flex items at the ends, hero__center is between */
.character { flex-shrink: 0; }

/* Bob timing varies per side so they're not in lockstep */
.character--left img  { animation: bob     1.6s ease-in-out infinite alternate; }
.character--right img { animation: bob-rev 1.4s ease-in-out infinite alternate; }

/* Shift each tooltip toward the page center (so they sit closer to the title) */
.character--left  .tooltip { transform: translate(calc(-50% + var(--shift)), 100%); }
.character--right .tooltip { transform: translate(calc(-50% - var(--shift)), 100%); }

/* Flip is independent of side — apply to whichever character should face left */
.character--flipped img {
  transform: scaleX(-1);
}

@keyframes bob {
  from { translate: 0 0; }
  to   { translate: 0 -8px; }
}
@keyframes bob-rev {
  from { translate: 0 -4px; }
  to   { translate: 0 -12px; }
}

/* Body-tilt-toward-cursor (driven by JS via --tilt CSS var) */
.character img {
  transform: rotate(var(--tilt, 0deg));
}
.character--flipped img {
  transform: scaleX(-1) rotate(calc(var(--tilt, 0deg) * -1));
}

/* ─────────────────────────────────────────────────────────────
   Tooltip (pixel-themed)
   ───────────────────────────────────────────────────────────── */
/* Tooltip — always visible, positioned BELOW the character (game character-select card) */
.tooltip {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translate(-50%, 100%);
  /* fixed width so AR and EN read at the same size */
  width: 28rem;
  max-width: calc(100vw - 2rem);
  /* Min height so both bio cards land at roughly the same height */
  min-height: 15rem;
  --shift: clamp(40px, 6vw, 100px);
  background: #FAF4E4;
  color: var(--text);
  border: 3px solid var(--border-strong);
  box-shadow: 6px 6px 0 var(--border-strong);
  padding: 1rem 1.15rem;
  font-family: var(--font-arabic);
  text-align: start; /* logical: right in RTL, left in LTR */
  pointer-events: auto; /* allow clicking the LinkedIn name link */
  z-index: 3;
}


/* Row holding the name + optional portfolio link */
.tooltip__name-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
  direction: ltr;
}

.tooltip__name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.6rem;
  text-align: left;
  direction: ltr;
  text-decoration: none;
  border-bottom: 3px solid var(--text);
  padding-bottom: 2px;
  transition: color 120ms ease, border-color 120ms ease;
}

/* When inside a row, the name doesn't need its own bottom margin */
.tooltip__name-row .tooltip__name {
  margin-bottom: 0;
}

/* Secondary link (portfolio) — bigger so it doesn't disappear next to the name */
.tooltip__sublink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 3px solid var(--text);
  padding-bottom: 2px;
  transition: color 100ms ease, border-color 100ms ease;
  direction: ltr;
}

/* Default external-link arrow */
.tooltip__sublink::after {
  content: "↗";
  font-size: 1.1em;
  line-height: 1;
  margin-inline-start: 0.05em;
}

/* Figma-specific modifier — Maher's portfolio is on Figma */
.tooltip__sublink--figma::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  background: url("assets/stickers/figma.png") no-repeat center / contain;
  image-rendering: pixelated;
  vertical-align: -0.15em;
  margin-inline-start: 0.15em;
}

.tooltip__sublink:hover,
.tooltip__sublink:focus-visible {
  color: var(--text-soft);
  border-color: var(--text-soft);
}

.tooltip__name::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background: url("assets/stickers/linkedin.png") no-repeat center / contain;
  image-rendering: pixelated;
  vertical-align: -0.1em;
  margin-inline-start: 0.15em;
}

.tooltip__name:hover,
.tooltip__name:focus-visible {
  color: var(--text-soft);
  border-color: var(--text-soft);
}

body.is-en .tooltip__name {
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.tooltip__bio {
  font-size: 1.025rem;
  line-height: 1.65;
  margin: 0 0 0.85rem;
}

/* Flags block — label above, bigger emoji flags */
.tooltip__flags-block {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tooltip__flags-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: start;
}

body:not(.is-en) .tooltip__flags-label {
  font-family: var(--font-arabic);
  letter-spacing: 0;
  font-size: 0.85rem;
  text-transform: none;
}

.tooltip__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 1.5rem;
  line-height: 1;
}

.tooltip__flags .flag {
  display: inline-block;
  font-size: 1.5rem;
}

/* Defensive: cap any sub-element so a stale cache can't blow them up */
.tooltip__flags svg,
.tooltip__flags img {
  max-width: 28px;
  max-height: 18px;
  display: inline-block;
}

/* ─────────────────────────────────────────────────────────────
   Stickers (scattered pixel decorations)
   ───────────────────────────────────────────────────────────── */
.stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  height: 80vh;
}

.sticker {
  position: absolute;
  width: 64px;
  height: 64px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  image-rendering: pixelated;
  opacity: 1;
  animation: stickerFloat 5s ease-in-out infinite alternate;
}

.sticker--sm { width: 44px; height: 44px; opacity: 0.9; }
.sticker--lg { width: 90px; height: 90px; }

/* PNG pixel-art stickers — sourced from /assets/stickers */
.sticker--claude  { background-image: url("assets/stickers/claude.png");  animation-delay: 0.0s; }
.sticker--chatgpt { background-image: url("assets/stickers/chatgpt.png"); animation-delay: 0.7s; }
.sticker--heart   { background-image: url("assets/stickers/heart.png");   animation-delay: 1.4s; }
.sticker--replit  { background-image: url("assets/stickers/replit.png");  animation-delay: 2.1s; }
.sticker--figma   { background-image: url("assets/stickers/figma.png");   animation-delay: 2.8s; }
.sticker--note    { background-image: url("assets/stickers/note.png");    animation-delay: 3.5s; }
.sticker--wand    { background-image: url("assets/stickers/wand.png");    animation-delay: 4.2s; }
.sticker--bulb    { background-image: url("assets/stickers/bulb.png");    animation-delay: 4.9s; }

@keyframes stickerFloat {
  from { translate: 0 0; rotate: -2deg; }
  to   { translate: 0 -6px; rotate: 2deg; }
}

/* ─────────────────────────────────────────────────────────────
   Sparkles (cursor trail in hero only, JS-driven)
   ───────────────────────────────────────────────────────────── */
.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--text);
  image-rendering: pixelated;
  animation: sparkleFade 800ms ease-out forwards;
}

@keyframes sparkleFade {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.4) translateY(-12px); }
}

/* ─────────────────────────────────────────────────────────────
   Hero CTA — primary call to action under the headline
   ───────────────────────────────────────────────────────────── */
.hero__cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 1rem 2rem;
  background: var(--button-bg);
  color: var(--button-text);
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid var(--button-bg);
  box-shadow: 6px 6px 0 var(--border-strong);
  transition: transform 100ms ease, box-shadow 100ms ease;
}

body.is-en .hero__cta {
  font-family: var(--font-display-en);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: 0.03em;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--border-strong);
}

.hero__cta:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 var(--border-strong);
}

/* ─────────────────────────────────────────────────────────────
   Pricing
   ───────────────────────────────────────────────────────────── */
.pricing {
  padding: 3rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.pricing__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.pricing__tagline {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  letter-spacing: 0.32em;
  color: var(--text-soft);
  border: 2px solid var(--border-strong);
  padding: 0.4rem 0.8rem;
  background: var(--bg);
  direction: ltr;
}

.pricing__title {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0;
  letter-spacing: -0.01em;
  text-align: center;
}

body.is-en .pricing__title {
  font-family: var(--font-display-en);
  letter-spacing: 0.02em;
}

.pricing__card {
  max-width: 560px;
  margin: 0 auto;
  background: #FAF4E4;
  border: 3px solid var(--border-strong);
  box-shadow: 8px 8px 0 var(--border-strong);
  padding: 2rem 1.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

/* Cohort banner — flashing standout so users know the price is for 6 months */
.pricing__cohort {
  display: inline-block;
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.55rem 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  animation: cohortFlash 1.8s ease-in-out infinite;
}

body.is-en .pricing__cohort {
  font-family: var(--font-display-en);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

@keyframes cohortFlash {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(198, 75, 58, 0);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(198, 75, 58, 0.35);
    transform: scale(1.03);
  }
}

/* Two plan options side-by-side */
.pricing__plans {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  margin: 0.5rem 0;
}

.pricing__plan {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.6rem;
  border: 2px solid var(--border);
  background: var(--bg);
}

.pricing__plan--once {
  border-color: var(--text);
  border-width: 3px;
  box-shadow: 4px 4px 0 var(--text);
}

.pricing__plans-or {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.1em;
}

.pricing__plan-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  text-transform: uppercase;
  direction: ltr;
}

body.is-en .pricing__plan-tag {
  font-family: var(--font-mono);
}

.pricing__plan-note {
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  color: var(--text-soft);
  text-align: center;
}

.pricing__subtitle {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-top: 0.25rem;
}

/* Single-plan pricing — total line under the monthly amount */
.pricing__total {
  font-family: var(--font-arabic);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-soft);
  border-top: 2px dashed var(--border);
  padding-top: 0.85rem;
  margin-top: 0.5rem;
  width: 100%;
  text-align: center;
}

body.is-en .pricing__total {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .pricing__plans {
    flex-direction: column;
    gap: 0.6rem;
  }
  .pricing__plans-or {
    justify-content: center;
    padding: 0.25rem 0;
  }
}

.pricing__amount {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.pricing__price {
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  direction: ltr;
}

body.is-en .pricing__price {
  font-family: var(--font-display-en);
  font-size: clamp(4.5rem, 9vw, 6.5rem);
}

.pricing__currency {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.pricing__duration {
  font-family: var(--font-arabic);
  font-size: 1rem;
  color: var(--text-soft);
  border-top: 2px dashed var(--border);
  padding-top: 0.85rem;
  margin-top: 0.25rem;
  width: 100%;
}

.pricing__perks {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.pricing__perk {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: start;
  font-family: var(--font-arabic);
  font-size: 1rem;
  line-height: 1.5;
}

.pricing__perk-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--text);
}

.pricing__cta {
  align-self: stretch;
  margin-top: 0.85rem;
  padding: 1.05rem 1.5rem;
  background: var(--button-bg);
  color: var(--button-text);
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--button-bg);
  transition: transform 100ms ease, box-shadow 100ms ease;
}

body.is-en .pricing__cta {
  font-family: var(--font-display-en);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.pricing__cta:hover,
.pricing__cta:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--border-strong);
}

.pricing__cta:active {
  transform: translate(0, 0);
  box-shadow: none;
}

/* ─────────────────────────────────────────────────────────────
   Perks — "What you'll get" grouped categories
   ───────────────────────────────────────────────────────────── */
.perks {
  padding: 3rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.perks__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.perks__tagline {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  letter-spacing: 0.32em;
  color: var(--text-soft);
  border: 2px solid var(--border-strong);
  padding: 0.4rem 0.8rem;
  background: var(--bg);
  direction: ltr;
}

.perks__title {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0;
  letter-spacing: -0.01em;
  text-align: center;
}

body.is-en .perks__title {
  font-family: var(--font-display-en);
  letter-spacing: 0.02em;
}

.perks__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.perk-group {
  background: #FAF4E4;
  border: 3px solid var(--border-strong);
  box-shadow: 6px 6px 0 var(--border-strong);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: start;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.perk-group:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--border-strong);
}

.perk-group__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.perk-group__icon {
  font-size: 2.1rem;
  line-height: 1;
}

.perk-group__title {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: -0.01em;
}

body.is-en .perk-group__title {
  font-family: var(--font-display-en);
  font-size: 1.65rem;
  letter-spacing: 0.02em;
}

.perk-group__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-top: 2px dashed var(--border);
  padding-top: 0.95rem;
}

.perk-group__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-family: var(--font-arabic);
  font-size: 1.025rem;
  line-height: 1.6;
}

.perk-group__list li::before {
  content: "▸";
  color: var(--text-soft);
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Feature variant — inverted dark card for single-bullet groups (Live, Engagement) */
.perk-group--feature {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.perk-group--feature::before {
  /* faint pixel grid pattern for texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(240,230,210,0.07) 1px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
}

.perk-group--feature > * { position: relative; z-index: 1; }

.perk-group--feature .perk-group__title { color: var(--bg); }

.perk-group--feature .perk-group__list {
  border-top-color: rgba(240, 230, 210, 0.18);
  flex: 1;
  justify-content: center;
}

.perk-group--feature .perk-group__list li {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  justify-content: center;
  text-align: center;
}

.perk-group--feature .perk-group__list li::before { display: none; }

/* Secondary sub-line under the main feature statement */
.perk-group--feature .perk-group__list-sub {
  font-size: 1rem !important;
  font-weight: 500;
  opacity: 0.78;
  letter-spacing: 0;
  margin-top: 0.35rem;
  line-height: 1.5;
}

body.is-en .perk-group--feature .perk-group__list-sub {
  font-family: var(--font-arabic); /* Inter, not Jersey 15 — needs to read clearly */
  font-size: 1rem !important;
  font-weight: 500;
}

/* Stat badge — top-LEFT in RTL, top-RIGHT in LTR */
.perk-group__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;       /* default (RTL): top-left */
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0;
  padding: 0.3rem 0.6rem;
  border: 2px solid var(--bg);
  color: var(--bg);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

[dir="ltr"] .perk-group__badge {
  left: auto;
  right: 0.85rem;      /* LTR: top-right */
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  direction: ltr;
}

.perk-group__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF5555;
  animation: livePulse 1.2s ease-in-out infinite;
}

.perk-group__badge--win::before {
  background: #F4D03F;
  animation: none;
}

.perk-group__badge--ai::before {
  background: #DA7756; /* Claude orange */
  animation: none;
}

/* Wide variant — spans full grid width (used for the 5th AI feature card) */
.perk-group--wide {
  grid-column: 1 / -1;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

body.is-en .perk-group--feature .perk-group__list li {
  font-family: var(--font-display-en);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .perks__grid { grid-template-columns: 1fr; }
  .perks { padding: 1.5rem 1rem 3rem; }
  .perk-group { padding: 1.25rem 1.15rem; }
  .perk-group__title { font-size: 1.2rem; }
  .perk-group__list li { font-size: 0.975rem; }
  /* Promote the feature (brown) cards to the top on mobile —
     they're the highest-value perks */
  .perk-group--feature { order: -1; }
}

/* ─────────────────────────────────────────────────────────────
   (Legacy values — kept for any leftover references)
   ───────────────────────────────────────────────────────────── */
.values {
  padding: 2rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.values__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.values__tagline {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  letter-spacing: 0.32em;
  color: var(--text-soft);
  border: 2px solid var(--border-strong);
  padding: 0.4rem 0.8rem;
  background: var(--bg);
  direction: ltr;
}

.values__title {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0;
  letter-spacing: -0.01em;
  text-align: center;
}

.values__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.value-card {
  background: #FAF4E4;
  border: 3px solid var(--border-strong);
  box-shadow: 6px 6px 0 var(--border-strong);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  text-align: start;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.value-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--border-strong);
}

.value-card__icon {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.value-card__title {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.35;
}

.value-card__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  text-transform: uppercase;
  direction: ltr;
}

/* ─────────────────────────────────────────────────────────────
   Form
   ───────────────────────────────────────────────────────────── */
.form-section {
  padding: 4rem 2rem 6rem;
  display: flex;
  justify-content: center;
}

.form {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__title {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #FAF4E4; /* slightly lighter than --bg — paper-on-sand */
  color: var(--text);
  border: 2px solid var(--border-strong);
  border-radius: 0; /* sharp pixel-friendly edges */
  font-family: var(--font-arabic);
  font-size: 1rem;
  outline: none;
  transition: box-shadow 100ms ease, transform 100ms ease;
}

/* Custom select dropdown chevron — on the LEFT in RTL (Arabic), RIGHT in LTR */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><polygon points='0,0 10,0 5,6' fill='%232D2620'/></svg>");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 12px 8px;
  padding-inline-end: 2.75rem;
}

[dir="ltr"] .field select {
  background-position: right 1rem center;
}

.field input[type="email"],
.field input[type="url"] {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  box-shadow: 4px 4px 0 var(--border-strong);
  transform: translate(-2px, -2px);
}

.submit {
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  background: var(--button-bg);
  color: var(--button-text);
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.05rem;
  border: 2px solid var(--button-bg);
  border-radius: 0;
  letter-spacing: 0.02em;
  transition: transform 100ms ease, box-shadow 100ms ease;
}

.submit:hover,
.submit:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--border-strong);
}

.submit:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 var(--border-strong);
}

.form__note {
  font-family: var(--font-arabic);
  background: var(--surface);
  border: 2px dashed var(--border-strong);
  padding: 0.85rem 1rem;
  text-align: center;
  margin: 0.25rem 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.form__commitment {
  font-family: var(--font-arabic);
  font-size: 0.825rem;
  color: var(--text-soft);
  text-align: center;
  margin: 0.4rem 0 0;
  line-height: 1.55;
  max-width: 36ch;
  align-self: center;
}

/* ─────────────────────────────────────────────────────────────
   Inline success state — replaces the form after submission
   so the user sees confirmation if they scroll back
   ───────────────────────────────────────────────────────────── */
.form-section__success {
  width: 100%;
  max-width: var(--max-width);
  /* No container — just centered icon + text where the form used to be */
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 2.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.form-section__success[hidden] { display: none; }

/* Override the form's display: flex so the hidden attribute actually hides it */
.form[hidden] { display: none; }

/* CTAs after submission — muted, non-clickable, "✓ تم التسجيل" state */
.hero__cta.is-submitted,
.pricing__cta.is-submitted {
  background: var(--surface);
  color: var(--text-soft);
  border-color: var(--border);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  font-weight: 700;
}

.hero__cta.is-submitted:hover,
.pricing__cta.is-submitted:hover,
.hero__cta.is-submitted:focus-visible,
.pricing__cta.is-submitted:focus-visible {
  transform: none;
  box-shadow: none;
}

.form-section__success-emoji {
  font-size: 4.5rem;
  line-height: 1;
  animation: bounceIn 700ms ease-out;
}

.form-section__success-title {
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3rem);
  margin: 0;
  letter-spacing: -0.01em;
}

body.is-en .form-section__success-title {
  font-family: var(--font-display-en);
  font-size: clamp(2.25rem, 4vw, 2.9rem);
  letter-spacing: 0.02em;
}

.form-section__success-body {
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
  color: var(--text);
}

.form-section__success-note {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin: 0;
  padding: 0.5rem 0.85rem;
  border: 2px dashed var(--border);
}

body:not(.is-en) .form-section__success-note {
  font-family: var(--font-arabic);
  letter-spacing: 0;
  font-size: 0.95rem;
}

/* ─────────────────────────────────────────────────────────────
   Success modal — celebratory popup after form submission
   ───────────────────────────────────────────────────────────── */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.success-modal[hidden] { display: none; }

.success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 38, 32, 0.7);
  backdrop-filter: blur(4px);
  animation: backdropFade 200ms ease-out;
  cursor: pointer;
}

.success-modal__card {
  position: relative;
  background: #FAF4E4;
  border: 4px solid var(--text);
  box-shadow: 10px 10px 0 var(--text);
  padding: 2.5rem 2rem 2rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: modalIn 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.success-modal__emoji {
  font-size: 4.5rem;
  line-height: 1;
  animation: bounceIn 700ms ease-out;
}

.success-modal__title {
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0;
  letter-spacing: -0.01em;
}

body.is-en .success-modal__title {
  font-family: var(--font-display-en);
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  letter-spacing: 0.02em;
}

.success-modal__body {
  font-family: var(--font-arabic);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
  color: var(--text);
}

.success-modal__note {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin: 0;
  padding: 0.5rem 0.85rem;
  border: 2px dashed var(--border);
}

body:not(.is-en) .success-modal__note {
  font-family: var(--font-arabic);
  letter-spacing: 0;
  font-size: 0.95rem;
}

.success-modal__close {
  margin-top: 0.5rem;
  padding: 0.95rem 2rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  border: 2px solid var(--text);
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease;
}

body.is-en .success-modal__close {
  font-family: var(--font-display-en);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

.success-modal__close:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--text);
}

@keyframes modalIn {
  from { opacity: 0; transform: translate(-12px, -12px) scale(0.92); }
  to   { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes bounceIn {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.25); }
  80%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes backdropFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Confetti pieces rain from top of modal overlay */
.confetti {
  position: absolute;
  top: -10vh;
  pointer-events: none;
  animation: confettiFall linear forwards;
  z-index: 1;
}

@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(120vh) rotate(var(--rot, 360deg)); opacity: 0.4; }
}

/* ─────────────────────────────────────────────────────────────
   Tablet (portrait) — keep desktop hero but slim tooltips/characters
   so the always-visible bio cards stop overflowing the viewport
   ───────────────────────────────────────────────────────────── */
@media (min-width: 721px) and (max-width: 1100px) {
  .character {
    width: clamp(150px, 22vw, 230px);
  }
  .tooltip {
    width: clamp(18rem, 32vw, 22rem);
    --shift: clamp(16px, 3vw, 50px);
  }
  .tooltip__name { font-size: 1.3rem; }
  body.is-en .tooltip__name { font-size: 1.6rem; }
  .tooltip__bio { font-size: 0.95rem; }

  .hero__title { font-size: clamp(3rem, 11vw, 6.5rem); }

  /* Tighter sticker corners so they don't crowd characters */
  .stickers .sticker--lg { width: 70px; height: 70px; }

  .perks__grid { gap: 1rem; }
}

/* ─────────────────────────────────────────────────────────────
   Mobile
   ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  /* Vertical stack: wordmark + title in center → Maher (+ bio) → El Abbasy (+ bio) */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 4rem 1rem 2rem;
    min-height: auto;
  }
  [dir="ltr"] .hero { flex-direction: column; }

  .hero__center      { order: 0; max-width: 100%; width: 100%; }
  .character--left   { order: 1; } /* Maher */
  .character--right  { order: 2; } /* El Abbasy */

  /* Headline a touch smaller on phones */
  .hero__title {
    font-size: clamp(2.75rem, 16vw, 4.5rem);
  }
  .hero__subtitle {
    font-size: 1rem;
  }
  .hero__cta {
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
  }

  /* Inline wordmark stays small on mobile */
  .wordmark {
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
    letter-spacing: 0.16em;
  }

  /* Character + tooltip: character button takes available width,
     img stays compact, tooltip fills full card width */
  .character {
    width: 100%;
    max-width: 360px;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .character img {
    width: clamp(180px, 50vw, 240px);
    aspect-ratio: 1086 / 1448;
    height: auto;
  }

  /* Tooltip flows in document — explicitly override desktop's left/right shift */
  .tooltip,
  .character--left .tooltip,
  .character--right .tooltip {
    position: static;
    transform: none;
    inset: auto;
    margin: 0;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    font-size: 0.95rem;
    box-shadow: 5px 5px 0 var(--border-strong);
  }
  .tooltip__name { font-size: 1.35rem; }
  body.is-en .tooltip__name { font-size: 1.75rem; }

  /* Values: tighter padding, smaller cards */
  .values { padding: 1.5rem 1rem 3rem; }
  .values__head { margin-bottom: 1.25rem; }
  .values__grid { gap: 0.75rem; }
  .value-card { padding: 1.25rem 1rem; }
  .value-card__icon { font-size: 1.85rem; }
  .value-card__title { font-size: 1.05rem; }

  .stickers { display: none; }

  /* Form */
  .form-section { padding: 2rem 1rem 4rem; }
  .form { gap: 1rem; }
  .form__title { font-size: clamp(1.75rem, 7vw, 2.25rem); }

  /* Lang switcher stays fixed at top-right; smaller on phones */
  .lang-switcher { top: 0.75rem; right: 0.75rem; }
  .lang-switcher__btn { padding: 0.35rem 0.7rem; font-size: 0.7rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .character img,
  .sticker {
    animation: none;
  }
  .sparkle { display: none; }
}
