/* ByteFit marketing site — fresh-green elevated design system
   Native CSS, no framework. Single accent (green). One radius system.
   Light theme. Motion honors prefers-reduced-motion. */

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg: #f5faf2;
  --bg-tint: #eaf4e4;
  --surface: #ffffff;
  --surface-2: #f1f7ee;

  /* ink */
  --ink: #112019;
  --ink-2: #33473b;
  --muted: #5d6f62;

  /* brand green (single accent) */
  --brand: #18a558;          /* vivid — accents, icons, focus, never behind white text */
  --brand-strong: #0f7a3f;   /* button base — passes AA on white text */
  --brand-deep: #0b5e30;     /* gradients / deep surfaces */
  --brand-ink: #0c3d22;      /* deep green text on pale green */
  --accent-soft: #e7f6e1;    /* pale green chip background */
  --accent-line: #c7e4c2;

  /* lines + feedback */
  --line: #e2ece0;
  --line-strong: #d2e2cf;
  --warn-bg: #fff4df;
  --warn-line: #f0c582;
  --warn-ink: #8b5b17;

  /* radius — ONE system */
  --r-xs: 12px;
  --r-sm: 16px;
  --r-md: 22px;
  --r-lg: 30px;
  --r-xl: 38px;
  --r-pill: 999px;

  /* shadows — tinted to green-ink, never pure black */
  --shadow-sm: 0 2px 10px rgba(16, 48, 28, 0.06);
  --shadow: 0 18px 44px rgba(16, 48, 28, 0.10);
  --shadow-lg: 0 34px 80px rgba(13, 46, 26, 0.18);
  --shadow-brand: 0 18px 38px rgba(15, 122, 63, 0.30);

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;

  --maxw: 1200px;
  --pad: clamp(18px, 5vw, 40px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Manrope", system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 460px at 12% -8%, #d9f3c9 0%, transparent 60%),
    radial-gradient(900px 420px at 92% -12%, #c4ecd9 0%, transparent 58%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.6;
  font-size: clamp(1rem, 0.98rem + 0.15vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
  font-weight: 700;
}

.container { width: min(var(--maxw), 100% - calc(var(--pad) * 2)); margin-inline: auto; }
.container-wide { width: min(1340px, 100% - calc(var(--pad) * 2)); margin-inline: auto; }

section { padding-block: clamp(60px, 9vw, 124px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--brand-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 8px 14px; border-radius: var(--r-pill);
}
.eyebrow svg { width: 16px; height: 16px; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.95rem, 1.2rem + 2.6vw, 3.05rem); margin: 16px 0 0; }
.section-head p { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); margin: 14px 0 0; max-width: 60ch; }
.section-head.center p { margin-inline: auto; }

/* ---------- Top strip ---------- */
.topbar { background: var(--brand-deep); color: #e7fbe9; font-size: 0.9rem; }
.topbar .container { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 10px 0; text-align: center; }
.topbar strong { color: #fff; }
.topbar .spark { display: inline-grid; place-items: center; width: 18px; height: 18px; }
.topbar svg { width: 16px; height: 16px; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(245, 250, 242, 0.82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; }
.brand { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 9px; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; overflow: hidden; background: linear-gradient(140deg, var(--brand), var(--brand-deep)); display: inline-grid; place-items: center; box-shadow: var(--shadow-brand); }
.brand .mark svg { width: 18px; height: 18px; }
.brand .mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand b { font-weight: 700; }
.brand .accent { color: var(--brand-strong); }
.nav-menu { display: flex; align-items: center; gap: 26px; color: var(--ink-2); font-weight: 600; font-size: 0.97rem; }
.nav-menu a { position: relative; padding: 4px 0; }
.nav-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--brand); border-radius: 2px; transition: right var(--dur) var(--ease); }
.nav-menu a:hover::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { padding: 9px 13px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-weight: 700; font-size: 0.85rem; background: var(--surface); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.lang-switch:hover { border-color: var(--brand); transform: translateY(-1px); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--surface);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  padding: 16px 28px; font-weight: 700; font-size: 1.02rem; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-lg { padding: 19px 34px; font-size: 1.08rem; }

.btn-primary { background: linear-gradient(135deg, var(--brand-strong), var(--brand-deep)); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { box-shadow: 0 22px 46px rgba(15, 122, 63, 0.4); }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--brand); }

.btn-on-dark { background: #fff; color: var(--brand-deep); }
.btn-ghost-dark { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }

/* "Coming soon" pill: looks like a button but is inert (not a link) */

/* Compact header CTAs (stay inline next to the lang switch, even on mobile) */
.nav-cta { padding: 11px 18px; font-size: 0.95rem; }
.nav-right .btn { width: auto; }

/* click ripple */
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, 0.45); pointer-events: none; animation: ripple 0.6s var(--ease); }
.btn-secondary .ripple, .btn-on-dark .ripple { background: rgba(15, 122, 63, 0.22); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-row .free-flag { margin: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(34px, 6vw, 76px); padding-bottom: clamp(40px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.hero h1 { font-size: clamp(2.45rem, 1.3rem + 4.6vw, 4.5rem); margin: 18px 0 0; }
.hero h1 .hl { color: var(--brand-strong); }
.hero .lede { color: var(--ink-2); font-size: clamp(1.1rem, 1rem + 0.55vw, 1.4rem); margin: 20px 0 0; max-width: 48ch; }
.hero .btn-row { margin-top: 30px; }
.hero .btn-row-secondary { margin-top: 14px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--muted); font-size: 0.95rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--brand-strong); }

.hero-media { position: relative; justify-self: center; }
.hero-media .glow { position: absolute; inset: -8% -6% -6% -6%; background: radial-gradient(60% 60% at 60% 35%, rgba(24, 165, 88, 0.28), transparent 70%); filter: blur(10px); z-index: 0; }
.hero-media .shot {
  position: relative; z-index: 1;
  width: min(440px, 78vw); aspect-ratio: 4 / 5;
  object-fit: cover; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
}
.hero-media .float-card {
  position: absolute; z-index: 2; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; font-weight: 700;
}
.hero-media .float-card small { display: block; color: var(--muted); font-weight: 600; font-size: 0.78rem; }
.hero-media .float-card .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--brand-strong); display: grid; place-items: center; flex: none; }
.hero-media .float-card .ic svg { width: 20px; height: 20px; }
.hero-media .fc-top { top: 8%; left: -6%; }
.hero-media .fc-bottom { bottom: 7%; right: -5%; }

/* ---------- Availability bar ---------- */
.availability { padding-block: clamp(20px, 3vw, 34px); }
.availability .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; }
.avail-item { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; }
.avail-item svg { width: 22px; height: 22px; color: var(--brand-strong); }
.avail-sep { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-line); }

/* ---------- Cards / cells base ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }

/* ---------- Phone mockup (for app/bot screenshots) ---------- */
.phone { width: 100%; max-width: 220px; margin-inline: auto; aspect-ratio: 1179 / 2556; border-radius: 46px; padding: 5px; background: rgba(123, 184, 132, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 16px 40px rgba(16, 64, 36, 0.14); display: block; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 42px; display: block; background: #fff; }
.step .figure .phone, .cell-feature .cell-figure .phone { border-radius: 30px; }
.step .figure .phone img, .cell-feature .cell-figure .phone img { border-radius: 26px; }

/* ---------- How it works (stepped) ---------- */
.steps { display: grid; gap: clamp(16px, 2vw, 26px); grid-template-columns: repeat(3, 1fr); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step .figure { background: linear-gradient(165deg, #ecf6e6, #d9eed1); padding: clamp(24px, 3vw, 36px) clamp(18px, 3vw, 28px) 0; display: flex; justify-content: center; }
.step .figure .phone { max-width: 196px; transition: transform 0.5s var(--ease); }
.step:hover .figure .phone { transform: translateY(-6px); }
.step .body { padding: clamp(18px, 2vw, 26px); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--brand-strong); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.step h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem); }
.step p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Features bento ---------- */
.bento { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(6, 1fr); grid-auto-rows: auto; align-items: stretch; }
.cell { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); display: flex; }
.cell:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cell .pad { padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; }
.cell h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.6rem); }
.cell p { color: var(--muted); margin: 0; }
.cell .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--brand-strong); display: grid; place-items: center; }
.cell .ic svg { width: 26px; height: 26px; }

/* big feature cell with image background + scrim */
.cell-feature { grid-column: span 3; min-height: 320px; display: grid; grid-template-columns: minmax(140px, 40%) 1fr; align-items: center; gap: clamp(14px, 2vw, 26px); padding: clamp(20px, 2.4vw, 30px); background: linear-gradient(160deg, #ecf6e6, #dbeed3); }
.cell-feature .cell-figure { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.cell-feature .cell-figure .phone { max-width: 166px; }
.cell-feature .pad { padding: 0; justify-content: center; }

/* small text cells */
.cell-text { grid-column: span 2; min-height: 260px; }
.cell-text .pad { justify-content: flex-start; }
.cell-wide { grid-column: span 6; }

/* surface variants for bento diversity */
.cell-soft { background: linear-gradient(160deg, var(--surface-2), #e7f3e1); }
.cell-deep { background: linear-gradient(150deg, var(--brand-deep), #0a4a27); color: #fff; }
.cell-deep .ic { background: rgba(255, 255, 255, 0.16); color: #fff; }
.cell-deep p { color: rgba(255, 255, 255, 0.86); }

/* ---------- Editorial split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; display: flex; justify-content: center; }
.split-media .phone { max-width: 280px; width: 100%; }
.split-copy h2 { font-size: clamp(1.85rem, 1.2rem + 2.3vw, 2.85rem); margin: 16px 0 0; }
.split-copy p { color: var(--muted); font-size: 1.1rem; margin: 18px 0 0; }
.feature-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .check { flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--brand-strong); display: grid; place-items: center; margin-top: 1px; }
.feature-list .check svg { width: 18px; height: 18px; }
.feature-list strong { display: block; }
.feature-list span { color: var(--muted); }

/* ---------- Soon badge ---------- */
.soon { display: inline-flex; align-items: center; margin-left: 10px; padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; }
.cell-feature .soon, .cell-deep .soon { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); color: #fff; }

/* ---------- App section ---------- */

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; max-width: 860px; margin-inline: auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.faq-item.open { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; border: 0; background: transparent; color: inherit; padding: clamp(18px, 2vw, 24px); font-weight: 700; font-size: clamp(1.02rem, 1rem + 0.2vw, 1.18rem); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--brand-strong); display: grid; place-items: center; transition: transform 0.4s var(--ease), background 0.3s; }
.faq-q .pm svg { width: 18px; height: 18px; }
.faq-item.open .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a-inner { padding: 0 clamp(18px, 2vw, 24px) clamp(18px, 2vw, 24px); color: var(--muted); }

/* ---------- Final CTA ---------- */
.cta-final .cta-card { position: relative; overflow: hidden; text-align: center; padding: clamp(36px, 6vw, 84px) clamp(24px, 5vw, 64px); border-radius: var(--r-xl); background: linear-gradient(150deg, var(--brand-deep), #0a4a27 60%, #0d6336); color: #ecfff1; box-shadow: var(--shadow-lg); }
.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 20% 10%, rgba(106, 224, 142, 0.4), transparent 60%), radial-gradient(50% 60% at 90% 90%, rgba(64, 188, 124, 0.35), transparent 60%); z-index: 0; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.cta-card p { color: #d4ecd8; font-size: 1.15rem; margin: 16px auto 0; max-width: 52ch; }
.cta-card .btn-row { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(40px, 5vw, 64px) 0 56px; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer-grid h4 { font-family: "Space Grotesk", sans-serif; font-size: 0.95rem; color: var(--ink); margin: 0 0 14px; letter-spacing: -0.01em; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: var(--brand-strong); }
.footer-soon { color: var(--muted); opacity: 0.75; }
.footer-about p { margin: 14px 0 0; max-width: 38ch; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; padding-top: 22px; }
.site-footer.simple .container { border-top: 1px solid var(--line); padding-top: 26px; }
.site-footer.simple .footer-bottom { padding-top: 0; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal-links a:hover { color: var(--brand-strong); }

/* ---------- Reveal motion ---------- */
html.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

/* subtle scroll-driven parallax where supported */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .parallax { animation: parallax linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes parallax { from { transform: translateY(34px); } to { transform: translateY(-34px); } }
    @media (prefers-reduced-motion: no-preference) {
      .hero-media .float-card.fc-top { animation: floaty 6s ease-in-out infinite; }
      .hero-media .float-card.fc-bottom { animation: floaty 7s ease-in-out infinite 0.6s; }
    }
    @keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
  }
}

/* ---------- Feature flag helper ---------- */
.is-hidden-by-flag { display: none !important; }

/* ---------- Legal + support pages ---------- */
.legal-main { padding: clamp(34px, 5vw, 64px) 0 clamp(48px, 6vw, 72px); }
.legal-layout { display: grid; gap: 16px; max-width: 920px; margin-inline: auto; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.legal-card h1 { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem); letter-spacing: -0.03em; margin: 0 0 10px; }
.legal-meta { color: var(--muted); margin: 0 0 6px; font-size: 0.95rem; }
.legal-card h2 { font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; letter-spacing: -0.02em; margin: 26px 0 10px; }
.legal-card h2:first-of-type { margin-top: 8px; }
.legal-card p, .legal-card li { color: var(--ink-2); }
.legal-card p { margin: 0 0 12px; }
.legal-card ul { margin: 10px 0 16px; padding-left: 20px; }
.legal-card li { margin-bottom: 8px; }
.legal-card a { color: var(--brand-strong); font-weight: 600; }
.legal-card a:hover { text-decoration: underline; }
.legal-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.legal-kv { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; }
.legal-kv strong { display: block; margin-bottom: 6px; color: var(--ink); }
.support-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Soon badge inside buttons ---------- */
.btn .soon { margin-left: 0; }
.btn-ghost-dark .soon, .btn-on-dark .soon { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); color: #fff; }

/* free / no-card flag */
.free-flag { display: inline-flex; align-items: center; gap: 9px; margin: 18px 0 0; font-weight: 700; color: var(--brand-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 9px 16px; border-radius: var(--r-pill); font-size: 0.95rem; }
.free-flag svg { width: 18px; height: 18px; color: var(--brand-strong); flex: none; }

/* ---------- Cookie banner ---------- */
/* Keep keyboard-focused elements clear of the fixed cookie card (2.4.11). */
html:has(.cookie-bar) { scroll-padding-bottom: 7rem; }
/* Compact corner cookie card (matches landing.css): small, no focus steal. */
.cookie-bar { position: fixed; left: 16px; bottom: 16px; z-index: 80; width: min(320px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 14px 16px; display: grid; gap: 10px; animation: cookie-in 0.45s var(--ease) both; }
.cookie-bar p { margin: 0; color: var(--ink-2); font-size: 0.82rem; line-height: 1.45; }
.cookie-bar a { color: var(--brand-strong); font-weight: 600; }
.cookie-bar a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-btn { padding: 7px 15px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; line-height: 1; border: 1px solid transparent; background: none; cursor: pointer; font-family: inherit; }
.cookie-btn.primary { background: var(--brand-strong); color: #fff; }
.cookie-btn.primary:hover { background: var(--brand-deep); }
.cookie-btn.ghost { color: var(--muted); border-color: var(--line-strong); }
.cookie-btn.ghost:hover { color: var(--ink); }
@keyframes cookie-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cookie-bar { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-media { margin-top: 16px; }
  .cell-feature { grid-column: span 6; min-height: 300px; }
  .cell-text { grid-column: span 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  /* Collapse the nav early: below this width the full menu + two CTAs
     overflow the row. Drop the menu links and the secondary Telegram
     button, keeping the primary "Open the app" CTA (the hero carries both). */
  .nav-menu { display: none; }
  .nav-cta-bot { display: none; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .cell-feature, .cell-text, .cell-wide { grid-column: 1 / -1; }
  .cell-feature { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .btn { width: 100%; }
  .hero .btn-row .btn, .cta-card .btn-row .btn { width: 100%; }
  .hero-media { width: min(440px, 78vw); margin-inline: auto; }
  .hero-media .float-card { padding: 10px 13px; gap: 10px; font-size: 0.88rem; }
  .hero-media .float-card .ic { width: 34px; height: 34px; }
  .hero-media .float-card .ic svg { width: 18px; height: 18px; }
  .hero-media .float-card small { font-size: 0.72rem; }
  .cell-text { min-height: 0; }
  .cell-feature { min-height: 0; }
  .step .figure { padding-top: clamp(20px, 5vw, 30px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .parallax { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.05ms !important; }
}
