:root {
  /* Card Value Scanner — red brand + green value accent */
  --c-primary:       #E10600;
  --c-primary-dark:  #B00500;
  --c-primary-hover: #C70500;
  --c-accent:        #39FF14;
  --c-accent-dark:   #1f9d0f;
  --c-bg:            #F7F4F4;
  --c-bg-alt:        #FFFFFF;
  --c-bg-soft:       #FFF5F5;
  --c-text:          #3A3A3A;
  --c-text-heading:  #1A0A0A;
  --c-text-muted:    #5A4545;
  --c-text-subtle:   color-mix(in srgb, var(--c-text-muted) 70%, var(--c-bg));
  --c-border:        #E8D4D4;
  --c-border-soft:   #F0E4E4;
  --c-success:       #1f9d0f;
  --c-danger:        #E04545;
  --c-section:       #F8F1F1;
  --c-hero-navy:     #5A0000;
  --c-scan-dark:     #121212;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(80, 0, 0, .05);
  --shadow-md: 0 2px 14px rgba(80, 0, 0, .08);
  --shadow-lg: 0 10px 28px rgba(80, 0, 0, .14);

  --f-heading: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body:    "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --f-hero:    var(--f-heading);

  --measure: 80ch;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: clamp(16px, .35vw + 15px, 18px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Type scale (no webfont needed) ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  color: var(--c-text-heading);
  line-height: 1.2;
  margin: 0 0 .55em;
  letter-spacing: 0;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 3.4vw + 1rem, 2.65rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 1.85rem); margin-top: 2em; }
h3 { font-size: clamp(1.12rem, .5vw + 1rem, 1.25rem); margin-top: 1.4em; font-weight: 600; }
h4 { font-size: 1.05rem; margin-top: 1.1em; font-weight: 600; }
p  { margin: 0 0 1.1em; }

a { color: var(--c-text-heading); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-primary) 40%, transparent); text-underline-offset: 2px; }
a:hover { color: var(--c-primary); text-decoration-color: var(--c-primary); }

img, figure { max-width: 100%; }
img { height: auto; display: block; }
figure { margin: 1.6rem 0; }
figure img { border-radius: var(--r-md); box-shadow: none; }

ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }

strong { font-weight: 650; color: var(--c-text-heading); }

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
}
.container--wide { max-width: 1100px; }

/* ---- Header (white bar, red brand + download) ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--c-border-soft);
  box-shadow: 0 1px 0 rgba(120, 0, 0, .04);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap;
  min-height: 60px; gap: .65rem 1rem;
  padding-top: .55rem; padding-bottom: .55rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 800; color: var(--c-primary); text-decoration: none; min-width: 0;
}
.brand:hover { color: var(--c-primary-dark); }
.brand img {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(225, 6, 0, .12);
}
.brand-name {
  font-size: .98rem; letter-spacing: .01em; color: var(--c-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.site-header__actions { display: inline-flex; align-items: center; gap: .55rem; margin-left: auto; flex-shrink: 0; }
.btn-download {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-primary); color: #fff !important;
  font-weight: 800; font-size: .88rem; letter-spacing: .02em;
  text-decoration: none !important;
  padding: .55rem 1rem; border-radius: var(--r-md);
  border: 0; min-height: 40px;
  box-shadow: 0 1px 2px rgba(225, 6, 0, .2);
}
.btn-download:hover { background: var(--c-primary-hover); color: #fff !important; }
.btn-download--lg { padding: .85rem 1.25rem; font-size: 1rem; }

/* Mobile: logo + Download only — no menu */
.nav-toggle { display: none !important; }
.site-nav { display: none; }

@media (min-width: 860px) {
  .site-nav {
    display: flex; flex-direction: row; align-items: center; width: auto;
    gap: .15rem .9rem; padding: 0; border: 0; margin-left: 1rem; order: 2;
  }
  .site-header__actions { order: 3; }
  .site-nav a {
    color: var(--c-text-muted); font-weight: 650; text-decoration: none;
    font-size: .9rem; padding: .35rem .15rem; border-radius: var(--r-sm);
  }
  .site-nav a:hover,
  .site-nav a[aria-current="page"] { color: var(--c-primary); }
}

/* ---- Article shell ---- */
.page-article {
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.page-article h1 {
  margin-bottom: .35em;
  color: var(--c-text-heading);
  font-size: clamp(2rem, 3.2vw + 1.1rem, 2.75rem);
  font-weight: 800;
  max-width: 26ch;
}

/* Byline directly under H1 */
.byline {
  color: var(--c-text-muted);
  font-size: .96rem;
  margin: 0 0 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--c-border-soft);
}
.byline-author, .byline-reviewer { color: var(--c-text); font-weight: 650; }

/* Hero figure under byline */
.page-hero { margin: 0 0 2rem; }
.page-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow-md); }

/* Intro block */
.page-intro { font-size: 1.06em; color: var(--c-text); margin-bottom: 2rem; }
.page-intro > p:first-child { font-size: 1.12em; line-height: 1.55; }

/* Definition blockquote (the `>` markdown block used at the top of pages) */
.page-intro blockquote, blockquote {
  margin: 1.6rem 0;
  padding: 1.1rem 1.3rem;
  background: var(--c-bg-soft);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-md);
  color: var(--c-text);
  box-shadow: none;
}
blockquote p { margin: 0; }
blockquote strong { color: var(--c-text-heading); }

/* H2 section cards */
.page-section {
  margin: 2.2rem 0;
  padding: 0;
}
.page-section h2 {
  scroll-margin-top: 80px;
}
.page-section h3 {
  scroll-margin-top: 80px;
}

/* Inline images within sections */
.page-inbody { margin: 1rem 0 1.6rem; }
.page-inbody img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); box-shadow: none; border: 1px solid var(--c-border-soft); }

/* Tables */
.page-section table, article table {
  width: 100%; border-collapse: collapse;
  margin: 1.4rem 0; font-size: .96em;
  background: var(--c-bg-alt);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border-soft);
}
.page-section thead, article thead { background: var(--c-bg-soft); }
.page-section th, article th { text-align: left; font-weight: 650; color: var(--c-text); padding: .75rem .95rem; border-bottom: 1px solid var(--c-border); }
.page-section td, article td { padding: .7rem .95rem; border-bottom: 1px solid var(--c-border-soft); vertical-align: top; }
.page-section tr:last-child td, article tr:last-child td { border-bottom: none; }

/* Inline source links (max 3 per page). Subtle, not screaming. */
a[rel*="nofollow"] {
  color: var(--c-primary-dark);
  text-decoration: underline;
  text-decoration-style: solid;
  font-size: .92em;
}
a[rel*="nofollow"]:hover { color: var(--c-primary-dark); text-decoration: underline; }

/* Limitations section -- visually distinct, soft accent */
.page-limitations {
  margin-top: 2.4rem;
  padding: 1.2rem 1.4rem 1rem;
  background: #F0F0F0;
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-md);
}
.page-limitations h2 { margin-top: 0; color: var(--c-text-heading); font-size: 1.15rem; font-weight: 700; }
.page-limitations ul { margin-bottom: 0; color: var(--c-text); }

/* FAQ accordion */
.page-faq h2 { margin-top: 2.4rem; }
.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  margin: .65rem 0;
  background: var(--c-bg-alt);
  box-shadow: none;
  overflow: hidden;
}
.faq-item > summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--c-text);
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%;
  width: .55rem; height: .55rem;
  border-right: 2px solid var(--c-text-muted);
  border-bottom: 2px solid var(--c-text-muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .18s ease;
}
.faq-item[open] > summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-answer { padding: 0 1.1rem 1.1rem; color: var(--c-text-muted); }
.faq-answer p { margin: 0; }

/* Footer — grouped columns */
.site-footer {
  border-top: 1px solid var(--c-border-soft);
  background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
  padding: 2.6rem 0 2rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem 1.4rem;
  margin-bottom: 1.4rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.footer-brand .brand { font-size: 1rem; color: var(--c-text-heading); }
.footer-brand .brand-name { color: var(--c-text-heading); }
.footer-tagline { color: var(--c-text-muted); margin: 0; max-width: 42ch; font-size: .92rem; line-height: 1.55; }
.footer-col { display: flex; flex-direction: column; gap: .45rem; }
.footer-heading { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .35rem; color: var(--c-text-heading); }
.footer-col a { color: var(--c-text-muted); text-decoration: none; font-weight: 500; font-size: .92rem; }
.footer-col a:hover { color: var(--c-primary); }
.footer-legal { color: var(--c-text-muted); font-size: .84rem; margin: 0; padding-top: .6rem; border-top: 1px solid var(--c-border-soft); }

/* ---- Cinematic scan hero (full-bleed promo + scan) ---- */
.scan-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #4a0000;
  margin: 0 0 1.75rem;
  min-height: clamp(420px, 68vw, 560px);
}
.scan-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.scan-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.scan-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(55, 0, 0, .88) 0%, rgba(55, 0, 0, .55) 42%, rgba(20, 0, 0, .35) 70%, rgba(10, 0, 0, .55) 100%),
    linear-gradient(180deg, rgba(30, 0, 0, .2) 0%, rgba(10, 0, 0, .72) 100%);
  pointer-events: none;
}
.scan-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(1.4rem, 4vw, 2.6rem) 0 clamp(1.6rem, 4.5vw, 2.8rem);
}
.scan-hero__content h1 {
  color: #fff;
  max-width: 16ch;
  margin: 0 0 .55em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
  font-size: clamp(1.85rem, 3.4vw + 1rem, 2.75rem);
}
.scan-hero__content .lead {
  color: rgba(255, 255, 255, .9);
  max-width: 40rem;
  margin: 0 0 1rem;
  font-size: clamp(1rem, .4vw + .95rem, 1.12rem);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.scan-hero .byline {
  color: rgba(255, 255, 255, .78);
  border-bottom-color: rgba(255, 255, 255, .18);
}
.scan-hero .byline-author,
.scan-hero .byline-reviewer { color: #fff; }
.scan-hero .web-scan {
  margin: 0;
  max-width: 28rem;
}
.scan-hero .web-scan__panel {
  background: rgba(12, 12, 12, .62);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 36px rgba(0, 0, 0, .35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .scan-hero__media img { animation: none; }
}
.scan-hero-more { margin: .35rem 0 1.25rem; }
.scan-hero-more a { font-weight: 650; color: var(--c-primary); }

/* ---- Web scan widget (compact upload; same markup for all clients) ---- */
.scan-lead { font-size: 1.05rem; color: var(--c-text); margin: 0 0 .75rem; max-width: 42rem; }
.lead-after { margin: 0 0 1.25rem; max-width: 42rem; color: var(--c-text); font-size: 1.05rem; line-height: 1.55; }
.web-scan { margin: 0 0 1rem; }
.web-scan__panel {
  background: var(--c-scan-dark);
  color: #fff;
  border-radius: var(--r-md);
  padding: .85rem .9rem .75rem;
  box-shadow: var(--shadow-sm);
}
.upload-zone {
  position: relative;
  border: 2px dashed rgba(255,255,255,.28);
  border-radius: var(--r-md);
  min-height: 0;
  padding: .85rem .7rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; cursor: pointer;
  background: radial-gradient(circle at 30% 20%, rgba(225,6,0,.35), transparent 55%), #1a1a1a;
  transition: border-color .2s ease;
}
.upload-zone.is-drag, .upload-zone:focus-visible { border-color: var(--c-accent); outline: none; }
.upload-zone.disabled { opacity: .55; cursor: not-allowed; }
.upload-zone.is-busy .upload-zone__idle { display: none; }
.upload-zone__idle {
  display: flex; flex-direction: column; align-items: center; gap: .65rem; width: 100%;
}
.upload-zone__title { margin: 0; font-weight: 750; font-size: .98rem; color: #fff; }
.btn-scan {
  appearance: none; border: 0; cursor: pointer; font-weight: 750; font-size: .92rem;
  border-radius: var(--r-md); min-height: 42px; padding: .6rem 1.25rem;
  background: var(--c-accent); color: #041604;
}
.web-scan__note { margin: .55rem 0 0; font-size: .8rem; color: rgba(255,255,255,.7); line-height: 1.4; text-align: center; }
.web-scan__note a { color: var(--c-accent); }

.scan-loader { text-align: center; padding: .75rem 0 .2rem; }
.scan-loader__frame {
  position: relative; width: min(140px, 42vw); aspect-ratio: 5/7; margin: 0 auto .55rem;
  border-radius: 8px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(57,255,20,.35), 0 0 18px rgba(57,255,20,.12);
}
.scan-loader__line {
  position: absolute; left: 8%; right: 8%; height: 2px; background: var(--c-accent);
  box-shadow: 0 0 12px var(--c-accent); animation: scanSweep 1.4s ease-in-out infinite;
}
.scan-loader__corners {
  position: absolute; inset: 8px;
  border: 2px solid transparent; border-radius: 6px;
  background:
    linear-gradient(#121212,#121212) padding-box,
    linear-gradient(135deg, var(--c-accent), transparent 40%, transparent 60%, var(--c-accent)) border-box;
  opacity: .55; pointer-events: none;
}
.scan-loader__text { margin: 0; font-weight: 750; color: #fff; font-size: .92rem; }
@keyframes scanSweep {
  0% { top: 12%; opacity: .3; }
  50% { opacity: 1; }
  100% { top: 84%; opacity: .3; }
}

.result-area { margin-top: 1rem; outline: none; }
.scan-result {
  display: grid; grid-template-columns: 96px 1fr; gap: .9rem;
  background: #1e1e1e; border: 1px solid rgba(57,255,20,.25);
  border-radius: var(--r-md); padding: .9rem;
}
.scan-result--empty { grid-template-columns: 1fr; }
.scan-result__media img { width: 96px; height: auto; border-radius: 6px; }
.scan-result__label { margin: 0; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.scan-result h3 { margin: .2rem 0 .35rem; color: #fff; font-size: 1.15rem; }
.scan-result h3 span { color: rgba(255,255,255,.65); font-weight: 600; }
.scan-result__meta { margin: 0 0 .45rem; color: rgba(255,255,255,.7); font-size: .9rem; }
.scan-result__price { margin: 0; font-size: 1.55rem; font-weight: 800; color: var(--c-accent); line-height: 1.1; }
.scan-result__graded { margin: .25rem 0 0; color: #f0d38a; font-size: .92rem; }
.scan-result__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.scan-result__actions .btn-primary {
  background: var(--c-accent); color: #041604; border: 0; text-decoration: none;
  padding: .65rem .9rem; border-radius: var(--r-md); font-weight: 750;
}
.web-scan .btn-secondary,
.scan-result__actions .btn-secondary,
.scan-gate .btn-secondary,
.page-article .web-scan .btn-secondary {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.45) !important;
  text-decoration: none;
  padding: .65rem .9rem;
  border-radius: var(--r-md);
  font-weight: 650;
}
.web-scan .btn-secondary:hover,
.scan-result__actions .btn-secondary:hover,
.scan-gate .btn-secondary:hover {
  color: #fff !important;
  border-color: #fff !important;
}
.scan-result__remaining { margin: .65rem 0 0; font-size: .85rem; color: rgba(255,255,255,.65); }
.scan-alts { margin-top: .75rem; font-size: .9rem; color: rgba(255,255,255,.75); }
.scan-alts ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.scan-alts a { color: var(--c-accent); }
.scan-gate { margin-top: .75rem; padding: .9rem; border-radius: var(--r-md); background: #1e1e1e; }
.scan-gate .btn { margin: .35rem .35rem 0 0; display: inline-flex; }

.scan-featured { margin: 0 0 1.6rem; }
.scan-featured img {
  width: 100%; height: auto; border-radius: var(--r-md);
  box-shadow: var(--shadow-md); background: #5a0000;
}
.btn.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn.btn-primary:hover { background: var(--c-primary-hover); }

/* Defer hidden sections to keep LCP tight */
.below-fold { content-visibility: auto; contain-intrinsic-size: 800px; }

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 0 1.1rem; }
  .page-article { padding-top: 1.6rem; }
  .page-hero img, .page-inbody img { border-radius: var(--r-md); }
  .page-section table, article table { font-size: .9em; }
  .page-section th, .page-section td, article th, article td { padding: .55rem .65rem; }
}

/* Respect users who actively pick reduced motion. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =====================================================
 * LANDING-PAGE COMPONENTS
 * Used by homepage / money pages / pillar pages (anything routed
 * through money_page_renderer.py). Niche-agnostic structural CSS;
 * colors come from the same palette as article pages.
 * ===================================================== */

.lp-hero {
  position: relative;
  padding: 0;
  background: var(--c-hero-navy);
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(340px, 44vw, 420px);
}
.lp-hero .container--wide {
  position: relative;
  z-index: 2;
  min-height: clamp(340px, 44vw, 420px);
  display: flex;
  align-items: flex-end;
  padding-top: 0;
  padding-bottom: 0;
}
.lp-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: end;
  width: 100%;
  min-height: clamp(340px, 44vw, 420px);
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
}
.lp-hero__copy,
.lp-hero__image {
  grid-column: 1;
  grid-row: 1;
}
.lp-hero__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 640px;
  align-self: end;
}
.lp-hero__copy h1 {
  font-family: var(--f-hero);
  font-size: clamp(1.95rem, 3.2vw + 1rem, 2.65rem);
  font-weight: 800;
  font-style: normal;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
  line-height: 1.15;
  margin: 0 0 .55em;
  letter-spacing: 0;
}
.lp-hero__copy .lead {
  font-size: clamp(1rem, .5vw + 1rem, 1.12rem);
  color: rgba(255, 255, 255, .88);
  margin: 0 0 1.5rem;
  line-height: 1.65;
}
.lp-hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.lp-hero__trust {
  font-size: .88rem;
  color: rgba(255, 255, 255, .72);
  margin: 0;
}
.lp-hero__image {
  position: relative;
  z-index: 0;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  min-height: clamp(340px, 44vw, 420px);
  border-radius: 0;
  overflow: hidden;
  background: var(--c-hero-navy);
  box-shadow: none;
  pointer-events: none;
}
.lp-hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, .88) 0%, rgba(26, 48, 80, .72) 55%, rgba(13, 31, 60, .85) 100%);
  z-index: 1;
  pointer-events: none;
}
.lp-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(340px, 44vw, 420px);
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

/* Buttons — orange primary per design spec */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.5rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .92rem;
  font-family: var(--f-body);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--c-primary-dark);
  color: #fff;
  border-color: var(--c-primary-dark);
}
.btn-primary:hover {
  background: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
  color: #fff;
}
.btn-secondary {
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
}
.btn-secondary:hover {
  background: rgba(0, 0, 0, .72);
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.lp-cta .btn-secondary,
.lp-cta--mid .btn-secondary,
.page-article .btn-secondary {
  background: transparent;
  color: var(--c-text-heading);
  border-color: var(--c-border);
}
.lp-cta .btn-secondary:hover,
.lp-cta--mid .btn-secondary:hover,
.page-article .btn-secondary:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: transparent;
}

.lp-section-title {
  text-align: left;
  font-size: clamp(1.45rem, 1.4vw + 1rem, 1.85rem);
  font-weight: 700;
  color: var(--c-text-heading);
  margin: 0 0 1.5rem;
  letter-spacing: 0;
}

.lp-features { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--c-section); }
.lp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.lp-card {
  background: var(--c-bg-alt);
  border: none;
  border-radius: var(--r-md);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-md);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.lp-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--c-primary) 14%, #fff);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .85rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.lp-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .4em; color: var(--c-text-heading); }
.lp-card p  { color: var(--c-text-muted); margin: 0; font-size: .92rem; line-height: 1.6; }

/* Numbered steps */
.lp-how { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--c-bg-alt); }
.lp-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.lp-steps li {
  counter-increment: step;
  position: relative;
  padding: 1.15rem 1.3rem 1.15rem 3.75rem;
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.lp-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  width: 1.85rem; height: 1.85rem;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .88rem;
}
.lp-steps li strong { display: block; margin-bottom: .25em; font-size: 1rem; color: var(--c-text-heading); }
.lp-steps li p { margin: 0; color: var(--c-text-muted); font-size: .94rem; }

.lp-best-for { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--c-section); }
.lp-best-for__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.lp-best-for__col {
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  padding: 1.5rem;
  border: none;
  box-shadow: var(--shadow-md);
}
.lp-best-for__col h3 { font-size: 1.1rem; margin: 0 0 1rem; color: var(--c-text-heading); }
.lp-best-for__col ul { margin: 0; padding-left: 1.2rem; }
.lp-best-for__col li { margin-bottom: .5em; color: var(--c-text-muted); }
.lp-best-for__col li::marker { color: var(--c-accent); }

/* Evidence / trust strip */
.lp-evidence { padding: clamp(2.5rem, 4vw, 4rem) 0; }
.lp-evidence__stat {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.lp-evidence__big {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem);
  font-weight: 800;
  color: var(--c-text-heading);
  letter-spacing: 0;
  margin: 0 0 .5rem;
}
.lp-evidence__body { color: var(--c-text-muted); margin: 0; }

.lp-faq { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--c-bg-alt); }
.lp-faq__inner { max-width: 760px; margin: 0 auto; }

.lp-cta {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
  background: var(--c-section);
  border-top: 1px solid var(--c-border);
}
.lp-cta h2 {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  font-weight: 700;
  color: var(--c-text-heading);
  margin: 0 0 .6em;
}
.lp-cta__sub {
  color: var(--c-text-muted);
  margin: 0 auto 1.6rem;
  font-size: 1.05rem;
  max-width: 52ch;
}
.lp-cta__buttons { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Byline inside the LP hero (subtle, doesn't compete with H1) */
.lp-byline {
  color: var(--c-text-muted);
  font-size: .92rem;
  margin: 1rem 0 0;
}

/* Article body inside the LP shell -- inherits .page-section / .page-intro /
 * .page-limitations from the article CSS above, so internal links, tables,
 * blockquotes, sources etc. all work exactly the same. The wrapper only
 * adjusts spacing so the body sits cleanly between the cards strip and
 * the explore/FAQ blocks. */
.lp-article {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: var(--c-bg-alt);
}
.lp-body-section { margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem); }
.lp-body-section.page-intro { background: transparent; padding: 0; border: 0; }
.lp-body-section.page-section { background: transparent; padding: 0; border: 0; }

/* Mid-page CTA (lighter than the bottom one) */
.lp-cta--mid {
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  margin: 2rem 0;
  padding: clamp(2rem, 4vw, 3rem) 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
}
.lp-cta--mid .container { text-align: center; max-width: 720px; }
.lp-cta--mid h2 {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  margin: 0 0 .6em;
}

/* Explore grid (hub-and-spoke internal links from link_planner). Same
 * card aesthetic as feature cards but with clear "tile" affordance. */
.lp-explore { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--c-section); }
.lp-explore__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.lp-explore__tile {
  display: block;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: var(--c-text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: var(--shadow-sm);
}
.lp-explore__tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-primary);
  color: var(--c-text);
  text-decoration: none;
}
.lp-explore__label {
  display: block;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-text-heading);
  margin-bottom: .3em;
}
.lp-explore__title {
  display: block;
  color: var(--c-text-muted);
  font-weight: 600;
  font-size: .96rem;
  line-height: 1.45;
}

/* SCREENSHOT GALLERY (comparison/best-of/feature pages) */
.page-screenshots {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0;
}
.lp-screenshots { background: var(--c-bg-alt); }
.page-screenshots h2 {
  font-family: var(--f-heading);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin: 0 0 .35em;
  letter-spacing: -.015em;
}
.page-screenshots__lede {
  color: var(--c-text-muted);
  margin: 0 0 1.5rem;
  max-width: 64ch;
}
.screenshot-grid {
  display: grid;
  gap: clamp(1rem, 1.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.screenshot-card {
  margin: 0;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, rgba(0,0,0,.08));
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.screenshot-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 6px 24px rgba(0,0,0,.08));
}
.screenshot-card a { display: block; }
.screenshot-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.screenshot-card figcaption {
  padding: .65rem .85rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.screenshot-card__badge {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-primary-dark);
  font-weight: 700;
}
.screenshot-card__name {
  font-weight: 600;
  color: var(--c-text-heading);
}

.content-inset,
.content-inset.entity-inset,
.entity-block,
.comparison-table,
.rec-box[data-gpt-enhance="1"],
.fit-grid[data-gpt-enhance="1"],
.lp-explore[data-gpt-enhance="1"],
.gpt-bottom-cta[data-gpt-enhance="1"],
.quick-recommendation[data-gpt-enhance="1"],
.quick-answer[data-gpt-enhance="1"] {
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

.content-inset,
.content-inset.entity-inset {
  margin: 1.6rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-primary-dark);
  border-radius: var(--r-md);
}
.content-inset .entity-block p,
.content-inset .first-party-note { margin: 0; }
.content-inset .comparison-table table { margin: 0; width: 100%; }

/* Content callouts & related links */
.fit-grid { padding: clamp(1.5rem, 3vw, 2.5rem) 0; background: var(--c-section); }
.fit-grid__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.fit-col {
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.fit-col h3 { margin-top: 0; font-size: 1rem; }
.fit-col ul { margin: 0; padding-left: 1.2rem; }
.rec-box { padding: clamp(2rem, 4vw, 3rem) 0; background: var(--c-bg-alt); }
.rec-box h2 { margin-top: 0; }
.rec-box h3 { font-size: .95rem; margin-top: 1.2em; }
.rec-box .btn { margin-top: .5rem; }

.quick-recommendation,
.quick-answer,
.gpt-quick-answer,
.gpt-quick-rec,
.gpt-entity-block,
.entity-block,
.gpt-first-party,
.first-party-note,
.gpt-comparison-table,
.comparison-table,
.rec-box[data-gpt-enhance="1"],
.fit-grid[data-gpt-enhance="1"],
.lp-explore[data-gpt-enhance="1"],
.gpt-bottom-cta[data-gpt-enhance="1"] {
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

.quick-recommendation,
.quick-answer,
.gpt-quick-answer,
.gpt-quick-rec,
.gpt-entity-block,
.entity-block,
.gpt-first-party,
.first-party-note,
.gpt-comparison-table,
.comparison-table {
  margin: 1.6rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-primary-dark);
  border-radius: var(--r-md);
}
.quick-recommendation p,
.quick-answer p,
.gpt-quick-answer p,
.gpt-quick-rec p,
.gpt-entity-block p,
.entity-block p,
.gpt-first-party p,
.first-party-note p { margin: 0; }
.gpt-comparison-table table,
.comparison-table table { margin: 0; width: 100%; }

/* Homepage silo hub boxes */
.lp-silo-hubs { padding: clamp(3rem, 5vw, 5rem) 0; background: var(--c-section); }
.lp-silo-hubs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.lp-silo-hub {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.lp-silo-hub h3 { margin: 0 0 .65rem; font-size: 1.15rem; }
.lp-silo-hub h3 a { color: var(--c-text-heading); text-decoration: none; }
.lp-silo-hub h3 a:hover { color: var(--c-primary-dark); text-decoration: underline; }
.lp-silo-hub ul { margin: 0; padding-left: 1.1rem; font-size: .95rem; }
.lp-silo-hub li { margin-bottom: .35em; }

/* About / brand facts */
.brand-facts__eyebrow {
  margin: -.35rem 0 1.4rem;
  color: var(--c-text-muted, var(--c-text));
  font-size: .95rem;
  max-width: 42rem;
}
.brand-facts__list {
  margin: 2rem 0;
  padding: 1.25rem 1.4rem;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.brand-facts__list dt {
  margin: 1rem 0 .25rem;
  font-weight: 650;
  color: var(--c-text-heading);
  font-size: .92rem;
  text-transform: none;
}
.brand-facts__list dt:first-child { margin-top: 0; }
.brand-facts__list dd {
  margin: 0 0 .15rem;
  color: var(--c-text);
  line-height: 1.5;
}
.brand-facts__links ul {
  columns: 1;
}
@media (min-width: 720px) {
  .brand-facts__links ul { columns: 2; column-gap: 2rem; }
}

/* Tap-to-reveal support email (privacy / terms / brand facts) */
.contact-reveal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem .9rem;
  margin: .85rem 0 0;
}
.contact-reveal__btn {
  cursor: pointer;
}
.contact-reveal__btn:disabled {
  opacity: .85;
  cursor: default;
}
.contact-reveal__result a {
  font-weight: 600;
  word-break: break-all;
}

/* Mobile reflow */
@media (max-width: 760px) {
  .lp-hero__grid { min-height: clamp(360px, 72vw, 480px); padding: clamp(2rem, 8vw, 3rem) 0; }
  .lp-hero__image { min-height: clamp(360px, 72vw, 480px); }
  .lp-hero__image img { min-height: clamp(360px, 72vw, 480px); }
  .lp-hero .container--wide { min-height: clamp(360px, 72vw, 480px); }
  .lp-hero__copy h1 { font-size: clamp(1.75rem, 6vw, 2.1rem); }
  .lp-section-title { font-size: clamp(1.35rem, 5vw, 1.6rem); }
  .screenshot-grid { grid-template-columns: 1fr; }
  .site-nav { gap: .55rem .85rem; }
}
