/* =====================================================================
   Masti Agency Official — style.css
   Premium light + dark hybrid design system
   Sections: reset/base · tokens · typography · layout · buttons ·
   header · hero · trust · sections · cards · tables · blog · faq ·
   forms · footer · floating · animations · responsive
   ===================================================================== */

/* ------------------------------------------------------------------
   1. RESET / BASE
   ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* nothing may push the page wider than the viewport */
#main,
.site-header,
.site-footer { overflow-x: clip; }

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

a { color: var(--red-2); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  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: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------
   2. DESIGN TOKENS
   ------------------------------------------------------------------ */
:root {
  /* light palette */
  --white:    #FFFFFF;
  --gray-50:  #FAFAFA;
  --gray-100: #F6F6F7;
  --gray-200: #F1F2F4;

  /* dark palette */
  --black:    #080808;
  --dark-900: #101010;
  --dark-800: #151515;
  --dark-700: #1C1C1C;

  /* red accent */
  --red:        #E52B37;
  --red-2:      #DF2733;
  --red-dark:   #B0212B;
  --red-glow:   rgba(229, 43, 55, 0.35);
  --border-red:        rgba(229, 43, 55, 0.25);
  --border-red-strong: rgba(229, 43, 55, 0.50);

  /* text */
  --text:        #141518;
  --text-muted:  #5B6068;
  --text-invert: #F4F4F5;
  --text-invert-muted: rgba(255, 255, 255, 0.68);

  /* borders / surfaces */
  --border:       #E7E8EB;
  --border-dark:  rgba(255, 255, 255, 0.10);
  --bg-dark:  var(--black);
  --bg-light: var(--white);

  /* radius */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* shadow */
  --shadow-sm: 0 2px 10px rgba(16, 16, 16, 0.06);
  --shadow-md: 0 12px 34px rgba(16, 16, 16, 0.10);
  --shadow-lg: 0 28px 70px rgba(16, 16, 16, 0.16);
  --shadow-red: 0 14px 40px rgba(229, 43, 55, 0.28);

  /* layout */
  --container: 1180px;
  --gap: 26px;
  --section-y: 96px;

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------------ */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.55rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.06rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-muted);
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-2);
  padding: 7px 15px;
  border: 1px solid var(--border-red-strong);
  border-radius: var(--radius-pill);
  background: rgba(229, 43, 55, 0.06);
}

.section--dark .eyebrow {
  color: #ff6b74;
  background: rgba(229, 43, 55, 0.14);
}

.text-accent { color: var(--red-2); }

.measure { max-width: 68ch; }

/* ------------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--tight { padding-block: 64px; }

.section--light  { background: var(--white); color: var(--text); }
.section--muted  { background: var(--gray-100); color: var(--text); }
.section--soft   { background: var(--gray-50); color: var(--text); }

.section--dark {
  background: var(--black);
  color: var(--text-invert);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark .lead,
.section--dark p { color: var(--text-invert-muted); }
.section--dark a { color: #ff8088; }

.section-head {
  max-width: 720px;
  margin-bottom: 54px;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head .lead { margin-top: 14px; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.stack-lg > * + * { margin-top: 22px; }

.divider-line {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--border-red-strong), transparent);
  margin: 0;
}

/* ------------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), border-color var(--transition);
  will-change: transform;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { box-shadow: 0 20px 48px rgba(229, 43, 55, 0.40); }

.btn-dark {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.btn-dark:hover { background: var(--dark-700); }

.btn-light {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { border-color: var(--border-red-strong); }

.btn-outline {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
  opacity: 0.92;
}
.btn-outline:hover { opacity: 1; border-color: var(--red); color: var(--red-2); }
.section--dark .btn-outline:hover { color: #ff8088; border-color: #ff8088; }

.btn-whatsapp {
  background: #25D366;
  color: #05321c;
  border-color: #1fb257;
}
.btn-whatsapp:hover { background: #1fbf5b; }

.btn-lg { padding: 18px 36px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 11px 18px; font-size: 0.86rem; }
.btn-block { width: 100%; }

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

/* ------------------------------------------------------------------
   6. HEADER / NAV
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.86);
  transition: background var(--transition), box-shadow var(--transition),
              border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 6px 24px rgba(16, 16, 16, 0.08);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}
.brand-name span { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.04em; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

/* desktop: show the Join Now dropdown only, hide the standalone mobile CTAs */
.nav-cta > .btn { display: none; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-link {
  display: inline-block;
  padding: 9px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 10px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { text-decoration: none; color: var(--red-2); background: var(--gray-100); }
.nav-link.is-active {
  color: var(--red-2);
  background: rgba(229, 43, 55, 0.08);
}

/* Join menu dropdown */
.join-menu { position: relative; }
.join-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 268px;
  background: #fff;
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.join-menu.is-open .join-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.join-option {
  display: block;
  padding: 13px 15px;
  border-radius: 12px;
  color: var(--text);
  transition: background var(--transition);
}
.join-option:hover { text-decoration: none; background: var(--gray-100); }
.join-option strong { display: block; font-size: 0.98rem; }
.join-option span { font-size: 0.82rem; color: var(--text-muted); }
.join-option + .join-option { margin-top: 4px; }

/* hamburger */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, -7px); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 890;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ------------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--black);
  color: var(--text-invert);
  overflow: hidden;
  padding-block: clamp(64px, 10vw, 120px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(229, 43, 55, 0.30) 0%, transparent 60%),
    radial-gradient(50% 45% at 10% 90%, rgba(229, 43, 55, 0.14) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
}
.hero h1 .text-accent { color: #ff5560; }
.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.74);
  max-width: 52ch;
  margin-bottom: 30px;
}
.hero .btn-row { margin-bottom: 30px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}
.hero-points svg { width: 18px; height: 18px; color: #ff5560; flex-shrink: 0; }

/* hero visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}
.hero-orb {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(229, 43, 55, 0.55), rgba(229, 43, 55, 0.05) 65%);
  filter: blur(6px);
}
.hero-logo-card {
  position: relative;
  z-index: 3;
  width: min(260px, 62vw);
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.hero-logo-card img { border-radius: 22px; }

.hero-chip {
  position: absolute;
  z-index: 4;
  background: rgba(20, 20, 20, 0.86);
  border: 1px solid var(--border-red-strong);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-chip .chip-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}
.hero-chip .chip-value {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}
.hero-chip .chip-value span { color: #ff5560; }
.hero-chip--tl { top: 6%; left: -6%; }
.hero-chip--br { bottom: 8%; right: -4%; }
.hero-chip--bl { bottom: 22%; left: -10%; }

/* ------------------------------------------------------------------
   8. TRUST STRIP
   ------------------------------------------------------------------ */
.trust-strip {
  background: var(--dark-900);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-invert);
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-block: 28px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 0.96rem;
}
.trust-item .trust-ico {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(229, 43, 55, 0.16);
  border: 1px solid var(--border-red-strong);
  color: #ff5560;
}
.trust-item svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------
   9. CARDS
   ------------------------------------------------------------------ */
.card {
  background: #fff;
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-red-strong);
}
.section--dark .card {
  background: var(--dark-800);
  border-color: rgba(229, 43, 55, 0.28);
}
.section--dark .card:hover { border-color: var(--border-red-strong); }

.card--plain { border-color: var(--border); }
.card--flat { box-shadow: none; }
.card--emph { border-color: var(--border-red-strong); box-shadow: var(--shadow-md); }

.card-ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(229, 43, 55, 0.08);
  border: 1px solid var(--border-red);
  color: var(--red-2);
  margin-bottom: 18px;
}
.card-ico svg { width: 24px; height: 24px; }
.section--dark .card-ico { background: rgba(229, 43, 55, 0.16); color: #ff5560; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.97rem; }
.section--dark .card p { color: var(--text-invert-muted); }

.card .btn-row { margin-top: 22px; }

/* choice cards (host vs agency) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.choice-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-red-strong);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.choice-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
}
.section--dark .choice-card { background: var(--dark-800); }
.choice-card h3 { font-size: 1.5rem; }
.choice-card .btn-row { margin-top: auto; padding-top: 24px; }

/* list with check / cross */
.rule-list { list-style: none; }
.rule-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.97rem;
  align-items: flex-start;
}
.rule-list li + li { border-top: 1px dashed var(--border); }
.section--dark .rule-list li + li { border-top-color: rgba(255, 255, 255, 0.1); }
.rule-list .ico {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--red-2);
}
.rule-list.is-do .ico { color: #16a34a; }
.rule-list.is-dont .ico { color: var(--red-2); }

/* stat tiles */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  text-align: center;
  padding: 26px 18px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border-red);
}
.section--dark .stat { background: var(--dark-800); }
.stat .stat-num {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--red-2);
  letter-spacing: -0.02em;
}
.section--dark .stat .stat-num { color: #ff5560; }
.stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}
.section--dark .stat .stat-label { color: var(--text-invert-muted); }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 24px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border-red);
}
.section--dark .step { background: var(--dark-800); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red-2);
  margin-bottom: 12px;
}
.section--dark .step::before { color: #ff5560; }
.step h4 { margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }
.section--dark .step p { color: var(--text-invert-muted); }

/* callout / notice */
.notice {
  border: 1px solid var(--border-red-strong);
  border-left-width: 4px;
  background: rgba(229, 43, 55, 0.05);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-size: 0.95rem;
}
.section--dark .notice { background: rgba(229, 43, 55, 0.12); }
.notice strong { color: var(--red-2); }
.section--dark .notice strong { color: #ff8088; }

/* pill list */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.pill-list li {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: var(--gray-100);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 600;
}
.section--dark .pill-list li { background: var(--dark-700); border-color: var(--border-dark); }

/* ------------------------------------------------------------------
   10. TABLES
   ------------------------------------------------------------------ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-red);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.94rem;
  background: #fff;
}
.section--dark .data-table { background: var(--dark-800); color: var(--text-invert); }
.data-table th,
.data-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.section--dark .data-table th,
.section--dark .data-table td { border-bottom-color: rgba(255, 255, 255, 0.09); }
.data-table thead th {
  background: var(--black);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(229, 43, 55, 0.04); }
.data-table .row-emph { background: rgba(229, 43, 55, 0.07); font-weight: 700; }
.data-table .cell-accent { color: var(--red-2); font-weight: 800; }
.section--dark .data-table .cell-accent { color: #ff5560; }

/* mobile stacked cards for tables */
.table-cards { display: none; }
.tier-card {
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 20px;
  background: #fff;
}
.section--dark .tier-card { background: var(--dark-800); }
.tier-card + .tier-card { margin-top: 14px; }
.tier-card .tier-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section--dark .tier-card .tier-head { border-bottom-color: rgba(255, 255, 255, 0.1); }
.tier-card .tier-name { font-weight: 800; font-size: 1.05rem; }
.tier-card .tier-rate { font-weight: 800; color: var(--red-2); font-size: 1.15rem; }
.section--dark .tier-card .tier-rate { color: #ff5560; }
.tier-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 0.9rem; }
.tier-card dt { color: var(--text-muted); font-weight: 600; }
.section--dark .tier-card dt { color: var(--text-invert-muted); }
.tier-card dd { margin: 0; font-weight: 600; text-align: right; }

/* ------------------------------------------------------------------
   11. BLOG
   ------------------------------------------------------------------ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-red-strong);
}
.post-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--dark-800), var(--black));
  display: grid;
  place-items: center;
  color: #ff5560;
  position: relative;
  border-bottom: 1px solid var(--border-red);
}
.post-thumb svg { width: 52px; height: 52px; opacity: 0.9; }
.post-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 70% 20%, rgba(229, 43, 55, 0.28), transparent 70%);
}
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-cat {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-2);
  margin-bottom: 10px;
}
.post-card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--red-2); text-decoration: none; }
.post-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 18px; }
.post-card .read-more {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-card .read-more:hover { text-decoration: none; gap: 10px; }

/* ------------------------------------------------------------------
   12. ARTICLE LAYOUT
   ------------------------------------------------------------------ */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-block: 18px;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--text-muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--red-2); }

/* breadcrumb on a dark hero */
.hero .breadcrumb { color: rgba(255, 255, 255, 0.6); }
.hero .breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.hero .breadcrumb a:hover { color: #fff; }
.hero .breadcrumb li::after { color: rgba(255, 255, 255, 0.3); }

.article {
  max-width: 760px;
  margin-inline: auto;
}
.article-header { margin-bottom: 40px; }
.article-header h1 { margin-bottom: 16px; }
.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.article-body { font-size: 1.05rem; }
.article-body h2 {
  margin-top: 1.8em;
  padding-top: 0.4em;
  scroll-margin-top: 100px;
}
.article-body h3 { margin-top: 1.5em; }
.article-body ul, .article-body ol { margin: 0 0 1.3em 1.2em; }
.article-body li { margin-bottom: 0.5em; }
.article-body a { font-weight: 600; text-decoration: underline; }
.article-body blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--red);
  background: var(--gray-100);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text);
}

.toc {
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 36px;
}
.toc h2 { font-size: 1rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.toc ol { margin: 0 0 0 1.1em; }
.toc li { margin-bottom: 6px; font-size: 0.95rem; }

.article-cta {
  margin: 44px 0;
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--black);
  color: #fff;
  border: 1px solid var(--border-red-strong);
}
.article-cta h3 { color: #fff; margin-bottom: 10px; }
.article-cta p { color: rgba(255, 255, 255, 0.72); margin-bottom: 20px; }

.related-guides {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related-guides h2 { font-size: 1.3rem; }
.related-list { list-style: none; display: grid; gap: 10px; }
.related-list a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--border-red);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}
.related-list a:hover { text-decoration: none; border-color: var(--border-red-strong); background: rgba(229, 43, 55, 0.04); }

/* ------------------------------------------------------------------
   13. FAQ
   ------------------------------------------------------------------ */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--border-red);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.section--dark .faq-item { background: var(--dark-800); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 24px;
  font-size: 1.02rem;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq-q .faq-icon::before,
.faq-q .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--red-2);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.faq-q .faq-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-q .faq-icon::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}
.faq-a-inner { padding: 0 24px 22px; color: var(--text-muted); font-size: 0.97rem; }
.section--dark .faq-a-inner { color: var(--text-invert-muted); }

/* ------------------------------------------------------------------
   14. FORMS
   ------------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.form-card {
  background: #fff;
  border: 1px solid var(--border-red-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.section--dark .form-card { background: var(--dark-800); }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.field .req { color: var(--red-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--text);
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(229, 43, 55, 0.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .error-text {
  display: none;
  color: var(--red-2);
  font-size: 0.82rem;
  margin-top: 6px;
  font-weight: 600;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--red-2); }
.field.has-error .error-text { display: block; }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
}
.form-status.is-ok { display: block; background: rgba(22, 163, 74, 0.12); color: #15803d; border: 1px solid rgba(22, 163, 74, 0.4); }

.contact-aside .card { margin-bottom: 18px; }
.contact-aside .contact-line {
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 600;
  font-size: 0.96rem;
}
.contact-aside .contact-line + .contact-line { margin-top: 16px; }
.contact-aside .contact-line svg { width: 22px; height: 22px; color: var(--red-2); flex-shrink: 0; }

/* ------------------------------------------------------------------
   15. FINAL CTA
   ------------------------------------------------------------------ */
.final-cta {
  background: var(--black);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 60% at 50% 0%, rgba(229, 43, 55, 0.30), transparent 65%);
}
.final-cta .container { position: relative; z-index: 2; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255, 255, 255, 0.74); max-width: 54ch; margin-inline: auto; }
.final-cta .btn-row { justify-content: center; margin-top: 32px; }

/* ------------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--dark-900);
  color: var(--text-invert-muted);
  padding-top: 72px;
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 52px;
}
.footer-brand img { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 38ch; margin-bottom: 18px; }
.site-footer h3 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--text-invert-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-code {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 9px;
  border: 1px dashed var(--border-red-strong);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #ff8088;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-block: 26px;
  font-size: 0.82rem;
}
.footer-bottom p { margin-bottom: 8px; }
.footer-disclaimer { color: rgba(255, 255, 255, 0.45); max-width: 90ch; }

/* ------------------------------------------------------------------
   17. FLOATING ELEMENTS
   ------------------------------------------------------------------ */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 800;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  animation: wa-in 0.5s ease 1s both;
}
.whatsapp-float svg { width: 30px; height: 30px; color: #fff; }
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse 2.6s ease-out infinite;
}
.whatsapp-float:hover { text-decoration: none; }

@keyframes wa-in {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 800;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-red-strong);
  background: rgba(8, 8, 8, 0.86);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  backdrop-filter: blur(6px);
}
.scroll-top svg { width: 20px; height: 20px; }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ------------------------------------------------------------------
   18. REVEAL ANIMATIONS
   ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

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

/* ------------------------------------------------------------------
   19. RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  :root { --section-y: 78px; }
  .hero-grid { gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(340px, 88vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 92px 24px 32px;
    background: var(--black);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--transition), visibility 0s linear var(--transition);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 895;
    max-width: 100vw;
  }
  .primary-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--transition), visibility 0s linear 0s;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { color: #fff; padding: 14px 16px; font-size: 1rem; }
  .nav-link:hover, .nav-link.is-active { background: rgba(255, 255, 255, 0.08); color: #fff; }
  .nav-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
  .join-menu { display: none; }
  .nav-cta > .btn { display: inline-flex; width: 100%; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 300px; margin-bottom: 10px; }
  .choice-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .trust-strip .container { grid-template-columns: 1fr; gap: 14px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --section-y: 60px; }
  .container { padding-inline: 18px; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .hero-chip { display: none; }
  .steps, .stat-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card, .choice-card, .form-card { padding: 24px; }

  /* transform tables to cards */
  .table-wrap { display: none; }
  .table-cards { display: block; }
}

@media (min-width: 641px) {
  .btn-row--inline .btn { width: auto; }
}
