/* ==========================================================================
   XR Academy (xracademy-pe.com)
   Aesthetic: "sticker-book science fair". A bright coral playground where the
   XR catalogue photos sit like collectible cards among hand-drawn stickers.
   Light theme only, matching the subscription page the CTAs lead to.

   Shape rule: buttons and pills are full-pill, cards are 24px, inputs 14px,
   icon tiles 18px. Coral is the one action colour; the six category tones are
   pastel coding for cards and icon tiles, never for buttons.
   ========================================================================== */

:root {
  /* Core palette */
  --accent: #c92a48;          /* buttons, links: white text on it is 5.4:1 */
  --accent-hover: #b3213d;
  --coral: #ff6b6b;           /* decorative coral */
  --pink: #db2777;
  --sun: #ffd93d;
  --bg: #fffbf7;
  --surface: #ffffff;
  --cream: #fff4ec;
  --text: #2b2350;
  --ink-2: #3a3160;
  --muted: #5e5878;
  --border: #f1e4dc;
  --border-strong: #e8d6cb;

  /* Hero gradient: every stop keeps white text above 4.5:1 */
  --hero-grad: linear-gradient(135deg, #d93654 0%, #d8335f 50%, #db2777 100%);
  --closer-grad: linear-gradient(120deg, #d93654 0%, #d42f6a 55%, #b8325a 100%);

  /* Category tones: tinted background / readable ink / solid fill */
  --coral-bg: #ffe6e6;  --coral-ink: #b3213d;  --coral-fill: linear-gradient(135deg, #ff6b6b, #e8475f);
  --sky-bg: #e4ecff;    --sky-ink: #2a52b3;    --sky-fill: linear-gradient(135deg, #5b86e5, #36a3dc);
  --sun-bg: #fff2c9;    --sun-ink: #8a5a00;    --sun-fill: linear-gradient(135deg, #f59e0b, #f7b82b);
  --mint-bg: #dcf6ea;   --mint-ink: #07704e;   --mint-fill: linear-gradient(135deg, #10b981, #1fb8b0);
  --grape-bg: #f0e6ff;  --grape-ink: #6d32b8;  --grape-fill: linear-gradient(135deg, #a855f7, #8b5cf6);
  --pink-bg: #ffe3f0;   --pink-ink: #a81f63;   --pink-fill: linear-gradient(135deg, #ec4899, #db2777);

  --radius: 24px;
  --radius-lg: 32px;
  --radius-input: 14px;
  --radius-tile: 18px;
  --shadow-sm: 0 2px 10px rgba(122, 52, 70, 0.07);
  --shadow: 0 10px 30px rgba(122, 52, 70, 0.10);
  --shadow-lg: 0 24px 60px rgba(122, 32, 60, 0.18);
  --header-h: 70px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  overflow-x: clip; /* clip, not hidden: hidden would make body a scroll container and break the sticky header */
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.6rem; color: var(--text); letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.shell { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); font-weight: 700; }
.h3 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); }
.lede { font-size: 1.1rem; color: var(--muted); }

.page-section { padding: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) 0; }
.section-head { margin-bottom: 2.5rem; width: min(760px, 100%); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-bottom: 0; }

.band-soft {
  background:
    radial-gradient(circle at 12% 80%, rgba(91, 134, 229, 0.10), transparent 45%),
    radial-gradient(circle at 88% 15%, rgba(168, 85, 247, 0.10), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 107, 107, 0.07), transparent 55%),
    #fff7f3;
}
.band-cream { background: var(--cream); }

/* Tone helpers (cards use the tint, tiles use the fill) */
.tone-coral { --t-bg: var(--coral-bg); --t-ink: var(--coral-ink); --t-fill: var(--coral-fill); }
.tone-sky   { --t-bg: var(--sky-bg);   --t-ink: var(--sky-ink);   --t-fill: var(--sky-fill); }
.tone-sun   { --t-bg: var(--sun-bg);   --t-ink: var(--sun-ink);   --t-fill: var(--sun-fill); }
.tone-mint  { --t-bg: var(--mint-bg);  --t-ink: var(--mint-ink);  --t-fill: var(--mint-fill); }
.tone-grape { --t-bg: var(--grape-bg); --t-ink: var(--grape-ink); --t-fill: var(--grape-fill); }
.tone-pink  { --t-bg: var(--pink-bg);  --t-ink: var(--pink-ink);  --t-fill: var(--pink-fill); }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.75rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 0 #9e1d36, 0 12px 24px rgba(201, 42, 72, 0.25); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }
.btn-primary:active { box-shadow: 0 2px 0 #9e1d36; transform: translateY(3px); }
.btn-white { background: #fff; color: var(--accent); box-shadow: 0 6px 0 rgba(120, 20, 45, 0.28), 0 14px 30px rgba(90, 10, 35, 0.2); }
.btn-white:hover { color: var(--accent-hover); transform: translateY(-2px); }
.btn-white:active { box-shadow: 0 2px 0 rgba(120, 20, 45, 0.28); transform: translateY(3px); }
.btn-glass { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.26); color: #fff; transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 0.5rem 1.15rem; font-size: 0.95rem; }
.btn-lg { min-height: 56px; padding: 0.9rem 1.85rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn .icon { width: 1.2em; height: 1.2em; }

.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 1rem; border-radius: 999px;
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.pill-hero { background: rgba(255, 255, 255, 0.18); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.pill .icon { width: 1rem; height: 1rem; color: var(--sun); }

/* ---------- Header ---------- */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.site-header {
  position: sticky; top: 0; z-index: 900; direction: ltr;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--text); }
.brand-tile {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff6b6b, #f59e0b); color: #fff;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.35);
}
.brand-tile .icon { width: 22px; height: 22px; }
.logo-mark { display: inline-block; width: 132px; color: var(--text); }
.logo-mark svg { width: 100%; height: auto; fill: currentColor; }

.site-nav-desktop { display: flex; align-items: center; gap: 0.2rem; margin-inline: auto; }
.site-nav-desktop a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem; border-radius: 999px;
  color: var(--ink-2); font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.site-nav-desktop a:hover { background: var(--coral-bg); color: var(--coral-ink); }
.site-nav-desktop a.active { background: var(--coral-bg); color: var(--coral-ink); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.lang-switcher { display: inline-flex; align-items: center; gap: 0.25rem; }
.lang-globe { display: inline-grid; place-items: center; color: var(--muted); }
.lang-globe .icon { width: 18px; height: 18px; }
.lang-pill {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 0.5rem;
  border-radius: 999px; font-weight: 800; font-size: 0.85rem; color: var(--muted); text-decoration: none;
}
a.lang-pill:hover { background: var(--cream); color: var(--text); }
.lang-active { background: var(--coral-bg); color: var(--coral-ink); }

.nav-burger { display: none; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; margin-inline-start: auto; background: var(--coral-bg); }
.nav-burger span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--coral-ink); transition: transform 0.25s ease, opacity 0.25s ease; }
.site-nav { display: none; }

/* ---------- Billing strip ---------- */
.billing-strip { background: #fff5d1; border-bottom: 1px solid #f7e2a1; color: var(--ink-2); font-size: 0.85rem; }
.billing-strip-inner { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; padding: 0.55rem 0; }
.billing-price { font-weight: 800; }
.billing-item { position: relative; }
.billing-link { color: var(--accent); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero-grad); color: #fff; overflow: hidden; padding: clamp(3rem, 2rem + 3vw, 5rem) 0 clamp(6rem, 4rem + 5vw, 8.5rem); }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 85% 25%, rgba(255, 217, 61, 0.22), transparent 38%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.14), transparent 40%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 3rem; align-items: center; }
.hero-copy { max-width: 600px; }
.hero-title { color: #fff; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.2rem); font-weight: 700; line-height: 1.05; margin: 1.2rem 0 1.1rem; }
.hero-brand { display: block; font-size: 0.42em; font-weight: 600; letter-spacing: 0.02em; opacity: 0.95; margin-bottom: 0.35rem; }
.hero-desc { font-size: 1.2rem; line-height: 1.55; color: #fff; margin-bottom: 1.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-art { position: relative; justify-self: center; width: min(460px, 100%); aspect-ratio: 1 / 0.95; }
.hero-card {
  position: absolute; inset: 6% 8% 4% 6%;
  background: #fff; border-radius: var(--radius-lg); padding: 12px;
  transform: rotate(-3.5deg);
  box-shadow: var(--shadow-lg);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.float { position: absolute; filter: drop-shadow(0 10px 16px rgba(80, 10, 40, 0.28)); }
.float-a { width: 88px; top: -2%; right: 4%; transform: rotate(12deg); }
.float-b { width: 104px; bottom: -4%; left: -4%; }
.bubble { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--coral); }
.bubble .icon { width: 28px; height: 28px; }
.float-c { top: 10%; left: -3%; }
.float-d { bottom: 12%; right: -3%; width: 64px; height: 64px; }
.bubble-sun { background: var(--sun); color: #8a5a00; }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 90px); fill: var(--bg); }

/* ---------- Fun fact ---------- */
.funfact-wrap { margin-top: -1.5rem; position: relative; z-index: 2; }
.funfact {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.1rem 1.5rem; border-radius: var(--radius);
  background: #fff6d6; border: 2px solid #ffe38f; box-shadow: var(--shadow-sm);
}
.funfact-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); color: #7a4d00; }
.funfact-icon .icon { width: 28px; height: 28px; }
.funfact-body { flex: 1; min-width: 0; }
.funfact-label { margin: 0 0 0.15rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8a5a00; }
.funfact-list { list-style: none; display: grid; }
.funfact-list li { grid-area: 1 / 1; font-weight: 700; color: var(--ink-2); margin: 0; }
html.js .funfact-list li { opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; }
html.js .funfact-list li.is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.45s ease 0.3s, transform 0.45s var(--ease) 0.3s; }
html:not(.js) .funfact-list li:not(:first-child) { display: none; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.cat-card {
  position: relative; padding: 1.4rem 1.2rem 1.5rem; border-radius: var(--radius);
  background: var(--t-bg); border-bottom: 6px solid transparent;
  border-image: none; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cat-card::after { content: ''; position: absolute; left: 1.2rem; right: 1.2rem; bottom: -6px; height: 6px; border-radius: 6px 6px 0 0; background: var(--t-fill); }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-sticker { width: 84px; height: 84px; margin-bottom: 0.9rem; transition: transform 0.35s var(--ease); }
.cat-card:hover .cat-sticker { transform: rotate(-8deg) scale(1.06); }
.cat-title { font-size: 1.2rem; color: var(--t-ink); margin-bottom: 0.35rem; }
.cat-body { margin: 0; font-size: 0.95rem; color: var(--ink-2); }

/* ---------- Showcase bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.bento-cell { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.bento-media { border-radius: 22px; overflow: hidden; background: var(--cream); box-shadow: var(--shadow-sm); }
.bento-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.bento-cell:hover .bento-media img { transform: scale(1.05); }
.bento-one .bento-media { aspect-ratio: 16 / 11; }
.bento-lead { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-lead .bento-media,
.bento-wide .bento-media { flex: 1; position: relative; min-height: 180px; }
.bento-lead .bento-media img,
.bento-wide .bento-media img { position: absolute; inset: 0; }
.bento-cell figcaption { display: flex; flex-direction: column; padding: 0 0.25rem; }
.bento-cat { font-size: 0.8rem; font-weight: 800; color: var(--accent); }
.bento-title { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--text); }
.bento-lead .bento-title { font-size: 1.4rem; }

.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 3rem 0 1rem; flex-wrap: wrap; }
.rail-head .h3 { margin: 0; }
.rail-hint { margin: 0; color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.rail {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.25rem 0.25rem 1rem;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.rail-item { scroll-snap-align: start; background: var(--surface); border-radius: 20px; padding: 8px 8px 12px; box-shadow: var(--shadow-sm); }
.rail-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 0.6rem; }
.rail-title { margin: 0 0.4rem; font-family: var(--font-display); font-weight: 600; }
.rail-cat { margin: 0 0.4rem; font-size: 0.85rem; color: var(--muted); }

/* ---------- Flow (how it works / subscribe steps) ---------- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: flow; }
.flow-step { position: relative; text-align: center; padding: 0 0.5rem; }
.flow-step:not(:last-child)::after {
  content: ''; position: absolute; top: 36px; right: -1.9rem; width: 1.3rem; height: 1.3rem;
  border-top: 3px solid var(--border-strong); border-right: 3px solid var(--border-strong);
  transform: translateY(-50%) rotate(45deg); border-radius: 2px;
}
.flow-icon {
  display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 1.1rem;
  border-radius: 24px; background: var(--t-fill); color: #fff; box-shadow: var(--shadow);
  transform: rotate(-4deg);
}
.flow-step:nth-child(2) .flow-icon { transform: rotate(4deg); }
.flow-icon .icon { width: 38px; height: 38px; }
.flow-title { font-size: 1.25rem; }
.flow-body { color: var(--muted); margin: 0; }
.band-cta { margin-top: 2.75rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.why-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card:nth-child(3n + 2) { background: #fff8f5; }
.why-sticker { width: 72px; height: 72px; margin-bottom: 1rem; transition: transform 0.35s var(--ease); }
.why-card:hover .why-sticker { transform: rotate(8deg) scale(1.08); }
.why-title { font-size: 1.2rem; }
.why-body { margin: 0; color: var(--muted); }

/* ---------- Features ---------- */
.features-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: start; }
.features-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.features-intro .lede { margin-bottom: 1.6rem; }
.features-intro .btn .icon { width: 1.05em; height: 1.05em; }
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.feature { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.feature-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-tile); background: var(--t-fill); color: #fff; }
.feature-icon .icon { width: 26px; height: 26px; }
.feature-title { font-size: 1.1rem; margin-bottom: 0.25rem; }
.feature-body { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- Closer ---------- */
.closer-wrap { padding-top: 1rem; }
.closer {
  position: relative; overflow: hidden; border-radius: 36px; padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  background: var(--closer-grad); color: #fff; box-shadow: var(--shadow-lg);
}
.closer::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(255, 217, 61, 0.22), transparent 40%); pointer-events: none; }
.closer-copy { position: relative; max-width: 640px; }
.closer-title { color: #fff; font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); font-weight: 700; }
.closer-note { font-size: 1.15rem; margin-bottom: 1.8rem; }
.closer-sticker { position: absolute; filter: drop-shadow(0 10px 18px rgba(60, 0, 30, 0.3)); }
.closer-sticker-a { width: 170px; right: 6%; top: 50%; transform: translateY(-50%) rotate(6deg); }
.closer-sticker-b { width: 96px; right: 24%; bottom: 8%; transform: rotate(-10deg); }

.billing-terms { margin-top: 1.4rem; font-size: 0.86rem; line-height: 1.55; }
.billing-terms p { margin: 0 0 0.35rem; }
.billing-terms-main { font-weight: 600; }
.billing-sep { margin: 0 0.3rem; opacity: 0.7; }
.closer .billing-terms, .closer .billing-link { color: #fff; }
.closer .billing-link { text-decoration: underline; }
.band-cta .billing-terms { color: var(--ink-2); max-width: 760px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.85rem; width: min(860px, 100%); margin-inline: auto; }
#faq .section-head { margin-inline: auto; text-align: center; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.15rem 3.5rem 1.15rem 1.4rem; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--coral-bg); color: var(--coral-ink); font-size: 1.35rem; font-weight: 700; line-height: 1;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--accent); }
.faq-body { padding: 0 1.4rem 1.3rem; color: var(--ink-2); }

/* ---------- Inner-page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--hero-grad); color: #fff; padding: clamp(2.5rem, 1.8rem + 2.5vw, 4rem) 0 clamp(4.5rem, 3rem + 4vw, 6.5rem); }
.page-hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.page-hero-copy { max-width: 720px; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem); font-weight: 700; margin-bottom: 0.7rem; }
.page-intro { font-size: 1.15rem; color: #fff; margin: 0; }
.page-hero-sticker { width: 140px; height: 140px; flex: none; filter: drop-shadow(0 12px 20px rgba(80, 10, 40, 0.3)); transform: rotate(6deg); }

/* ---------- About ---------- */
.values-grid { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto; gap: 1.25rem; }
.value-card { border-radius: var(--radius); padding: 1.8rem; background: var(--t-bg); box-shadow: var(--shadow-sm); }
.value-1 { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; }
.value-1 .value-sticker { width: 140px; height: 140px; margin-bottom: auto; }
.value-sticker { width: 80px; height: 80px; margin-bottom: 1rem; }
.value-title { color: var(--t-ink); font-size: 1.35rem; }
.value-1 .value-title { font-size: 1.7rem; margin-top: 1.5rem; }
.value-body { margin: 0; color: var(--ink-2); }

.vision-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.vision-copy p { color: var(--ink-2); font-size: 1.05rem; }
.vision-art { position: relative; width: min(420px, 100%); aspect-ratio: 1 / 0.95; justify-self: center; }
.vision-card { inset: 0; transform: rotate(3deg); }
.float-v { width: 92px; top: -8%; left: -8%; transform: rotate(-10deg); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.fact { padding: 1.8rem; }
.fact + .fact { border-inline-start: 1px solid var(--border); }
.fact-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-tile); background: var(--t-fill); color: #fff; margin-bottom: 1rem; }
.fact-icon .icon { width: 24px; height: 24px; }
.fact-title { font-size: 1.2rem; }
.fact p { margin: 0; color: var(--ink-2); }

/* ---------- Panels (pricing, unsubscribe, contact, sign-in) ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); }
.panel-title { font-size: 1.25rem; }
.panel p:last-child { margin-bottom: 0; }
.panel-link { font-weight: 700; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.bullets { list-style: none; display: grid; gap: 0.7rem; }
.bullets li { position: relative; padding-inline-start: 1.9rem; color: var(--ink-2); }
.bullets li::before {
  content: ''; position: absolute; left: 0; top: 0.3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--mint-bg) no-repeat center / 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%2307704e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
[dir="rtl"] .bullets li::before { left: auto; right: 0; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; gap: 1.5rem; }
.price-card {
  position: relative; display: flex; flex-direction: column; gap: 0.3rem;
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem 1.8rem; box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: #ffc7cf; }
.price-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-tile); background: var(--t-fill); color: #fff; margin-bottom: 0.8rem; }
.price-icon .icon { width: 28px; height: 28px; }
.price-op { font-size: 1.3rem; }
.price-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; margin: 0.3rem 0 0.8rem; }
.price-val { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--accent); }
.price-freq { margin: 0; font-weight: 800; color: var(--muted); }
.price-lines { list-style: none; display: grid; gap: 0.35rem; margin-bottom: 1.4rem; color: var(--ink-2); font-size: 0.95rem; flex: 1; }
.price-note { text-align: center; color: var(--muted); margin: 1.5rem 0 2rem; }
.charged { display: flex; gap: 1.5rem; align-items: flex-start; }
.charged-sticker { width: 88px; height: 88px; flex: none; }

/* Opt-out */
.optout {
  position: relative; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.optout::before { content: ''; position: absolute; left: -2px; top: 1.2rem; bottom: 1.2rem; width: 6px; border-radius: 0 6px 6px 0; background: var(--coral-fill); }
.optout[data-optout="care"]::before { background: var(--sky-fill); }
.optout h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.optout-sms { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.55rem; font-size: 1.05rem; color: var(--ink-2); }
.optout-kw, .optout-dest {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem;
  padding: 0.3rem 0.75rem; border-radius: 10px; border: 2px dashed currentColor;
}
.optout-kw { color: var(--coral-ink); background: var(--coral-bg); }
.optout-dest { color: var(--sky-ink); background: var(--sky-bg); word-break: break-all; }
.optout-dest a { color: inherit; text-decoration: none; }
.optout-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0 0; }
.optout-notes li { padding: 0.45rem 1rem; border-radius: 999px; background: var(--mint-bg); color: var(--mint-ink); font-weight: 700; font-size: 0.9rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.step-n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 0.8rem; border-radius: 14px;
  background: var(--sun-bg); color: var(--sun-ink); font-family: var(--font-display); font-weight: 700;
}
.step:nth-child(2) .step-n { background: var(--sky-bg); color: var(--sky-ink); }
.step:nth-child(3) .step-n { background: var(--mint-bg); color: var(--mint-ink); }
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); margin-top: 1.5rem;
}
.form-card.narrow { width: min(520px, 100%); margin-inline: auto; margin-top: 0; }
.form-hint { color: var(--muted); font-size: 0.92rem; margin: 0.4rem 0 0; }
.form-group { margin-bottom: 1.1rem; }
.contact-form h3,
.form-card h3 { margin-bottom: 1.5rem; font-size: 1.5rem; }
.form-card h3 + .form-hint { margin: -1.1rem 0 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.signin-card button,
.form-card button { margin-top: 0.5rem; }
.form-group label { display: block; font-weight: 800; font-size: 0.95rem; color: var(--text); margin-bottom: 0.4rem; }
.form-group input,
.form-group textarea {
  width: 100%; font: inherit; color: var(--text);
  background: #fffdfb; border: 2px solid var(--border-strong); border-radius: var(--radius-input);
  padding: 0.8rem 1rem; min-height: 50px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #8a83a3; }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201, 42, 72, 0.15); }
.form-group textarea { resize: vertical; min-height: 140px; }
.error-msg { display: none; color: #c0262d; font-size: 0.85rem; font-weight: 700; margin-top: 0.35rem; }
.errorMsg { display: none; color: #c0262d; font-size: 0.88rem; font-weight: 700; margin-top: 0.5rem; }
.form-success { display: none; color: var(--mint-ink); font-weight: 700; margin-top: 1rem; }
.successMsg { display: none; color: var(--mint-ink); font-weight: 700; margin-top: 1rem; }
.form-disclaimer { color: var(--muted); font-size: 0.85rem; margin-top: 1rem; margin-bottom: 0; }
.btn:disabled { opacity: 0.65; cursor: wait; transform: none; }

/* ---------- Legal pages ---------- */
.legals-wrap { padding: 1rem 0 3.5rem; }
.legals { padding-top: 1rem; padding-bottom: 3rem; }
.legals .container { width: min(840px, 92vw); margin-inline: auto; }
.legals h1 { display: none; } /* terms-dcb.html injects a hardcoded <h1>: always hide it */
.legals h6 {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); margin: 2rem 0 0.5rem;
}
.legals p { margin-bottom: 0.85rem; line-height: 1.75; color: var(--ink-2); }
.legals ul { margin: 0.5rem 0 1rem; padding-inline-start: 1.2rem; }
.legals li { margin-bottom: 0.4rem; line-height: 1.7; color: var(--ink-2); }
.legals a { word-break: break-word; }
.legals table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legals th,
.legals td { border: 1px solid var(--border-strong); padding: 0.6rem 0.75rem; text-align: start; vertical-align: top; }
.legals th { background: var(--cream); }

/* ---------- 404 ---------- */
.not-found { padding: 5rem 0 6rem; text-align: center; }
.not-found .shell { display: flex; flex-direction: column; align-items: center; }
.nf-sticker { width: 160px; height: 160px; margin-bottom: 0.5rem; }
.big-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(4.5rem, 3rem + 6vw, 7.5rem); line-height: 1; margin: 0 0 0.5rem; background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found h1 { font-size: 2rem; }
.not-found p { color: var(--muted); margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding: 3.5rem 0 2.5rem; }
.brand-footer { margin-bottom: 0.9rem; }
.footer-tagline { color: var(--muted); margin-bottom: 0.6rem; }
.footer-price { font-weight: 800; color: var(--ink-2); font-size: 0.92rem; }
.footer-lang { margin-top: 0.5rem; }
.footer-col-title { font-size: 1rem; margin-bottom: 0.6rem; color: var(--accent); }
.footer-col:nth-of-type(2) .footer-col-title { color: var(--sky-ink); }
.footer-col:nth-of-type(3) .footer-col-title { color: var(--grape-ink); }
.footer-col ul { list-style: none; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.footer-col a:hover { color: var(--accent); }
.footer-legal { border-top: 1px solid var(--border); padding: 1.6rem 0 2.2rem; font-size: 0.88rem; color: var(--muted); }
.footer-entity { margin-bottom: 0.5rem; }
.footer-channels { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; margin: 0.8rem 0; }
.footer-channels a { font-weight: 700; }
.footer-copy { margin: 0.8rem 0 0; }
.footer-version { opacity: 0.8; margin-inline-start: 0.4rem; }

/* ---------- Reveal (hidden only when JS runs) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Motion: floating stickers ---------- */
@media (prefers-reduced-motion: no-preference) {
  .float-a { animation: bob-a 5.5s ease-in-out infinite; }
  .float-b { animation: bob-b 6.5s ease-in-out infinite; }
  .float-c { animation: bob-b 5s ease-in-out infinite 0.6s; }
  .float-d { animation: bob-a 6s ease-in-out infinite 1.2s; }
  .float-v { animation: bob-b 6s ease-in-out infinite; }
  .page-hero-sticker { animation: bob-a 6s ease-in-out infinite; }
  .hero-card { animation: card-in 0.9s var(--ease) both; }
}
@keyframes bob-a { 0%, 100% { transform: translateY(0) rotate(10deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes bob-b { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes card-in { from { opacity: 0; transform: rotate(4deg) translateY(30px) scale(0.94); } to { opacity: 1; transform: rotate(-3.5deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .site-nav-desktop a { padding: 0 0.6rem; font-size: 0.9rem; }
}

@media (max-width: 1040px) {
  .site-nav-desktop, .header-actions { display: none; }
  .nav-burger { display: inline-flex; }
  .site-nav {
    display: flex; flex-direction: column; gap: 0.2rem;
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 800;
    padding: 1rem 1.25rem 1.5rem; background: var(--surface);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateY(-110%); visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
  }
  .site-nav a:not(.btn), .site-nav .lang-switcher { padding: 0.6rem 0; }
  .site-nav a:not(.btn) { color: var(--text); font-weight: 700; text-decoration: none; font-size: 1.05rem; }
  .site-nav .lang-switcher a.lang-pill, .site-nav .lang-switcher .lang-pill { padding: 0 0.5rem; }
  .site-nav .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); visibility: visible; }
  .nav-toggle:checked ~ .site-header .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .site-header .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .site-header .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { max-width: none; }
  .hero-art { width: min(400px, 88%); }
  .features-split { grid-template-columns: 1fr; gap: 2rem; }
  .features-intro { position: static; }
  .vision-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-lead { grid-row: span 1; }
  .bento-lead .bento-media { aspect-ratio: 16 / 10; flex: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .flow, .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .flow-step:not(:last-child)::after { top: auto; bottom: -1.4rem; right: 50%; transform: translateX(50%) rotate(135deg); }
  .flow-step { padding-bottom: 1rem; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-inline-start: 0; border-top: 1px solid var(--border); }
  .values-grid { grid-template-columns: 1fr; }
  .value-1 { grid-row: auto; min-height: 0; }
  .value-1 .value-sticker { width: 110px; height: 110px; margin-bottom: 0; }
  .closer-sticker-a { width: 110px; top: auto; bottom: -10px; right: -10px; transform: rotate(6deg); }
  .closer-sticker-b { display: none; }
  .closer-copy { padding-bottom: 4rem; }
}

@media (max-width: 640px) {
  .shell, .container { width: calc(100% - 2rem); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .cat-card { padding: 1.1rem 1rem 1.3rem; }
  .cat-sticker { width: 64px; height: 64px; }
  .why-grid, .feature-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-desc { font-size: 1.08rem; }
  .page-hero-sticker { width: 88px; height: 88px; }
  .funfact { align-items: flex-start; padding: 1rem 1.1rem; }
  .charged { flex-direction: column; gap: 0.75rem; }
  .charged-sticker { width: 64px; height: 64px; }
  .optout { padding: 1.3rem 1.2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.2rem; }
  .logo-mark { width: 118px; }
  .rail { grid-auto-columns: 72%; }
  .billing-strip { font-size: 0.78rem; }
  .billing-strip-inner { gap: 0.1rem 0.8rem; padding: 0.45rem 0; line-height: 1.45; }
}

/* ---------- RTL (kept for parity; this domain ships es + en) ---------- */
[dir="rtl"] .form-group input[type="text"],
[dir="rtl"] .form-group textarea { direction: rtl; text-align: right; }
[dir="rtl"] .form-group input[type="email"],
[dir="rtl"] .form-group input[type="tel"] { direction: ltr; text-align: left; }
[dir="rtl"] .form-group label { text-align: right; }
[dir="rtl"] .signin-card .form-group label { text-align: center; }
