/* ============================================================
   takebackmyinsta — design tokens
   Language: Nike (imperative headline, customer as hero, pill CTA)
   + social-app layer: white app surfaces, story rings, own sunset
   gradient. No Instagram logo, glyph, exact gradient or UI copy.
   Component code reads tokens only — no hex values below :root.
   ============================================================ */

:root {
  color-scheme: light;

  /* Surfaces & ink */
  --bg:            #FFFFFF;
  --bg-subtle:     #F6F6F8;
  --bg-card:       #FFFFFF;
  --bg-skeleton:   #EEEEF2;
  --bg-inverse:    #0E0E11;
  --bg-inverse-2:  #1B1B21;
  --ink:           #111114;
  --ink-2:         #5C5C68;
  --ink-3:         #8E8E9A;
  --ink-inverse:   #FFFFFF;
  --ink-inverse-2: #B4B4BF;
  --line:          rgba(17, 17, 20, 0.10);
  --line-strong:   rgba(17, 17, 20, 0.20);
  --line-inverse:  rgba(255, 255, 255, 0.14);

  /* Brand gradient (own stops) */
  --g1: #FFB547;   /* amber  */
  --g2: #FF5A5F;   /* coral  */
  --g3: #E0318A;   /* pink   */
  --g4: #8A3FFC;   /* violet */
  --grad:      linear-gradient(45deg, var(--g1) 0%, var(--g2) 35%, var(--g3) 65%, var(--g4) 100%); /* rings, glow, decoration */
  --grad-deep: linear-gradient(90deg, #DE2F52 0%, #BE2A86 55%, #7136DE 100%);                     /* action + text: ≥4.5:1 with white */

  --action:     var(--grad-deep);   /* primary CTA only */
  --action-ink: #FFFFFF;
  --success:    #12733F;
  --wa:         #12733F;   /* WhatsApp free-analysis buttons: white text 5.9:1 */
  --wa-hover:   #0E5F33;
  --success-bg: #E3F5EA;
  --danger:     #C8302F;
  --danger-bg:  #FDE7E6;

  /* Type */
  --font: "Plus Jakarta Sans", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-xl:   clamp(22px, 2.4vw, 28px);
  --fs-2xl:  clamp(32px, 5vw, 56px);
  --fs-hero: clamp(44px, 8.4vw, 104px);
  --lh-tight: 1.04;
  --lh-body:  1.6;
  --tr-tight: -0.035em;
  --tr-wide:   0.12em;

  /* Rhythm & form */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: clamp(72px, 10vw, 120px);
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 999px;
  --shadow:      0 1px 2px rgba(17, 17, 20, 0.04), 0 10px 30px rgba(17, 17, 20, 0.07);
  --shadow-lg:   0 2px 6px rgba(17, 17, 20, 0.06), 0 30px 70px rgba(17, 17, 20, 0.16);
  --shadow-cta:  0 10px 28px -10px rgba(190, 42, 134, 0.65);
  --container:   1180px;
  --gutter:      clamp(16px, 4vw, 32px);
  --touch:       44px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  240ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-base)/var(--lh-body) var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font); font-weight: 800; letter-spacing: var(--tr-tight); line-height: var(--lh-tight); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: var(--sp-4); top: -60px; z-index: 100; background: var(--ink); color: var(--ink-inverse); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: var(--sp-4); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-9); }
.section--subtle { background: var(--bg-subtle); }
.section--inverse { background: var(--bg-inverse); color: var(--ink-inverse); }

/* ---------- Type components ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font: 700 var(--fs-xs)/1 var(--font);
  letter-spacing: var(--tr-wide); text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }
.eyebrow--plain::before { display: none; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); max-width: 760px; margin-bottom: var(--sp-7); }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { font-size: var(--fs-md); color: var(--ink-2); max-width: 58ch; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section--inverse .section-head p, .section--inverse .eyebrow { color: var(--ink-inverse-2); }

.grad-text {
  background: var(--grad-deep);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  font-style: italic; padding-right: 0.06em;
}

.tag {
  display: inline-flex; align-items: center; gap: var(--sp-2); justify-self: start;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--bg-card); border: 1px solid var(--line);
  font: 600 13px/1.3 var(--font); color: var(--ink-2);
  box-shadow: var(--shadow);
}
.tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 52px; padding: 0 var(--sp-5);
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font: 700 var(--fs-base)/1 var(--font); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--action); color: var(--action-ink); box-shadow: var(--shadow-cta); }
.btn-primary:hover { filter: brightness(1.07) saturate(1.05); transform: translateY(-1px); }
.btn-primary .arrow { transition: transform var(--dur) var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-secondary { background: var(--bg-card); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--bg-subtle); border-color: var(--ink-3); }
.btn-secondary svg { color: var(--success); }
.btn-sm { min-height: var(--touch); padding: 0 18px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.section--inverse .btn-secondary { background: transparent; color: var(--ink-inverse); border-color: var(--line-inverse); }
.section--inverse .btn-secondary:hover { border-color: var(--ink-inverse); }
.section--inverse .btn-secondary svg { color: currentColor; }

.text-link {
  display: inline-flex; align-items: center; gap: var(--sp-2); justify-self: start;
  min-height: var(--touch); padding: 0;
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  background: none; border: 0; cursor: pointer;
}
.text-link:hover { opacity: 0.75; }

/* ---------- Notice bar ---------- */
.notice-bar { background: var(--grad-deep); color: var(--ink-inverse); font-size: var(--fs-sm); font-weight: 500; }
.notice-bar .container { display: flex; justify-content: center; align-items: center; gap: var(--sp-2); min-height: 40px; padding-block: var(--sp-2); text-align: center; flex-wrap: wrap; }
.notice-bar a { color: var(--ink-inverse); font-weight: 700; text-underline-offset: 3px; padding-block: 11px; margin-block: -11px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--font); letter-spacing: -0.03em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand b { font-weight: 800; }
.nav { display: none; gap: var(--sp-5); }
.nav a { text-decoration: none; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); padding-block: var(--sp-2); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
@media (min-width: 1100px) { .nav { display: flex; } }
@media (max-width: 420px) {
  .header-inner { gap: var(--sp-3); }
  .brand { font-size: 18px; gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 80px) var(--sp-8); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--g3) 22%, transparent), transparent) 70% 30% / 60% 60% no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--g4) 18%, transparent), transparent) 100% 60% / 55% 55% no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--g1) 22%, transparent), transparent) 40% 80% / 50% 50% no-repeat;
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: var(--sp-8); } }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
.hero-title { font-size: var(--fs-hero); letter-spacing: -0.045em; line-height: 0.98; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 52ch; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
.fine { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); max-width: 52ch; }
.fine svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--success); }

/* Profile-style stats */
.proof {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--sp-8);
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (min-width: 760px) { .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.proof li { display: grid; gap: 2px; text-align: center; padding: var(--sp-5) var(--sp-3); border-color: var(--line); border-style: solid; border-width: 0; }
.proof li:nth-child(odd) { border-right-width: 1px; }
.proof li:nth-child(-n+2) { border-bottom-width: 1px; }
@media (min-width: 760px) {
  .proof li { border-width: 0 1px 0 0; }
  .proof li:last-child { border-right-width: 0; }
}
.proof strong { font: 800 clamp(24px, 2.6vw, 32px)/1.1 var(--font); letter-spacing: -0.03em; overflow-wrap: anywhere; }
@media (max-width: 400px) { .proof strong { font-size: clamp(19px, 6.2vw, 24px); } } /* long words such as "Безкоштовно" stay inside the cell */
.proof span { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- Phone mockup (hero illustration) ---------- */
.phone-wrap { position: relative; justify-self: center; padding: var(--sp-5) var(--sp-4) 0; display: grid; justify-items: center; gap: var(--sp-4); }
.phone {
  position: relative; width: 300px; max-width: 74vw; aspect-ratio: 300 / 612;
  border-radius: 48px; background: var(--bg-inverse); padding: 10px;
  box-shadow: var(--shadow-lg);
}
.phone__notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: var(--radius-pill); background: var(--bg-inverse); z-index: 3; }
.phone__screen { position: relative; height: 100%; border-radius: 38px; background: var(--bg); overflow: hidden; }
.ph-content { display: flex; flex-direction: column; gap: 12px; padding: 50px 14px 0; height: 100%; transition: filter 600ms var(--ease), opacity 600ms var(--ease); }
.ph-top { display: flex; align-items: center; justify-content: space-between; font: 800 15px/1 var(--font); letter-spacing: -0.02em; }
.ph-top svg { width: 20px; height: 20px; }
.ph-profile { display: flex; align-items: center; gap: 14px; }
.ring { display: inline-grid; padding: 3px; border-radius: 50%; background: var(--grad); flex: none; }
.ring > * { border: 3px solid var(--bg); border-radius: 50%; }
.ph-avatar { width: 66px; height: 66px; display: grid; place-items: center; background: var(--bg-subtle); font: 800 24px/1 var(--font); }
.ph-stats { display: flex; flex: 1; justify-content: space-between; text-align: center; }
.ph-stats b { display: block; font: 800 15px/1.2 var(--font); }
.ph-stats span { font-size: 11px; color: var(--ink-2); }
.ph-bio { display: grid; gap: 6px; }
.ph-bio b { font: 700 13px/1.2 var(--font); }
.sk { display: block; height: 8px; border-radius: 4px; background: var(--bg-skeleton); }
.ph-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-actions span { height: 28px; border-radius: var(--radius-sm); background: var(--bg-skeleton); }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 4px -14px 0; }
.ph-grid span { aspect-ratio: 1; }
.ph-grid span:nth-child(1) { background: linear-gradient(135deg, color-mix(in srgb, var(--g1) 60%, white), color-mix(in srgb, var(--g2) 55%, white)); }
.ph-grid span:nth-child(2) { background: linear-gradient(135deg, color-mix(in srgb, var(--g4) 35%, white), color-mix(in srgb, var(--g3) 45%, white)); }
.ph-grid span:nth-child(3) { background: linear-gradient(135deg, color-mix(in srgb, var(--g2) 40%, white), color-mix(in srgb, var(--g1) 35%, white)); }
.ph-grid span:nth-child(4) { background: linear-gradient(135deg, color-mix(in srgb, var(--g3) 50%, white), color-mix(in srgb, var(--g4) 40%, white)); }
.ph-grid span:nth-child(5) { background: linear-gradient(135deg, color-mix(in srgb, var(--g1) 45%, white), color-mix(in srgb, var(--g3) 40%, white)); }
.ph-grid span:nth-child(6) { background: linear-gradient(135deg, color-mix(in srgb, var(--g4) 45%, white), color-mix(in srgb, var(--g2) 30%, white)); }
.ph-grid span:nth-child(7) { background: linear-gradient(135deg, color-mix(in srgb, var(--g2) 55%, white), color-mix(in srgb, var(--g3) 50%, white)); }
.ph-grid span:nth-child(8) { background: linear-gradient(135deg, color-mix(in srgb, var(--g1) 55%, white), color-mix(in srgb, var(--g4) 30%, white)); }
.ph-grid span:nth-child(9) { background: linear-gradient(135deg, color-mix(in srgb, var(--g3) 35%, white), color-mix(in srgb, var(--g1) 45%, white)); }

.ph-sheet {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 20px 16px 18px; border-radius: 26px;
  background: var(--bg-card); box-shadow: var(--shadow-lg);
  transform: translateY(130%); opacity: 0;
  transition: transform 520ms var(--ease), opacity 520ms var(--ease);
}
.ph-sheet::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin-bottom: 8px; }
.ph-sheet__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; }
.ph-sheet__icon svg { width: 22px; height: 22px; }
.ph-sheet--suspended .ph-sheet__icon { background: var(--danger-bg); color: var(--danger); }
.ph-sheet--review .ph-sheet__icon { background: var(--bg-subtle); color: var(--ink); }
.ph-sheet b { font: 800 16px/1.25 var(--font); letter-spacing: -0.02em; }
.ph-sheet small { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.ph-sheet .ph-btn { margin-top: 8px; width: 100%; height: 36px; border-radius: var(--radius-sm); background: var(--bg-skeleton); }
.ph-progress { display: flex; gap: 4px; width: 100%; margin-top: 8px; }
.ph-progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--bg-skeleton); }
.ph-progress span.on { background: var(--grad-deep); }

.ph-toast {
  position: absolute; top: 46px; left: 10px; right: 10px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 18px;
  background: var(--bg-card); box-shadow: var(--shadow-lg);
  transform: translateY(-160%); opacity: 0;
  transition: transform 520ms var(--ease), opacity 520ms var(--ease);
}
.ph-toast__icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: var(--ink-inverse); flex: none; }
.ph-toast__icon svg { width: 16px; height: 16px; }
.ph-toast b { display: block; font: 800 13px/1.2 var(--font); }
.ph-toast small { display: block; font-size: 11px; color: var(--ink-2); }

.phone[data-state="suspended"] .ph-content,
.phone[data-state="review"] .ph-content { filter: grayscale(1) blur(1.5px); opacity: 0.5; }
.phone[data-state="suspended"] .ph-sheet--suspended,
.phone[data-state="review"] .ph-sheet--review { transform: none; opacity: 1; }
.phone[data-state="restored"] .ph-toast { transform: none; opacity: 1; }
.phone[data-state="restored"] .ring { animation: ring-pop 900ms var(--ease); }
@keyframes ring-pop { 0% { transform: scale(0.92); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

.sticker {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--radius-pill);
  background: var(--bg-card); box-shadow: var(--shadow-lg);
  font: 700 13px/1 var(--font); white-space: nowrap;
}
.sticker svg { width: 15px; height: 15px; }
.sticker--a { left: -6px; top: 56%; transform: rotate(-5deg); }
.sticker--a svg { color: var(--success); }
.sticker--b { right: -10px; top: 22%; transform: rotate(4deg); background: var(--ink); color: var(--ink-inverse); }
@media (min-width: 560px) { .sticker--a { left: -36px; top: 40%; } .sticker--b { right: -40px; top: 66%; } }
.phone-caption { font-size: var(--fs-xs); color: var(--ink-2); text-align: center; max-width: 30ch; }

/* ---------- Situations: story highlights ---------- */
.highlights {
  display: flex; gap: clamp(14px, 2.4vw, 32px); justify-content: flex-start;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 10px;
}
.highlights::-webkit-scrollbar { display: none; }
@media (min-width: 820px) { .highlights { justify-content: center; } }
.hl {
  flex: none; width: 96px; display: grid; justify-items: center; align-content: start; gap: 10px;
  background: none; border: 0; padding: 0; cursor: pointer; scroll-snap-align: start;
}
.hl__ring { display: grid; padding: 3px; border-radius: 50%; background: var(--line-strong); transition: transform var(--dur) var(--ease); }
.hl__inner {
  width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-card); border: 3px solid var(--bg-subtle); color: var(--ink);
}
.hl__inner svg { width: 28px; height: 28px; }
.hl__label { font: 600 13px/1.3 var(--font); text-align: center; color: var(--ink-2); }
.hl:hover .hl__ring { transform: scale(1.04); }
.hl[aria-pressed="true"] .hl__ring { background: var(--grad); }
.hl[aria-pressed="true"] .hl__label { color: var(--ink); font-weight: 800; }
.hl:focus-visible { outline: none; }
.hl:focus-visible .hl__ring { outline: 2px solid var(--ink); outline-offset: 3px; }

.route {
  margin-top: var(--sp-6);
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow); overflow: hidden;
}
.route[hidden] { display: none; }
.route__head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.route__head .ring > span { width: 42px; height: 42px; display: grid; place-items: center; background: var(--bg-card); border-width: 2px; }
.route__head .ring { padding: 2px; }
.route__head svg { width: 20px; height: 20px; }
.route__head b { display: block; font: 800 var(--fs-base)/1.3 var(--font); }
.route__head small { display: block; font-size: 13px; color: var(--ink-2); }
.route__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); padding: clamp(20px, 4vw, 44px); }
@media (min-width: 900px) { .route__body { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: var(--sp-8); } }
.route__intro { display: grid; gap: var(--sp-4); align-content: start; }
.route__intro h3 { font-size: var(--fs-xl); }
.route__intro p { color: var(--ink-2); }
.route__rows { display: grid; }
.route__row { display: grid; gap: var(--sp-2); padding-block: var(--sp-4); border-top: 1px solid var(--line); }
.route__row:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) { .route__row { grid-template-columns: 150px 1fr; gap: var(--sp-5); } }
.route__row dt { font: 700 var(--fs-xs)/1.6 var(--font); letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--ink-2); }
.route__row dd { margin: 0; }

/* ---------- Steps (story progress) ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); display: grid; gap: var(--sp-3); align-content: start; box-shadow: var(--shadow); }
.step__bar { display: flex; gap: 4px; margin-bottom: var(--sp-2); }
.step__bar span { flex: 1; height: 4px; border-radius: 2px; background: var(--bg-skeleton); }
.step__bar span.on { background: var(--grad-deep); }
.step__num { font: 700 var(--fs-xs)/1 var(--font); letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--ink-2); }
.step h3 { font-size: 22px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step__tag { justify-self: start; margin-top: var(--sp-2); font: 700 var(--fs-xs)/1 var(--font); padding: 7px 11px; border-radius: var(--radius-pill); background: var(--bg-subtle); color: var(--ink-2); }

/* ---------- Safety (dark) ---------- */
.safety-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
@media (min-width: 980px) { .safety-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); } }
.scam { background: var(--bg-card); color: var(--ink); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); margin: 0; }
.scam__label { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5); background: var(--danger-bg); color: var(--danger); font: 700 var(--fs-xs)/1.3 var(--font); letter-spacing: 0.06em; text-transform: uppercase; }
.scam__label svg { width: 16px; height: 16px; flex: none; }
.scam__chat { padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.scam__from { display: flex; align-items: center; gap: var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.scam__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-subtle); font: 800 15px/1 var(--font); flex: none; }
.scam__from b { font-weight: 700; font-size: 15px; }
.scam__from small { display: block; font-size: var(--fs-xs); color: var(--ink-2); }
.bubble { justify-self: start; max-width: 92%; background: var(--bg-subtle); border-radius: 22px 22px 22px 6px; padding: 14px 16px; font-size: 15px; line-height: 1.7; }
.flag-num {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--danger); color: var(--ink-inverse);
  font: 800 11px/1 var(--font); vertical-align: 2px; margin-left: 3px;
}
.flags { display: grid; border-top: 1px solid var(--line); }
.flags li { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.flags li:last-child { border-bottom: 0; }
.flags .flag-num { margin: 2px 0 0; vertical-align: 0; }
.flags b { display: block; font-weight: 700; }
.flags div > span { display: block; font-size: var(--fs-sm); color: var(--ink-2); }

.rules { display: grid; }
.rule { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); padding-block: var(--sp-5); border-top: 1px solid var(--line-inverse); }
.rule:first-child { border-top: 0; padding-top: 0; }
.rule__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-deep); color: var(--ink-inverse); }
.rule__icon svg { width: 20px; height: 20px; }
.rule h3 { font-size: 21px; margin-bottom: var(--sp-1); }
.rule p { color: var(--ink-inverse-2); font-size: 15px; }
.rules-note { margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5); background: var(--bg-inverse-2); border: 1px solid var(--line-inverse); border-radius: var(--radius-lg); color: var(--ink-inverse-2); font-size: var(--fs-sm); }
.rules-note strong { color: var(--ink-inverse); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); }
@media (min-width: 980px) { .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: var(--sp-8); } .faq-grid .section-head { position: sticky; top: 110px; align-self: start; } }
.faq { display: grid; gap: var(--sp-2); }
.faq details { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding-inline: var(--sp-5); transition: box-shadow var(--dur) var(--ease); }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  min-height: 64px; padding-block: var(--sp-4); cursor: pointer; list-style: none;
  font: 700 var(--fs-base)/1.35 var(--font);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 11px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 11px no-repeat,
    var(--bg-subtle);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: var(--sp-5); color: var(--ink-2); max-width: 62ch; display: grid; gap: var(--sp-3); }
.faq .answer strong { color: var(--ink); font-weight: 700; }

/* ---------- Case form ---------- */
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
@media (min-width: 1000px) { .case-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr); gap: var(--sp-7); } }
.case-form { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 40px); display: grid; gap: var(--sp-6); }
.field-group { border: 0; margin: 0; padding: 0; display: grid; gap: var(--sp-3); min-width: 0; }
.field-group legend, .field-label { display: flex; align-items: baseline; gap: var(--sp-3); padding: 0; margin-bottom: var(--sp-3); font: 700 var(--fs-base)/1.3 var(--font); }
.field-label { margin-bottom: 0; }
.field-group legend .n, .field-label .n { font: 700 var(--fs-xs)/1 var(--font); letter-spacing: var(--tr-wide); color: var(--ink-2); }
.req { color: var(--danger); }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: var(--touch); padding: 10px var(--sp-4);
  background: var(--bg-subtle); border: 1px solid transparent; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; line-height: 1.25;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip span svg { width: 16px; height: 16px; }
.chip input:hover + span { border-color: var(--line-strong); }
.chip input:checked + span { background: var(--ink); color: var(--ink-inverse); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

.field { display: grid; gap: var(--sp-2); }
.field-row { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px var(--sp-4);
  background: var(--bg-subtle); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 16px; line-height: 1.4;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); background: var(--bg-card); box-shadow: 0 0 0 4px var(--bg-skeleton); }
.textarea { min-height: 128px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: var(--sp-4); top: 50%; transform: translateY(-50%); color: var(--ink-2); font-weight: 600; pointer-events: none; }
.input-prefix .input { padding-left: 34px; }
.hint { font-size: var(--fs-sm); color: var(--ink-2); display: flex; gap: var(--sp-2); align-items: flex-start; }
.hint svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--success); }
.field.is-invalid .input, .field.is-invalid .textarea { border-color: var(--danger); }
.field-error { font-size: var(--fs-sm); color: var(--danger); }

.submit-area { display: grid; gap: var(--sp-3); padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.form-status { font-size: var(--fs-sm); color: var(--success); min-height: 1.4em; }
.form-status.is-error { color: var(--danger); }

.case-aside { display: grid; gap: var(--sp-4); }
@media (min-width: 1000px) { .case-aside { position: sticky; top: 100px; } }
.aside-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); display: grid; gap: var(--sp-3); }
.aside-card h3 { font: 700 var(--fs-xs)/1 var(--font); letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--ink-2); }
.preview-dm { display: grid; gap: var(--sp-2); }
.preview-dm__to { display: flex; align-items: center; gap: var(--sp-2); font-size: 13px; color: var(--ink-2); }
.preview-dm__to b { color: var(--ink); }
.preview {
  margin: 0; justify-self: end; max-width: 100%; white-space: pre-wrap; word-break: break-word;
  font: 500 14px/1.55 var(--font);
  background: var(--grad-deep); color: var(--ink-inverse);
  border-radius: 22px 22px 6px 22px; padding: 14px 16px;
  max-height: 320px; overflow: auto;
}
.checklist { display: grid; gap: var(--sp-3); }
.checklist li { display: flex; gap: var(--sp-3); font-size: 15px; }
.checklist svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--success); }
.channels { display: grid; }
.channels a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px var(--sp-3); padding-block: 6px; min-height: var(--touch); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 15px; }
.channels a:last-child { border-bottom: 0; }
.channels a span { color: var(--ink-2); font-size: var(--fs-sm); overflow-wrap: anywhere; min-width: 0; }
.channels a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; isolation: isolate; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--g3) 45%, transparent), transparent) 85% 20% / 50% 90% no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--g4) 40%, transparent), transparent) 100% 100% / 45% 80% no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--g1) 30%, transparent), transparent) 60% 110% / 40% 70% no-repeat;
  filter: blur(20px);
}
.final-inner { display: grid; gap: var(--sp-6); align-items: end; }
@media (min-width: 900px) { .final-inner { grid-template-columns: minmax(0, 1.4fr) auto; } }
.final h2 { font-size: var(--fs-2xl); max-width: 16ch; }
.final p { color: var(--ink-inverse-2); margin-top: var(--sp-4); max-width: 48ch; font-size: var(--fs-md); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-inverse); color: var(--ink-inverse-2); border-top: 1px solid var(--line-inverse); padding-block: var(--sp-8) var(--sp-6); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .brand { color: var(--ink-inverse); }
.footer-about { display: grid; gap: var(--sp-4); max-width: 38ch; align-content: start; }
.footer-about a:not(.brand) { color: var(--ink-inverse); }
.footer-col h2, .footer-col h3 { font: 700 var(--fs-xs)/1 var(--font); letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--ink-inverse); margin-bottom: var(--sp-3); }
.footer-col ul { display: grid; }
.footer-col a, .footer-col button { display: inline-flex; align-items: center; min-height: var(--touch); text-decoration: none; color: var(--ink-inverse-2); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: var(--ink-inverse); }
.footer-legal { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line-inverse); display: grid; gap: var(--sp-3); font-size: 13px; }
.footer-legal p:first-child { max-width: 80ch; }
.footer-legal a { color: inherit; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: var(--sp-2); padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 320ms var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { min-height: 48px; }
.sticky-cta .btn-primary, .sticky-cta .btn-wa { flex: 1; min-width: 0; white-space: normal; text-align: center; line-height: 1.2; }
@media (max-width: 420px) { .sticky-cta__label { display: none; } .sticky-cta .btn-secondary { padding: 0 15px; } }
@media (min-width: 900px) { .sticky-cta { display: none; } }
@media (max-width: 899px) { .site-footer:has(~ .sticky-cta) { padding-bottom: calc(var(--sp-6) + 80px + env(safe-area-inset-bottom)); } }

/* ---------- Legal pages ---------- */
.legal { padding-block: var(--sp-8) var(--sp-9); }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); margin-block: var(--sp-4) var(--sp-3); }
.legal .updated { color: var(--ink-2); font-size: var(--fs-sm); margin-bottom: var(--sp-7); }
.legal h2 { font-size: 26px; margin: var(--sp-7) 0 var(--sp-3); }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: var(--sp-3); }
.legal ul { list-style: disc; padding-left: 1.2em; display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.legal a { text-underline-offset: 3px; }
.legal .callout { margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5); background: var(--bg-subtle); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); }

/* ---------- Header actions + language switcher ---------- */
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.lang { position: relative; }
.lang > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--touch); min-width: var(--touch); justify-content: center; padding: 0 12px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--bg-card);
  font: 700 13px/1 var(--font); letter-spacing: 0.04em; cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover { border-color: var(--line-strong); }
.lang > summary svg { width: 17px; height: 17px; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  width: min(580px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 2px;
  padding: var(--sp-3); background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.lang__menu a { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 42px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; }
.lang__menu a:hover { background: var(--bg-subtle); }
.lang__menu a small { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.lang__menu a[aria-current="page"] { background: var(--ink); color: var(--ink-inverse); }
.lang__menu a[aria-current="page"] small { color: var(--ink-inverse-2); }
@media (max-width: 640px) {
  .lang__menu { position: fixed; left: var(--gutter); right: var(--gutter); top: 74px; width: auto; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
}

/* ---------- About / key facts ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
@media (min-width: 980px) { .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.founder, .facts { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: clamp(22px, 3.5vw, 36px); }
.founder { display: grid; gap: var(--sp-4); align-content: start; }
.founder__top { display: flex; align-items: center; gap: var(--sp-4); }
.founder__avatar { width: 72px; height: 72px; display: grid; place-items: center; background: var(--bg-subtle); font: 800 24px/1 var(--font); }
.founder__top b { display: block; font: 800 var(--fs-md)/1.25 var(--font); }
.founder__top small { display: block; color: var(--ink-2); font-size: var(--fs-sm); }
.founder p { color: var(--ink-2); }
.founder__links { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.founder__links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--bg-subtle); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }
.founder__links a:hover { background: var(--bg-skeleton); }
.facts h3 { font: 700 var(--fs-xs)/1 var(--font); letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--sp-4); }
.facts dl { margin: 0; display: grid; }
.facts dl > div { display: grid; gap: 2px; padding-block: 12px; border-top: 1px solid var(--line); }
.facts dl > div:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 560px) { .facts dl > div { grid-template-columns: 170px 1fr; gap: var(--sp-4); } }
.facts dt { font-size: var(--fs-sm); color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 700; }

/* ---------- Guides teaser ---------- */
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
@media (min-width: 760px) { .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-card {
  position: relative; display: grid; gap: var(--sp-3); align-content: start;
  padding: var(--sp-5); padding-top: calc(var(--sp-5) + 6px);
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow);
  text-decoration: none; overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.guide-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.guide-card__tag { justify-self: start; font: 700 var(--fs-xs)/1 var(--font); padding: 7px 11px; border-radius: var(--radius-pill); background: var(--bg-subtle); color: var(--ink-2); }
.guide-card h3, .guide-card h2 { font-size: 21px; line-height: 1.2; }
.guide-card p { color: var(--ink-2); font-size: 15px; }
.guide-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: var(--fs-sm); margin-top: var(--sp-2); }
.guide-card__more svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.guide-card:hover .guide-card__more svg { transform: translateX(3px); }

/* ---------- Footer language list ---------- */
.footer-langs { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line-inverse); display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); font-size: 13px; }
.footer-langs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-inverse-2); text-decoration: none; }
.footer-langs a:hover, .footer-langs a[aria-current="page"] { color: var(--ink-inverse); }
.footer-legal--plain { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Article (guides) ---------- */
.article { padding-block: var(--sp-7) var(--sp-9); }
.article .container { max-width: 780px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-2); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.article h1 { font-size: clamp(34px, 5.4vw, 56px); margin: var(--sp-4) 0 var(--sp-3); }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: var(--fs-sm); }
.article__body { margin-top: var(--sp-6); display: grid; gap: var(--sp-4); font-size: 17px; line-height: 1.7; }
.article__body > p, .article__body li { color: var(--ink-2); }
.article__body strong { color: var(--ink); }
.article__body h2 { font-size: clamp(24px, 3vw, 30px); margin-top: var(--sp-6); }
.article__body h3 { font-size: 20px; margin-top: var(--sp-3); }
.article__body ol, .article__body ul { padding-left: 1.3em; display: grid; gap: var(--sp-2); }
.article__body ol { list-style: decimal; }
.article__body ul { list-style: disc; }
.article__body a { text-underline-offset: 3px; }
.tldr { padding: var(--sp-5); border-radius: var(--radius-lg); background: var(--bg-subtle); border: 1px solid var(--line); display: grid; gap: var(--sp-2); }
.tldr b { font: 800 var(--fs-xs)/1 var(--font); letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--ink-2); }
.tldr p { color: var(--ink); }
.toc { padding: var(--sp-5); border-radius: var(--radius-lg); border: 1px solid var(--line); display: grid; gap: var(--sp-2); }
.toc b { font: 800 var(--fs-xs)/1 var(--font); letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--ink-2); }
.toc ol { padding-left: 1.2em; list-style: decimal; display: grid; gap: 4px; font-size: 15px; }
.toc ol a { display: inline-block; padding-block: 3px; } /* ≥24px tall tap targets (WCAG 2.2, 2.5.8) */
.warn { padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-lg); background: var(--danger-bg); color: var(--ink); border: 1px solid var(--line); }
.warn strong { color: var(--danger); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.article__body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.article__body th, .article__body td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article__body th { font-weight: 800; background: var(--bg-subtle); color: var(--ink); }
.article__body tr:last-child td { border-bottom: 0; }
.article__body td { color: var(--ink-2); }
/* Phones: comparison tables as stacked cards, each value labelled with its column (data-label, set by build.ps1) */
@media (max-width: 559px) {
  .table-wrap--stack { overflow: visible; border: 0; border-radius: 0; }
  .article__body .table--stack { display: block; min-width: 0; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .table--stack tbody { display: grid; gap: var(--sp-3); }
  .table--stack tr, .table--stack td, .table--stack tbody th { display: block; }
  .table--stack tr { padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-card); }
  .article__body .table--stack td, .article__body .table--stack tbody th { padding: 6px 0; border: 0; background: none; }
  .article__body .table--stack td:first-child, .article__body .table--stack tbody th { color: var(--ink); font-weight: 800; font-size: var(--fs-base); }
  .table--stack td:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 800 var(--fs-xs)/1.4 var(--font); letter-spacing: var(--tr-wide); text-transform: uppercase; color: var(--ink-2); }
}
.cta-box { position: relative; overflow: hidden; isolation: isolate; margin-top: var(--sp-7); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-xl); background: var(--bg-inverse); color: var(--ink-inverse); display: grid; gap: var(--sp-4); }
.cta-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--g3) 45%, transparent), transparent) 100% 0 / 60% 120% no-repeat, radial-gradient(closest-side, color-mix(in srgb, var(--g4) 35%, transparent), transparent) 80% 100% / 50% 90% no-repeat; }
.cta-box h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.cta-box p { color: var(--ink-inverse-2); }
.related { margin-top: var(--sp-7); display: grid; gap: var(--sp-3); }
.related h2 { font-size: 22px; }

/* ---------- Guide FAQ, sources, glossary ---------- */
.guide-faq { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
.guide-faq h3 { font-size: 19px; line-height: 1.3; margin-top: var(--sp-4); }
.guide-faq p { color: var(--ink-2); }
.sources { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-subtle); }
.article__body .sources h2 { font-size: 20px; margin-top: 0; }
.sources ol { list-style: decimal; padding-left: 1.3em; display: grid; gap: var(--sp-2); font-size: 15px; line-height: 1.5; }
.sources li { color: var(--ink-2); }
.sources a { color: var(--ink); overflow-wrap: anywhere; }
.sources li span { margin-left: 4px; font-size: 13px; color: var(--ink-2); }
.key-terms { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.article__body .key-terms h2 { font-size: 20px; margin-top: 0; }
.key-terms ul { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: 0; }
.key-terms li { margin: 0; }
.key-terms a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); font: 600 var(--fs-sm)/1.3 var(--font); color: var(--ink); text-decoration: none; background: var(--bg); }
.key-terms a:hover { border-color: var(--line-strong); background: var(--bg-subtle); }
.key-terms a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.glossary { margin: var(--sp-4) 0 0; display: grid; }
.glossary .term { display: grid; gap: 6px; padding: var(--sp-4) var(--sp-3); margin-inline: calc(var(--sp-3) * -1); border-top: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 96px; }
.glossary dt { font: 800 18px/1.3 var(--font); color: var(--ink); }
.glossary dd { margin: 0; color: var(--ink-2); }
.glossary .term:target { background: var(--bg-subtle); }
.glossary .term__guides { font-size: var(--fs-sm); font-weight: 600; }
.glossary .term__guides a { color: var(--ink); text-underline-offset: 3px; }
.related ul + h2 { margin-top: var(--sp-4); }

/* ---------- Blog ---------- */
.blog-intro { color: var(--ink-2); max-width: 62ch; margin-top: var(--sp-3); }
.blog-intro a { color: var(--ink); text-underline-offset: 3px; }
.guide-card__more time { font-weight: 600; color: var(--ink-2); }
.rules-guide { margin-top: var(--sp-4); }
.guides-all { margin-top: var(--sp-5); }

/* ---------- Small utilities (keep markup free of inline styles for CSP) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.guides-note:empty { display: none; }
.guides-note { font-size: var(--fs-sm); }
.sk--82 { width: 82%; }
.sk--56 { width: 56%; }
.notfound .container { display: grid; gap: var(--sp-5); }
.guides-index { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }

/* ---------- Card topic icons ---------- */
.guide-card__head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); }
.guide-card__icon {
  flex: none; display: grid; place-items: center; width: var(--touch); height: var(--touch);
  border-radius: var(--radius); color: var(--g3);
  background: color-mix(in srgb, var(--g3) 8%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--g3) 16%, transparent);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.guide-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.guide-card:hover .guide-card__icon { background: var(--grad-deep); color: var(--ink-inverse); border-color: transparent; }
/* head, title, summary, link: the summary row takes the slack so "read" links line up across a row of cards */
.guide-grid > .guide-card, .guides-index > .guide-card { grid-template-rows: auto auto 1fr auto; }

/* ---------- Index pages (guides, blog): wider card grid ---------- */
.article--index .container { max-width: 1120px; }
.article--index .related { max-width: 780px; }
@media (min-width: 720px) { .guides-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .guides-index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Blog: the newest article spans two of the three columns on wide screens */
@media (min-width: 1080px) {
  .guides-index--feature > .guide-card:first-child { grid-column: span 2; padding: var(--sp-6); padding-top: calc(var(--sp-6) + 6px); }
  .guides-index--feature > .guide-card:first-child h2 { font-size: clamp(24px, 2.2vw, 28px); max-width: 32ch; }
  .guides-index--feature > .guide-card:first-child p { font-size: var(--fs-base); max-width: 62ch; }
}
.guides-index--lead > .guide-card:first-child,
.guides-index--feature > .guide-card:first-child {
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--g3) 9%, transparent), transparent) 100% 0 / 55% 160% no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--g4) 7%, transparent), transparent) 85% 100% / 40% 120% no-repeat,
    var(--bg-card);
}
.guides-index--lead > .guide-card:first-child { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .guides-index--lead > .guide-card:first-child { padding: var(--sp-6); padding-top: calc(var(--sp-6) + 6px); }
  .guides-index--lead > .guide-card:first-child h2 { font-size: clamp(24px, 2.6vw, 30px); max-width: 30ch; }
  .guides-index--lead > .guide-card:first-child p { font-size: var(--fs-base); max-width: 70ch; }
}

/* ---------- Long reads: sticky side contents + reading progress ---------- */
.article__aside { display: none; }
@media (min-width: 1180px) {
  .article .container.has-aside {
    max-width: calc(780px + 264px + var(--sp-8));
    display: grid; grid-template-columns: minmax(0, 1fr) 264px; column-gap: var(--sp-8);
  }
  .has-aside .article__aside { display: block; }
  .has-aside .article__body > .toc { display: none; }
}
.article__aside-inner { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; margin-top: var(--sp-8); display: grid; gap: var(--sp-6); align-content: start; }
.toc--side { padding: 0; border: 0; border-radius: 0; gap: var(--sp-3); }
.toc--side ol { list-style: none; padding: 0; gap: 0; font-size: var(--fs-sm); border-left: 2px solid var(--line); }
.toc--side a {
  display: block; margin-left: -2px; padding: 7px 0 7px var(--sp-4); border-left: 2px solid transparent;
  color: var(--ink-2); text-decoration: none; line-height: 1.4;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.toc--side a:hover { color: var(--ink); }
.toc--side a[aria-current="true"] { color: var(--ink); font-weight: 700; border-left-color: var(--g3); }
.toc--side ol a { display: block; padding-block: 7px; }

/* Side call to action under the contents list (wide screens only, inside the aside) */
.aside-cta {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: var(--sp-3);
  padding: var(--sp-5); border-radius: var(--radius-lg); background: var(--bg-inverse); color: var(--ink-inverse);
}
.aside-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--g3) 45%, transparent), transparent) 110% -10% / 90% 70% no-repeat,
              radial-gradient(closest-side, color-mix(in srgb, var(--g4) 35%, transparent), transparent) 0% 120% / 80% 60% no-repeat;
}
.aside-cta b { font: 800 18px/1.25 var(--font); letter-spacing: var(--tr-tight); }
.aside-cta p { font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-inverse-2); }
.aside-cta .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
.aside-cta__link { display: inline-flex; align-items: center; justify-content: center; min-height: var(--touch); font: 700 var(--fs-sm)/1.3 var(--font); color: var(--ink-inverse); text-align: center; text-underline-offset: 3px; }

/* Share button in the article meta line (shown by app.js: Web Share, or copy link) */
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; margin-left: auto;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--bg-card); color: var(--ink);
  font: 700 var(--fs-sm)/1 var(--font); cursor: pointer; transition: background var(--dur) var(--ease);
}
.share-btn[hidden] { display: none; }
.share-btn:hover { background: var(--bg-subtle); }
.share-btn svg { width: 16px; height: 16px; }
.article__meta { align-items: center; }
.read-progress { display: none; position: fixed; inset: 0 0 auto 0; z-index: 60; height: 3px; pointer-events: none; }
.js .read-progress { display: block; }
.read-progress span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- WhatsApp: free analysis (one channel, +90 530 379 90 58) ---------- */
.btn-wa { background: var(--wa); color: var(--ink-inverse); border-color: transparent; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--wa) 80%, transparent); }
.btn-wa:hover { background: var(--wa-hover); transform: translateY(-1px); }
.btn-wa svg { color: currentColor; }
.wa-fab {
  position: fixed; right: max(var(--sp-4), env(safe-area-inset-right)); bottom: max(var(--sp-4), env(safe-area-inset-bottom)); z-index: 55;
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 52px; padding: 0 var(--sp-5) 0 var(--sp-4);
  border-radius: var(--radius-pill); background: var(--wa); color: var(--ink-inverse); text-decoration: none;
  font: 800 var(--fs-sm)/1 var(--font); box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.wa-fab:hover { background: var(--wa-hover); transform: translateY(-2px); }
.wa-fab svg { width: 22px; height: 22px; flex: none; }
.wa-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* Phones: pages with the bottom bar already have the WhatsApp button there */
@media (max-width: 899px) {
  body:has(.sticky-cta) .wa-fab { display: none; }
  .site-footer:has(~ .wa-fab) { padding-bottom: calc(var(--sp-6) + 72px + env(safe-area-inset-bottom)); }
}
@media print { .wa-fab, .sticky-cta, .read-progress { display: none; } }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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