/* ==========================================================================
   HiiClub Official Agency — styles.css
   Pure CSS, no frameworks. Mobile-first.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand: derived from the pink/red of the HiiClub policy document */
  --brand: #d81e45;          /* AA contrast with white text */
  --brand-strong: #b3163a;   /* hover / pressed */
  --brand-bright: #ef3b58;   /* decorative accents only */
  --blush: #fde6ea;
  --blush-2: #fff1f3;
  --bg: #fff9fa;
  --card: #ffffff;
  --ink: #1f1a1c;
  --ink-2: #3a3236;
  --muted: #5f585b;
  --line: #f1dade;
  --line-strong: #e6c3ca;

  /* WhatsApp greens (dark shade keeps AA contrast with white text) */
  --wa: #0e7a43;
  --wa-strong: #0b6537;
  --wa-bright: #1da851;

  --grad: linear-gradient(135deg, #e3304f 0%, #c0173f 100%);
  --grad-soft: linear-gradient(180deg, #fff1f3 0%, #fff9fa 100%);

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(80, 20, 35, 0.06), 0 4px 14px rgba(80, 20, 35, 0.05);
  --shadow: 0 18px 40px -18px rgba(150, 20, 50, 0.28);
  --shadow-lg: 0 30px 60px -24px rgba(150, 20, 50, 0.35);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 1180px;
  --header-h: 68px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.2vw + 1rem, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 2.2vw + 1rem, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1.02rem; font-weight: 700; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 700; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: min(100% - 32px, var(--maxw));
  margin-inline: auto;
}
.container-narrow { width: min(100% - 32px, 820px); margin-inline: auto; }

/* ---------- Icons ---------- */
.icon {
  width: 24px; height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.04rem; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }

.btn-primary { background: var(--brand); background-image: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-lg); }

.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -16px rgba(31, 26, 28, 0.6); }
.btn-dark:hover { background: #000; color: #fff; }

.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-strong); }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 14px 30px -16px rgba(14, 122, 67, 0.65); }
.btn-wa:hover { background: var(--wa-strong); color: #fff; }

.btn-light { background: #fff; color: var(--brand-strong); }
.btn-light:hover { color: var(--brand-strong); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.35); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 559px) {
  .btn-row .btn { width: 100%; }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}
.text-link .icon { width: 18px; height: 18px; transition: transform 0.18s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 250, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(80, 20, 35, 0.4); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { font-size: 1.05rem; }
.brand-text strong { color: var(--brand); font-weight: 800; }

.nav-toggle {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  margin-left: -10px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  content: "";
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before { top: -6px; left: 0; margin-left: 0; }
.nav-toggle-bars::after { top: 6px; left: 0; margin-left: 0; }
.site-header[data-open="true"] .nav-toggle-bars { background: transparent; }
.site-header[data-open="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-list li + li { margin-top: 0; }
.nav-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
}
.nav-list a:hover { color: var(--brand-strong); background: var(--blush-2); }
.nav-list a[aria-current="page"] { color: var(--brand); }

@media (max-width: 1023px) {
  .js .nav-toggle { display: block; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(80, 20, 35, 0.35);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .js .site-header[data-open="true"] .site-nav { display: flex; }
  .js .nav-list { flex-direction: column; }
  .js .nav-list a { padding: 14px 12px; font-size: 1.05rem; }
  .js .nav-cta { width: 100%; min-height: 52px; }
  /* No-JS fallback: nav simply wraps under the brand */
  .site-header:not([data-open]) .header-inner { flex-wrap: wrap; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 108px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-blush { background: var(--grad-soft); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead { font-size: clamp(1.08rem, 0.6vw + 1rem, 1.25rem); color: var(--ink-2); }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(239, 59, 88, 0.16) 0%, rgba(239, 59, 88, 0) 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(253, 230, 234, 0.9) 0%, rgba(253, 230, 234, 0) 70%),
    var(--bg);
}
.hero-inner { position: relative; display: grid; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { max-width: 620px; margin-bottom: 28px; }
.hero .btn-row { margin-bottom: 28px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; padding: 0; list-style: none; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-2); font-size: 0.95rem; font-weight: 600; }
.hero-points .icon { width: 20px; height: 20px; color: var(--brand); }

.ornament {
  position: absolute;
  width: 520px; height: 520px;
  color: rgba(216, 30, 69, 0.1);
  pointer-events: none;
}
.ornament-right { right: -180px; top: -120px; }
.ornament-left { left: -220px; bottom: -260px; }

.page-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.page-hero .hero-inner { gap: 36px; }

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
}

/* Hero data card (real policy figures, not decoration) */
.hero-visual { position: relative; max-width: 460px; width: 100%; margin-inline: auto; }
.hero-card {
  margin: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-card-title { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.hero-card-title .badge-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
}
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.tier-list { margin: 0; padding: 0; list-style: none; }
.tier-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
}
.tier-list li:nth-child(odd) { background: var(--blush-2); }
.tier-list span { color: var(--ink-2); }
.tier-list strong { color: var(--brand-strong); white-space: nowrap; }
.hero-card-foot { margin: 14px 0 0; color: var(--muted); font-size: 0.88rem; }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}
.float-chip small { display: block; color: var(--muted); font-weight: 600; }
.float-chip .icon { color: var(--brand); }
.float-chip-a { left: -28px; bottom: -26px; }
.float-chip-b { right: -20px; top: -22px; }
@media (max-width: 559px) {
  .float-chip { position: static; margin-top: 12px; }
  .hero-visual { display: grid; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin-bottom: 22px; font-size: 0.9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--brand-strong); font-weight: 700; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
/* Let grid children shrink so wide tables scroll inside .table-wrap instead of overflowing */
.grid > *, .split > *, .hero-inner > * { min-width: 0; }
.grid-mini { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }

.card {
  position: relative;
  padding: clamp(22px, 3vw, 30px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 10px; }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--blush);
  color: var(--brand);
}
.card-icon.solid { background: var(--grad); color: #fff; }

.card-feature {
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-lg);
}
.card-feature.is-brand {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.card-feature.is-brand h2,
.card-feature.is-brand h3 { color: #fff; }
.card-feature.is-brand p, .card-feature.is-brand li { color: rgba(255, 255, 255, 0.94); }
.card-feature.is-brand a:not(.btn) { color: #fff; }
.card-feature.is-brand .card-icon { background: rgba(255, 255, 255, 0.18); color: #fff; }
.card-feature.is-brand .check-list .icon { color: #fff; }

.split { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split-wide-left { grid-template-columns: 1.2fr 0.8fr; } }

.check-list { margin: 0 0 1.2em; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.check-list .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--brand); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 14px;
  margin-top: 30px;
}
.stat {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.stat strong { display: block; font-size: 1.25rem; color: var(--brand-strong); letter-spacing: -0.01em; }
.stat span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Earning cards ---------- */
.earn-card { display: flex; flex-direction: column; }
.earn-card .earn-figure {
  margin: 4px 0 12px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-strong);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.earn-card .earn-figure small { display: block; margin-top: 4px; font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.mini-tiers { margin: 0 0 14px; padding: 0; list-style: none; font-size: 0.93rem; }
.mini-tiers li { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 0; border-bottom: 1px dashed var(--line-strong); }
.mini-tiers li:last-child { border-bottom: 0; }
.mini-tiers strong { color: var(--brand-strong); white-space: nowrap; }

.conversion-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}
.conversion-banner p { margin: 0; }
.conversion-banner strong { color: #ffd0d9; }

/* ---------- Timeline (vertical steps) ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.timeline > li {
  position: relative;
  margin: 0;
  padding: 0 0 28px 72px;
  counter-increment: step;
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}
.timeline > li::after {
  content: "";
  position: absolute;
  left: 23px; top: 56px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--line-strong), transparent);
}
.timeline > li:last-child::after { display: none; }
.timeline h3,
.timeline h4 { margin-bottom: 6px; padding-top: 10px; font-size: 1.1rem; }
.timeline p { color: var(--ink-2); }
.timeline .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.timeline .tags li { margin: 0; padding: 6px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }

/* ---------- Flow (horizontal process) ---------- */
.flow {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
.flow > li {
  position: relative;
  margin: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  counter-increment: flow;
}
.flow > li::before {
  content: "Step " counter(flow);
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.flow h3 { margin-bottom: 6px; font-size: 1.05rem; }
.flow p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(var(--flow-cols, 4), 1fr); gap: 28px; }
  .flow > li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -22px; top: 50%;
    width: 16px; height: 16px;
    border-top: 2px solid var(--brand-bright);
    border-right: 2px solid var(--brand-bright);
    transform: translateY(-50%) rotate(45deg);
  }
}

/* ---------- Callouts ---------- */
.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 24px 0 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.callout p:last-child { margin-bottom: 0; }
.callout .icon { margin-top: 2px; color: var(--brand); }
.callout-warn { background: #fff4f5; border-color: #f4b9c4; border-left: 5px solid var(--brand); }
.callout-warn strong { color: var(--brand-strong); }
.callout-info { background: #f8f6f7; border-color: #e7e1e3; }
.callout-info .icon { color: var(--ink-2); }

.source-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.source-note p { margin: 0; }
.source-note .icon { color: var(--brand); margin-top: 2px; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.table-wrap:focus-visible { outline-offset: 2px; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
table.data caption {
  padding: 16px 20px 6px;
  text-align: left;
  font-weight: 800;
  color: var(--ink);
}
table.data th,
table.data td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th {
  background: var(--blush-2);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
table.data tbody tr:last-child th,
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fffafb; }
table.data .rate { font-weight: 800; color: var(--brand-strong); }
.class-badge {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
}
.rate-bar { display: flex; align-items: center; gap: 12px; }
.rate-bar span.bar {
  display: block;
  height: 8px;
  min-width: 8px;
  border-radius: 99px;
  background: var(--grad);
}
@media (max-width: 479px) {
  table.data { font-size: 0.92rem; }
  table.data th, table.data td { padding: 12px 10px; }
  table.data thead th { white-space: normal; letter-spacing: 0.02em; font-size: 0.74rem; }
  table.data td.rate { white-space: normal; }
  .rate-bar span.bar { display: none; }
  .class-badge { width: 30px; height: 30px; border-radius: 9px; }
}
.table-note { margin: 10px 4px 0; color: var(--muted); font-size: 0.88rem; }

/* ---------- Formula & calculation card ---------- */
.formula {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}
.formula b { color: #ffc2ce; font-weight: 700; }

.calc-card {
  padding: clamp(22px, 4vw, 40px);
  background: #1d1719;
  background-image: radial-gradient(80% 80% at 100% 0%, rgba(216, 30, 69, 0.35) 0%, rgba(216, 30, 69, 0) 60%);
  color: #f7eef0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.calc-card h3 { color: #fff; }
.calc-card .pill { background: rgba(255, 255, 255, 0.14); color: #fff; }
.calc-tree { display: grid; gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.calc-tree li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.95rem;
}
.calc-tree .amt { font-family: var(--mono); color: #fff; white-space: nowrap; }
.calc-tree .rt { min-width: 48px; padding: 3px 8px; border-radius: 8px; background: rgba(255, 194, 206, 0.16); color: #ffc2ce; font-weight: 700; text-align: center; font-size: 0.85rem; }
.calc-root {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  font-weight: 800;
}
.calc-lines { margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: clamp(0.84rem, 1.6vw, 0.98rem); }
.calc-lines li { margin: 0; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.16); overflow-wrap: anywhere; }
.calc-lines li:last-child { border-bottom: 0; }
.calc-lines .total { color: #ffe27a; font-weight: 700; font-size: 1.05em; }
.calc-note { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); font-size: 0.9rem; color: #e9dde0; }
.calc-note strong { color: #fff; }

/* ---------- Rules ---------- */
.rule-card { border-top: 5px solid var(--brand); }
.rule-card h3 { display: flex; align-items: center; gap: 10px; }
.rule-card .rule-label { margin-bottom: 8px; color: var(--muted); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.rule-card ol { padding-left: 1.2em; color: var(--ink-2); }

/* ---------- Dashboard menu illustration ---------- */
.dash {
  display: grid;
  grid-template-columns: 170px 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}
.dash-side { padding: 16px 10px; background: #fbf5f6; border-right: 1px solid var(--line); }
.dash-side ul { margin: 0; padding: 0; list-style: none; }
.dash-side li { margin: 0; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.dash-side li.active { background: var(--blush); color: var(--brand-strong); }
.dash-main { padding: 18px; }
.dash-banner { padding: 18px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px; }
.dash-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border-radius: 10px; background: #c8264a; color: #fff; font-size: 0.82rem; font-weight: 700; }
.dash-link span.copy { padding: 4px 10px; background: #fff; color: var(--brand-strong); border-radius: 99px; font-size: 0.75rem; white-space: nowrap; }
@media (max-width: 559px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .dash-side ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .dash-side li + li { margin-top: 0; }
  .dash-links { grid-template-columns: 1fr; }
}

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip-list li { margin: 0; padding: 7px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }

/* ---------- Tools (converter / tier finder) ---------- */
.tool { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(216, 30, 69, 0.15); }
.field .hint { color: var(--muted); font-size: 0.85rem; }
.tool-output {
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--blush-2);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
}
.tool-output strong { color: var(--brand-strong); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1.04rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:focus-visible { border-radius: 16px; }
.faq .faq-body { padding: 0 20px 18px; color: var(--ink-2); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Blog cards ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card .tag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-card .tag.host { background: #eef6f1; color: #0b6537; }
.post-card h3 { font-size: 1.15rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.post-card h3 a:hover { color: var(--brand-strong); }
.post-card h3 a:focus-visible { outline: none; }
.post-card:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.post-card p { color: var(--muted); font-size: 0.97rem; }
.post-card .read-more { margin-top: auto; color: var(--brand); font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-btn:hover { border-color: var(--brand); }
[hidden] { display: none !important; }

/* ---------- Article (blog post) ---------- */
.article-hero { padding: clamp(28px, 5vw, 60px) 0 clamp(24px, 4vw, 40px); background: var(--grad-soft); border-bottom: 1px solid var(--line); }
.article-hero h1 { font-size: clamp(1.95rem, 3.2vw + 1rem, 3rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.45rem, 1.4vw + 1rem, 1.9rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose .table-wrap { margin: 1.2em 0; }
.prose .callout, .prose .source-note { margin: 1.4em 0; }
.key-facts {
  margin: 0 0 2em;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.key-facts h2 { margin: 0 0 10px; font-size: 1.1rem; }
.key-facts ul { margin: 0; }
.toc-title { font-size: 1.15rem; }
.toc { margin: 0 0 2em; padding: 18px 22px; background: var(--blush-2); border-radius: 16px; }
.toc h2 { margin: 0 0 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.toc ol { margin: 0; }
.toc a { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; max-width: 720px; }
.cta-band p { max-width: 640px; color: rgba(255, 255, 255, 0.94); font-size: 1.08rem; }
.cta-band .btn-row { margin-top: 26px; }
.cta-band .ornament { color: rgba(255, 255, 255, 0.12); right: -200px; top: -200px; }
.cta-band > *:not(.ornament) { position: relative; }

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.inline-cta p { margin: 0; font-weight: 700; font-size: 1.05rem; }
.inline-cta p span { display: block; color: var(--muted); font-weight: 500; font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: center; margin: 0; }
.contact-list .card-icon { margin: 0; width: 48px; height: 48px; }
.contact-list a { font-weight: 700; word-break: break-word; }
.contact-list small { display: block; color: var(--muted); font-size: 0.88rem; }
.contact-form { display: grid; gap: 16px; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 600; color: var(--brand-strong); }
.form-hint { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(48px, 7vw, 80px) 0 110px;
  background: #1a1416;
  color: #e9e2e4;
  font-size: 0.97rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffc2ce; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-brand { grid-column: 1 / -1; max-width: 520px; }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-text strong { color: #ff8fa5; }
.footer-brand p { color: #c9bfc3; }
.site-footer h2 { margin-bottom: 14px; color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0 0 10px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b9afb3;
  font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }
.disclaimer { margin-top: 28px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); color: #c9bfc3; font-size: 0.88rem; }
.disclaimer strong { color: #fff; }

/* ---------- Floating WhatsApp CONTACT button ---------- */
/* Direct chat (WHATSAPP_NUMBER). Not the WhatsApp Channel CTA. */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 58px;
  height: 58px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--wa-bright);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 30px -12px rgba(14, 122, 67, 0.7);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.wa-float:hover { color: #fff; background: var(--wa); transform: translateY(-2px); }
.wa-float .icon { width: 26px; height: 26px; }
.wa-float-label { display: none; }
@media (min-width: 768px) {
  .wa-float-label { display: inline; }
  .wa-float { background: var(--wa); }
}

/* ---------- Toast (placeholder link notice) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 150;
  max-width: min(92vw, 460px);
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
}

/* ---------- Reveal on scroll (JS adds .reveal-hidden only below the fold) ---------- */
.reveal-hidden { opacity: 0; transform: translateY(18px); }
.reveal-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 20px; }

/* ---------- Reduced motion ---------- */
@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;
  }
  .reveal-hidden { opacity: 1; transform: none; }
  .btn:hover, .card-hover:hover, .wa-float:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .wa-float, .cta-band .btn-row, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
