/* ============================================================
   LifeHaki — redesigned homepage (Claude Design handoff).
   Desktop-first; the @media blocks at the bottom fold in the
   mobile prototype's layout. All rules are scoped under `.lhh`
   so nothing here leaks into the rest of the site.
   Fonts (Fraunces / Urbanist / Barlow Condensed / DM Mono) are
   loaded site-wide by templates/layout.php.
   ============================================================ */

.lhh {
  --ink: #15171c;
  --text: #20242b;
  --muted: #565d68;
  --faint: #9aa0ab;
  --border: #e3e3ea;
  --track: #ececf1;
  --paper: #f5f5f9;
  --red: #ca2128;
  --red-dark: #a81a20;
  --red-soft: #fbe4e2;
  --gold: #fdc949;
  --gold-2: #e8ad2e;
  --gold-3: #c8951f;
  --gold-soft: #fef4d6;
  --green: #2f8f5b;
  --green-soft: #ddf0e3;
  --f-disp: 'Fraunces', Georgia, serif;
  --f-sans: 'Urbanist', system-ui, sans-serif;
  --f-cond: 'Barlow Condensed', sans-serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;

  width: 100%;
  overflow-x: hidden;
  font-family: var(--f-sans);
  color: var(--text);
  background: var(--paper);
}
.lhh *, .lhh *::before, .lhh *::after { box-sizing: border-box; }
.lhh img { display: block; max-width: 100%; }
.lhh ::selection { background: var(--gold); color: var(--ink); }

@keyframes lhh-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes lhh-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47,143,91,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(47,143,91,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,143,91,0); }
}

.lhh-wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ---- shared atoms -------------------------------------------------- */
.lhh-eyebrow {
  font-family: var(--f-cond); font-weight: 600; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.lhh-h2 {
  font-family: var(--f-disp); font-weight: 900;
  font-size: clamp(34px, 4.4vw, 54px); line-height: 1.0;
  letter-spacing: -.02em; color: var(--ink); margin: 0;
}
.lhh-lede { font-size: 17px; line-height: 1.5; color: var(--muted); margin: 0; }

.lhh-btn-red, .lhh-btn-gold, .lhh-btn-ghost {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-weight: 700; border-radius: 999px; border: none; cursor: pointer;
  transition: transform 120ms cubic-bezier(.16,1,.3,1), background 120ms, box-shadow 120ms;
}
.lhh-btn-red {
  background: var(--red); color: #fffdf8; padding: 15px 28px; font-size: 17px;
  box-shadow: 0 10px 26px rgba(202,33,40,.4);
}
.lhh-btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }
.lhh-btn-red.is-sm { padding: 11px 20px; font-size: 15px; box-shadow: 0 6px 18px rgba(202,33,40,.35); }
.lhh-btn-gold { background: var(--gold); color: var(--ink); padding: 13px 22px; font-size: 16px; }
.lhh-btn-gold:hover { background: #ffd970; transform: translateY(-1px); }
.lhh-btn-ghost {
  background: #fff; color: var(--ink); padding: 13px 24px; font-size: 16px;
  border: 1.5px solid var(--border); box-shadow: 0 4px 14px rgba(21,23,40,.06);
}
.lhh-btn-ghost:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(21,23,40,.10); }

.lhh-arrow-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--red);
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: gap 120ms;
}
.lhh-arrow-link:hover { gap: 12px; }

/* ===================================================================
   NAV
   =================================================================== */
.lhh-nav {
  position: relative; z-index: 5; max-width: 1240px; margin: 0 auto;
  padding: 26px 40px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.lhh-nav-logo { display: flex; align-items: center; text-decoration: none; }
.lhh-nav-logo img { height: 38px; width: auto; }
.lhh-nav-links { display: flex; align-items: center; gap: 30px; }
.lhh-nav-links a {
  font-size: 15px; font-weight: 600; color: rgba(255,255,255,.78);
  text-decoration: none; letter-spacing: .01em; transition: color 120ms;
}
.lhh-nav-links a:first-child { color: #fff; }
.lhh-nav-links a:hover { color: var(--gold); }
.lhh-nav-actions { display: flex; align-items: center; gap: 14px; }
.lhh-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px; color: #fff;
  text-decoration: none; border: none; background: transparent; cursor: pointer;
  transition: background 120ms, color 120ms;
}
.lhh-icon-btn:hover { background: rgba(255,255,255,.12); color: var(--gold); }
.lhh-nav-avatar {
  width: 42px; height: 42px; border-radius: 999px; object-fit: cover;
  border: 2px solid rgba(255,255,255,.5);
}
.lhh-nav-avatar.is-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--gold); font-weight: 800; font-size: 16px;
  text-decoration: none;
}

/* mobile header (hamburger) — hidden on desktop */
.lhh-mnav { display: none; }
.lhh-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: none; border-radius: 13px;
  background: rgba(255,255,255,.1); color: #fff; cursor: pointer; padding: 0;
}
body.lhh-noscroll { overflow: hidden; }

/* expanding search — overlays the bar when the search icon is tapped */
.lhh-msearch {
  position: absolute; inset: 9px 14px; z-index: 8;
  display: none; align-items: center; gap: 8px;
  padding: 0 6px 0 14px; border-radius: 13px;
  background: rgba(16,18,23,.97);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lhh-mnav.search-open .lhh-msearch { display: flex; }
.lhh-msearch-ico { color: rgba(255,255,255,.55); flex-shrink: 0; }
.lhh-msearch input {
  flex: 1; min-width: 0; height: 100%;
  background: transparent; border: 0; outline: none;
  color: #fff; font-family: inherit; font-size: 16px; font-weight: 600;
}
.lhh-msearch input::placeholder { color: rgba(255,255,255,.5); }

/* slide-out drawer (from the right) + dimmed overlay */
.lhh-drawer-overlay {
  position: fixed; inset: 0; z-index: 58;
  background: rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transition: opacity .26s ease;
}
.lhh-mnav.drawer-open .lhh-drawer-overlay { opacity: 1; visibility: visible; }
.lhh-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(82vw, 330px);
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
  background: #14161b; border-left: 1px solid rgba(255,255,255,.1);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.lhh-mnav.drawer-open .lhh-drawer { transform: translateX(0); box-shadow: -20px 0 50px rgba(0,0,0,.5); }
.lhh-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.lhh-drawer-title {
  font-size: 13px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
.lhh-drawer-nav a, .lhh-drawer-acct {
  display: block; padding: 13px 14px; font-size: 17px; font-weight: 700;
  color: rgba(255,255,255,.86); text-decoration: none; border-radius: 11px;
}
.lhh-drawer-nav a:hover, .lhh-drawer-acct:hover { background: rgba(255,255,255,.08); color: var(--gold); }
.lhh-drawer-sep { height: 1px; background: rgba(255,255,255,.1); margin: 8px 6px; }
.lhh-drawer-signout {
  width: 100%; text-align: left; padding: 13px 14px;
  font-size: 16px; font-weight: 700; color: rgba(255,255,255,.66);
  background: transparent; border: 0; border-radius: 11px; cursor: pointer;
}
.lhh-drawer-signout:hover { background: rgba(255,255,255,.08); color: #fff; }
.lhh-drawer-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; background: var(--red); color: #fffdf8; padding: 14px;
  border-radius: 12px; font-size: 16px; font-weight: 700; text-decoration: none;
}
.lhh-drawer-cta:hover { background: var(--red-dark); color: #fffdf8; }

/* ===================================================================
   HERO
   =================================================================== */
.lhh-hero {
  position: relative; min-height: 94vh; overflow: hidden; background-color: var(--ink);
  display: flex; flex-direction: column;
}
.lhh-hero-bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; }
.lhh-hero-shade-a { position: absolute; inset: 0; background: linear-gradient(90deg, #000, #000000da, #190f0f2f); }
.lhh-hero-shade-b { position: absolute; inset: 0; background: linear-gradient(180deg, #111, rgba(17,18,22,0) 22%, rgba(17,18,22,0) 60%, rgba(17,18,22,.55) 100%); }
.lhh-hero-glow-a, .lhh-hero-glow-b { position: absolute; border-radius: 50%; pointer-events: none; }
.lhh-hero-glow-a { top: -160px; right: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(253,201,73,.22), rgba(253,201,73,0) 70%); }
.lhh-hero-glow-b { bottom: -140px; left: -100px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(202,33,40,.20), rgba(202,33,40,0) 70%); }

.lhh-hero-inner {
  position: relative; z-index: 4; flex: 1;
  max-width: 1240px; width: 100%; margin: 0 auto;
  padding: 40px 40px 84px; display: flex; align-items: center;
}
.lhh-hero-text { max-width: 620px; }
.lhh-hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 26px;
}
.lhh-pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: lhh-pulse 2.2s infinite; }
.lhh-hero-badge .lhh-eyebrow { color: var(--gold); }
.lhh-hero h1 {
  font-family: var(--f-disp); font-weight: 800; font-size: clamp(36px, 5vw, 56px);
  line-height: .98; letter-spacing: -.02em; color: #fff; margin: 0 0 22px;
}
.lhh-hero h1 .em { color: var(--gold); font-style: italic; }
.lhh-hero-sub {
  font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.82);
  margin: 0 0 34px; max-width: 520px;
}
.lhh-hero-sub .hi { color: var(--gold); font-weight: 600; }
.lhh-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.lhh-hero-stats { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.lhh-hero-stat { display: flex; align-items: center; gap: 9px; }
.lhh-hero-stat .lhh-pulse-dot { width: 8px; height: 8px; }
.lhh-hero-stat span.t { font-family: var(--f-mono); font-size: 14px; color: rgba(255,255,255,.82); }
.lhh-hero-stat-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }

/* ===================================================================
   SECTION shell
   =================================================================== */
.lhh-section { background: var(--paper); }
.lhh-section-pad { padding: 96px 40px 104px; }
/* Per-section padding tweaks (desktop). Mobile gutters handled by .lhh-narrow below. */
.lhh-feat { padding-top: 41px; }            /* "One arc…" — tightened */
.lhh-comm { padding-top: 15px; }            /* "What everyone is saying" — was 0, +15 */
.lhh-rank-sec { padding: 0 40px 40px; }     /* "Top characters ranked by you" */
.lhh-blog-sec { padding: 40px 40px 104px; } /* "From the blog" */
.lhh-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-bottom: 48px;
}
.lhh-section-head .copy { max-width: 680px; }
.lhh-section-head h2 { margin-bottom: 12px; }

/* ===================================================================
   TRENDING MARQUEE
   =================================================================== */
.lhh-trending { padding: 90px 0 96px; overflow: hidden; }
.lhh-trending .lhh-section-head { max-width: 1200px; margin: 0 auto 40px; padding: 0 40px; }
.lhh-marquee-vp {
  position: relative; overflow: hidden; cursor: grab;
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.lhh-marquee-vp.is-grabbing { cursor: grabbing; }
.lhh-marquee-track {
  display: flex; gap: 22px; width: max-content;
  padding: 30px 40px 54px; will-change: transform;
}
.lhh-poster {
  flex: none; width: 200px; display: block; text-decoration: none;
}
.lhh-poster-card {
  position: relative; aspect-ratio: 2/3; border-radius: 14px; overflow: hidden;
  background: linear-gradient(150deg, #8a63d2, #3b2a7a);
  box-shadow: 0 16px 34px rgba(21,23,40,.22); transition: box-shadow 200ms, transform 200ms;
}
.lhh-poster:hover .lhh-poster-card { box-shadow: 0 24px 48px rgba(21,23,40,.32); transform: translateY(-4px); }
.lhh-poster-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lhh-rank-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--gold); color: var(--ink); font-family: var(--f-mono);
  font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 999px;
}
.lhh-edge-l, .lhh-edge-r { position: absolute; top: 0; bottom: 0; width: 64px; pointer-events: none; z-index: 2; }
.lhh-edge-l { left: 0; background: linear-gradient(90deg, var(--paper), rgba(245,245,249,0)); }
.lhh-edge-r { right: 0; background: linear-gradient(270deg, var(--paper), rgba(245,245,249,0)); }

/* ===================================================================
   FEATURES BENTO
   =================================================================== */
.lhh-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.lhh-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 2px 14px rgba(21,23,40,.06); padding: 28px;
  transition: transform 200ms cubic-bezier(.16,1,.3,1), box-shadow 200ms;
}
.lhh-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(21,23,40,.14); }
.lhh-card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 16px;
}
.ico-red { background: var(--red-soft); color: var(--red); }
.ico-gold { background: var(--gold-soft); color: var(--gold-3); }
.ico-green { background: var(--green-soft); color: var(--green); }
.lhh-card h3 { font-family: var(--f-disp); font-weight: 700; font-size: 21px; line-height: 1.1; color: var(--ink); margin: 0 0 8px; }
.lhh-card p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }
.lhh-card-eyebrow-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }

/* A — big dark rate/review tile */
.lhh-bento-a { grid-column: span 3; grid-row: span 2; background: var(--ink); border-color: #2a2d34; color: #fff; display: flex; flex-direction: column; padding: 34px; }
.lhh-bento-a .lhh-card-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(253,201,73,.16); color: var(--gold); margin: 0; }
.lhh-bento-a .lhh-eyebrow { color: var(--gold); }
.lhh-bento-a h3 { font-weight: 900; font-size: 32px; line-height: 1.05; letter-spacing: -.01em; color: #fff; margin: 0 0 12px; }
.lhh-bento-a p { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.74); margin: 0 0 22px; max-width: 380px; }
.lhh-minirev { margin-top: auto; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px; }
.lhh-minirev-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.lhh-minirev-top b { font-weight: 700; font-size: 15px; color: #fff; }
.lhh-minirev-top span { font-family: var(--f-mono); font-size: 13px; color: var(--gold); }
.lhh-minirev-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; color: var(--gold); }
.lhh-minirev-stars span { font-family: var(--f-mono); font-size: 14px; color: #fff; margin-left: 4px; }
.lhh-minirev p { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.6); margin: 0; font-style: italic; }

.lhh-bento-b, .lhh-bento-c { grid-column: span 3; }
.lhh-bento-b h3, .lhh-bento-c h3 { font-size: 23px; margin-bottom: 14px; }
.lhh-chart-row { display: flex; align-items: center; gap: 11px; }
.lhh-chart-row + .lhh-chart-row { margin-top: 9px; }
.lhh-chart-row .rk { font-family: var(--f-mono); font-weight: 500; font-size: 14px; width: 22px; color: var(--faint); }
.lhh-chart-row.is-top .rk { color: var(--gold-3); }
.lhh-chart-row .nm { font-weight: 700; font-size: 14px; color: var(--ink); width: 88px; }
.lhh-chart-bar { flex: 1; height: 7px; background: var(--track); border-radius: 999px; overflow: hidden; }
.lhh-chart-bar i { display: block; height: 100%; background: var(--gold-3); }
.lhh-chart-row .sc { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.lhh-tier { display: flex; align-items: center; gap: 8px; }
.lhh-tier + .lhh-tier { margin-top: 6px; }
.lhh-tier-badge { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; font-family: var(--f-disp); font-weight: 900; font-size: 16px; }
.lhh-tier-badge.s { background: var(--red); color: #fff; }
.lhh-tier-badge.a { background: var(--gold-2); color: var(--ink); }
.lhh-tier-slots { flex: 1; display: flex; gap: 6px; }
.lhh-tier-slots span { flex: 1; height: 34px; border-radius: 8px; background: var(--track); border: 1px solid var(--border); }

.lhh-bento-d, .lhh-bento-e, .lhh-bento-f { grid-column: span 2; }
.lhh-bento-f { display: flex; flex-direction: column; }
.lhh-bento-f .row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lhh-score-ring { position: relative; width: 56px; height: 56px; flex: none; }
.lhh-score-ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-weight: 500; font-size: 15px; color: var(--ink); }
.lhh-chip {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  padding: 5px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--border);
}
.lhh-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.lhh-chip span { font-family: var(--f-mono); font-size: 12px; color: #353b45; }

/* G — wide blog band */
.lhh-bento-g {
  grid-column: span 6; background: linear-gradient(100deg, var(--red), var(--red-dark));
  color: #fff; border-color: var(--border); padding: 32px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.lhh-bento-g .left { display: flex; align-items: center; gap: 20px; }
.lhh-bento-g .lhh-card-ico { width: 52px; height: 52px; border-radius: 13px; background: rgba(255,255,255,.15); color: #fff; flex: none; margin: 0; }
.lhh-bento-g .eb { font-family: var(--f-cond); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #fde9b4; margin-bottom: 6px; }
.lhh-bento-g h3 { font-weight: 900; font-size: 26px; line-height: 1.05; color: #fff; margin: 0; }

/* ===================================================================
   COMMUNITY (reviews + rail)
   =================================================================== */
.lhh-community-grid { display: flex; gap: 54px; align-items: flex-start; flex-wrap: wrap; }
.lhh-review-col { flex: 1 1 540px; min-width: 0; }
.lhh-rail { flex: 0 1 340px; min-width: 300px; display: flex; flex-direction: column; gap: 48px; }
.lhh-railhead {
  font-family: var(--f-cond); font-weight: 700; font-size: 15px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red);
  display: block; margin-bottom: 8px;
}

.lhh-review {
  display: flex; gap: 20px; padding: 24px 4px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: transform 160ms cubic-bezier(.16,1,.3,1);
}
.lhh-review:hover { transform: translateX(3px); }
.lhh-review-poster {
  flex: none; align-self: flex-start; /* don't let the flex row stretch it past 2:3 */
  width: 76px; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(21,23,40,.10);
  background: linear-gradient(150deg, #8a63d2, #3b2a7a);
}
.lhh-review-poster img { width: 100%; height: 100%; object-fit: cover; }
.lhh-review-poster .scrim { width: 100%; height: 100%; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(0,0,0,.28)); }
.lhh-review-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lhh-review-title { display: flex; align-items: baseline; gap: 9px; margin-bottom: 9px; flex-wrap: wrap; }
.lhh-review-title b { font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1.2; }
.lhh-review-title .yr { font-family: var(--f-mono); font-size: 13px; color: var(--faint); }
.lhh-review-by { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; flex-wrap: wrap; }
.lhh-ava {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%; background: #7a1418; color: var(--gold);
  font-weight: 700; font-size: 11px; object-fit: cover; overflow: hidden;
}
.lhh-review-by .u { font-weight: 600; font-size: 14px; color: var(--muted); }
.lhh-stars { display: inline-flex; align-items: center; gap: 1px; color: var(--gold); }
.lhh-stars svg { display: block; } /* kill inline-svg baseline gap so the half-star lines up */
.lhh-quote { font-family: var(--f-disp); font-style: italic; font-weight: 500; font-size: 18px; line-height: 1.45; color: #3a4049; margin: 0 0 16px; text-wrap: pretty; }
.lhh-review-foot { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; }
.lhh-review-foot .n { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.lhh-review-foot .sep { width: 3px; height: 3px; border-radius: 50%; background: #c2c2cc; }

.lhh-seeall {
  display: none; align-items: center; justify-content: center; gap: 8px;
  margin-top: 24px; color: var(--red); font-weight: 700; font-size: 15px;
  text-decoration: none; padding: 13px; border: 1.5px solid var(--border);
  border-radius: 12px; background: #fff;
}
.lhh-seeall:hover { background: var(--red-soft); }

/* rail — popular lists */
.lhh-rail-lists { display: flex; flex-direction: column; gap: 26px; }
.lhh-list { display: block; text-decoration: none; transition: transform 200ms cubic-bezier(.16,1,.3,1); }
.lhh-list:hover { transform: translateY(-3px); }
.lhh-list-cover {
  position: relative; display: flex; height: 92px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(21,23,40,.10);
}
.lhh-list-cover .cell { flex: 1; background-size: cover; background-position: center; }
.lhh-list-cover .cell + .cell { border-left: 1px solid rgba(0,0,0,.25); }
.lhh-list-chip {
  position: absolute; top: 8px; left: 8px; font-family: var(--f-cond); font-weight: 700;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  background: var(--gold); padding: 3px 8px; border-radius: 999px;
}
.lhh-list h3 { font-family: var(--f-sans); font-weight: 600; font-size: 18px; line-height: 1.25; color: var(--ink); margin: 15px 0 11px; text-wrap: pretty; }
.lhh-list-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; color: var(--faint); }
.lhh-list-meta .who { color: #353b45; font-weight: 500; }
.lhh-list-meta .stat { display: inline-flex; align-items: center; gap: 4px; }

/* rail — popular otaku */
.lhh-otaku { display: flex; align-items: center; gap: 14px; padding: 16px 2px; border-bottom: 1px solid var(--border); }
.lhh-otaku:last-child { border-bottom: none; }
.lhh-otaku-ava {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--gold);
  font-family: var(--f-sans); font-weight: 800; font-size: 16px; overflow: hidden; object-fit: cover;
}
.lhh-otaku-ava.ring { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red); }
.lhh-otaku-info { flex: 1; min-width: 0; }
.lhh-otaku-info .nm { font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; display: block; }
.lhh-otaku-info .ct { font-family: var(--f-mono); font-size: 12px; color: var(--faint); margin-top: 2px; }
.lhh-follow {
  font-family: var(--f-cond); font-weight: 700; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); text-decoration: none; padding: 7px 14px;
  border: 1.5px solid var(--red); border-radius: 999px; flex: none; transition: background 120ms, color 120ms;
}
.lhh-follow:hover { background: var(--red); color: #fff; }

/* ===================================================================
   CHARACTER RANKINGS
   =================================================================== */
.lhh-ranks { display: flex; flex-direction: column; gap: 24px; }
.lhh-rank-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 36px;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 2px 14px rgba(21,23,40,.06); padding: 24px 32px 24px 372px; flex-wrap: wrap;
}
.lhh-rank-hero {
  position: absolute; left: 0; top: 0; width: 340px; height: 100%;
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(90deg, #000 46%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(90deg, #000 46%, rgba(0,0,0,0) 100%);
}
.lhh-rank-inner { display: contents; } /* mobile turns this into a padded block */
.lhh-rank-meta { flex: 1 1 280px; min-width: 240px; }
.lhh-rank-meta h3 { font-family: var(--f-sans); font-weight: 700; font-size: 25px; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin: 0 0 8px; }
.lhh-rank-meta p { font-size: 16px; line-height: 1.5; color: var(--faint); margin: 0 0 22px; }
.lhh-rank-podium { display: flex; gap: 18px; flex: none; }
.lhh-rank-slot { display: flex; flex-direction: column; align-items: center; width: 106px; }
.lhh-rank-ava { position: relative; width: 84px; height: 84px; }
.lhh-rank-ava img, .lhh-rank-ava .ph {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, #3a2a4a, #14101a);
}
.lhh-rank-ava.p1 img, .lhh-rank-ava.p1 .ph { box-shadow: 0 0 0 3px var(--gold); }
.lhh-rank-ava.p2 img, .lhh-rank-ava.p2 .ph { box-shadow: 0 0 0 3px #b8bcc4; }
.lhh-rank-ava.p3 img, .lhh-rank-ava.p3 .ph { box-shadow: 0 0 0 3px var(--red); }
.lhh-rank-num {
  position: absolute; top: -2px; left: -2px; display: inline-flex; align-items: center;
  justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  font-family: var(--f-mono); font-weight: 500; font-size: 14px; box-shadow: 0 0 0 2px #fff;
}
.lhh-rank-ava.p1 .lhh-rank-num { background: var(--gold); color: var(--ink); }
.lhh-rank-ava.p2 .lhh-rank-num { background: #b8bcc4; color: var(--ink); }
.lhh-rank-ava.p3 .lhh-rank-num { background: var(--red); color: #fff; }
.lhh-rank-slot .nm { font-weight: 700; font-size: 15px; color: var(--ink); margin-top: 12px; text-align: center; }
.lhh-rank-slot .fr { font-size: 13px; color: var(--faint); text-align: center; }
.lhh-rank-link {
  display: inline-flex; align-items: center; gap: 14px; font-weight: 700; font-size: 16px;
  color: var(--red); text-decoration: none; transition: gap 120ms;
}
.lhh-rank-link:hover { gap: 18px; }
.lhh-rank-cta-mobile { display: none; }

/* ===================================================================
   BLOG
   =================================================================== */
/* Blog cards use the site-wide .blog-card / .blog-widget__grid widget
   (lifehaki-design.css) — one shared widget across home + all pages. */

/* ===================================================================
   CTA BAND
   =================================================================== */
.lhh-cta { position: relative; background: var(--ink); padding: 92px 40px 96px; overflow: hidden; }
.lhh-cta-glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(253,201,73,.14), rgba(253,201,73,0) 68%); pointer-events: none; }
.lhh-cta-inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.lhh-cta h2 { font-family: var(--f-disp); font-weight: 900; font-size: clamp(36px, 5vw, 60px); line-height: 1.0; letter-spacing: -.02em; color: #fff; margin: 0 0 18px; }
.lhh-cta h2 .em { color: var(--gold); font-style: italic; }
.lhh-cta p { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.78); margin: 0 0 32px; }
.lhh-cta-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.lhh-cta .lhh-btn-red { padding: 16px 32px; }

/* FOOTER lives in its own site-wide stylesheet (lifehaki-footer.css) so it
   can render on every page, not just the .lhh homepage. */

/* ===================================================================
   RESPONSIVE — tablet
   =================================================================== */
@media (max-width: 1024px) {
  .lhh-bento-a { grid-column: span 6; grid-row: auto; }
  .lhh-bento-b, .lhh-bento-c { grid-column: span 6; }
  .lhh-bento-d, .lhh-bento-e, .lhh-bento-f { grid-column: span 3; }
  .lhh-community-grid { gap: 40px; }
  .lhh-rail { flex-basis: 100%; }
}

/* ===================================================================
   RESPONSIVE — mobile (matches the mobile prototype)
   =================================================================== */
@media (max-width: 768px) {
  .lhh-wrap { padding: 0 22px; }

  /* nav: hide desktop links, show hamburger header */
  .lhh-nav { display: none; }
  .lhh-mnav { display: block; position: relative; z-index: 6; }
  .lhh-mnav-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; }
  .lhh-mnav-bar .lhh-nav-logo img { height: 30px; }
  .lhh-mnav-actions { display: flex; align-items: center; gap: 4px; }

  /* hero */
  .lhh-hero { min-height: 0; }
  .lhh-hero-glow-a { top: -120px; right: -90px; width: 300px; height: 300px; }
  .lhh-hero-glow-b { display: none; }
  .lhh-hero-shade-a { background: linear-gradient(360deg, #000, #0f0c08e9, #0f0c0800, #0f0c0800); }
  .lhh-hero-shade-b { display: none; }
  .lhh-hero-inner { padding: 265px 22px 52px; }
  .lhh-hero-text { max-width: none; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .lhh-hero h1 { font-size: 32px; line-height: 1.0; margin-bottom: 18px; }
  .lhh-hero-sub { font-size: 13px; margin-bottom: 28px; }
  .lhh-hero-actions { justify-content: center; margin-bottom: 28px; }
  .lhh-hero .lhh-btn-red { font-size: 14px; padding: 13px 22px; }
  .lhh-hero-stats { flex-direction: column; align-items: flex-start; gap: 11px; }
  .lhh-hero-stat-sep { display: none; }
  .lhh-hero-stat span.t { font-size: 11px; }

  /* section padding */
  .lhh-section-pad { padding: 44px 22px 48px; }
  .lhh-section-head { display: block; margin-bottom: 22px; }
  .lhh-section-head h2 { font-size: 20px; line-height: 1.04; margin-bottom: 8px; }
  .lhh-h2 { font-size: 20px; }
  .lhh-lede { font-size: 13px; }
  .lhh-section-head .lhh-arrow-link { margin-top: 12px; font-size: 13px; }

  /* trending */
  .lhh-trending { padding: 48px 0 52px; }
  .lhh-trending .lhh-section-head { margin: 0 auto 22px; padding: 0 22px; }
  .lhh-marquee-track { gap: 14px; padding: 16px 22px 22px; }
  .lhh-poster { width: 138px; }
  .lhh-poster-card { border-radius: 12px; box-shadow: 0 12px 26px rgba(21,23,40,.22); }
  .lhh-edge-l, .lhh-edge-r { width: 36px; }

  /* bento → single column stack */
  .lhh-bento { grid-template-columns: 1fr; gap: 16px; }
  .lhh-bento-a, .lhh-bento-b, .lhh-bento-c,
  .lhh-bento-d, .lhh-bento-e, .lhh-bento-f, .lhh-bento-g { grid-column: auto; grid-row: auto; }
  .lhh-card { padding: 24px; border-radius: 18px; }
  .lhh-bento-a { padding: 26px; }
  .lhh-bento-a h3 { font-size: 18px; }
  .lhh-bento-a p { font-size: 13px; }
  .lhh-card h3 { font-size: 18px; }
  .lhh-card p { font-size: 13px; }
  .lhh-bento-b h3, .lhh-bento-c h3 { font-size: 18px; }
  .lhh-bento-g { flex-direction: column; align-items: stretch; gap: 20px; padding: 26px; }
  .lhh-bento-g h3 { font-size: 18px; }
  .lhh-bento-g .lhh-btn-gold { justify-content: center; }

  /* community → stacked */
  .lhh-community-grid { display: block; }
  .lhh-review { padding: 20px 0; gap: 16px; }
  .lhh-review-poster { width: 64px; }
  .lhh-review-title b { font-size: 17px; }
  .lhh-quote { font-size: 13px; font-weight: 400; }
  .lhh-seeall { display: flex; }
  .lhh-rail { display: block; margin-top: 0; }
  .lhh-rail > div + div { margin-top: 44px; }
  .lhh-railhead { margin: 0 0 20px; }

  /* character rankings → vertical cards */
  .lhh-rank-card { display: block; padding: 0; border-radius: 20px; }
  .lhh-rank-hero { position: static; width: 100%; height: 130px; -webkit-mask-image: none; mask-image: none; }
  .lhh-rank-inner { display: block; padding: 20px; }
  .lhh-rank-meta { min-width: 0; }
  .lhh-rank-meta h3 { font-size: 18px; }
  .lhh-rank-meta p { font-size: 13px; margin-bottom: 18px; }
  .lhh-rank-podium { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
  .lhh-rank-slot { width: auto; flex: 1; }
  .lhh-rank-ava, .lhh-rank-ava img, .lhh-rank-ava .ph { width: 74px; height: 74px; }
  .lhh-rank-num { width: 24px; height: 24px; font-size: 13px; }
  .lhh-rank-slot .nm, .lhh-rank-slot .fr { font-size: 12px; font-weight: 400; }
  .lhh-rank-link { font-size: 15px; }
  /* on desktop the link sits in the meta block; on mobile it moves below the podium */
  .lhh-rank-meta .lhh-rank-link { display: none; }
  .lhh-rank-cta-mobile { display: inline-flex; }


  /* cta */
  .lhh-cta { padding: 52px 22px 56px; }
  .lhh-cta-glow { width: 320px; height: 320px; top: -70px; } /* shrink glow so it fits the mobile viewport */
  .lhh-cta h2 { font-size: 20px; }
  .lhh-cta p { font-size: 13px; }
  .lhh-cta .lhh-btn-red { font-size: 15px; }

  /* Tightened gutters (10px) on the four requested sections — placed last so
     they beat the section-pad / per-section padding shorthands above. */
  .lhh-narrow { padding-left: 10px; padding-right: 10px; }
  .lhh-narrow .lhh-wrap { padding-left: 0; padding-right: 0; }
  .lhh-feat { padding-top: 0; } /* "One arc…" — no top gap on mobile */
  .lhh-comm { padding-top: 0; } /* keep mobile top tight (desktop-only +15) */
  .lhh-review-col { padding-bottom: 30px; } /* gap before the rail on mobile */
  .lhh-blog-sec .copy { padding-bottom: 25px; } /* space between headline and "View all articles" */
}
