/* ===========================================================================
   AGAPONE.COM — homepage (self-contained redesign)
   Vanilla port of the "Conceito" cinematic site. Does NOT depend on styles.css.
   Tokens mirror the design handoff (core.jsx C / C_LIGHT) as CSS variables;
   theme switches by flipping data-theme on <html>.
   =========================================================================== */

/* ---- TOKENS ------------------------------------------------------------- */
:root {
  /* brand (theme-invariant) */
  --gold: #CA980B;
  --gold-hi: #E6B325;
  --gold-soft: #F1CF6E;

  /* surfaces + text — DARK (default) */
  --ink: #FAF7F2;
  --cosmic: #16224E;
  /* Cosmic navy ladder — matched to the app's dark splash gradient
     (splash_screen.dart: dark0 #0C1430 / dark1 #070D20). Deeper, more
     saturated indigo than the old grayish #13172A so the site background
     reads like the "agape+one" boot animation. Same luminance steps. */
  --night0: #0C1430;
  --night1: #111A3C;
  --night2: #1B2752;
  --surf: #0B1330;
  --surf2: #131C40;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);
  --tx: #F4F1EA;
  --tx-md: rgba(244, 241, 234, 0.66);
  --tx-mut: rgba(244, 241, 234, 0.42);
  --tx-faint: rgba(244, 241, 234, 0.22);
  --card: rgba(255, 255, 255, 0.02);

  /* 7 Profile-DNA sectors (color / tint) */
  --cosmic-c: #6845AB;     --cosmic-t: #9579E6;
  --mental-c: #A8356E;     --mental-t: #E368B0;
  --intimacy-c: #A23B41;   --intimacy-t: #E45B6A;
  --relational-c: #0C8F99; --relational-t: #25B8C0;
  --connection-c: #2E5AA9; --connection-t: #5A92EC;
  --vision-c: #8E5314;     --vision-t: #E6A82A;
  --interests-c: #D2740C;  --interests-t: #EE901F;

  /* type */
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* rhythm */
  --gutter: 56px;
  --section-pad: clamp(52px, 7.5vh, 92px);
}

html[data-theme="light"] {
  --ink: #16224E;
  --cosmic: #16224E;
  --night0: #FBF5EE;
  --night1: #F4ECE0;
  --night2: #ECE1D1;
  --surf: #FFFFFF;
  --surf2: #F7F0E6;
  --line: rgba(22, 34, 78, 0.14);
  --line-soft: rgba(22, 34, 78, 0.06);
  --tx: #1B2240;
  --tx-md: rgba(27, 34, 64, 0.66);
  --tx-mut: rgba(27, 34, 64, 0.46);
  --tx-faint: rgba(27, 34, 64, 0.28);
  --card: rgba(22, 34, 78, 0.02);
}

/* ---- RESET -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--night0);
  color: var(--tx);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (not hidden) so it doesn't become a scroll container and break position:sticky */
  transition: background .4s ease, color .4s ease;
}
section { position: relative; }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; } /* keep the hidden attribute working over svg{display:block} */
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
::selection { background: rgba(230, 179, 37, 0.30); color: #fff; }
html[data-theme="light"] ::selection { background: rgba(202, 152, 11, 0.28); color: #1B2240; }

/* custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--night0); }
::-webkit-scrollbar-thumb { background: #1f2540; border-radius: 5px; border: 2px solid #05060F; }
::-webkit-scrollbar-thumb:hover { background: #2c3358; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #d9cdbb; border-color: #FBF5EE; }

/* ---- TYPOGRAPHY HELPERS ------------------------------------------------- */
.display { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* (no lead dash on the gold eyebrows, per request) */
.lead { font-size: 19px; line-height: 1.6; color: var(--tx-md); text-wrap: pretty; }

/* ---- LAYOUT ------------------------------------------------------------- */
.aga-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
  position: relative;
  z-index: 2;
}
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* ---- WORDMARK ----------------------------------------------------------- */
.wm {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.018em;
  user-select: none;
}
.wm-g { color: var(--gold); }
.wm-one { color: var(--ink); }
.wm-ico { display: inline-flex; }
/* nudge the "p" toward the icon so it sits midway between the icon and the "o" */
.wm-p { margin-left: -0.07em; }

/* ---- NAV ---------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(5, 6, 15, 0.72);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
html[data-theme="light"] .nav.is-solid { background: rgba(251, 245, 238, 0.86); }
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: inline-flex; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 14px;
  color: var(--tx-md);
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--tx); }

.lang-toggle {
  display: flex;
  border-radius: 9px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.lang-toggle button, .lang-toggle a {
  border: none;
  cursor: pointer;
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: transparent;
  color: var(--tx-mut);
  transition: background .2s, color .2s;
  text-decoration: none; line-height: 1;
}
.lang-toggle button.is-active, .lang-toggle a.is-active { background: var(--gold); color: #1a1400; }

.theme-toggle {
  width: 40px; height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-md);
  transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--tx); border-color: rgba(230, 179, 37, 0.5); }

.nav-cta {
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-hi));
  color: #1a1400;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-display);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 255, 255, 0.18); }

/* Dropdown de idioma (preparado p/ ES/FR) — mesma altura dos controlos. */
.lang-wrap { position: relative; display: inline-flex; align-items: center; }
.lang-wrap::after {
  content: ""; position: absolute; right: 10px; pointer-events: none;
  width: 7px; height: 7px; border-right: 1.6px solid var(--tx-mut);
  border-bottom: 1.6px solid var(--tx-mut); transform: rotate(45deg) translateY(-2px);
}
.lang-select {
  appearance: none; -webkit-appearance: none;
  height: 36px; padding: 0 26px 0 12px;
  border-radius: 9px; border: 1px solid var(--line);
  background: transparent; color: var(--tx-md);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  cursor: pointer; transition: color .2s, border-color .2s;
}
.lang-select:hover { color: var(--tx); border-color: rgba(230, 179, 37, 0.5); }
.lang-select option { background: var(--surf); color: var(--tx); }

/* Login (plataforma web em app.agapone.com) — variante outline do CTA. */
.nav-login {
  display: inline-flex; align-items: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(230, 179, 37, 0.55);
  color: var(--tx);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-display);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.nav-login:hover { transform: translateY(-1px); border-color: var(--gold); box-shadow: 0 8px 22px rgba(230, 179, 37, 0.18); }

/* ---- REVEAL ON SCROLL --------------------------------------------------- */
/* Gated on html.js (set by the inline head script) so that if home.js never
   runs — script blocked, JS off, network failure — nothing stays invisible. */
html.js .rv {
  opacity: 0;
  transform: translateY(var(--rv-y, 26px));
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0ms),
              transform .8s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0ms);
  will-change: opacity, transform;
}
html.js .rv.is-in { opacity: 1; transform: none; }

/* ---- IDLE / DECORATIVE KEYFRAMES ---------------------------------------- */
@keyframes orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.aga-orbit { animation: orbit 30s linear infinite; }

@keyframes birdBob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-11px) rotate(1.5deg); }
}
.aga-bird { animation: birdBob 3.6s ease-in-out infinite; transform-origin: 50% 72%; }

@keyframes headTilt {
  0%, 100% { transform: rotate(0deg); }
  16% { transform: rotate(-9deg); }
  34% { transform: rotate(3deg); }
  52% { transform: rotate(-6deg); }
  72% { transform: rotate(7deg); }
  88% { transform: rotate(-2deg); }
}
.aga-bird-head { animation: headTilt 2.9s ease-in-out infinite; transform-origin: 0 0; }

@keyframes wingFlap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.55); } }
.aga-bird .wings { transform-box: fill-box; transform-origin: 50% 28%; animation: wingFlap .85s ease-in-out infinite; }

@keyframes cueBob {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50% { transform: translateY(6px); opacity: 1; }
}
.scroll-cue { animation: cueBob 2.2s ease-in-out infinite; display: inline-block; }

/* ---- REDUCED MOTION ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .aga-orbit, .scroll-cue, .aga-bird, .aga-bird-head, .aga-bird .wings { animation: none !important; }
}

/* ═══════════════════════════ STORE BUTTONS ═══════════════════════════ */
.store-wrap { display: inline-flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.store-soon::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 10px var(--gold-hi);
}
.store-row { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--surf);
  border: 1px solid var(--line);
  color: var(--tx);
  cursor: default; /* inert until the app reaches that store */
  text-decoration: none;
}
a.store-btn { cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease; }
a.store-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.store-btn.is-soon { opacity: 0.6; filter: grayscale(0.3); }
.store-btn.is-soon .store-top { color: var(--gold); }
.store-btn.lg { padding: 15px 22px; }
.store-btn .store-tx { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn .store-top { font-size: 10px; color: var(--tx-mut); font-family: var(--font-mono); letter-spacing: 0.5px; }
.store-btn .store-big { font-size: 16px; font-weight: 600; font-family: var(--font-display); }

/* ═══════════════════════════ PHONE FRAME ═══════════════════════════ */
.phone {
  position: relative;
  flex-shrink: 0;
}
.phone-glow {
  position: absolute;
  inset: -14% -10%;
  background: radial-gradient(60% 50% at 50% 30%, rgba(202, 152, 11, 0.15), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.phone-shell {
  position: absolute;
  inset: 0;
  background: #05060d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), inset 0 0 0 8px #0a0c16, inset 0 1px 1px rgba(255, 255, 255, 0.08);
  padding: 9px;
  z-index: 1;
  overflow: hidden;
}
.phone-screen {
  width: 100%; height: 100%;
  overflow: hidden;
  position: relative;
  background: var(--night1);
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 20px;
  z-index: 30;
}

/* ═══════════════════════════ HERO (Signal) ═══════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--night1), var(--night0));
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 40%, #000, transparent 80%);
  mask-image: radial-gradient(120% 90% at 30% 40%, #000, transparent 80%);
}
.hero-glow {
  position: absolute;
  top: 10%; right: -5%;
  width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(202, 152, 11, 0.11), transparent);
  filter: blur(50px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  /* width:100% stops the auto-margins (inside the flex .hero) from shrink-fitting
     the wrap to its content, which pushed it wider than the viewport on mobile */
  width: 100%;
}
.hero-h1 {
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(30px, 4.2vw, 54px); /* sized so each phrase fits one line (2-line headline) */
  line-height: 1.08;
  margin: 20px 0 0;
  color: var(--ink);
}
.hero-h1-accent { color: var(--gold); }
.hero-h1-brand { display: block; color: var(--gold); font-size: 0.6em; line-height: 1.1; margin-bottom: 8px; letter-spacing: -0.01em; }
.hero-lead { max-width: 540px; margin-top: 26px; white-space: pre-line; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-n { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--gold-hi); }
.hero-stat-l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--tx-mut); text-transform: uppercase; }
.hero-phone { display: flex; justify-content: center; }
.hero .store-wrap { margin-top: 34px; }

/* ═══════════════════════════ PHONE SCREENS (.scr) ═══════════════════════════ */
.scr {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: var(--font-body);
}
.scr-dna { background: radial-gradient(120% 60% at 50% 0%, rgba(56,82,150,0.14), transparent 58%), #0B0E1A; }
.scr-disc { background: radial-gradient(120% 50% at 50% 0%, rgba(56,82,150,0.12), transparent 55%), #0B0E1A; }
.scr-comm { background: #070A12; }
.scr-status {
  height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 13px 24px 0;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}
.scr-dna-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 18px 6px; }
.scr-dna-tabs { display: flex; gap: 6px; padding: 0 16px 7px; }
.scr-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 0; border-radius: 9px; }
.scr-dna-module {
  margin: 0 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(230,179,37,0.4);
  background: linear-gradient(180deg, rgba(230,179,37,0.10), rgba(230,179,37,0.02));
  padding: 11px 12px 12px;
  box-shadow: 0 8px 30px -12px rgba(230,179,37,0.4);
}
.scr-dna-modtop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.scr-dna-areas { display: flex; justify-content: space-between; font-size: 7.5px; font-family: var(--font-mono); letter-spacing: 0.8px; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.scr-dna-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.06); margin-bottom: 11px; overflow: hidden; }
.scr-tile-row { display: flex; gap: 5px; }
.scr-tile { flex: 1; min-width: 0; }
.scr-tile-box { aspect-ratio: 1; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.scr-tile-label { font-size: 8.5px; font-weight: 700; text-align: center; margin-top: 5px; line-height: 1.12; height: 22px; overflow: hidden; }
.scr-dna-identity {
  margin: 9px 14px 0;
  flex: 1;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.scr-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scr-face-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,7,20,0.9), transparent 58%); pointer-events: none; }

/* ═══════════════════════════ SHARED ═══════════════════════════ */
.sec-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  margin: 18px 0 0;
  color: var(--tx);
  text-wrap: balance;
}
.sec-lead { margin-top: 20px; max-width: 640px; }
.stack { display: grid; gap: 64px; align-items: center; }

.starfield { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.starfield canvas { display: block; width: 100%; height: 100%; }

/* ═══════════════════════════ CONCEPT ═══════════════════════════ */
.concept { position: relative; background: radial-gradient(120% 80% at 50% -10%, var(--night2), var(--night0) 60%); }
.concept-cine { position: relative; z-index: 2; }
.cine-heading { text-align: center; max-width: 780px; margin: 0 auto; padding: 54px 28px 34px; }
.cine-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.07;
  margin: 14px 0 0;
  color: var(--tx);
  text-wrap: balance;
}
.concept-body { max-width: 1180px; padding-top: 0; }
.concept-intro { text-align: center; max-width: 820px; margin: 0 auto 38px; }
.etym { display: flex; gap: 18px; align-items: stretch; flex-wrap: wrap; }
.etym-card {
  flex: 1; min-width: 240px;
  padding: 26px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  position: relative;
  overflow: hidden;
}
.etym-water {
  position: absolute; top: -30px; right: -10px;
  font-size: 120px; font-family: var(--font-display); font-weight: 700;
  color: var(--accent); opacity: 0.06; line-height: 1; pointer-events: none;
}
.etym-part { position: relative; font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--accent); font-style: italic; }
.etym-gloss { position: relative; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--tx-mut); text-transform: uppercase; margin: 6px 0 14px; }
.etym-body { position: relative; font-size: 14.5px; line-height: 1.6; color: var(--tx-md); text-wrap: pretty; white-space: pre-line; }
.concept-close { text-align: center; margin-top: 32px; }
.concept-close-tx { font-family: var(--font-display); font-weight: 300; font-size: clamp(18px, 2vw, 24px); line-height: 1.5; color: var(--tx-md); max-width: 760px; margin: 0 auto; text-wrap: balance; }

/* ── pinned cinematic (Phase 4) ── */
.concept-cine.cine-pinned { height: 180vh; }
.cine-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cine-pinned .cine-heading { padding: 0 28px; }
.cine-heading-wrap { position: absolute; top: 82px; left: 0; right: 0; display: flex; justify-content: center; z-index: 7; } /* clears the 75px nav, matching the DNA heading's top space */
.cine-group { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 940px; height: 420px; }
.cine-flash { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; border-radius: 50%; transform: translate(-50%, -50%) scale(0.3); opacity: 0; pointer-events: none; z-index: 4; background: radial-gradient(circle, rgba(255, 247, 230, 0.5) 0%, rgba(230, 179, 37, 0.12) 42%, transparent 68%); }
.cine-bird { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); opacity: 0; will-change: transform, opacity; line-height: 0; transform-origin: 50% 86%; }
.cine-seed { position: absolute; left: 50%; top: 50%; z-index: 2; width: 11px; height: 14px; border-radius: 50% 50% 48% 48%; opacity: 0; will-change: transform, opacity; background: radial-gradient(120% 120% at 35% 25%, #F1CF6E, #CA980B 70%); box-shadow: 0 2px 6px rgba(202, 152, 11, 0.5); }
.cine-word { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(34px, 5.4vw, 68px); line-height: 1; white-space: nowrap; user-select: none; opacity: 0; }
.cine-word.it { font-style: italic; }
.cine-crumb { position: absolute; left: 50%; top: 50%; z-index: 5; border-radius: 1.5px; opacity: 0; will-change: transform, opacity; }
.cine-wm { position: absolute; left: 50%; top: 50%; z-index: 6; transform: translate(-50%, -50%) scale(0.5); opacity: 0; will-change: transform, opacity; white-space: nowrap; }
.cine-hint { position: absolute; bottom: 7%; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--tx-mut); display: flex; align-items: center; gap: 9px; pointer-events: none; z-index: 7; }
.cine-static-inner { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 80px 28px 40px; text-align: center; }

/* once the wordmark is born, the icon's eye comes alive — glances + blinks */
.cine-wm .aga-eye, .cine-final .aga-eye { transform-box: fill-box; transform-origin: center; animation: agaEyeAlive 4.6s ease 0.5s infinite; }
@keyframes agaEyeAlive {
  0%, 14% { transform: translate(0, 0) scaleY(1); }
  18% { transform: translate(0, 0) scaleY(.08); }   /* blink */
  22% { transform: translate(0, 0) scaleY(1); }
  36%, 52% { transform: translate(3px, 0) scaleY(1); }   /* glance right */
  56% { transform: translate(3px, 0) scaleY(.08); }      /* blink */
  60% { transform: translate(3px, 0) scaleY(1); }
  74%, 100% { transform: translate(0, 0) scaleY(1); }    /* settle back */
}
@media (prefers-reduced-motion: reduce) { .cine-wm .aga-eye, .cine-final .aga-eye { animation: none; } }

/* wings flap only during the hop-in entrance (class toggled by the timeline) */
.cine-wings { transform-box: fill-box; transform-origin: 50% 26%; }
.cine-wings.flapping { animation: cineWing .26s ease-in-out infinite; }
@keyframes cineWing { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.5); } }
@media (prefers-reduced-motion: reduce) { .cine-wings.flapping { animation: none; } }

/* ═══════════════════════════ CATEGORIES (dial) ═══════════════════════════ */
.categories { position: relative; height: 290vh; background: linear-gradient(180deg, var(--night0), var(--night2) 50%, var(--night0)); }
.categories-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.cat-glow { position: absolute; top: 50%; left: 68%; width: 560px; height: 560px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(104, 69, 171, 0.18), transparent); filter: blur(56px); transition: background .6s; }
/* cat-inner fills the pinned 100vh as a column: the heading stays pinned at the top
   (always visible while the dial rotates) and the dial+panel centre in the space below.
   width:100% stops the flex auto-margins shrink-fitting the wrap (which shifted the panel) */
.cat-inner { position: relative; z-index: 2; width: 100%; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-top: 0; padding-bottom: 0; }
.cat-head { text-align: center; padding: 84px 28px 4px; flex: 0 0 auto; position: relative; z-index: 2; } /* padding-top clears the 75px fixed nav */
.cat-h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(28px, 3.8vw, 52px); line-height: 1.07; color: var(--tx); margin: 12px 0 0; }
.cat-hint { font-size: 12px; letter-spacing: 1.5px; color: var(--tx-mut); margin-top: 9px; }
/* padding-bottom biases the centred dial+panel upward, closer to the heading/hint
   (instead of dead-centre in the tall pinned area) — reduces the empty hint→dial gap */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; flex: 1 1 auto; min-height: 0; padding-bottom: clamp(40px, 9vh, 116px); }
/* fixed panel height → the vertically-centred dial+panel block never changes
   size between sectors, so the title and description stay put */
.cat-panel { height: 438px; }
.cat-dial { position: relative; justify-self: center; }
.dial-box { position: relative; }
.dial-icon { position: absolute; left: 50%; top: 50%; display: block; line-height: 0; text-decoration: none; will-change: transform; }
.dial-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.dial-center [data-dialmark] { display: flex; justify-content: center; }
.dial-center-label { font-size: 8px; letter-spacing: 2px; color: var(--tx-mut); margin-top: 5px; }
/* fixed heights keep the title + description anchored at the same spot for every sector */
.cat-num { font-size: 13px; letter-spacing: 2px; }
.cat-namerow { display: flex; align-items: center; gap: 16px; margin: 12px 0 8px; height: 60px; }
.cat-icon-box { width: 60px; height: 60px; border-radius: 17px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background .4s, box-shadow .4s; }
.cat-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.2vw, 44px); color: var(--tx); line-height: 1.04; white-space: nowrap; min-width: 0; }
.cat-kind { font-size: 11px; letter-spacing: 1.2px; margin-bottom: 14px; }
.cat-desc { font-size: 16.5px; line-height: 1.55; color: var(--tx-md); max-width: 440px; text-wrap: pretty; min-height: 80px; }
/* fixed chips-area height → button + dots also stay put (4-chip sectors wrap an extra row) */
.cat-areas { margin-top: 16px; height: 104px; }
.cat-areas-label { font-size: 10px; letter-spacing: 2px; color: var(--tx-mut); margin-bottom: 9px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; font-weight: 500; color: var(--tx); padding: 6px 12px; border-radius: 9px; }
.cat-open { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; padding: 12px 22px; border-radius: 12px; color: #fff; font-weight: 600; font-family: var(--font-display); font-size: 15px; transition: transform .2s, background .4s; }
.cat-open:hover { transform: translateX(3px); }
.cat-dots { display: flex; gap: 7px; margin-top: 24px; }
.pdot { height: 8px; border-radius: 4px; transition: width .4s, background .4s; }

/* short laptop viewports: keep the pinned heading visible AND the dial+panel+button
   well-balanced by compacting the panel internals (title size kept for consistency) */
@media (min-width: 881px) and (max-height: 860px) {
  .cat-head { padding-top: 82px; }
  .cat-hint { margin-top: 6px; }
  .cat-namerow { height: 54px; margin: 8px 0 6px; }
  .cat-icon-box { width: 54px; height: 54px; }
  .cat-kind { margin-bottom: 8px; }
  .cat-desc { min-height: 56px; }
  .cat-areas { height: 96px; margin-top: 12px; }
  .cat-open { margin-top: 14px; }
  .cat-dots { margin-top: 16px; }
  .cat-panel { height: 372px; }
}

/* ═══════════════════════════ JOURNEY ═══════════════════════════ */
.journey-sec { background: var(--night0); position: relative; overflow: hidden; }
.journey-glow { position: absolute; top: 8%; left: -10%; width: 600px; height: 600px; background: radial-gradient(closest-side, rgba(202, 152, 11, 0.10), transparent); filter: blur(60px); }
.mastery { padding: 32px 36px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(230, 179, 37, 0.06), rgba(255, 255, 255, 0.01)); }
.mastery-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.mastery-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--tx); margin-top: 8px; }
.mastery-desc { font-size: 14px; color: var(--tx-md); max-width: 320px; text-wrap: pretty; }
.journey-bar { position: relative; display: flex; align-items: center; min-height: 16px; }
.journey-track { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line); }
.journey-fill { position: absolute; left: 0; top: 50%; height: 2px; transform: translateY(-50%); width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); box-shadow: 0 0 12px rgba(202, 152, 11, 0.4); transition: width 1.7s cubic-bezier(.3, .8, .2, 1); }
.journey-bar.is-in .journey-fill { width: 86%; }
.journey-col { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.journey-dot { border-radius: 10px; transition: background .4s, box-shadow .4s; }
.journey-label { position: absolute; top: 24px; font-size: 10px; font-family: var(--font-mono); white-space: nowrap; font-weight: 700; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { text-align: center; }
.stat-n { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5vw, 64px); color: var(--gold-hi); line-height: 1; }
.stat-l { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px; color: var(--tx-mut); text-transform: uppercase; margin-top: 8px; }

/* ═══════════════════════════ COMMUNITY ═══════════════════════════ */
/* pinned: the page holds while the chat plays out, releasing once it has finished */
.community { background: var(--night1); position: relative; height: 178vh; }
.community-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.community-grid { grid-template-columns: 1fr 0.85fr; width: 100%; }
.bullets { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.bullet { display: flex; gap: 16px; align-items: flex-start; }
.bullet-dot { width: 8px; height: 8px; border-radius: 4px; margin-top: 8px; flex-shrink: 0; background: var(--c); box-shadow: 0 0 10px var(--c); }
.bullet-h { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--tx); }
.bullet-b { font-size: 14.5px; line-height: 1.55; color: var(--tx-md); margin-top: 4px; text-wrap: pretty; white-space: pre-line; }
.community-phone { display: flex; justify-content: center; }
.community-scrub { display: none; } /* mobile-only sticky-scrub spacer (see mobile block) */

/* ═══════════════════════════ DISCOVER ═══════════════════════════ */
.discover { position: relative; overflow: hidden; background: radial-gradient(120% 70% at 70% 20%, rgba(104, 69, 171, 0.22), var(--night0) 60%); }
.discover-grid { grid-template-columns: 0.85fr 1fr; }
.discover-phone { display: flex; justify-content: center; order: 1; }
.discover-copy { order: 2; }
.disc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.disc-card { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.disc-card-h { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--gold); }
.disc-card-b { font-size: 13.5px; color: var(--tx-md); margin-top: 5px; line-height: 1.5; }

/* ═══════════════════════════ FINAL CTA ═══════════════════════════ */
.final-cta { position: relative; overflow: hidden; background: radial-gradient(130% 100% at 50% 120%, var(--cosmic), var(--night0) 60%); }
.cta-glow { position: absolute; bottom: -10%; left: 50%; transform: translateX(-50%); width: 800px; height: 600px; background: radial-gradient(closest-side, rgba(202, 152, 11, 0.13), transparent); filter: blur(50px); }
.cta-wrap { text-align: center; max-width: 840px; padding-top: clamp(64px, 10vh, 120px); padding-bottom: clamp(64px, 10vh, 120px); }
.cta-bird { display: flex; justify-content: center; }
.cta-h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(42px, 6vw, 84px); line-height: 1.0; margin: 28px 0 0; color: var(--ink); }
.cta-accent { font-style: italic; font-weight: 500; color: var(--gold); }
.cta-lead { margin-top: 24px; max-width: 560px; margin-left: auto; margin-right: auto; white-space: pre-line; }
.cta-store { display: flex; justify-content: center; margin-top: 40px; }
.final-cta .store-wrap { align-items: center; }

/* ═══════════════════════════ FOOTER ═══════════════════════════ */
.footer { background: var(--night0); border-top: 1px solid var(--line); padding: 64px 56px 40px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand { max-width: 370px; }
.footer-by { font-size: 13px; color: var(--tx-md); margin-top: 14px; }
.footer-by strong { color: var(--tx); font-weight: 600; }
.footer-desc { font-size: 14px; line-height: 1.6; color: var(--tx-md); margin-top: 14px; text-wrap: pretty; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; font-size: 13.5px; }
.footer-contact a { color: var(--tx-md); transition: color .2s; }
.footer-contact a:hover { color: var(--tx); }
.footer-ig, .footer-mail { display: inline-flex; align-items: center; gap: 7px; width: fit-content; }
.footer-ig-icon { flex: none; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--tx-mut); text-transform: uppercase; margin-bottom: 5px; }
.footer-col a { font-size: 14px; color: var(--tx-md); transition: color .2s; }
.footer-col a:hover { color: var(--tx); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom .mono { font-size: 11.5px; color: var(--tx-faint); }

/* ═══════════════════════════ PHONE: COMMUNITY ═══════════════════════════ */
.scr-av { border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.16); display: block; object-fit: cover; }
.scr-comm-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.scr-comm-back { color: var(--accent); font-size: 18px; transition: color .2s; }
.scr-comm-sub { font-size: 10px; color: rgba(255,255,255,0.45); }
.scr-seg { display: flex; gap: 4px; margin: 10px 14px 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 3px; }
.scr-seg button { flex: 1; text-align: center; padding: 7px 0; border-radius: 9px; cursor: pointer; border: none; background: transparent; font-size: 11px; font-weight: 900; letter-spacing: 1px; color: rgba(255,255,255,0.45); transition: all .2s; }
.scr-comm[data-ctx="mate"] .scr-seg button.is-active { background: #2196F3; color: #fff; box-shadow: 0 2px 12px rgba(33,150,243,0.4); }
.scr-comm[data-ctx="date"] .scr-seg button.is-active { background: #EF5350; color: #fff; box-shadow: 0 2px 12px rgba(239,83,80,0.4); }
/* community chat — scroll-driven playback (bottom-anchored, collapsing rows) */
.cc-chat { flex: 1; overflow: hidden; padding: 4px 14px 8px; display: flex; flex-direction: column; justify-content: flex-end; }
.cc-msg { display: flex; gap: 7px; align-items: flex-end; flex-shrink: 0; overflow: hidden; max-height: 0; margin-top: 0; opacity: 0; transition: max-height .38s cubic-bezier(.2,.7,.2,1), margin-top .38s cubic-bezier(.2,.7,.2,1), opacity .3s ease; }
.cc-msg.in { max-height: 132px; opacity: 1; }
.cc-msg.in + .cc-msg.in { margin-top: 7px; }
.cc-msg.me { justify-content: flex-end; }
.cc-bubble { max-width: 188px; padding: 7px 12px; font-size: 12.5px; line-height: 1.38; border-radius: 14px; color: #F4F1EA; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); }
.cc-msg.me .cc-bubble { background: color-mix(in srgb, var(--accent) 30%, transparent); border-color: color-mix(in srgb, var(--accent) 44%, transparent); }
.cc-who { font-size: 9px; font-weight: 700; color: rgba(244,241,234,.42); margin: 0 0 2px 3px; }
.cc-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.cc-composer { padding: 8px 14px 14px; display: flex; gap: 8px; align-items: center; border-top: 1px solid rgba(255,255,255,.09); flex-shrink: 0; }
.cc-input { flex: 1; height: 38px; border-radius: 19px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; padding: 0 14px; overflow: hidden; }
.cc-input-text { font-size: 12px; color: #F4F1EA; white-space: nowrap; }
.cc-input-text[data-empty="true"] { font-size: 12.5px; color: rgba(244,241,234,.22); }
.cc-caret { display: inline-block; width: 1.5px; height: 1.05em; background: var(--accent); margin-left: 1.5px; vertical-align: text-bottom; animation: ccCaret 1s steps(1) infinite; }
@keyframes ccCaret { 50% { opacity: 0; } }
.cc-send { width: 38px; height: 38px; border-radius: 19px; border: 0; flex: 0 0 auto; cursor: pointer; display: flex; align-items: center; justify-content: center; background: var(--accent); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent); }
@media (prefers-reduced-motion: reduce) { .cc-msg { transition: none; } .cc-caret { animation: none; } }

/* ═══════════════════════════ PHONE: DISCOVER ═══════════════════════════ */
.scr-disc-top { padding: 10px 14px 12px; display: flex; align-items: center; gap: 7px; }
.scr-disc-card { margin: 0 9px 9px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); background: #161A2A; position: relative; flex: 1; display: flex; flex-direction: column; }
.scr-disc-photo { height: 204px; position: relative; overflow: hidden; }
.scr-disc-photograd { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,15,40,0.92), transparent 52%); pointer-events: none; }
.scr-disc-sync { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 20px; background: rgba(8,7,20,0.7); backdrop-filter: blur(6px); border: 1px solid rgba(230,179,37,0.4); }
.scr-disc-name { position: absolute; bottom: 10px; left: 14px; pointer-events: none; }
.scr-disc-bars { padding: 10px 12px 4px; }
.scr-disc-actions { margin-top: auto; padding: 8px 10px 13px; display: flex; gap: 6px; align-items: stretch; }
.scr-disc-msg { flex: 2; border-radius: 15px; background: linear-gradient(180deg, #F1CF6E, #c79808); display: flex; align-items: center; justify-content: center; gap: 6px; color: #1a1400; font-weight: 800; box-shadow: 0 5px 14px rgba(230,179,37,0.33), inset 0 1px 0 rgba(255,255,255,0.35); font-size: 9px; }
.scr-react { flex: 1; border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }

/* ── light theme: the in-phone screens follow the site theme (CSS-class parts;
   the inline-coloured parts are handled by applyScreenTheme() in JS) ── */
[data-theme="light"] .scr { color: #1B2240; }
[data-theme="light"] .scr-dna { background: radial-gradient(120% 60% at 50% 0%, rgba(104,69,171,0.08), transparent 58%), #ECE5DA; }
[data-theme="light"] .scr-disc { background: radial-gradient(120% 50% at 50% 0%, rgba(104,69,171,0.07), transparent 55%), #ECE5DA; }
[data-theme="light"] .scr-comm { background: #F6F0E7; }
[data-theme="light"] .scr-dna-areas { color: rgba(27,34,64,0.5); }
[data-theme="light"] .scr-dna-bar { background: rgba(27,34,64,0.08); }
[data-theme="light"] .scr-dna-identity { border-color: rgba(27,34,64,0.1); }
[data-theme="light"] .scr-av { border-color: rgba(27,34,64,0.18); }
[data-theme="light"] .scr-comm-head { border-bottom-color: rgba(27,34,64,0.1); }
[data-theme="light"] .scr-comm-sub { color: rgba(27,34,64,0.5); }
[data-theme="light"] .scr-seg { background: rgba(27,34,64,0.05); border-color: rgba(27,34,64,0.1); }
[data-theme="light"] .scr-seg button { color: rgba(27,34,64,0.5); }
[data-theme="light"] .cc-bubble { color: #1B2240; background: #FFFFFF; border-color: rgba(27,34,64,0.1); }
[data-theme="light"] .cc-msg.me .cc-bubble { background: var(--accent); border-color: transparent; color: #fff; }
[data-theme="light"] .cc-who { color: rgba(27,34,64,0.5); }
[data-theme="light"] .cc-composer { border-top-color: rgba(27,34,64,0.1); }
[data-theme="light"] .cc-input { background: rgba(27,34,64,0.04); border-color: rgba(27,34,64,0.12); }
[data-theme="light"] .cc-input-text { color: #1B2240; }
[data-theme="light"] .cc-input-text[data-empty="true"] { color: rgba(27,34,64,0.4); }
[data-theme="light"] .scr-disc-card { background: #FFFFFF; border-color: rgba(27,34,64,0.1); }

/* ═══════════════════════════ RESPONSIVE ═══════════════════════════ */
/* hide nav links early — below this they crowd the wordmark + CTA */
@media (max-width: 1000px) {
  .nav-links { display: none; }
}

@media (max-width: 880px) {
  :root { --gutter: 22px; } /* :root, not html — must beat the base :root specificity */
  .nav-inner { padding: 12px 18px; }
  .nav-right { gap: 12px; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 100px; padding-bottom: 60px; }
  .hero-glow { width: 380px; height: 380px; }

  .stack { grid-template-columns: 1fr; gap: 44px; }
  /* Discover: text before phone on mobile */
  .discover-copy { order: 1; }
  .discover-phone { order: 2; }

  /* Community: the copy scrolls away, then the PHONE itself pins near the top (it's too tall
     to centre-pin in 100vh). The grid's padding-bottom is the scrub room: while the phone is
     stuck there, scrolling only feeds the messages in (JS); the page advances once they're all in. */
  .community { height: auto; }
  .community-sticky { position: static; height: auto; display: block; overflow: visible; }
  .community-grid { display: block; }
  .community-copy { margin-bottom: 40px; }
  .community-phone { position: sticky; top: 72px; } /* small gap below the nav (JS COMM_STICK_TOP matches) */
  .community-scrub { display: block; height: 78vh; } /* sticky range for the pinned phone */

  /* compact, top-aligned categories that fit the pinned 100vh down to ~667px tall;
     heading stays pinned at the top, dial + panel flow below it */
  .cat-inner { display: block; flex: none; }
  .cat-grid { grid-template-columns: 1fr; gap: 2px; flex: none; padding-bottom: 0; }
  /* top-align the block (heading + scaled wheel + panel) below the nav, like every other
     section — spare space falls below the pills. fitDial() scales the wheel down on short
     devices so the Abrir button + pills always fit with a bottom margin (never cut).
     100dvh = the *visible* viewport, so it already excludes browser chrome and permanent nav buttons. */
  .categories-sticky { justify-content: flex-start; padding-top: 56px; height: 100vh; height: 100dvh; }
  .cat-head { padding: 0 22px; margin-bottom: 8px; }
  .cat-hint { display: none; }
  .cat-panel { height: auto; order: 2; }
  .cat-num { font-size: 12px; }
  .cat-namerow { height: 46px; margin: 6px 0 3px; gap: 12px; }
  .cat-icon-box { width: 46px; height: 46px; border-radius: 13px; }
  .cat-name { font-size: clamp(23px, 6vw, 31px); }
  .cat-kind { margin-bottom: 7px; }
  .cat-desc { max-width: none; min-height: 0; font-size: 13.5px; line-height: 1.45; }
  .cat-areas { height: auto; min-height: 0; margin-top: 9px; }
  .cat-areas-label { margin-bottom: 6px; }
  .cat-chips { gap: 6px; }
  .chip { font-size: 11.5px; padding: 4px 9px; }
  .cat-open { margin-top: 12px; padding: 10px 18px; }
  .cat-dots { margin-top: 12px; }
  /* the DNA wheel, scaled, above the panel */
  .cat-dial { display: block; order: 1; width: 208px; height: 208px; margin: 0 auto; overflow: hidden; justify-self: center; }
  .cat-dial .dial-box { transform-origin: top left; transform: scale(0.525); }

  .etym { flex-direction: column; gap: 14px; }
  .etym-card { padding: 18px 20px; }

  .mastery { padding: 24px 22px; }

  .footer { padding: 56px 22px 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .disc-cards { grid-template-columns: 1fr; }
  .journey-label { font-size: 9px; }
  .stats3 { gap: 10px; }
  /* smaller, better-balanced type on phones */
  .hero-lead { font-size: 15.5px; line-height: 1.55; }
  .hero-stats { gap: 22px; justify-content: center; }  /* centre 7 categorias · +20 áreas · 15 níveis */
  .concept-intro .lead { font-size: 15.5px; line-height: 1.55; }
  .sec-lead { font-size: 15.5px; line-height: 1.55; } /* community + discover leads match the hero lead */
  .concept-close-tx { font-size: clamp(16px, 4.4vw, 20px); }
  /* tighter store buttons so iOS + Android sit side by side (saves vertical space);
     flex-wrap still stacks them if a very narrow screen can't fit both */
  .store-btn, .store-btn.lg { padding: 11px 14px; gap: 9px; }
  .store-btn .store-big { font-size: 15px; }
  .store-row { gap: 10px; }
  .hero .store-wrap, .cta-store .store-wrap { width: 100%; }
  .hero .store-row, .cta-store .store-row { width: 100%; }
  .hero .store-btn, .cta-store .store-btn { flex: 1 1 0; min-width: 0; justify-content: center; }
}

/* small phones: drop the nav Download button — it crowds the wordmark
   (the store buttons live in the hero + CTA anyway) */
@media (max-width: 480px) {
  .nav-cta { display: none; }
  /* Nav apertada: o wordmark nunca é comido; controlos compactos. */
  .nav-inner { padding: 12px 14px; }
  .nav-right { gap: 8px; }
  .nav-logo { flex-shrink: 0; }
  .nav-login { padding: 0 12px; font-size: 13px; }
  .lang-select { padding: 0 22px 0 9px; }
  /* Badges de loja: nunca cortar — encolher padding/fonte e permitir wrap. */
  .store-row { justify-content: center; gap: 8px; }
  .store-btn, .store-btn.lg { padding: 9px 11px; gap: 7px; }
  .store-btn .store-big { font-size: clamp(12px, 3.6vw, 15px); }
  .store-btn .store-top { font-size: clamp(8px, 2.4vw, 10px); }
}

/* ════════════════════════ 02 · ÁGAPE CROSS ════════════════════════ */
.aga-cross-sec { position: relative; height: 210vh; background: radial-gradient(120% 50% at 28% 12%, rgba(202, 152, 11, 0.13), var(--night0) 55%); }
.aga-cross-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.aga-cross-wrap { width: 100%; padding: 0 56px; position: relative; z-index: 2; }
.aga-cross-head { max-width: 880px; margin-bottom: clamp(22px, 3.4vh, 42px); }
.aga-cross-h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; font-size: 43px; line-height: 1.04; margin: 14px 0 0; color: var(--tx); }
.aga-cross-lead { font-size: 17px; line-height: 1.55; color: var(--tx-md); margin-top: 16px; max-width: 690px; }
.aga-cross-stack { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.aga-cross-scene { position: relative; z-index: 2; }
.aga-cross-stage { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 2; box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.75); }
.aga-cross-layer { position: absolute; inset: 0; }
.aga-cross-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aga-cross-mini { position: absolute; border-radius: 7px; overflow: hidden; box-shadow: 0 2px 9px rgba(0, 0, 0, 0.55); }
.aga-cross-grad { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 56%, rgba(19, 23, 42, 0.46) 100%); }
.aga-cross-chip { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; background: rgba(8, 11, 28, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.16); z-index: 5; }
.aga-cross-chip .mono { font-size: 10px; letter-spacing: 1.5px; color: #fff; font-weight: 700; }
.aga-cross-chipdot { width: 6px; height: 6px; border-radius: 3px; background: var(--gold-hi); box-shadow: 0 0 8px var(--gold-hi); }
.aga-cross-phone { position: absolute; left: 54.5%; top: 43.5%; width: 300px; z-index: 4; transform: translate(-50%, -50%) rotate(-3deg) scale(0.14); will-change: transform, left, top; }
.aga-cross-phoneglow { position: absolute; inset: -10% -8%; background: radial-gradient(60% 50% at 50% 42%, rgba(230, 179, 37, 0.23), transparent 70%); filter: blur(24px); z-index: -1; }
.aga-cross-cue { position: absolute; left: 18px; bottom: 16px; display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 1.5px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.aga-cross-pillars { display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.aga-cross-pillar { display: flex; gap: 16px; align-items: flex-start; }
.aga-cross-pic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; display: flex; align-items: center; justify-content: center; border: 1px solid transparent; }
.aga-cross-pt { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--tx); line-height: 1.2; text-wrap: balance; }
.aga-cross-pb { font-size: 14px; line-height: 1.5; color: var(--tx-md); margin-top: 5px; text-wrap: pretty; }
.aga-cross-pillars-mob { display: none; background: var(--night0); }
@media (max-width: 880px) {
  .aga-cross-wrap { padding: 0 24px; }
  .aga-cross-h2 { font-size: 30px !important; }
  .aga-cross-lead { font-size: 14.5px !important; }
  .aga-cross-stack { grid-template-columns: 1fr !important; gap: 42px !important; }
  .aga-cross-stack > .aga-cross-pillars { display: none !important; }
  .aga-cross-pillars-mob { display: block !important; }
  .aga-cross-pillars-mob .aga-wrap { padding: 18px 24px 56px; }
}

