/* ==========================================================================
   SudoCoupon — Sudowrite Review & Coupon Site
   Premium SaaS design system
   ========================================================================== */

:root {
  --ink-900: #0a0e1a;
  --ink-800: #121829;
  --ink-700: #1b2335;
  --ink-600: #2a3448;
  --ink-500: #4a5568;
  --ink-400: #6b7688;
  --ink-300: #97a1b2;
  --ink-200: #d5dbe6;
  --ink-100: #eef1f7;
  --ink-050: #f7f9fc;
  --white: #ffffff;

  --brand-600: #4f2fd6;
  --brand-500: #6338f0;
  --brand-400: #8462ff;
  --brand-100: #ece6ff;
  --brand-050: #f6f3ff;

  --gold-600: #855500;
  --gold-500: #f0a500;
  --gold-400: #ffc247;
  --gold-100: #fff4dc;

  --mint-600: #087451;
  --mint-500: #16b57f;
  --mint-100: #e2f8ef;

  --rose-500: #e0486a;
  --rose-100: #fdeaef;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(10, 14, 26, .07), 0 1px 2px rgba(10, 14, 26, .04);
  --shadow: 0 6px 24px rgba(10, 14, 26, .08), 0 2px 6px rgba(10, 14, 26, .04);
  --shadow-lg: 0 20px 60px rgba(10, 14, 26, .14), 0 6px 18px rgba(10, 14, 26, .07);
  --shadow-brand: 0 12px 32px rgba(99, 56, 240, .28);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;

  --wrap: 1180px;
  --wrap-narrow: 780px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  color: var(--ink-900);
  line-height: 1.22;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.05rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.18rem, 2vw, 1.38rem); }
h4 { font-size: 1.06rem; }

p { margin: 0 0 1.15rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

.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 ================================= */
.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 200;
  background: var(--brand-600); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ============================== Buttons ================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 650;
  line-height: 1.2; padding: 15px 28px; border: 2px solid transparent;
  border-radius: 999px; cursor: pointer; text-align: center;
  transition: transform .16s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, button:focus-visible, .table-scroll:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; }
.btn { min-height: 44px; max-width: 100%; }
.btn > i { flex-shrink: 0; }

.btn-primary { background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { box-shadow: 0 16px 40px rgba(99, 56, 240, .38); color: #fff; }

.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #3a2500; box-shadow: 0 12px 30px rgba(240, 165, 0, .34); }
.btn-gold:hover { color: #3a2500; box-shadow: 0 16px 38px rgba(240, 165, 0, .44); }

.btn-outline { background: transparent; border-color: var(--ink-200); color: var(--ink-800); }
.btn-outline:hover { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-050); }

.btn-ghost-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; }

.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-lg { padding: 18px 38px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* =============================== Header ================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-100);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(10, 14, 26, .08); }

.nav {
  display: flex; align-items: center; gap: 14px; flex-wrap: nowrap;
  height: var(--nav-h); max-width: 1280px; margin: 0 auto; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; font-weight: 800; font-size: 1.1rem; color: var(--ink-900); letter-spacing: -.03em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff; display: grid; place-items: center; font-size: .95rem; font-weight: 800;
  box-shadow: var(--shadow-brand);
}
.brand-mark i { font-size: .92rem; }
.brand em { font-style: normal; color: var(--brand-600); }

.nav-links { display: flex; align-items: center; gap: 1px; margin-left: auto; list-style: none; padding: 0; }
.nav-links a {
  display: block; padding: 9px 11px; border-radius: 9px; white-space: nowrap;
  font-size: .9rem; font-weight: 550; color: var(--ink-600);
}
.nav-links a:hover { background: var(--ink-050); color: var(--brand-600); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--brand-600); background: var(--brand-050); font-weight: 650; }

.nav-cta { margin-left: 10px; flex: 0 0 auto; }
.nav-cta .btn { white-space: nowrap; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--ink-200); background: var(--white);
  border-radius: 11px; cursor: pointer; color: var(--ink-800); font-size: 1.1rem;
}

.nav-mobile-offer { display: none; }
@media (max-width: 1180px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .site-nav.is-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: var(--white); border-bottom: 1px solid var(--ink-100);
    margin: 0; padding: 12px 16px 18px; box-shadow: var(--shadow);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .site-nav.is-open .nav-links a { padding: 13px 12px; font-size: 1rem; }
  .site-nav.is-open .nav-cta { display: none; }
  .site-nav.is-open .nav-mobile-offer { display: block; padding-top: 10px; border-top: 1px solid var(--ink-100); }
  .site-nav.is-open .nav-mobile-offer .btn { display: flex; width: 100%; color: #fff; border-radius: 999px; }
  .site-nav.is-open .nav-mobile-offer .btn:hover { background: var(--brand-600); }
}

/* ============================ Coupon hero =============================== */
.coupon-hero {
  position: relative; overflow: hidden; color: #eef1fb;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(132, 98, 255, .5), transparent 60%),
    radial-gradient(900px 460px at 88% 8%, rgba(240, 165, 0, .3), transparent 62%),
    linear-gradient(165deg, #0d1226 0%, #161d3a 55%, #0b0f1f 100%);
  padding: clamp(48px, 7vw, 84px) 0 clamp(52px, 7vw, 80px);
}
.coupon-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .7;
}
.coupon-hero > .wrap { position: relative; z-index: 2; }

.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 20px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #ffd680;
}
.eyebrow.on-light { background: var(--brand-050); border-color: var(--brand-100); color: var(--brand-600); }

.coupon-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.9vw, 3.35rem); margin-bottom: 18px; }
.coupon-hero h1 .hl {
  background: linear-gradient(120deg, var(--gold-400), #ffe9b0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #c3cbe4; max-width: 56ch; margin-bottom: 26px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-compare { margin: 18px 0 0; font-size: .9rem; }
.hero-compare a { color: #f5dcaa; text-decoration: underline; text-underline-offset: 4px; }
.hero-disclosure { margin: 14px 0 0; color: #bbc5e0; font-size: .8rem; line-height: 1.6; }
@media (max-width: 560px) {
  .coupon-hero { padding-top: 36px; }
  .hero-actions .btn { width: 100%; padding-left: 18px; padding-right: 18px; }
  .coupon-card { padding: 24px 20px; }
  .aff-cta { padding: 28px 20px; }
}

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .9rem; color: #aab4d0; }
.hero-trust li { display: flex; align-items: center; gap: .5em; }
.hero-trust i { color: var(--mint-500); }

/* Coupon card */
.coupon-card {
  background: var(--white); color: var(--ink-700);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 28px; position: relative; overflow: hidden;
}
.coupon-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--brand-500), var(--gold-500), var(--mint-500));
}
.coupon-card-label {
  display: inline-flex; align-items: center; gap: .5em; font-size: .74rem; font-weight: 750;
  letter-spacing: .12em; text-transform: uppercase; color: var(--mint-600);
  background: var(--mint-100); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.coupon-card h2 { font-size: 1.42rem; margin-bottom: 6px; }
.coupon-amount {
  font-family: var(--font-serif); font-size: clamp(2.5rem, 6vw, 3.3rem); font-weight: 800;
  line-height: 1; color: var(--brand-600); letter-spacing: -.04em; margin: 8px 0 2px;
}
.coupon-amount small { display: block; font-family: var(--font-sans); font-size: .95rem; font-weight: 600; color: var(--ink-500); letter-spacing: 0; margin-top: 8px; }

.coupon-list { list-style: none; padding: 0; margin: 18px 0 22px; font-size: .96rem; }
.coupon-list li { display: flex; gap: .7em; padding: 8px 0; border-bottom: 1px dashed var(--ink-100); }
.coupon-list li:last-child { border-bottom: 0; }
.coupon-list i { color: var(--mint-500); margin-top: .35em; flex: 0 0 auto; }

.coupon-note { font-size: .82rem; color: var(--ink-400); margin: 14px 0 0; text-align: center; line-height: 1.55; }

/* ============================ Offer cards =============================== */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 276px), 1fr)); gap: 22px; }
@media (min-width: 940px) { .offer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.offer-card {
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.offer-card.is-featured { border-color: var(--brand-400); box-shadow: var(--shadow); background: linear-gradient(180deg, var(--brand-050), var(--white) 42%); }

.offer-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-600); font-size: 1.1rem; margin-bottom: 14px;
}
.offer-card.is-featured .offer-icon { background: var(--gold-100); color: var(--gold-600); }
.offer-card h3 { font-size: 1.13rem; margin-bottom: 6px; }
.offer-card p { font-size: .95rem; color: var(--ink-500); margin-bottom: 16px; }
.offer-value { font-weight: 750; color: var(--ink-900); font-size: 1.02rem; margin-bottom: 6px; }
.offer-card .btn { margin-top: auto; }

.badge {
  display: inline-flex; align-items: center; gap: .4em; font-size: .72rem; font-weight: 750;
  letter-spacing: .07em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.badge-active { background: var(--mint-100); color: var(--mint-600); }
.badge-check { background: var(--brand-050); color: var(--brand-600); }
.badge-warn { background: var(--gold-100); color: var(--gold-600); }
.badge-off { background: var(--ink-100); color: var(--ink-500); }

/* ============================== Sections ================================ */
.section { padding: clamp(52px, 7vw, 86px) 0; }
.section-tight { padding: clamp(36px, 5vw, 58px) 0; }
.section-alt { background: var(--ink-050); border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); }
.section-dark {
  color: #e6eaf6;
  background: radial-gradient(900px 420px at 20% 0%, rgba(132,98,255,.32), transparent 60%), linear-gradient(160deg, #0d1226, #141a33);
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto clamp(30px, 4vw, 46px); text-align: center; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; margin-bottom: 0; }
.section-dark .section-head p { color: #b6c0da; }
.section-head.align-left { margin-left: 0; text-align: left; }

/* ============================== Stat row ================================ */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 22px 20px; text-align: center;
}
.stat-value { font-family: var(--font-serif); font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -.03em; }
.stat-label { font-size: .88rem; color: #a9b3cf; margin-top: 6px; }

/* ============================= Page hero ================================ */
.page-hero {
  padding: clamp(40px, 5.5vw, 68px) 0 clamp(30px, 4vw, 44px);
  background: linear-gradient(180deg, var(--brand-050), var(--white));
  border-bottom: 1px solid var(--ink-100);
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lede { font-size: clamp(1.04rem, 1.7vw, 1.2rem); color: var(--ink-500); max-width: 68ch; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .86rem; color: var(--ink-400); margin-top: 20px; }
.page-meta span { display: inline-flex; align-items: center; gap: .45em; }

/* ======================== Product screenshots =========================== */
.product-visual-section {
  padding: clamp(30px, 4vw, 52px) 0;
  background: linear-gradient(180deg, #fbfaf3 0%, var(--white) 100%);
  border-bottom: 1px solid var(--ink-100);
}
.product-visual { width: min(100%, 1080px); margin: 0 auto; }
.product-visual.is-pricing { width: min(100%, 920px); }
.product-visual-link {
  position: relative; display: block; overflow: hidden;
  border: 1px solid rgba(91, 82, 53, .16); border-radius: var(--radius-lg);
  background: #f4f1e5; box-shadow: var(--shadow-lg); text-decoration: none;
}
.product-visual-link:hover { text-decoration: none; }
.product-visual-link:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 4px; }
.product-visual img { width: 100%; height: auto; display: block; transition: transform .25s ease; }
.product-visual-link:hover img { transform: scale(1.008); }
.visual-zoom {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: .45em;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(10, 14, 26, .82); color: #fff;
  font-size: .78rem; font-weight: 650; line-height: 1;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.product-visual figcaption {
  max-width: 76ch; margin: 14px auto 0; padding: 0 12px;
  color: var(--ink-500); font-size: .88rem; line-height: 1.6; text-align: center;
}
.product-visual-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 560px) {
  .product-visual-section { padding: 24px 0 30px; }
  .product-visual-link { border-radius: var(--radius); }
  .visual-zoom { right: 9px; bottom: 9px; padding: 7px 10px; font-size: .72rem; }
  .product-visual figcaption { font-size: .82rem; text-align: left; padding: 0 4px; }
}

.breadcrumbs { font-size: .84rem; color: var(--ink-400); margin-bottom: 16px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5em; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .5em; color: var(--ink-200); }

/* ============================ Verdict box =============================== */
.verdict {
  background: linear-gradient(135deg, var(--brand-050), var(--gold-100));
  border: 1px solid var(--brand-100); border-left: 5px solid var(--brand-500);
  border-radius: var(--radius); padding: 26px 26px 22px; margin: 0 0 34px;
}
.verdict h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .5em; margin-bottom: 14px; }
.verdict h2 i { color: var(--gold-600); }
.verdict p:last-child { margin-bottom: 0; }

.rating-block { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 18px 0 8px; }
.rating-score {
  font-family: var(--font-serif); font-size: 2.4rem; font-weight: 800; line-height: 1;
  color: var(--brand-600); letter-spacing: -.04em;
}
.rating-score small { font-size: .95rem; color: var(--ink-400); font-family: var(--font-sans); font-weight: 600; }
.stars { color: var(--gold-500); font-size: 1.05rem; letter-spacing: .1em; }
.stars + span { font-size: .9rem; color: var(--ink-500); }

/* ========================= Article + TOC layout ========================= */
/* TOC sidebar removed site-wide — articles render full width, centred. */
.doc-layout {
  display: block;
  padding: clamp(34px, 5vw, 56px) 0 clamp(46px, 6vw, 72px);
}
.toc { display: none !important; }

.toc {
  position: sticky; top: calc(var(--nav-h) + 20px);
  background: var(--ink-050); border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: 20px 18px;
  max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto;
}
.toc h2 {
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-400); margin-bottom: 12px; font-weight: 750;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 7px 10px 7px 12px; font-size: .89rem; line-height: 1.45;
  color: var(--ink-600); border-left: 2px solid var(--ink-200); border-radius: 0 6px 6px 0;
}
.toc a:hover { background: var(--brand-050); color: var(--brand-600); text-decoration: none; border-left-color: var(--brand-400); }
.toc a.is-active { background: var(--brand-050); color: var(--brand-600); font-weight: 650; border-left-color: var(--brand-500); }

@media (max-width: 1000px) {
  .toc { position: static; max-height: none; }
  .toc-mobile-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
    font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
    color: var(--ink-500); font-weight: 750; margin-bottom: 0;
  }
  .toc.is-collapsed ol { display: none; }
  .toc:not(.is-collapsed) ol { margin-top: 14px; }
}
@media (min-width: 1001px) { .toc-mobile-toggle { display: none; } }
@media (max-width: 1000px) { .toc-desktop-label { display: none; } }

/* ============================== Prose ================================== */
.prose { max-width: 76ch; margin-left: auto; margin-right: auto; }
.prose > h2 {
  margin-top: 2.3em; padding-top: .35em; scroll-margin-top: calc(var(--nav-h) + 20px);
}
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 1.9em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose > h4 { margin-top: 1.6em; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.35em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brand-400); }
.prose strong { color: var(--ink-900); font-weight: 700; }
.prose code {
  background: var(--ink-100); padding: .15em .45em; border-radius: 5px;
  font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--brand-600);
}
.prose blockquote {
  margin: 1.6rem 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brand-400);
  color: var(--ink-600); font-size: 1.04rem;
}
.prose hr { border: 0; border-top: 1px solid var(--ink-100); margin: 2.6rem 0; }

.callout {
  background: var(--ink-050); border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: 20px 22px; margin: 1.8rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: flex; align-items: center; gap: .55em; font-weight: 700; color: var(--ink-900); margin-bottom: 8px; }
.callout-brand { background: var(--brand-050); border-color: var(--brand-100); }
.callout-brand .callout-title i { color: var(--brand-500); }
.callout-warn { background: var(--gold-100); border-color: #f6e0b0; }
.callout-warn .callout-title i { color: var(--gold-600); }
.callout-mint { background: var(--mint-100); border-color: #bfeedd; }
.callout-mint .callout-title i { color: var(--mint-600); }

/* ============================== Tables ================================== */
.table-scroll { overflow-x: auto; margin: 1.6rem 0; -webkit-overflow-scrolling: touch; }
table {
  width: 100%; border-collapse: collapse; font-size: .95rem;
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius); overflow: hidden;
}
thead th {
  background: var(--ink-800); color: #fff; font-weight: 650; text-align: left;
  padding: 13px 15px; font-size: .88rem; letter-spacing: .01em; white-space: nowrap;
}
tbody td, tbody th { padding: 13px 15px; border-top: 1px solid var(--ink-100); vertical-align: top; text-align: left; }
tbody th { font-weight: 650; color: var(--ink-900); }
tbody tr:nth-child(even) { background: var(--ink-050); }
.num, td.num, th.num { text-align: right; }
table caption { caption-side: bottom; font-size: .84rem; color: var(--ink-400); padding-top: 10px; text-align: left; }

/* ============================ Pricing table ============================= */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; align-items: stretch; }

.plan {
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  position: relative; transition: transform .18s ease, box-shadow .18s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.is-popular { border: 2px solid var(--brand-500); box-shadow: var(--shadow); }
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); color: #fff;
  font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow-brand);
}
.plan-name { font-size: 1.16rem; font-weight: 750; color: var(--ink-900); margin-bottom: 4px; }
.plan-for { font-size: .88rem; color: var(--ink-400); margin-bottom: 18px; }
.plan-price { display: flex; align-items: baseline; gap: .3em; margin-bottom: 4px; }
.plan-price .amount { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 800; color: var(--ink-900); letter-spacing: -.04em; line-height: 1; }
.plan-price .per { font-size: .95rem; color: var(--ink-400); font-weight: 600; }
.plan-alt { font-size: .89rem; color: var(--ink-500); margin-bottom: 18px; }
.plan-alt strong { color: var(--mint-600); }
.plan-credits {
  background: var(--ink-050); border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: .93rem; margin-bottom: 18px; text-align: center;
}
.plan-credits b { display: block; font-size: 1.16rem; color: var(--brand-600); font-family: var(--font-serif); letter-spacing: -.02em; }
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; font-size: .93rem; }
.plan-features li { display: flex; gap: .6em; padding: 6px 0; color: var(--ink-600); }
.plan-features i { color: var(--mint-500); margin-top: .32em; flex: 0 0 auto; font-size: .85em; }
.plan-features i.fa-xmark { color: var(--ink-300); }
.plan .btn { margin-top: auto; }

.billing-toggle { display: flex; justify-content: center; gap: 6px; margin: 0 auto clamp(26px, 4vw, 38px); background: var(--ink-100); padding: 5px; border-radius: 999px; width: fit-content; }
.billing-toggle button {
  border: 0; background: transparent; font: inherit; font-size: .93rem; font-weight: 650;
  padding: 9px 20px; border-radius: 999px; cursor: pointer; color: var(--ink-500);
  transition: background .16s ease, color .16s ease;
}
.billing-toggle button[aria-pressed="true"] { background: var(--white); color: var(--brand-600); box-shadow: var(--shadow-sm); }
.billing-toggle .save-pill { font-size: .72rem; color: var(--mint-600); font-weight: 750; margin-left: .4em; }

/* ============================ Review cards ============================== */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 22px; }

.review-card {
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-card-icon {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-600); font-size: 1.02rem;
}
.review-card h3 { margin: 0; font-size: 1.06rem; }
.review-card .score { font-size: .82rem; color: var(--ink-400); font-weight: 600; }
.review-card p { font-size: .95rem; color: var(--ink-500); margin-bottom: 0; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 1.8rem 0; }
@media (max-width: 720px) { .proscons { grid-template-columns: 1fr; } }
.pc-box { border-radius: var(--radius); padding: 22px 24px; border: 1px solid; }
.pc-pros { background: var(--mint-100); border-color: #bfeedd; }
.pc-cons { background: var(--rose-100); border-color: #f8cdd8; }
.pc-box h3 { display: flex; align-items: center; gap: .5em; font-size: 1.06rem; margin-bottom: 12px; }
.pc-pros h3 i { color: var(--mint-600); }
.pc-cons h3 i { color: var(--rose-500); }
.pc-box ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.pc-box li { display: flex; gap: .6em; padding: 6px 0; }
.pc-box li i { margin-top: .35em; flex: 0 0 auto; font-size: .82em; }
.pc-pros li i { color: var(--mint-600); }
.pc-cons li i { color: var(--rose-500); }

/* ============================ Feature cards ============================= */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.feature {
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
}
.feature i.feature-ico { color: var(--brand-500); font-size: 1.25rem; margin-bottom: 12px; display: block; }
.feature h3 { font-size: 1.04rem; margin-bottom: 6px; }
.feature p { font-size: .93rem; color: var(--ink-500); margin-bottom: 0; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps > li {
  counter-increment: step; position: relative; padding: 0 0 26px 60px; margin: 0;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); color: #fff;
  font-weight: 750; font-size: .98rem; box-shadow: var(--shadow-brand);
}
.steps > li::after {
  content: ""; position: absolute; left: 19.5px; top: 46px; bottom: 6px; width: 1px; background: var(--ink-200);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: 6px; font-size: 1.08rem; }
.steps p { margin-bottom: 0; color: var(--ink-500); font-size: .97rem; }

/* ============================= FAQ accordion ============================ */
.faq { max-width: 880px; margin: 0 auto; }
.faq-item { border: 1px solid var(--ink-100); border-radius: var(--radius); background: var(--white); margin-bottom: 12px; overflow: hidden; }
.faq-item.is-open { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  background: none; border: 0; padding: 18px 20px; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 1.02rem; font-weight: 650; color: var(--ink-900); line-height: 1.45;
}
.faq-q:hover { background: var(--ink-050); }
.faq-q:focus-visible { outline: 3px solid var(--brand-400); outline-offset: -3px; }
.faq-q i { color: var(--brand-500); font-size: .9rem; margin-top: .3em; transition: transform .22s ease; flex: 0 0 auto; }
.faq-item.is-open .faq-q i { transform: rotate(180deg); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .26s ease, padding .26s ease; }
.faq-item.is-open .faq-a { padding: 0 20px 18px; }
.faq-a p { margin: 0 0 .8rem; color: var(--ink-500); font-size: .97rem; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul { margin: 0 0 .8rem; padding-left: 1.3em; color: var(--ink-500); font-size: .97rem; }

/* ============================ Affiliate CTA ============================= */
.aff-cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(30px, 4.5vw, 48px); color: #fff; text-align: center;
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(240,165,0,.28), transparent 60%),
    linear-gradient(135deg, var(--brand-600), #2b1a7a 70%, #17103f);
  box-shadow: var(--shadow-lg);
}
.aff-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.aff-cta p { color: #cfd5ee; max-width: 62ch; margin: 0 auto 24px; }
.aff-cta .hero-actions { justify-content: center; margin-bottom: 14px; }
.aff-cta .fineprint { font-size: .82rem; color: #9aa4c4; margin: 0; }

.inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  background: linear-gradient(135deg, var(--brand-050), var(--gold-100));
  border: 1px solid var(--brand-100); border-radius: var(--radius);
  padding: 22px 24px; margin: 2rem 0;
}
.inline-cta-body { flex: 1 1 280px; }
.inline-cta-body strong { display: block; color: var(--ink-900); font-size: 1.06rem; margin-bottom: 4px; }
.inline-cta-body span { font-size: .93rem; color: var(--ink-500); }

/* =========================== Editorial author =========================== */
.author-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px;
  width: min(100%, 900px); margin: 8px auto 4px; padding: 26px;
  border: 1px solid var(--brand-100); border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(132, 98, 255, .16), transparent 65%),
    linear-gradient(145deg, var(--white), var(--brand-050));
  box-shadow: var(--shadow);
}
.author-card::after {
  content: ""; position: absolute; right: -60px; top: -75px; z-index: 0;
  width: 190px; height: 190px; border-radius: 50%;
  border: 34px solid rgba(240, 165, 0, .09);
}
.author-avatar {
  width: 112px; height: 112px; padding: 5px; border-radius: 50%;
  background: rgba(255,255,255,.88); border: 1px solid rgba(99,56,240,.2);
  box-shadow: 0 12px 30px rgba(60, 34, 151, .18);
}
.author-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 30%; }
.author-kicker {
  display: inline-flex; align-items: center; gap: .48em; margin: 0 0 5px;
  color: var(--brand-600); font-size: .75rem; font-weight: 750;
  letter-spacing: .11em; text-transform: uppercase;
}
.author-content h2 { margin: 0 0 5px; font-size: clamp(1.25rem, 2.3vw, 1.58rem); }
.author-role { margin: 0 0 10px; color: var(--ink-500); font-size: .9rem; font-weight: 600; }
.author-bio { margin: 0; color: var(--ink-600); font-size: .94rem; line-height: 1.68; }
.author-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.author-meta span {
  display: inline-flex; align-items: center; gap: .45em;
  padding: 6px 10px; border: 1px solid var(--ink-100); border-radius: 999px;
  background: rgba(255,255,255,.72); color: var(--ink-500);
  font-size: .76rem; font-weight: 650;
}
.author-meta i { color: var(--mint-600); }
.author-disclosure {
  grid-column: 1 / -1; margin: -4px 0 0; padding-top: 14px;
  border-top: 1px solid rgba(99,56,240,.12); color: var(--ink-400);
  font-size: .8rem; line-height: 1.55;
}
@media (max-width: 620px) {
  .author-card { grid-template-columns: 78px minmax(0, 1fr); gap: 16px; padding: 20px; }
  .author-avatar { width: 78px; height: 78px; padding: 4px; border-radius: 50%; }
  .author-avatar img { border-radius: 50%; }
  .author-kicker { font-size: .68rem; }
  .author-content h2 { font-size: 1.18rem; }
  .author-role { font-size: .82rem; }
  .author-content { display: contents; }
  .author-avatar { grid-column: 1; grid-row: 1 / 4; }
  .author-kicker, .author-content h2, .author-role { grid-column: 2; margin-bottom: 0; }
  .author-card { column-gap: 16px; row-gap: 8px; }
  .author-bio, .author-meta, .author-disclosure { grid-column: 1 / -1; }
  .author-bio { margin-top: 8px; font-size: .9rem; }
}

/* =================== Premium motion / ReactBits-inspired =============== */
/* Content is always readable: no opacity/blur hiding, even before observation. */
body.motion-ready [data-reveal].is-visible {
  animation: card-arrive .4s cubic-bezier(.2,.75,.25,1);
}
@keyframes card-arrive { from { translate: 0 10px; } to { translate: 0 0; } }

.interactive-glow { position: relative; isolation: isolate; overflow: hidden; }
.interactive-glow::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(132,98,255,.16), transparent 68%);
  opacity: 0; transition: opacity .22s ease;
}
.interactive-glow > :not(.plan-flag) { position: relative; z-index: 1; }
.plan.interactive-glow { overflow: visible; }
.plan.interactive-glow::before { border-radius: inherit; }
.plan-flag { z-index: 2; }
.interactive-glow:hover::before { opacity: 1; }

.btn-primary, .btn-gold { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-gold::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: -55%; width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-22deg); pointer-events: none;
}
.btn-primary:hover::after, .btn-gold:hover::after { animation: button-shine .72s ease; }
@keyframes button-shine { to { left: 125%; } }

/* ============================ Related pages ============================= */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.related-card {
  display: block; background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); text-decoration: none; }
.related-card i { color: var(--brand-500); font-size: 1.1rem; margin-bottom: 10px; display: block; }
.related-card h3 { font-size: 1.03rem; margin-bottom: 6px; }
.related-card p { font-size: .91rem; color: var(--ink-500); margin: 0; }

/* =============================== Footer ================================= */
.site-footer { background: var(--ink-900); color: #9aa4bd; padding: clamp(44px, 6vw, 66px) 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: .92rem; line-height: 1.68; }
.footer-col h3 { color: #fff; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 2px; }
.footer-col li a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 0; }
.footer-col a { color: #9aa4bd; }
.footer-col a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .85rem; color: #76809a; }
.footer-disclosure {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 30px;
  font-size: .86rem; line-height: 1.65; color: #8b95b0;
}
.footer-disclosure strong { color: #cdd4e6; }

/* ============================ Back to top =============================== */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand-600); color: #fff; box-shadow: var(--shadow-brand);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============================== Utilities =============================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1.4rem; }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  body.motion-ready [data-reveal] { opacity: 1; transform: none; filter: none; }
  .interactive-glow::before { display: none; }
}
