/* =========================================================================
   Cash Rvyn — Marketing site
   Editorial / personal-finance comparison heritage (Bankrate, NerdWallet).
   Bigger type, hand-drawn spot illustrations, asymmetric grid, human-look
   micro-details (Updated dates, Editor's Pick ribbon, Most asked tags).
   ========================================================================= */

@font-face {
  font-family: "Work Sans";
  src: url("/fonts/WorkSans-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* -------- Tokens -------- */
:root {
  /* surfaces */
  --bg: #ffffff;
  --bg-alt: #faf6ef;        /* warm off-white */
  --bg-warm: #fdf3e3;       /* warmer cream */
  --bg-mint: #eaf5ee;       /* mint */
  --bg-sky: #eaf1fa;        /* light blue */
  --bg-soft: #fff4e5;       /* light orange tint */
  --surface: #ffffff;

  /* text */
  --text: #0e1014;
  --text-strong: #06070a;
  --text-secondary: #5b616e;
  --text-muted: #8a8f9a;
  --text-on-brand: #0e1014;

  /* brand */
  --brand: #ff981a;
  --brand-pressed: #f9771a;
  --brand-soft: #fff4e5;
  --brand-deep: #b95a00;

  /* status */
  --trust: #1a8c5a;
  --trust-soft: #e6f4ec;
  --warn: #b95a00;
  --error: #c93434;
  --info: #1a5fa2;

  /* lines */
  --border: #e8e5df;
  --border-strong: #d6d2cb;
  --border-subtle: #f0ede7;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(14, 16, 20, 0.04), 0 1px 1px rgba(14, 16, 20, 0.03);
  --shadow-md: 0 4px 12px rgba(14, 16, 20, 0.05), 0 2px 4px rgba(14, 16, 20, 0.04);
  --shadow-lg: 0 16px 40px rgba(14, 16, 20, 0.08), 0 6px 14px rgba(14, 16, 20, 0.05);

  /* radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* layout */
  --container: 1200px;
  --container-narrow: 920px;
  --gutter: 24px;
}

/* -------- Reset / base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }

::selection { background: var(--brand); color: var(--text-on-brand); }

/* -------- Typography -------- */
.h-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
h1, .h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}
h2, .h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
h3, .h3 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text-strong);
}
h4, .h4 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-strong);
}
.lede {
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.55;
  color: var(--text-secondary);
}
.muted { color: var(--text-muted); }
.small { font-size: 15px; line-height: 1.5; }
.tiny { font-size: 13px; line-height: 1.45; color: var(--text-muted); }

/* Editorial wavy underline used on key terms — Bankrate-style flourish */
.wavy {
  background-image: linear-gradient(transparent 64%, var(--brand-soft) 64%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 4px;
  border-radius: 2px;
  position: relative;
}
.wavy::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 6px;
  background:
    radial-gradient(circle at 4px 3px, var(--brand) 1.6px, transparent 2px) 0 0/8px 6px repeat-x;
  opacity: 0.85;
}

/* -------- Layout helpers -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: var(--container-narrow); }

.section {
  padding-block: clamp(64px, 8vw, 104px);
}
.section--alt { background: var(--bg-alt); }
.section--warm { background: var(--bg-warm); }
.section--soft { background: var(--brand-soft); }

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section__head .h-eyebrow { display: inline-block; margin-bottom: 14px; }
.section__head p { margin-top: 16px; color: var(--text-secondary); font-size: 19px; }

/* Asymmetric heading variant — eyebrow + h2 + meta on one row */
.section__head--left {
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 32px;
  align-items: end;
  max-width: 100%;
  margin-bottom: 40px;
}
.section__head--left .meta {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .section__head--left { grid-template-columns: 1fr; }
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.06s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--brand);
  color: var(--text-on-brand);
  box-shadow: 0 1px 0 rgba(14, 16, 20, 0.05), inset 0 -2px 0 rgba(0, 0, 0, 0.06);
}
.btn--primary:hover {
  background: var(--brand-pressed);
  box-shadow: 0 8px 22px rgba(255, 152, 26, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--text); background: var(--bg-alt); }
.btn--dark {
  background: var(--text-strong);
  color: #fff;
}
.btn--dark:hover { background: #1a1d24; }
.btn--lg {
  font-size: 18px;
  padding: 18px 30px;
  border-radius: var(--r-md);
}
.btn--sm {
  font-size: 15px;
  padding: 10px 16px;
}
.btn .arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Underline text link (in-body), editorial style */
.link {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.link:hover { color: var(--brand-pressed); }

/* -------- Utility bar (top) -------- */
.utility-bar {
  background: var(--text-strong);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 24px;
}
.utility-bar__left,
.utility-bar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.utility-bar a:hover { color: #fff; }
@media (max-width: 720px) {
  .utility-bar__right { display: none; }
}

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 32px;
}
.logo { display: inline-flex; align-items: center; }
.logo img,
.logo svg { height: 36px; width: auto; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 16px;
  font-weight: 500;
}
.nav a { color: var(--text-secondary); transition: color 0.15s ease; }
.nav a:hover { color: var(--text); }

.header-cta { display: flex; align-items: center; gap: 10px; }

@media (max-width: 980px) {
  .nav { display: none; }
}

/* -------- Hero -------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 112px);
  background:
    radial-gradient(1100px 540px at 86% -10%, #ffeacb 0%, rgba(255, 244, 229, 0) 60%),
    radial-gradient(800px 420px at 8% 110%, #faf6ef 0%, rgba(250, 246, 239, 0) 60%),
    var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}
.hero__bg-asterisk {
  position: absolute;
  right: -90px;
  top: 30%;
  width: 360px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  transform: rotate(12deg);
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__content { max-width: 720px; }
.hero h1 { margin-top: 14px; }
.hero .lede { margin-top: 22px; }
.hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.hero__note strong { color: var(--text-secondary); font-weight: 600; }

/* Hero search bar — LendingTree-style entry point */
.hero__search {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}
.hero__search-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}
.hero__search-row label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  text-transform: uppercase;
}
.amount-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.amount-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.amount-pill:hover { border-color: var(--text); }
.amount-pill[aria-pressed="true"] {
  background: var(--text-strong);
  border-color: var(--text-strong);
  color: #fff;
}
.hero__search-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: stretch;
}
.hero__search-cta .zip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0 16px;
  font-size: 16px;
}
.hero__search-cta .zip input {
  flex: 1;
  border: 0;
  padding: 14px 0;
  font: inherit;
  background: transparent;
  outline: none;
  color: var(--text);
}
.hero__search-cta .zip input::placeholder { color: var(--text-muted); }
.hero__search-cta .zip svg { color: var(--text-muted); width: 18px; height: 18px; }
.hero__search-cta .btn { width: 100%; }

.hero__trust {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 15px;
  color: var(--text-secondary);
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__trust li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--trust);
}
.hero__legalish {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 540px;
}

/* Hero visual: mock match-results card */
.hero__visual { position: relative; padding-block: 12px; }
.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  position: relative;
  transform: rotate(-1.2deg);
}
.match-card__sticker {
  position: absolute;
  top: -16px;
  right: 20px;
  background: var(--brand);
  color: var(--text-on-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transform: rotate(4deg);
  box-shadow: var(--shadow-sm);
}
.match-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.match-card__head .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.match-card__head .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--trust-soft);
  color: var(--trust);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-pill);
}
.match-card__head .badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--trust);
  border-radius: 50%;
}
.match-list { display: grid; gap: 12px; margin-top: 16px; }
.match-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
}
.match-row__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.01em;
}
.match-row__name { font-weight: 600; font-size: 15px; }
.match-row__meta { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.match-row__amt {
  text-align: right;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-strong);
}
.match-row__amt .small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.match-card__footnote {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 980px) {
  .hero__bg-asterisk { width: 280px; right: -100px; top: 6%; }
}

@media (max-width: 600px) {
  .hero__search { padding: 18px; }
  .hero__search-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero__search-row label {
    font-size: 13px;
  }
  .hero__search-cta {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .amount-pill {
    padding: 10px 14px;
    font-size: 14px;
    flex: 1 0 auto;
  }
  .hero__visual { max-width: 100%; }
  .match-card { transform: none; padding: 20px; }
  .match-card__sticker {
    right: auto;
    left: 50%;
    top: -14px;
    transform: translateX(-50%) rotate(-2deg);
  }
  .match-row {
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    padding: 12px;
  }
  .match-row__logo { width: 36px; height: 36px; font-size: 13px; }
  .match-row__name { font-size: 14px; }
  .match-row__meta { font-size: 12px; }
  .match-row__amt { font-size: 14px; }
  .hero__bg-asterisk { display: none; }
}

/* -------- Stats strip -------- */
.stats {
  background: var(--text-strong);
  color: #fff;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-block: 36px;
}
.stat {
  padding: 12px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}
.stat__num .accent { color: var(--brand); }
.stat__label {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.005em;
}
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat { border-left: 0; padding-left: 0; }
}

/* -------- Featured-in strip -------- */
.featured-in {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg);
  padding-block: 32px;
}
.featured-in__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 26px;
}
.featured-in__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.featured-in__logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  color: #97928a;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.featured-in__logos span { white-space: nowrap; }

/* -------- Illustrations -------- */
.illus {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  display: block;
}
.illus--sm { max-width: 140px; }
.illus--lg { max-width: 320px; }
.illus__fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* -------- How it works -------- */
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.how__step {
  text-align: center;
  position: relative;
}
.how__step .illus { margin: 0 auto 18px; }
.how__step .num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 8px;
}
.how__step h3 { margin-bottom: 10px; font-size: 24px; }
.how__step p { color: var(--text-secondary); font-size: 17px; line-height: 1.55; }
@media (max-width: 800px) {
  .how__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* -------- Category tabs -------- */
.cat-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px;
  gap: 2px;
  flex-wrap: wrap;
}
.cat-tab {
  background: transparent;
  border: 0;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.cat-tab[aria-selected="true"] {
  background: var(--text-strong);
  color: #fff;
}
.cat-tab:hover { color: var(--text); }
.cat-tab[aria-selected="true"]:hover { color: #fff; }

[data-cat-panel] { margin-top: 32px; }

/* -------- Apps comparison -------- */
.apps__table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.apps__row {
  display: grid;
  grid-template-columns: 60px 220px 1fr 1.1fr 1fr 150px;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.apps__row:last-child { border-bottom: none; }
.apps__row--head {
  background: var(--bg-alt);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-block: 16px;
}
.apps__row--featured { background: linear-gradient(180deg, #fff8ec 0%, #ffffff 60%); }
.apps__rank {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.apps__rank-ribbon {
  background: var(--brand);
  color: var(--text-on-brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  display: inline-block;
}
.apps__app { display: flex; align-items: center; gap: 14px; }
.apps__logo {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.apps__logo--chime { background: #1ec677; }
.apps__logo--ml { background: #0028ff; }
.apps__logo--earnin { background: #00c39a; }
.apps__logo--dave { background: #000000; }
.apps__logo--brigit { background: #ff5a5f; }
.apps__name { font-weight: 600; font-size: 18px; }
.apps__cat {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.apps__best {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--brand-deep);
  font-weight: 600;
}
.apps__amount { font-weight: 700; font-size: 18px; color: var(--text-strong); }
.apps__amount .sub {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 3px;
}
.apps__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-strong);
}
.apps__rating .stars { color: var(--brand-pressed); letter-spacing: -1px; }
.apps__rating .count { font-weight: 500; color: var(--text-muted); font-size: 13px; }
.apps__row a.btn { width: 100%; }

.apps__updated {
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}
.apps__updated em { font-style: normal; color: var(--text-secondary); }

@media (max-width: 940px) {
  .apps__row--head { display: none; }
  .apps__row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px;
  }
}

/* -------- Why us — asymmetric editorial grid -------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  position: relative;
}
.why__card .illus {
  margin-bottom: 18px;
  max-width: 140px;
}
.why__card h3 { font-size: 19px; margin-bottom: 8px; }
.why__card p { font-size: 16px; color: var(--text-secondary); line-height: 1.55; }
@media (max-width: 980px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .why__grid { grid-template-columns: 1fr; }
}

/* -------- Guides grid -------- */
.guides__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}
a.guide-card:hover {
  border-color: var(--text);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.guide-card__media {
  margin-bottom: 22px;
  display: flex;
  justify-content: center;
}
.guide-card__media img { width: 100%; max-width: 150px; }
.guide-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 12px;
}
.guide-card__tag--soon { color: var(--text-muted); }
.guide-card h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.guide-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  margin: 0;
}
.guide-card__cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-strong);
  font-size: 16px;
}
.guide-card__cta svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
a.guide-card:hover .guide-card__cta { color: var(--brand-pressed); }
a.guide-card:hover .guide-card__cta svg { transform: translateX(3px); }
.guide-card--soon { background: var(--bg-alt); }
.guide-card--soon h3 { color: var(--text-secondary); }

@media (max-width: 920px) {
  .guides__grid { grid-template-columns: 1fr; }
}

/* -------- Reviews -------- */
.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.reviews__score { display: flex; align-items: center; gap: 16px; }
.reviews__score .num {
  font-size: 44px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.025em;
  line-height: 1;
}
.reviews__score .stars { color: var(--brand-pressed); font-size: 24px; letter-spacing: -1px; }
.reviews__score .count {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.review--rotate-l { transform: rotate(-0.4deg); }
.review--rotate-r { transform: rotate(0.5deg); }
.review__stars { color: var(--brand-pressed); font-size: 18px; letter-spacing: -1px; }
.review__title { font-weight: 700; font-size: 19px; margin: 10px 0 10px; line-height: 1.3; }
.review__body { font-size: 16px; color: var(--text-secondary); flex: 1; line-height: 1.6; }
.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-muted);
}
.review__author .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}
.review__author strong { font-weight: 600; color: var(--text); display: block; }
.review__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--trust);
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
}
.review__verified svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .reviews__grid { grid-template-columns: 1fr; }
  .review { transform: none !important; }
}

/* -------- FAQ -------- */
.faq__list {
  max-width: var(--container-narrow);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 24px 8px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-strong);
  text-align: left;
  letter-spacing: -0.005em;
}
.faq__q:hover { color: var(--brand-pressed); }
.faq__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  margin-left: 10px;
  vertical-align: middle;
  background: var(--bg-alt);
  color: var(--text-secondary);
}
.faq__tag--asked { background: var(--brand-soft); color: var(--brand-deep); }
.faq__tag--new { background: var(--trust-soft); color: var(--trust); }
.faq__chev {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}
.faq__item[open] .faq__chev { transform: rotate(180deg); color: var(--brand-pressed); }
.faq__a {
  padding: 0 8px 24px 0;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 80ch;
}
.faq__a p + p { margin-top: 12px; }
.faq__a a { color: var(--text-strong); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 2px; }

/* -------- Editorial byline / meta -------- */
.byline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}
.byline strong { color: var(--text-secondary); font-weight: 600; }
.byline::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--text-muted);
}

/* -------- Bottom CTA band -------- */
.cta-band {
  background: var(--text-strong);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0 var(--gutter);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 152, 26, 0.32) 0%, rgba(255, 152, 26, 0) 70%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; max-width: 520px; position: relative; }
.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 14px;
  max-width: 520px;
  font-size: 18px;
  position: relative;
}
.cta-band .btn { position: relative; z-index: 1; }
.cta-band .btn--primary {
  box-shadow: 0 10px 28px rgba(255, 152, 26, 0.38);
}

/* -------- Footer -------- */
.footer {
  background: #0a0b0e;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  padding-block: 72px 36px;
}
.footer a { color: rgba(255, 255, 255, 0.88); }
.footer a:hover { color: #fff; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand .logo { margin-bottom: 18px; }
.footer__brand .logo img,
.footer__brand .logo svg { height: 48px; }
.footer__brand p {
  line-height: 1.6;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
}

.footer__col h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 12px; }

.footer__contact {
  font-size: 15px;
  line-height: 1.75;
}
.footer__contact strong { color: #fff; font-weight: 600; }

.footer__legal {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.footer__legal-links { display: flex; gap: 22px; flex-wrap: wrap; }

.footer__disclosure {
  margin-top: 28px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}
.footer__disclosure p + p { margin-top: 10px; }
.footer__disclosure strong { color: rgba(255, 255, 255, 0.7); font-weight: 600; }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
}

/* -------- Article / guide page -------- */
.article-hero {
  padding-block: clamp(56px, 7vw, 96px) clamp(32px, 4vw, 48px);
  background:
    radial-gradient(900px 420px at 80% -10%, var(--brand-soft) 0%, rgba(255, 244, 229, 0) 60%),
    var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}
.article-hero__inner {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 56px;
  align-items: center;
}
.article-hero__content { max-width: 680px; }
.article-hero__visual { display: flex; justify-content: center; }
.article-hero__visual img { width: 100%; max-width: 280px; }
.article-hero h1 { margin-top: 14px; }
.article-hero .lede { margin-top: 18px; }
@media (max-width: 880px) {
  .article-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .article-hero__visual { order: -1; }
  .article-hero__visual img { max-width: 200px; }
}
.article__meta {
  margin-top: 24px;
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.article__meta strong { color: var(--text); font-weight: 600; margin-right: 4px; }

.article {
  padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 88px);
}
.article .container { max-width: 760px; }
.article h2 {
  margin-top: 56px;
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.article h2:first-of-type { margin-top: 0; }
.article h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 22px;
}
.article p { margin-bottom: 20px; font-size: 18px; line-height: 1.7; color: var(--text); }
.article ul, .article ol { margin: 0 0 24px 28px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: 10px; font-size: 18px; line-height: 1.65; }
.article li > strong { color: var(--text-strong); }
.article a {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 500;
}
.article a:hover { color: var(--brand-pressed); }
.article hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 56px 0;
}

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin-bottom: 48px;
}
.toc h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.toc ol {
  margin: 0;
  padding-left: 22px;
  list-style: decimal;
}
.toc li { margin-bottom: 8px; font-size: 16px; }
.toc a { color: var(--text); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--brand-pressed); text-decoration: underline; }

.callout {
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin: 36px 0;
  border-left: 4px solid;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 16px;
  align-items: start;
}
.callout svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 4px; }
.callout p { margin: 0; font-size: 16px; line-height: 1.6; }
.callout p + p { margin-top: 10px; }
.callout strong { font-weight: 700; color: var(--text-strong); }
.callout--info { background: var(--bg-sky); border-left-color: var(--info); }
.callout--info svg { color: var(--info); }
.callout--warning { background: var(--bg-soft); border-left-color: var(--warn); }
.callout--warning svg { color: var(--warn); }

.compare-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 8px 0 36px;
}
.compare-mini__row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1fr;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 15px;
}
.compare-mini__row:last-child { border-bottom: 0; }
.compare-mini__row--head {
  background: var(--bg-alt);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-block: 14px;
}
.compare-mini__row strong { color: var(--text-strong); font-weight: 600; }
@media (max-width: 760px) {
  .compare-mini__row { grid-template-columns: 1fr; gap: 8px; }
  .compare-mini__row--head { display: none; }
  .compare-mini__row > div::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
  }
}

.related-links {
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-top: 56px;
  border: 1px solid var(--border-subtle);
}
.related-links h3 { margin-bottom: 18px; font-size: 20px; }
.related-links ul { margin: 0; padding: 0; list-style: none; }
.related-links li { margin-bottom: 12px; font-size: 17px; }
.related-links a {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.related-links a:hover { color: var(--brand-pressed); }

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
