/* Qwit — Rebelle dark-only website */
@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton_regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo_bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo_extra_bold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Funnel";
  src: url("/assets/fonts/funnel.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Funnel";
  src: url("/assets/fonts/funnel_extra_bold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --brand: #f01818;
  --brand-light: #ff4d3f;
  --cyan: #ff9000;
  --ink: #f8f7f1;
  --ink-soft: #b8c2d6;
  --paper: #182641;
  --paper-soft: #101b30;
  --card: #213257;
  --border: #2f4571;
  --hero-grad: linear-gradient(135deg, #101b30 0%, #182641 46%, #6b1f22 78%, #f01818 115%);
  --shadow: 0 12px 34px rgba(3, 9, 22, .42);
  --glow: 0 10px 34px rgba(240, 24, 24, .35);
  --radius: 18px;
  --display: "Anton", Impact, sans-serif;
  --label: "Archivo", sans-serif;
  --body: "Funnel", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-light); }
h1, h2, h3, .brand { font-family: var(--display); }
.btn, button, nav, dt, .chip, .cat-pill, .cat-badge { font-family: var(--label); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 120; transform: translateY(-160%);
  padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--paper);
  font-family: var(--label); font-weight: 800;
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #ff9000; outline-offset: 4px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}
header.site.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
header.site .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: .05em; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 31px; filter: brightness(0) invert(1); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover img { transform: rotate(-12deg) scale(1.12); }
nav.main { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.menu-btn {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--ink); padding: 8px; line-height: 0; min-width: 44px; min-height: 44px;
}
.menu-btn svg { width: 26px; height: 26px; }
.menu-btn .ic-close, .menu-btn[aria-expanded="true"] .ic-burger { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
nav.main a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
nav.main a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  border-radius: 2px; transition: width .25s ease;
}
nav.main a:not(.btn):hover::after { width: 100%; }
nav.main a:hover { color: var(--brand-light); }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  background: linear-gradient(120deg, var(--brand) 0%, #ff5a36 55%, var(--cyan) 130%);
  color: #fff !important; font-weight: 700; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--glow); }
.btn.ghost { background: transparent; border: 2px solid rgba(255, 255, 255, .7); }

/* Language suggestion banner */
.langbar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 20px; font-size: .95rem; text-align: center;
  background: var(--paper-soft); border-bottom: 1px solid var(--border); color: var(--ink);
}
.langbar[hidden] { display: none; }
.langbar a { font-weight: 700; }
.langbar button {
  background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--ink-soft);
  line-height: 1; padding: 2px 6px;
}

/* Hero — slowly breathing gradient */
.hero {
  background: var(--hero-grad); background-size: 180% 180%;
  animation: heroshift 18s ease-in-out infinite alternate;
  color: #fff; overflow: hidden; position: relative;
}
@keyframes heroshift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.hero .blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}
.hero .blob.b1 { width: 480px; height: 480px; background: #f01818; top: -160px; right: -100px; }
.hero .blob.b2 { width: 380px; height: 380px; background: #ff9000; bottom: -140px; left: -120px; animation-delay: -8s; animation-duration: 20s; }
.hero .blob.b3 { width: 220px; height: 220px; background: #101b30; top: 30%; left: 42%; animation-delay: -4s; opacity: .5; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.15); }
}
.hero .wrap {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px;
  align-items: center; padding-top: 80px; padding-bottom: 110px;
  position: relative; z-index: 1;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; font-weight: 400; letter-spacing: .015em; text-transform: uppercase; }
.hero h1 .accent {
  background: linear-gradient(90deg, #ff9000, #fff2ce);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { margin-top: 18px; font-size: 1.15rem; opacity: .92; max-width: 34em; }
.hero .cta { margin-top: 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero .cta img.store-badge { height: 58px; width: auto; border-radius: 10px; transition: transform .18s ease, box-shadow .18s ease; }
.hero .cta a:hover img.store-badge { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.hero .logo-big { width: 76px; margin-bottom: 22px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .25)); }

/* Wave divider */
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; z-index: 2; color: var(--paper-soft); pointer-events: none; }
.wave path { fill: currentColor; }

/* Phone mockup */
.phone-scene { perspective: 1200px; }
.phone {
  width: min(280px, 70vw); margin: 0 auto; border-radius: 40px; padding: 12px;
  background: #0b1119;
  box-shadow: 0 34px 80px rgba(0, 20, 45, .5), inset 0 0 0 2px #24344a, inset 0 0 0 6px #0b1119;
  transform: rotate3d(0, 1, 0, -12deg) rotate(2deg);
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
  animation: floaty 7s ease-in-out infinite;
  will-change: transform;
}
.phone-scene:hover .phone { transform: rotate3d(0, 1, 0, 0deg) rotate(0deg) scale(1.03); animation-play-state: paused; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
.phone img { border-radius: 30px; }

/* Stats band */
.stats { background: var(--paper-soft); border-bottom: 1px solid var(--border); position: relative; z-index: 2; }
.stats .wrap { display: flex; justify-content: space-around; gap: 20px; padding: 34px 24px; flex-wrap: wrap; text-align: center; }
.stats b { display: block; font-size: 1.9rem; font-family: var(--display); font-weight: 800; background: linear-gradient(120deg, var(--brand-light), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats b .count { font: inherit; color: inherit; } /* keep the animated number same size/gradient as its suffix */
.stats b + span { color: var(--ink-soft); font-size: .95rem; }
.facts-checked { padding: 0 24px 18px; text-align: center; color: var(--ink-soft); font-size: .82rem; }

/* Sections */
section { padding: 84px 0; }
section h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; text-align: center; letter-spacing: -.01em; }
section h2::after {
  content: ""; display: block; width: 64px; height: 4px; margin: 16px auto 0;
  border-radius: 4px; background: linear-gradient(90deg, var(--brand-light), var(--cyan));
}
section h2 .accent { background: linear-gradient(120deg, var(--brand-light), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
section p.lead { text-align: center; color: var(--ink-soft); max-width: 42em; margin: 12px auto 0; font-size: 1.05rem; }

/* Cards — app-like glass: brand-tinted surface, top light edge, pointer sheen */
.grid { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card, .post-card, .rel-card {
  --cc: var(--brand-light);
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), color-mix(in srgb, var(--cc) 13%, transparent), transparent 45%),
    linear-gradient(160deg, color-mix(in srgb, var(--cc) 9%, var(--card)), var(--card) 55%);
  border: 1px solid color-mix(in srgb, var(--cc) 22%, var(--border));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--shadow);
}
.card {
  border-radius: var(--radius); padding: 28px; position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 18px 44px color-mix(in srgb, var(--cc) 22%, transparent);
  border-color: color-mix(in srgb, var(--cc) 48%, var(--border));
}
.card .ico {
  font-size: 1.7rem; width: 56px; height: 56px; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-light) 14%, var(--card)), color-mix(in srgb, var(--cyan) 18%, var(--card)));
  border: 1px solid var(--border); border-radius: 16px;
}
.card h3 { margin: 14px 0 6px; font-size: 1.12rem; }
.card p { color: var(--ink-soft); font-size: .95rem; }
/* Staggered reveal */
.grid .card:nth-child(2) { transition-delay: .06s; }
.grid .card:nth-child(3) { transition-delay: .12s; }
.grid .card:nth-child(4) { transition-delay: .18s; }
.grid .card:nth-child(5) { transition-delay: .24s; }
.grid .card:nth-child(6) { transition-delay: .3s; }
.grid .card:hover { transition-delay: 0s; }

/* Screenshots */
.shots { background: var(--paper-soft); }
.shots-row {
  margin-top: 44px; display: flex; gap: 20px; overflow-x: auto; padding: 10px 4px 22px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.shots-row img {
  height: 430px; width: auto; border-radius: 24px; scroll-snap-align: center;
  border: 1px solid var(--border); box-shadow: var(--shadow); flex-shrink: 0;
  transition: transform .3s ease, box-shadow .3s ease;
}
.shots-row img:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 22px 48px rgba(2, 87, 161, .25); }

/* Video */
.video-shell {
  margin: 44px auto 0; max-width: 760px; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 24px 60px rgba(2, 87, 161, .25); position: relative; cursor: pointer; border: 0;
  padding: 0; display: block; width: 100%; background: #000;
}
.video-shell img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .4s ease, opacity .3s ease; }
.video-shell:hover img { transform: scale(1.04); opacity: 1; }
.video-shell .play-ico {
  position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%;
  background: rgba(2, 87, 161, .92); backdrop-filter: blur(4px);
  display: grid; place-items: center; transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 0 0 0 rgba(41, 197, 246, .5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(41, 197, 246, .45); }
  70% { box-shadow: 0 0 0 26px rgba(41, 197, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(41, 197, 246, 0); }
}
.video-shell:hover .play-ico { transform: scale(1.1); }
.video-shell .play-ico::after {
  content: ""; border-style: solid; border-width: 15px 0 15px 26px;
  border-color: transparent transparent transparent #fff; margin-left: 7px;
}
.video-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Family */
.family .card { border-top: 6px solid var(--cc, var(--brand)); overflow: hidden; }
.family .card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 120px;
  background: radial-gradient(120px 80px at 50% -30px, color-mix(in srgb, var(--cc) 26%, transparent), transparent);
  pointer-events: none; opacity: 0; transition: opacity .3s ease;
}
.family .card:hover::before { opacity: 1; }
.family .soon { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-soft); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }
.family .store-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.family a.get { display: inline-block; margin-top: 10px; font-weight: 700; text-decoration: none; }
.family a.get:hover { text-decoration: underline; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 18px 4px; max-width: 760px; margin: 0 auto; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand-light); transition: transform .25s ease; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* Footer */
footer.site { background: #0e1826; color: #c6d2dd; padding: 60px 0 36px; margin-top: 48px; position: relative; }
footer.site::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--cyan)); }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
footer.site h3 { color: #fff; margin-bottom: 12px; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--display); }
footer.site a { color: #c6d2dd; text-decoration: none; display: block; padding: 3px 0; font-size: .95rem; transition: color .15s ease, transform .15s ease; }
footer.site a:hover { color: #fff; transform: translateX(3px); }
footer.site .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.apple-credit { margin: 14px 0 0; color: #9eacb9; font-size: .72rem; line-height: 1.45; }

/* Blog index */
.blog-index { padding: 56px 0 72px; }
.blog-index h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.blog-index .lead { color: var(--ink-soft); margin-top: 8px; max-width: 46em; }
.post-list { margin-top: 36px; display: grid; gap: 20px; }
.post-card {
  display: block; border-radius: var(--radius); padding: 26px 28px; text-decoration: none; color: var(--ink);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 16px 40px color-mix(in srgb, var(--cc) 22%, transparent);
  border-color: color-mix(in srgb, var(--cc) 48%, var(--border));
}
.post-card .meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-card .date { font-size: .85rem; color: var(--ink-soft); }
.post-card h2 { font-size: 1.3rem; margin: 10px 0 8px; }
.post-card p { color: var(--ink-soft); }
.post-card .more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--brand-light); }

/* Category chips, pills & badges */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.chip {
  --cc: var(--brand-light);
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--cc) 10%, var(--paper-soft));
  border: 1px solid color-mix(in srgb, var(--cc) 30%, var(--border));
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.chip:hover { transform: translateY(-2px); box-shadow: 0 6px 18px color-mix(in srgb, var(--cc) 25%, transparent); }
.chip.active { background: color-mix(in srgb, var(--cc) 28%, var(--paper-soft)); border-color: var(--cc); }
.cat-pill {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 3px 11px; border-radius: 999px;
  color: var(--ink); background: color-mix(in srgb, var(--cc) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--cc) 35%, transparent);
}
.cat-badge {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 700;
  font-size: .9rem; color: var(--ink);
}
.cat-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 8px var(--cc); }
.byline .sep { color: var(--ink-soft); margin: 0 4px; }

/* Related articles */
.related { margin-top: 40px; }
.related h3 { font-size: 1.2rem; margin-bottom: 14px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.rel-card {
  display: flex; align-items: center; padding: 16px 18px; border-radius: 14px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.4;
  border-left: 4px solid var(--cc);
  transition: transform .18s ease, box-shadow .18s ease;
}
.rel-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px color-mix(in srgb, var(--cc) 25%, transparent); }

/* Blog search */
.blog-search {
  display: block; width: 100%; max-width: 440px; margin-top: 18px;
  padding: 12px 18px; border-radius: 999px; font: inherit; color: var(--ink);
  background: var(--paper-soft); border: 1px solid var(--border); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.blog-search:focus { border-color: var(--brand-light); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-light) 25%, transparent); }

/* Author / method line */
.editorial-meta {
  display: grid; gap: 8px; margin: -14px 0 30px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--paper-soft);
}
.editorial-meta > div { display: grid; grid-template-columns: minmax(110px, .45fr) 1fr; gap: 12px; }
.editorial-meta dt { color: var(--ink-soft); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.editorial-meta dd { color: var(--ink); }
.bibliography { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border); }
.bibliography h2 { margin-top: 0; }
.bibliography a { overflow-wrap: anywhere; }
.source-pending {
  margin-top: 34px !important; padding: 14px 18px; border: 1px solid #9c6b24;
  border-radius: 12px; background: rgba(255, 144, 0, .1); color: #ffe0a8;
}

/* Calculator */
.calc-page { padding: 56px 0 72px; }
.calc-page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.calc-page h1 .accent, .calc-page h2 .accent { background: linear-gradient(120deg, var(--brand-light), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-page .lead { color: var(--ink-soft); margin-top: 8px; max-width: 46em; }
.calc-page h2 { margin-top: 44px; font-size: 1.4rem; }
.calc-form { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; border-radius: var(--radius); padding: 24px; }
.calc-form label { font-weight: 700; font-size: .92rem; display: grid; gap: 8px; }
.calc-form input, .calc-form select {
  font: inherit; font-size: 1.1rem; font-weight: 700; color: var(--ink);
  padding: 12px 14px; border-radius: 12px; background: var(--paper-soft);
  border: 1px solid var(--border); outline: none; width: 100%;
}
.calc-form input:focus, .calc-form select:focus { border-color: var(--brand-light); }
.calc-results { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.res-tile {
  border-radius: var(--radius); padding: 20px; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 14%, var(--card)), var(--card) 60%);
  border: 1px solid color-mix(in srgb, var(--cc) 30%, var(--border));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--shadow);
}
.res-tile b { display: block; font-family: var(--display); font-size: 1.45rem; font-weight: 800; color: var(--cc); }
.res-tile.big b { font-size: 1.9rem; }
.res-tile span { color: var(--ink-soft); font-size: .9rem; }
.equiv { list-style: none; margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.equiv li { background: var(--paper-soft); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; color: var(--ink-soft); }
.equiv .n { font-weight: 800; color: var(--ink); font-family: var(--display); }
.calc-note { margin-top: 24px; color: var(--ink-soft); font-size: .92rem; max-width: 60em; }
.calc-page .cta-box { margin-top: 40px; max-width: 68ch; }

/* Flavor pages */
.flavor-hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(150deg, color-mix(in srgb, var(--cc) 75%, #001428), color-mix(in srgb, var(--cc) 45%, #0a72c4) 60%, #29c5f6 130%);
  background-size: 160% 160%; animation: heroshift 18s ease-in-out infinite alternate;
}
.flavor-hero .wrap { padding: 76px 24px 110px; position: relative; z-index: 1; }
.flavor-hero .flavor-ico { font-size: 3.4rem; display: block; margin-bottom: 10px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.3)); }
.flavor-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.flavor-hero .sub { font-size: 1.2rem; opacity: .92; margin-top: 10px; }
.flavor-hero .flavor-note { margin: 22px auto 14px; max-width: 34em; opacity: .95; }
.flavor-hero .store-badges { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.flavor-hero img.store-badge { height: 58px; width: auto; border-radius: 10px; }
.flavor-hero .flavor-social { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
.flavor-page { padding: 56px 0 72px; }
.flavor-page .wrap { max-width: 760px; }
.flavor-page .flavor-p { font-size: 1.15rem; line-height: 1.7; }
.flavor-page h2 { margin-top: 40px; font-size: 1.4rem; }
.flavor-features { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.flavor-features li {
  padding: 16px 18px 16px 46px; border-radius: 14px; position: relative;
  background: color-mix(in srgb, var(--cc) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--cc) 25%, var(--border));
}
.flavor-features li::before { content: "✓"; position: absolute; left: 18px; font-weight: 800; color: var(--cc); }
.flavor-blog { margin-top: 30px; }
.flavor-legal { margin-top: 36px; font-size: .88rem; color: var(--ink-soft); }

/* Consent banner */
.consent-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  max-width: 720px; margin: 0 auto; padding: 16px 22px; border-radius: 16px;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px);
  border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0, 0, 0, .4);
  font-size: .92rem; color: var(--ink);
}
.consent-bar p { margin: 0; max-width: 42em; }
.consent-actions { display: flex; gap: 10px; align-items: center; }
.consent-bar .btn { padding: 9px 20px; font-size: .92rem; }
.consent-no {
  background: none; border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
  color: var(--ink-soft); font: inherit; font-size: .92rem; font-weight: 600; padding: 9px 18px;
}
.consent-no:hover { color: var(--ink); border-color: var(--ink-soft); }

/* Reading progress bar */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90;
  background: linear-gradient(90deg, var(--brand-light), var(--cyan));
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}

/* Article */
.article-page { padding: 48px 0 72px; }
.prose { max-width: 68ch; }
.prose .crumbs { margin-bottom: 18px; }
.prose .crumbs a { text-decoration: none; font-weight: 600; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.18; letter-spacing: -.01em; }
.prose .byline { color: var(--ink-soft); margin: 10px 0 30px; font-size: .95rem; }
.prose h2 { font-size: 1.45rem; margin: 38px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.prose p, .prose li { font-size: 1.05rem; }
.prose p { margin: 14px 0; }
.prose ul, .prose ol { margin: 14px 0 14px 24px; }
.prose li { margin: 6px 0; }
.prose img { border-radius: var(--radius); margin: 20px 0; }
.prose blockquote { border-left: 4px solid var(--brand-light); padding-left: 16px; color: var(--ink-soft); margin: 18px 0; }
.prose table { border-collapse: collapse; margin: 18px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 14px; text-align: left; }
.prose code { background: var(--paper-soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.toc { background: var(--paper-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; }
.toc ol { margin: 0 0 0 20px; }
.toc a { text-decoration: none; font-weight: 600; }
.disclaimer { margin-top: 36px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; color: var(--ink-soft); font-size: .9rem; background: var(--paper-soft); }
.cta-box {
  margin-top: 28px; text-align: center; padding: 34px 26px; border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, var(--card)), color-mix(in srgb, var(--cyan) 12%, var(--card)));
  border: 1px solid var(--border);
}
.cta-box h3 { font-size: 1.35rem; }
.cta-box p { color: var(--ink-soft); margin: 8px 0 18px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .blob, .phone, .video-shell .play-ico { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 52px; padding-bottom: 84px; }
  .hero p.sub { margin-inline: auto; }
  .hero .cta { justify-content: center; }
  .hero .logo-big { margin-inline: auto; }
  .phone { margin-top: 16px; transform: none; }
  .menu-btn { display: block; }
  nav.main {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 24px 20px;
    background: var(--paper); border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .18);
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  nav.main a::after { display: none; }
  nav.main a.btn { margin-top: 14px; text-align: center; border-bottom: 0; }
  .shots-row img { height: 340px; }
  section { padding: 60px 0; }
  .stats b { font-size: 1.5rem; }
  .editorial-meta > div { grid-template-columns: 1fr; gap: 2px; }
}
