/* RiseReps blog — shares tokens with index.html */
:root {
  --cream: #f4efe5;
  --cream-soft: #faf6ee;
  --ink: #14141a;
  --ink-soft: #2c2c33;
  --muted: #5a5750;
  --line: rgba(20, 20, 26, 0.1);
  --gold: #c4a94d;
  --gold-deep: #8b7632;
  --graphite: #0e0e10;
  --shadow-soft: 0 16px 40px rgba(20, 18, 10, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --wrap: 1140px;
  --read: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.7;
  overflow-x: hidden;
}
::selection { background: rgba(196, 169, 77, 0.35); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.read { width: min(var(--read), calc(100% - 32px)); margin: 0 auto; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 239, 229, 0.86);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand-mark { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-mark .accent { color: var(--gold-deep); }
.nav-links { display: flex; gap: 26px; font-size: 0.94rem; font-weight: 600; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-deep); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--graphite); color: var(--cream);
  font-weight: 700; font-size: 0.9rem; white-space: nowrap;
}
.nav-cta svg { width: 14px; height: 17px; fill: currentColor; }

/* ---------- Article header ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.18em; font-size: 0.9rem;
  color: var(--gold-deep);
}
.kicker .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 0 4px rgba(196,169,77,0.18); }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.post-head { padding: 56px 0 28px; }
.post-head h1 {
  margin-top: 14px;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.06; letter-spacing: -0.035em;
}
.dek { margin-top: 18px; font-size: 1.15rem; color: var(--ink-soft); line-height: 1.6; }
.meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.88rem; color: var(--muted); }
.meta span + span::before { content: "·"; margin-right: 18px; color: var(--gold-deep); }

/* ---------- Body ---------- */
.post-body { padding-bottom: 40px; }
.post-body > * + * { margin-top: 1.15em; }
.post-body h2 {
  margin-top: 2.2em; font-size: clamp(1.55rem, 3.2vw, 2rem);
  line-height: 1.15; letter-spacing: -0.03em; scroll-margin-top: 90px;
}
.post-body h3 { margin-top: 1.8em; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; scroll-margin-top: 90px; }
.post-body p, .post-body li { font-size: 1.06rem; color: var(--ink-soft); }
.post-body strong { color: var(--ink); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: 0.45em; }
.post-body li::marker { color: var(--gold-deep); }
.post-body a:not(.store-badge):not(.button) {
  color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.post-body a:not(.store-badge):not(.button):hover { color: var(--gold-deep); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.answer {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow-soft);
}
.answer .label {
  display: block; font-family: "Bebas Neue", sans-serif; letter-spacing: 0.16em;
  font-size: 0.85rem; color: var(--gold-deep); margin-bottom: 6px;
}
.answer p { color: var(--ink); }

.toc { background: var(--cream-soft); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 24px; }
.toc strong { display: block; font-size: 0.95rem; margin-bottom: 8px; }
.toc ol { padding-left: 1.2em; }
.toc li { font-size: 0.97rem; }
.toc a { text-decoration: none !important; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
th { background: var(--cream-soft); font-weight: 700; color: var(--ink); font-size: 0.86rem; }
tr:last-child td { border-bottom: 0; }
tr.win td { background: rgba(196, 169, 77, 0.1); }
td strong { color: var(--ink); }

.tip { background: rgba(196, 169, 77, 0.12); border-radius: 14px; padding: 16px 18px; }
.tip p { color: var(--ink); font-size: 1rem; }

/* ---------- CTA card ---------- */
.cta-card {
  position: relative; overflow: hidden;
  background: var(--graphite); color: var(--cream);
  border-radius: var(--radius-lg); padding: 28px 26px;
  display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center;
  box-shadow: 0 30px 60px rgba(12, 12, 14, 0.25);
  margin: 2.2em 0;
}
.cta-card::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(196,169,77,0.25), transparent 65%); pointer-events: none;
}
.cta-card .kicker { color: var(--gold); }
.cta-card h3, .cta-card .cta-title { color: var(--cream); font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.02em; margin-top: 6px; font-weight: 800; }
.cta-card p { color: rgba(244, 239, 229, 0.78) !important; font-size: 0.98rem !important; margin-top: 8px; }
.cta-card img.cta-shot { width: 120px; border-radius: 18px; box-shadow: 0 16px 34px rgba(0,0,0,0.4); }
.cta-actions { margin-top: 16px; position: relative; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 22px;
  border-radius: 14px; background: #fff; color: var(--graphite);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25); transition: transform 180ms ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 24px; height: 29px; fill: var(--graphite); flex: none; }
.store-badge .badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { font-size: 0.66rem; font-weight: 500; opacity: 0.8; }
.store-badge strong { font-size: 1.12rem; font-weight: 700; color: inherit !important; }
.store-badge.dark { background: var(--graphite); color: #fff; }
.store-badge.dark svg { fill: #fff; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; margin-top: 1.2em; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 1.02rem;
  display: flex; justify-content: space-between; gap: 16px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold-deep); font-size: 1.2rem; line-height: 1; transition: transform 200ms ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 20px 18px; }
.faq-item .faq-answer p { font-size: 1rem; }

/* ---------- Sources ---------- */
.sources { font-size: 0.9rem; }
.sources li, .sources p { font-size: 0.9rem !important; color: var(--muted) !important; }

/* ---------- Final CTA + related ---------- */
.final { text-align: center; padding: 72px 0; background: var(--cream-soft); border-top: 1px solid var(--line); }
.final h2 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.035em; line-height: 1.08; max-width: 18ch; margin: 12px auto 0; }
.final p { margin: 16px auto 0; max-width: 34rem; color: var(--ink-soft); font-size: 1.05rem; }
.final .store-badge { margin-top: 26px; }
.final-note { margin-top: 14px !important; font-size: 0.86rem !important; color: var(--muted) !important; }

.related { padding: 64px 0; }
.related h2 { font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: 22px; }

/* ---------- Blog index cards ---------- */
.blog-hero { padding: 64px 0 36px; }
.blog-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.04em; line-height: 1.02; margin-top: 12px; max-width: 16ch; }
.blog-hero p { margin-top: 16px; font-size: 1.12rem; color: var(--ink-soft); max-width: 38rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 80px; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 26px 56px rgba(20,18,10,0.13); }
.post-card .kicker { font-size: 0.8rem; }
.post-card h3 { margin-top: 10px; font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.02em; }
.post-card p { margin-top: 10px; font-size: 0.96rem; color: var(--ink-soft); flex: 1; }
.post-card .more { margin-top: 16px; font-weight: 700; font-size: 0.92rem; color: var(--gold-deep); }

/* ---------- Footer ---------- */
footer { padding: 44px 0 52px; border-top: 1px solid var(--line); background: var(--cream); }
.footer-top { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-about { max-width: 38rem; color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { margin-top: 26px; color: var(--muted); font-size: 0.86rem; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .post-head { padding-top: 36px; }
  .cta-card { grid-template-columns: 1fr; padding: 24px 20px; }
  .cta-card img.cta-shot { display: none; }
  .post-body p, .post-body li { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-card, .store-badge { transition: none; }
}
