/*
 * SHRED.SAFE — consolidated overrides & layout fixes
 * Replaces: v1-product-polish.css, homepage-hierarchy-fix.css,
 *           direction-control.css, premium-unlock-fix.css,
 *           logo-transparent-fix.css, final-qc.css, wide-overrides.css
 * Plus new layout fixes (nav overlap, mobile topbar, etc.)
 */

/* ============================================================
 * 1. LAYOUT FIXES (new)
 * ============================================================ */

/* Hide bottom app-nav on desktop. Was overlapping content on every page. */
@media (min-width: 900px) {
  .ss-app-nav { display: none !important; }
}

/* Mobile topbar: hide the inline desktop nav, show only the brand.
 * (Bottom app-nav handles mobile navigation.) */
@media (max-width: 760px) {
  .ss-desktop-nav { display: none !important; }
  .ss-topbar      { padding: 12px 16px !important; }
  .ss-brand       { gap: 10px; }
  .ss-brand img   { width: 38px !important; height: 38px !important; }
  .ss-brand-main  { font-size: 18px !important; }
  .ss-brand-sub   { font-size: 10px !important; }
}

/* Pad bottom of body so fixed bottom-nav never sits on top of content */
@media (max-width: 899px) {
  body { padding-bottom: 80px !important; }
}

/* Buddy page: constrain to a comfortable reading width on desktop */
@media (min-width: 900px) {
  body[data-page="buddy"] main,
  .buddy-shell,
  .buddy-wrap { max-width: 760px !important; margin-left: auto !important; margin-right: auto !important; }
}

/* ============================================================
 * 2. HOMEPAGE: REMOVE SIDEBAR (was duplicating top nav)
 * ============================================================ */
body[data-page="home"] .main    { margin-left: 0 !important; }

/* ============================================================
 * 3. RIDE MODE: shrink hero so the form sits above the fold
 * ============================================================ */
.system-hero { padding-top: 24px !important; padding-bottom: 16px !important; }
.system-title { font-size: clamp(34px, 5vw, 56px) !important; line-height: 1 !important; margin-bottom: 8px !important; }
.system-lede  { font-size: 15px !important; max-width: 620px; }
.ride-step-flow { margin-top: 14px !important; gap: 8px !important; }
.ride-step-flow > div { padding: 10px 12px !important; }
.ride-step-flow strong { font-size: 16px !important; }
.ride-step-flow span   { font-size: 11px !important; }

/* ============================================================
 * 4. TRAILS PAGE: swap hero priority so stats lead
 *    (we move the stats strip above the headline visually)
 * ============================================================ */
.trails-stat-strip,
.trails-stats { order: -1; margin-bottom: 22px; }

/* ============================================================
 * 5. PRODUCT POLISH (from v1-product-polish.css)
 * ============================================================ */
.proof-strip {
  width: min(1480px, calc(100vw - 72px));
  margin: 22px auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.proof-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,18,17,.86), rgba(7,7,7,.94));
  box-shadow: 0 18px 55px rgba(0,0,0,.30);
  padding: 18px;
}
.proof-card strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 18px;
  color: #fff;
  margin-bottom: 6px;
}
.proof-card span {
  display: block;
  color: #bdb3aa;
  line-height: 1.38;
  font-size: 14px;
}

/* Disable text-shadow on hero headings (was making text mushy) */
.hero h1, .hero-title, .system-title, .ss-title {
  text-shadow: none !important;
  filter: none !important;
}

@media (max-width: 900px) {
  .proof-strip {
    width: calc(100vw - 24px);
    grid-template-columns: 1fr 1fr;
    margin-top: 14px !important;
    margin-bottom: 14px !important;
  }
}
@media (max-width: 520px) {
  .proof-strip { grid-template-columns: 1fr; }
}

/* ============================================================
 * 6. DIRECTION CONTROL (from direction-control.css)
 * ============================================================ */
/* Hide vague risk badges on venue cards — risk lives in detail views */
.home-vcard .risk,
.trail-card .risk,
.vcard .risk,
.home-card-media .risk,
.trail-img .risk,
[class*="risk-badge"],
[class*="risk-pill"] { display: none !important; }

/* Homepage directory preview = 4 across on desktop, max 4 cards */
.home-directory-grid,
.trails-preview-grid,
.directory-preview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.home-directory-grid > .home-vcard:nth-of-type(n+5),
.trails-preview-grid > .home-vcard:nth-of-type(n+5),
.directory-preview-grid > .home-vcard:nth-of-type(n+5) { display: none !important; }

.home-vcard, .trail-card.home-vcard { min-height: 0 !important; }
.home-vcard .trail-body, .trail-card.home-vcard .trail-body { padding: 14px !important; }
.home-vcard h3, .trail-card.home-vcard h3 { line-height: .88 !important; margin-bottom: 8px !important; }
.home-vcard p,  .trail-card.home-vcard p  { line-height: 1.35 !important; margin-bottom: 10px !important; }
.home-vcard .meta, .trail-card.home-vcard .meta { margin-top: 8px !important; }

.risk-strip h3, .risk-strip strong { color: #ff6500 !important; }

@media (max-width: 1100px) {
  .home-directory-grid, .trails-preview-grid, .directory-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  .home-directory-grid, .trails-preview-grid, .directory-preview-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Calm down repeated orange panels */
.tool, .system-card, .vcard, .home-vcard {
  background: linear-gradient(180deg, rgba(18,18,17,.88), rgba(7,7,7,.94)) !important;
}

/* ============================================================
 * 7. LOGO TRANSPARENT FIX
 * ============================================================ */
img[src*="shredsafe-logo"]:not([src*="bg"]) { background: transparent !important; }

/* ============================================================
 * 8. COOKIE CONSENT BANNER
 * ============================================================ */
#ss-consent {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  max-width: 720px;
  margin: 0 auto;
  background: #0b0a09;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  color: #f0ebe3;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
#ss-consent.show    { transform: translateY(0); opacity: 1; }
#ss-consent.leaving { transform: translateY(20px); opacity: 0; }

#ss-consent strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 4px;
  color: #f4f0e8;
}
#ss-consent p { margin: 0; color: #b9aea3; }
#ss-consent a { color: #ff8d3e; text-decoration: underline; }

#ss-consent .ss-consent-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
#ss-consent button {
  background: transparent;
  color: #f0ebe3;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  padding: 10px 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  flex: 1;
  transition: opacity .15s ease;
}
#ss-consent button.primary {
  background: linear-gradient(135deg, #ff6500, #d94b00);
  border-color: transparent;
  color: #fff;
}
#ss-consent button:hover { opacity: .85; }

@media (min-width: 640px) {
  #ss-consent .ss-consent-inner { display: flex; align-items: center; gap: 22px; }
  #ss-consent .ss-consent-actions { margin-top: 0; flex-shrink: 0; }
  #ss-consent button { flex: 0 0 auto; }
}

/* "Cookie settings" link in footer */
.ss-cookie-link {
  background: none;
  border: 0;
  color: #6d645c;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.ss-cookie-link:hover { color: #ff8d3e; }


/* ============================================================
 * 9. SECOND-PASS FIXES (targeting actual markup selectors)
 * ============================================================ */

/* Homepage: sidebar is the OG nav, hide it. Topbar handles desktop nav. */
body[data-page="home"] .main    { margin-left: 0 !important; }

/* Topbar: on mobile, show ONLY the wordmark logo. All other nav links
   hidden. Bottom app-nav handles mobile navigation. */
@media (max-width: 760px) {
  .topbar a:not(.mobile-logo) { display: none !important; }
  .topbar { justify-content: flex-start !important; padding: 0 16px !important; }
  .topbar .mobile-logo { font-size: 18px; }
  .topbar .mobile-logo img { width: 32px; height: 32px; }
}

/* Trails page: lift stats above the headline by reordering the hero-grid */
/* (reverted: hero-card now contains real stats, original grid order is fine) */
body[data-page="trails"] .hero h1 {
  font-size: clamp(48px, 7vw, 84px) !important;
  margin-bottom: 12px !important;
}
body[data-page="trails"] .hero { padding: 32px 42px 26px !important; }

/* Stats strip: tighten and make it the visual anchor */
body[data-page="trails"] .stats {
  background: linear-gradient(180deg, rgba(20,18,16,.86), rgba(8,7,6,.96)) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
}
body[data-page="trails"] .stat strong {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 32px !important;
  color: #ff8d3e !important;
  display: block;
  line-height: 1 !important;
}
body[data-page="trails"] .stat span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b9aea3;
}

/* Premium page: tighten the "SHRED.SAFE PREMIUM" wordmark hero
   so the £4.99 lockup isn't pushed off-screen */
body[data-page="premium"] .hero h1,
body[data-page="premium"] .system-title {
  font-size: clamp(40px, 5vw, 64px) !important;
  line-height: .95 !important;
}

/* Pill icons: restore simple geometric marks (we cleared SVGs but
   the marker boxes need *something* — a small accent dot will do) */
.pill .pill-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,101,0,.35);
  background: radial-gradient(circle at 30% 30%, rgba(255,101,0,.22), rgba(255,101,0,.06));
  flex-shrink: 0;
}
.pill .pill-mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff8d3e;
  box-shadow: 0 0 12px rgba(255,141,62,.6);
}

/* Tighten the wordmark+tagline lockup; reduce visual repetition */
.wordmark { font-size: clamp(36px, 5vw, 52px) !important; }
.tagline  { font-size: clamp(11px, 1.2vw, 14px) !important; letter-spacing: .28em !important; }

/* Eliminate the redundant "SHRED SAFE" header inside the homepage hero
   (the topbar already shows it; the inline wordmark+tagline is duplication) */
body[data-page="home"] .hero .brand,
body[data-page="home"] .hero-brand,
body[data-page="home"] .hero-lockup { /* No-op — left in place in case theme uses any */ }


/* ============================================================
 * 10. TRAILS HERO STATS CARD (third pass)
 * ============================================================ */
.hero-stats-card { padding: 22px !important; }
.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  margin-bottom: 16px;
}
.hero-stats-grid > div {
  border-left: 2px solid rgba(255,141,62,.6);
  padding-left: 12px;
}
.hero-stats-grid strong {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  line-height: 1;
  color: #f4f0e8;
  margin-bottom: 2px;
}
.hero-stats-grid span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b9aea3;
}
.hero-stats-foot {
  font-size: 13px !important;
  color: #a89880 !important;
  line-height: 1.5 !important;
  margin: 6px 0 18px !important;
}

/* Remove the body-stats strip below if hero-stats now duplicates it */
body[data-page="trails"] #count { display: none !important; }


/* ============================================================
 * 11. HOMEPAGE HERO LOCKUP (fourth pass)
 *     The logo is the brand. The H1 is the message.
 *     No need to caption the logo with the brand name.
 * ============================================================ */
body[data-page="home"] .brand-row--mark-only {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}
body[data-page="home"] .hero-mark {
  width: 88px;
  height: 88px;
  display: block;
}

/* Breathing room between the mark and the H1 */
body[data-page="home"] .brand-row--mark-only + h1 {
  margin-top: 0;
}

/* On mobile, scale the mark down — H1 dominates */
@media (max-width: 760px) {
  body[data-page="home"] .hero-mark {
    width: 64px;
    height: 64px;
  }
  body[data-page="home"] .brand-row--mark-only {
    margin-bottom: 20px;
  }
}

/* Suppress the old .wordmark and .tagline rules on the home page in case
   any other code path injects them — defensive */
body[data-page="home"] .hero .wordmark,
body[data-page="home"] .hero .tagline {
  display: none !important;
}


/* ============================================================
 * v8.5 — Premium teaser on homepage + premium feature cards
 *        rebuild + foot.html flagship promotion
 * ============================================================ */

/* ============================================================
 * PREMIUM TEASER on homepage
 * ============================================================ */
.premium-teaser {
  width: min(1480px, calc(100vw - 72px));
  margin: 48px auto 32px;
  padding: 44px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(212,168,67,.10), transparent 38%),
    linear-gradient(135deg, rgba(212,168,67,.04), rgba(255,255,255,.015)),
    linear-gradient(180deg, rgba(20,18,16,.94), rgba(7,6,5,.97));
  border: 1px solid rgba(212,168,67,.22);
  box-shadow: 0 30px 70px rgba(0,0,0,.42);
  position: relative;
  overflow: hidden;
}
.premium-teaser-head {
  max-width: 760px;
  margin-bottom: 28px;
}
.premium-teaser-kicker {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #d4a843;
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid rgba(212,168,67,.35);
  border-radius: 4px;
}
.premium-teaser-head h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: .95;
  letter-spacing: .025em;
  color: #f4f0e8;
  margin: 0 0 14px;
  text-shadow: none;
}
.premium-teaser-head h2 span { color: #d4a843; }
.premium-teaser-head p {
  font-size: 17px;
  line-height: 1.5;
  color: #d3c9bf;
  max-width: 680px;
  margin: 0;
}
.premium-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pt-card {
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28,24,20,.86), rgba(10,8,6,.94));
  border: 1px solid rgba(212,168,67,.14);
  transition: border-color .18s ease, transform .18s ease;
}
.pt-card:hover {
  border-color: rgba(212,168,67,.42);
  transform: translateY(-2px);
}
.pt-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(212,168,67,.16), rgba(212,168,67,.06));
  border: 1px solid rgba(212,168,67,.45);
  color: #d4a843;
  border-radius: 4px;
  padding: 4px 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pt-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: .025em;
  color: #f4f0e8;
  margin: 0 0 8px;
  line-height: 1;
}
.pt-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #b9aea3;
  margin: 0;
}
.premium-teaser-cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.pt-btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #d4a843, #b8902a);
  color: #0a0907;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(212,168,67,.22);
  transition: transform .15s ease;
}
.pt-btn-primary:hover { transform: translateY(-2px); }
.pt-btn-meta {
  font-size: 14px;
  color: #a89880;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .premium-teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .premium-teaser { padding: 32px; }
}
@media (max-width: 640px) {
  .premium-teaser-grid { grid-template-columns: 1fr; }
  .premium-teaser {
    width: calc(100vw - 24px);
    padding: 24px;
    border-radius: 18px;
  }
  .premium-teaser-cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
 * PREMIUM PAGE — "What you unlock" upgrade view
 *   Override the existing flat .feature treatment with proper
 *   premium card styling matching the homepage teaser.
 * ============================================================ */
body[data-page="premium"] .features-title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  letter-spacing: .025em !important;
  text-transform: none !important;
  color: #f4f0e8 !important;
  margin: 36px 0 18px !important;
}

body[data-page="premium"] .feature {
  display: block !important;
  padding: 24px !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(28,24,20,.92), rgba(10,8,6,.96)) !important;
  border: 1px solid rgba(212,168,67,.18) !important;
  margin-bottom: 14px !important;
  position: relative;
  transition: border-color .18s ease, transform .18s ease;
}
body[data-page="premium"] .feature:hover {
  border-color: rgba(212,168,67,.45) !important;
  transform: translateY(-2px);
}
body[data-page="premium"] .feature > div:not(.feature-icon) {
  flex: 1;
}
body[data-page="premium"] .feature-icon {
  display: none !important;  /* Empty icon boxes were creating dead space */
}
body[data-page="premium"] .feature-name {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 26px !important;
  letter-spacing: .025em !important;
  font-weight: 400 !important;
  color: #f4f0e8 !important;
  margin-bottom: 10px !important;
  line-height: 1 !important;
}
body[data-page="premium"] .feature-desc {
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #c7bdb3 !important;
  margin-bottom: 14px;
}
body[data-page="premium"] .feature-tag {
  display: inline-block !important;
  background: linear-gradient(135deg, rgba(212,168,67,.18), rgba(212,168,67,.06)) !important;
  border: 1px solid rgba(212,168,67,.5) !important;
  color: #d4a843 !important;
  border-radius: 4px !important;
  padding: 5px 12px !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  margin-top: 0 !important;
}

/* Grid the features on desktop instead of stacked column */
@media (min-width: 900px) {
  /* Find the block of consecutive .feature elements and grid them.
     Using the parent container's natural flow — we wrap the .feature
     elements with display:contents won't work, so use child selectors */
  body[data-page="premium"] .feature + .feature + .feature + .feature {
    /* Once we hit the 4th feature, ensure grid takes over via parent */
  }
}

/* SHRED.SAFE PREMIUM wordmark - proper sizing */
body[data-page="premium"] .hero-title {
  font-size: clamp(40px, 5.5vw, 68px) !important;
  line-height: 1 !important;
  letter-spacing: .03em !important;
  white-space: normal !important;
}
body[data-page="premium"] .hero-title .premium-word {
  color: #d4a843;
  display: inline-block;
  margin-left: .25em;
}
@media (max-width: 600px) {
  body[data-page="premium"] .hero-title .premium-word {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }
}

/* FOOT.SAFE - Free for everyone callout — promote visual weight */
body[data-page="premium"] div[style*="rgba(46,204,114,0.06)"] {
  background: linear-gradient(180deg, rgba(46,204,114,0.08), rgba(46,204,114,0.03)) !important;
  border: 1px solid rgba(46,204,114,0.28) !important;
  padding: 18px !important;
  border-radius: 12px !important;
}

/* ============================================================
 * PREMIUM PAGE — "You're in" feature dashboard
 * ============================================================ */
.already-premium {
  background: linear-gradient(180deg, rgba(46,204,114,0.05), rgba(46,204,114,0.015)) !important;
  border: 1px solid rgba(46,204,114,0.20) !important;
  border-radius: 18px !important;
  padding: 32px !important;
  text-align: left !important;
}
.premium-success-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.premium-success-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ecc72, #25a85e);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(46,204,114,.25);
}
.premium-success-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: .02em;
  color: #f4f0e8;
  margin: 0 0 6px;
  line-height: 1;
}
.premium-success-header p {
  color: #c7bdb3;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.premium-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.premium-feature {
  display: block;
  padding: 22px;
  border: 1px solid rgba(212,168,67,.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28,24,20,.92), rgba(10,8,6,.96));
  color: #f0ebe3;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
  position: relative;
}
.premium-feature:hover {
  transform: translateY(-2px);
  border-color: rgba(212,168,67,.5);
}
.premium-feature .pt-tag {
  margin-bottom: 12px;
}
.premium-feature h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: .025em;
  color: #f4f0e8;
  margin: 0 0 10px;
  line-height: 1;
}
.premium-feature p {
  font-size: 14.5px;
  line-height: 1.55;
  color: #b9aea3;
  margin: 0 0 14px;
}
.premium-feature-cta {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d4a843;
  font-weight: 700;
}
@media (max-width: 720px) {
  .premium-feature-grid { grid-template-columns: 1fr; }
  .already-premium { padding: 22px !important; }
  .premium-success-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ============================================================
 * FOOT.HTML — flagship promotion
 * ============================================================ */
body[data-page="foot"] .hero {
  padding: 48px 42px 28px !important;
  display: block !important;
  background: linear-gradient(180deg, #120e0a 0%, #080706 100%) !important;
}
body[data-page="foot"] .hero-eyebrow {
  font-size: 12px !important;
  letter-spacing: .22em !important;
  margin-bottom: 12px !important;
}
body[data-page="foot"] .hero-title {
  font-size: clamp(48px, 7vw, 88px) !important;
  line-height: .9 !important;
  letter-spacing: .03em !important;
  margin-bottom: 14px !important;
}
body[data-page="foot"] .hero-sub {
  font-size: 17px !important;
  line-height: 1.5 !important;
  max-width: 620px !important;
  color: #d6ccc2 !important;
}
body[data-page="foot"] .back-btn {
  position: absolute;
  top: 90px;
  right: 42px;
}
body[data-page="foot"] .tabs {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 42px;
}
body[data-page="foot"] .tab {
  padding: 18px 8px !important;
  font-size: 14px !important;
  letter-spacing: .08em !important;
}
body[data-page="foot"] .view {
  max-width: 1480px !important;
  padding: 32px 42px !important;
}
body[data-page="foot"] #checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
body[data-page="foot"] .check-item {
  padding: 18px !important;
  background: linear-gradient(180deg, rgba(22,20,18,.92), rgba(8,7,6,.96)) !important;
  border-color: rgba(255,255,255,.08) !important;
}
body[data-page="foot"] .check-title {
  font-size: 18px !important;
  margin-bottom: 6px !important;
}
body[data-page="foot"] .check-desc {
  font-size: 14px !important;
  color: #b9aea3 !important;
}
body[data-page="foot"] .check-why {
  font-size: 13px !important;
  color: #ff8d3e !important;
  margin-top: 8px !important;
}
body[data-page="foot"] .check-intro {
  background: linear-gradient(180deg, rgba(201,95,30,0.10), rgba(201,95,30,0.04)) !important;
  border: 1px solid rgba(201,95,30,0.28) !important;
  padding: 20px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-bottom: 24px !important;
  max-width: 100% !important;
}
@media (min-width: 900px) {
  body[data-page="foot"] .ss-app-nav { display: none !important; }
}
@media (max-width: 900px) {
  body[data-page="foot"] #checklist { grid-template-columns: 1fr; }
  body[data-page="foot"] .hero { padding: 28px 16px 20px !important; }
  body[data-page="foot"] .view { padding: 16px !important; }
  body[data-page="foot"] .tabs { padding: 0 4px; }
  body[data-page="foot"] .tab { padding: 14px 6px !important; font-size: 12px !important; }
  body[data-page="foot"] .back-btn { display: none !important; }
}

/* ============================================================
 * Homepage tools grid — already added in v8.1 overrides but
 * verify it still applies correctly with the new content
 * ============================================================ */
body[data-page="home"] .tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1480px, calc(100vw - 72px));
  margin: 32px auto 24px;
}
body[data-page="home"] .tool {
  display: block;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20,18,16,.92), rgba(8,7,6,.96));
  color: #f0ebe3;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
body[data-page="home"] .tool:hover {
  transform: translateY(-2px);
  border-color: rgba(255,141,62,.4);
}
body[data-page="home"] .tool h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: .03em;
  margin: 0 0 8px;
  color: #f4f0e8;
}
body[data-page="home"] .tool p {
  font-size: 14px;
  line-height: 1.45;
  color: #b9aea3;
  margin: 0;
}
@media (max-width: 1100px) {
  body[data-page="home"] .tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body[data-page="home"] .tools { grid-template-columns: 1fr; width: calc(100vw - 24px); }
}

/* Containment for trail-preview grids (crossover fix) */
body[data-page="home"] .home-directory-grid,
body[data-page="home"] .trails-preview-grid,
body[data-page="home"] .directory-preview-grid {
  min-width: 0 !important;
  overflow: hidden;
}
body[data-page="home"] .home-vcard {
  min-width: 0;
  overflow: hidden;
}
body[data-page="home"] section, body[data-page="home"] aside {
  max-width: 100%;
  box-sizing: border-box;
}

/* Grid wrapping for premium upgrade-view feature cards */
body[data-page="premium"] .features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
body[data-page="premium"] .features-grid .feature {
  margin-bottom: 0 !important;
}
@media (max-width: 720px) {
  body[data-page="premium"] .features-grid { grid-template-columns: 1fr; }
}

/* ============================================================
 * v8.6 — Higher-resolution hero background for big screens
 *        + premium-unlocked state styling
 * ============================================================ */

/* Use the 1800-hq version on 1440px+ desktops, and the 2400 version
   on Retina / 4K. The base .hero:before in index.html still uses 1400
   for fast first paint, but we override on larger viewports. */
@media (min-width: 1440px) {
  body[data-page="home"] .hero:before {
    background-image:
      linear-gradient(90deg, #050505 0%, rgba(5,5,5,.76) 35%, rgba(5,5,5,.22) 68%, #050505 100%),
      url('shredsafe-bg-only-1800-hq.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
}
@media (min-width: 1920px),
       (min-resolution: 2dppx) and (min-width: 1100px) {
  body[data-page="home"] .hero:before {
    background-image:
      linear-gradient(90deg, #050505 0%, rgba(5,5,5,.76) 35%, rgba(5,5,5,.22) 68%, #050505 100%),
      url('shredsafe-bg-only-2400.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
}

/* ============================================================
 * Visible "Premium active" pill in the topbar when unlocked.
 *    Confirms state across the site, not just on premium.html.
 * ============================================================ */
.ss-premium-pill {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 4px 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #d4a843;
  background: linear-gradient(135deg, rgba(212,168,67,.16), rgba(212,168,67,.06));
  border: 1px solid rgba(212,168,67,.45);
  border-radius: 4px;
  vertical-align: middle;
  text-decoration: none;
}
.ss-premium-pill::before {
  content: "✓";
  font-size: 12px;
  color: #2ecc72;
}

/* Show the pill when premium is unlocked */
body.premium-unlocked .ss-premium-pill,
html.premium-unlocked .ss-premium-pill {
  display: inline-flex;
}

/* When premium is unlocked, the "SEE PREMIUM · £4.99" homepage CTA
   becomes "PREMIUM ACTIVE" with a different treatment */
body.premium-unlocked .pt-btn-primary {
  background: linear-gradient(135deg, #2ecc72, #25a85e);
  pointer-events: none;
}
body.premium-unlocked .pt-btn-primary::after {
  content: "  ✓ Active";
  font-weight: 700;
  margin-left: 6px;
}

/* When unlocked, the "What you get with Premium" header on the homepage
   subtly acknowledges it instead of trying to upsell */
body.premium-unlocked .premium-teaser-head h2 span::after {
  content: " — Active";
  color: #2ecc72;
  font-size: .55em;
  margin-left: .3em;
  vertical-align: middle;
}


/* ============================================================
 * v8.7 — Bottom-nav: mobile only, no overlap, no z-index drama
 * ============================================================ */
@media (min-width: 900px) {
  .ss-app-nav,
  nav.ss-app-nav,
  .bottom-nav { display: none !important; }
}

/* On mobile, give the nav enough z-index to sit above content but
   ensure body has bottom padding so it never overlaps form fields. */
@media (max-width: 899px) {
  body { padding-bottom: 96px !important; }
  .ss-app-nav { z-index: 50 !important; }
}

/* ============================================================
 * v8.7 — FUEL page redesign
 *    Transform the long form into a proper step-by-step product
 *    flow with numbered cards, breathing room and confidence.
 * ============================================================ */

body[data-page="fuel"] {
  background:
    radial-gradient(circle at 12% -10%, rgba(212,168,67,.06), transparent 45%),
    radial-gradient(circle at 88% 110%, rgba(201,95,30,.04), transparent 50%),
    #080706 !important;
}

/* Fuel hero — eyebrow + title scale up, lede gets weight */
body[data-page="fuel"] .hero {
  padding: 56px 42px 36px !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}
body[data-page="fuel"] .hero-eyebrow {
  font-size: 12px !important;
  letter-spacing: .24em !important;
  color: #d4a843 !important;
  margin-bottom: 14px !important;
}
body[data-page="fuel"] .hero-title {
  font-size: clamp(56px, 8vw, 110px) !important;
  line-height: .88 !important;
  letter-spacing: .025em !important;
  margin-bottom: 16px !important;
}
body[data-page="fuel"] .hero-sub {
  font-size: 18px !important;
  line-height: 1.5 !important;
  color: #d6ccc2 !important;
  max-width: 640px !important;
}

/* The form area becomes a flow of step-cards */
body[data-page="fuel"] .wrap {
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 36px 28px 64px !important;
}

/* Each section-head becomes a proper step header with number badge */
body[data-page="fuel"] .section-head {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 28px !important;
  letter-spacing: .025em !important;
  color: #f4f0e8 !important;
  text-transform: none !important;
  margin: 0 0 8px !important;
  padding-top: 36px;
  display: flex !important;
  align-items: baseline !important;
  gap: 14px !important;
  position: relative;
}
body[data-page="fuel"] .section-head::after { display: none !important; }
body[data-page="fuel"] .section-head::before {
  content: counter(fuel-step, decimal-leading-zero);
  counter-increment: fuel-step;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: .15em;
  color: #d4a843;
  background: linear-gradient(135deg, rgba(212,168,67,.18), rgba(212,168,67,.05));
  border: 1px solid rgba(212,168,67,.4);
  border-radius: 4px;
  padding: 4px 10px;
  line-height: 1;
  align-self: center;
}
body[data-page="fuel"] .wrap { counter-reset: fuel-step; }

/* Wrap each section's fields in a card-like grouping using the
   .section-head + adjacent siblings approach */
body[data-page="fuel"] .section-head + .field,
body[data-page="fuel"] .section-head + .field-grid,
body[data-page="fuel"] .section-head ~ .field,
body[data-page="fuel"] .section-head ~ .field-grid {
  position: relative;
}

/* Field labels — make them readable, not buried */
body[data-page="fuel"] .field-lbl {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: #a89880 !important;
  margin-bottom: 10px !important;
  display: block !important;
}

/* Input fields — proper hit area, gradient background */
body[data-page="fuel"] .fi {
  width: 100% !important;
  padding: 16px 18px !important;
  background: linear-gradient(180deg, rgba(28,24,20,.92), rgba(10,8,6,.96)) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 12px !important;
  color: #f4f0e8 !important;
  font-family: 'Barlow', sans-serif !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  transition: border-color .15s ease, background .15s ease;
}
body[data-page="fuel"] .fi:focus {
  outline: none !important;
  border-color: rgba(212,168,67,.6) !important;
  background: linear-gradient(180deg, rgba(34,28,22,.95), rgba(14,11,8,.98)) !important;
}
body[data-page="fuel"] .fi::placeholder { color: #6d645c !important; }

/* Toggle pill rows — bigger touch targets, proper card treatment */
body[data-page="fuel"] .toggle-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 10px !important;
}
body[data-page="fuel"] .toggle-btn {
  padding: 16px 14px !important;
  text-align: center !important;
  background: linear-gradient(180deg, rgba(24,20,18,.86), rgba(10,8,6,.94)) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 12px !important;
  color: #b9aea3 !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  cursor: pointer !important;
  transition: all .15s ease !important;
  user-select: none;
}
body[data-page="fuel"] .toggle-btn:hover {
  border-color: rgba(212,168,67,.35) !important;
  color: #f4f0e8 !important;
}
body[data-page="fuel"] .toggle-btn.on {
  background: linear-gradient(135deg, rgba(212,168,67,.22), rgba(212,168,67,.08)) !important;
  border-color: rgba(212,168,67,.55) !important;
  color: #f4f0e8 !important;
  box-shadow: 0 6px 18px rgba(212,168,67,.12);
}

/* Field grid (two-column on desktop) */
body[data-page="fuel"] .field-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}
@media (max-width: 720px) {
  body[data-page="fuel"] .field-grid { grid-template-columns: 1fr !important; }
}
body[data-page="fuel"] .field { margin-bottom: 14px !important; }

/* The generate button — proper primary CTA */
body[data-page="fuel"] .submit-btn,
body[data-page="fuel"] button[type="submit"],
body[data-page="fuel"] .full-btn,
body[data-page="fuel"] #generate-btn {
  width: 100% !important;
  margin-top: 32px !important;
  padding: 20px 24px !important;
  background: linear-gradient(135deg, #d4a843, #b8902a) !important;
  color: #0a0907 !important;
  border: none !important;
  border-radius: 14px !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 22px !important;
  letter-spacing: .04em !important;
  cursor: pointer !important;
  box-shadow: 0 18px 40px rgba(212,168,67,.22) !important;
  transition: transform .15s ease !important;
}
body[data-page="fuel"] .submit-btn:hover,
body[data-page="fuel"] button[type="submit"]:hover,
body[data-page="fuel"] .full-btn:hover {
  transform: translateY(-2px);
}

/* CGM lag note — promote from "tiny inline caption" to proper callout */
body[data-page="fuel"] #cgm-lag-note {
  background: linear-gradient(180deg, rgba(74,168,212,0.08), rgba(74,168,212,0.02)) !important;
  border: 1px solid rgba(74,168,212,0.3) !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  color: #c5d8e8 !important;
  margin-top: 12px !important;
}

/* Mobile padding adjustments */
@media (max-width: 760px) {
  body[data-page="fuel"] .hero { padding: 32px 18px 24px !important; }
  body[data-page="fuel"] .wrap { padding: 24px 16px 64px !important; }
  body[data-page="fuel"] .section-head { font-size: 24px !important; }
  body[data-page="fuel"] .fi { padding: 14px 16px !important; font-size: 16px !important; }
  body[data-page="fuel"] .toggle-btn { padding: 14px 12px !important; font-size: 14px !important; }
}

/* ============================================================
 * v8.7 — FOOT page rebuild
 *    The previous fix opened the content width but the cards
 *    still look thin and the warning lacks weight. Now: proper
 *    flagship product page with bigger hero, real card hierarchy
 *    and confidence-inspiring treatment.
 * ============================================================ */

body[data-page="foot"] {
  background:
    radial-gradient(circle at 12% -10%, rgba(201,95,30,.06), transparent 45%),
    radial-gradient(circle at 88% 110%, rgba(46,204,114,.04), transparent 50%),
    #080706 !important;
}

/* Hero is good, just make it command more presence */
body[data-page="foot"] .hero {
  padding: 64px 42px 44px !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}
body[data-page="foot"] .hero-eyebrow {
  font-size: 12px !important;
  letter-spacing: .26em !important;
  margin-bottom: 16px !important;
  color: #c95f1e !important;
}
body[data-page="foot"] .hero-title {
  font-size: clamp(64px, 9vw, 132px) !important;
  line-height: .85 !important;
  letter-spacing: .025em !important;
}
body[data-page="foot"] .hero-sub {
  font-size: 19px !important;
  line-height: 1.5 !important;
  max-width: 640px !important;
  color: #d6ccc2 !important;
  margin-top: 16px !important;
}

/* Tabs: full-width, proper scale */
body[data-page="foot"] .tabs {
  max-width: 1480px !important;
  margin: 0 auto !important;
  padding: 0 42px !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
}
body[data-page="foot"] .tab {
  padding: 22px 8px !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: #6d645c !important;
  cursor: pointer !important;
  border-bottom: 3px solid transparent !important;
  transition: all .15s ease !important;
}
body[data-page="foot"] .tab:hover { color: #c7bdb3 !important; }
body[data-page="foot"] .tab.on {
  color: #c95f1e !important;
  border-bottom-color: #c95f1e !important;
}

/* Main view area */
body[data-page="foot"] .view {
  max-width: 1480px !important;
  padding: 40px 42px !important;
}

/* Pre-ride intro panel — make it the visual anchor */
body[data-page="foot"] .check-intro {
  background:
    linear-gradient(135deg, rgba(201,95,30,.10), rgba(201,95,30,.02)),
    linear-gradient(180deg, rgba(28,24,20,.94), rgba(10,8,6,.96)) !important;
  border: 1px solid rgba(201,95,30,.28) !important;
  border-radius: 14px !important;
  padding: 26px 28px !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin-bottom: 28px !important;
  max-width: 100% !important;
  color: #d6ccc2 !important;
}
body[data-page="foot"] .check-intro strong {
  color: #f4f0e8 !important;
  font-weight: 700 !important;
}

/* Checklist grid — 2-col desktop, with proper card weight */
body[data-page="foot"] #checklist {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}
body[data-page="foot"] .check-item {
  padding: 22px !important;
  background: linear-gradient(180deg, rgba(28,24,20,.92), rgba(10,8,6,.96)) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 14px !important;
  gap: 16px !important;
  align-items: flex-start !important;
  transition: border-color .15s ease, transform .15s ease;
}
body[data-page="foot"] .check-item:hover {
  border-color: rgba(201,95,30,.35) !important;
  transform: translateY(-1px);
}
body[data-page="foot"] .check-item.checked {
  background: linear-gradient(180deg, rgba(46,204,114,.10), rgba(46,204,114,.03)) !important;
  border-color: rgba(46,204,114,.4) !important;
}
body[data-page="foot"] .check-item.flagged {
  background: linear-gradient(180deg, rgba(232,64,64,.10), rgba(232,64,64,.03)) !important;
  border-color: rgba(232,64,64,.4) !important;
}
body[data-page="foot"] .check-title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 22px !important;
  letter-spacing: .025em !important;
  font-weight: 400 !important;
  color: #f4f0e8 !important;
  margin-bottom: 8px !important;
  line-height: 1 !important;
}
body[data-page="foot"] .check-desc {
  font-size: 15px !important;
  color: #c7bdb3 !important;
  line-height: 1.55 !important;
  margin-bottom: 12px;
}
body[data-page="foot"] .check-why {
  font-size: 13.5px !important;
  color: #ff8d3e !important;
  font-style: italic !important;
  line-height: 1.5 !important;
  margin-top: 0 !important;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 2px solid rgba(255,141,62,.4);
}
body[data-page="foot"] .check-actions {
  display: flex !important;
  gap: 10px !important;
  margin-top: 6px !important;
}
body[data-page="foot"] .check-actions button {
  flex: 1 !important;
  padding: 11px 14px !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  background: rgba(20,18,16,.6) !important;
  color: #b9aea3 !important;
  cursor: pointer !important;
  transition: all .15s ease !important;
}
body[data-page="foot"] .check-actions button.clear,
body[data-page="foot"] .check-actions button:first-child {
  background: linear-gradient(180deg, rgba(46,204,114,.16), rgba(46,204,114,.06)) !important;
  border-color: rgba(46,204,114,.45) !important;
  color: #5ad88d !important;
}
body[data-page="foot"] .check-actions button.flag,
body[data-page="foot"] .check-actions button:last-child {
  background: linear-gradient(180deg, rgba(232,64,64,.14), rgba(232,64,64,.04)) !important;
  border-color: rgba(232,64,64,.42) !important;
  color: #ec7878 !important;
}
body[data-page="foot"] .check-tick {
  width: 32px !important;
  height: 32px !important;
}

/* Mobile breakpoints */
@media (max-width: 900px) {
  body[data-page="foot"] #checklist { grid-template-columns: 1fr !important; }
  body[data-page="foot"] .hero { padding: 36px 18px 24px !important; }
  body[data-page="foot"] .hero-title { font-size: clamp(56px, 14vw, 88px) !important; }
  body[data-page="foot"] .hero-sub { font-size: 16px !important; }
  body[data-page="foot"] .view { padding: 24px 18px !important; }
  body[data-page="foot"] .tabs { padding: 0 4px !important; }
  body[data-page="foot"] .tab { padding: 16px 4px !important; font-size: 11px !important; letter-spacing: .08em !important; }
  body[data-page="foot"] .check-intro { padding: 18px !important; font-size: 14.5px !important; }
  body[data-page="foot"] .check-item { padding: 18px !important; }
  body[data-page="foot"] .check-title { font-size: 20px !important; }
  body[data-page="foot"] .back-btn { display: none !important; }
}

/* v8.7 hotfix: foot hero mobile overflow */
@media (max-width: 760px) {
  body[data-page="foot"] .hero-title {
    font-size: clamp(48px, 11vw, 72px) !important;
  }
  body[data-page="foot"] .hero { padding: 28px 16px 20px !important; }
}

/* Also: ensure the buddy alert page redirect is robust on iOS Safari
   where window.location.replace can fight back/forward cache */


/* ============================================================
 * v8.8 — Profile page guided-setup invite panel
 *        + tighter ss-desktop-nav so Profile fits
 * ============================================================ */
.quick-setup-panel {
  width: min(1480px, calc(100vw - 72px));
  margin: 28px auto 0;
  padding: 28px 32px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, rgba(201,95,30,.10), transparent 42%),
    linear-gradient(180deg, rgba(28,24,20,.94), rgba(10,8,6,.96));
  border: 1px solid rgba(201,95,30,.25);
  box-shadow: 0 22px 50px rgba(0,0,0,.32);
}
.quick-setup-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}
.quick-setup-text { max-width: 720px; }
.quick-setup-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #c95f1e;
  margin-bottom: 8px;
}
.quick-setup-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1;
  letter-spacing: .02em;
  color: #f4f0e8;
  margin: 0 0 8px;
}
.quick-setup-text p {
  font-size: 14.5px;
  line-height: 1.55;
  color: #b9aea3;
  margin: 0;
}
.quick-setup-cta {
  display: inline-block;
  padding: 16px 22px;
  background: linear-gradient(135deg, #c95f1e, #ff6500);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(201,95,30,.22);
  transition: transform .15s ease;
  white-space: nowrap;
}
.quick-setup-cta:hover { transform: translateY(-2px); }

@media (max-width: 760px) {
  .quick-setup-panel {
    width: calc(100vw - 24px);
    padding: 22px 18px;
    border-radius: 14px;
  }
  .quick-setup-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .quick-setup-cta { justify-self: start; }
}

/* Tighten ss-desktop-nav gap so Profile fits without wrapping on
   medium desktops */
@media (max-width: 1180px) and (min-width: 900px) {
  .ss-desktop-nav { gap: 12px !important; }
  .ss-desktop-nav a { font-size: 13px !important; }
}

/* v8.8 — Free-tier profile badge variant */
.profile-badge--free {
  background: linear-gradient(135deg, rgba(105,96,86,.18), rgba(105,96,86,.06)) !important;
  border: 1px solid rgba(184,170,156,.22) !important;
  color: #b9aea3 !important;
}
.profile-badge--free a:hover { text-decoration: underline !important; }

/* v8.8 — Quick Access tool tags */
body[data-page="profile"] .tool-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 16px !important;
  background: linear-gradient(180deg, rgba(28,24,20,.92), rgba(10,8,6,.96)) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  transition: border-color .15s ease, transform .15s ease;
}
body[data-page="profile"] .tool-btn:hover {
  border-color: rgba(212,168,67,.4) !important;
  transform: translateY(-1px);
}
body[data-page="profile"] .tool-name {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
  color: #f4f0e8 !important;
}
.tool-tag {
  display: inline-block;
  padding: 3px 9px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(212,168,67,.18), rgba(212,168,67,.06));
  border: 1px solid rgba(212,168,67,.45);
  color: #d4a843;
}
.tool-tag--free {
  background: linear-gradient(135deg, rgba(46,204,114,.18), rgba(46,204,114,.06));
  border-color: rgba(46,204,114,.45);
  color: #5ad88d;
}
.sec-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: #6b6256;
  text-transform: none;
  margin-left: 6px;
}


/* ============================================================
 * v8.9 — Profile page rebuild
 *        Visual language matches fuel.html / foot.html exactly.
 * ============================================================ */

body[data-page="profile"] {
  background:
    radial-gradient(circle at 12% -10%, rgba(212,168,67,.06), transparent 45%),
    radial-gradient(circle at 88% 110%, rgba(201,95,30,.04), transparent 50%),
    #080706 !important;
}

/* Hero — same as fuel.html (clamp 56-110px) */
body[data-page="profile"] .hero {
  padding: 56px 42px 36px !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  position: relative;
}
body[data-page="profile"] .hero-inner { max-width: 980px; }
body[data-page="profile"] .hero-eyebrow {
  font-size: 12px !important;
  letter-spacing: .24em !important;
  color: #d4a843 !important;
  margin-bottom: 14px !important;
  text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}
body[data-page="profile"] .hero-title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(56px, 8vw, 110px) !important;
  line-height: .88 !important;
  letter-spacing: .025em !important;
  margin-bottom: 16px !important;
  color: #f4f0e8;
}
body[data-page="profile"] .hero-title em {
  color: #c95f1e;
  font-style: normal;
}
body[data-page="profile"] .hero-sub {
  font-size: 18px !important;
  line-height: 1.5 !important;
  color: #d6ccc2 !important;
  max-width: 640px !important;
}
body[data-page="profile"] .back-btn {
  position: absolute;
  top: 56px;
  right: 42px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d6ccc2;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  padding: 8px 14px;
  transition: border-color .15s ease, color .15s ease;
}
body[data-page="profile"] .back-btn:hover {
  border-color: rgba(212,168,67,.5);
  color: #f4f0e8;
}

/* Wrap */
body[data-page="profile"] .wrap {
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 36px 28px 96px !important;
}

/* Progress card */
.progress-card {
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28,24,20,.92), rgba(10,8,6,.96));
  border: 1px solid rgba(212,168,67,.22);
  box-shadow: 0 18px 40px rgba(0,0,0,.32);
}
.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 16px;
}
.progress-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #d4a843;
  margin-bottom: 4px;
}
.progress-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: .02em;
  color: #f4f0e8;
  line-height: 1;
}
.progress-pct {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: #d4a843;
  line-height: 1;
}
.progress-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c95f1e, #d4a843);
  border-radius: 3px;
  transition: width .3s ease;
}

/* Step section — same skeleton as fuel.html numbered steps */
.profile-step { margin-bottom: 28px; }

.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: .15em;
  color: #d4a843;
  background: linear-gradient(135deg, rgba(212,168,67,.18), rgba(212,168,67,.05));
  border: 1px solid rgba(212,168,67,.4);
  border-radius: 4px;
  padding: 4px 10px;
  line-height: 1;
}
.step-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: .025em;
  color: #f4f0e8;
  margin: 0;
  font-weight: 400;
  flex: 1;
}
.step-status {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b6256;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
}
.step-status.on {
  color: #5ad88d;
  border-color: rgba(46,204,114,.4);
  background: rgba(46,204,114,.08);
}

.step-body {
  padding: 28px;
  background: linear-gradient(180deg, rgba(20,18,16,.92), rgba(8,7,6,.96));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}

/* Fields — match fuel.html */
body[data-page="profile"] .field { margin-bottom: 18px; }
body[data-page="profile"] .field:last-child { margin-bottom: 0; }
body[data-page="profile"] .field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) {
  body[data-page="profile"] .field-grid { grid-template-columns: 1fr; }
}
body[data-page="profile"] .field-lbl {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a89880;
  margin-bottom: 10px;
  display: block;
}
body[data-page="profile"] .field-hint {
  font-size: 13px;
  color: #6b6256;
  margin-top: 8px;
  line-height: 1.5;
}
body[data-page="profile"] .fi {
  width: 100%;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(28,24,20,.92), rgba(10,8,6,.96));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  color: #f4f0e8;
  font-family: 'Barlow', sans-serif;
  font-size: 17px;
  font-weight: 500;
  transition: border-color .15s ease;
}
body[data-page="profile"] .fi:focus {
  outline: none;
  border-color: rgba(212,168,67,.6);
}
body[data-page="profile"] .fi::placeholder { color: #6d645c; }

/* Toggle pill rows */
body[data-page="profile"] .toggle-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
body[data-page="profile"] .toggle-row--2 { grid-template-columns: 1fr 1fr; }
body[data-page="profile"] .toggle-row--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 720px) {
  body[data-page="profile"] .toggle-row--3 { grid-template-columns: 1fr 1fr; }
}
body[data-page="profile"] .toggle-btn {
  padding: 14px 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(24,20,18,.86), rgba(10,8,6,.94));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  color: #b9aea3;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
body[data-page="profile"] .toggle-btn:hover {
  border-color: rgba(212,168,67,.35);
  color: #f4f0e8;
}
body[data-page="profile"] .toggle-btn.on {
  background: linear-gradient(135deg, rgba(212,168,67,.22), rgba(212,168,67,.08));
  border-color: rgba(212,168,67,.55);
  color: #f4f0e8;
  box-shadow: 0 6px 18px rgba(212,168,67,.12);
}

/* Weight units block */
.weight-stack { display: flex; flex-direction: column; gap: 10px; }
.weight-units {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.weight-input-wrap { display: flex; flex-direction: column; gap: 10px; }
.weight-hidden { display: none !important; }
.weight-stones {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 8px;
  align-items: center;
}
.weight-sep {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  color: #a89880;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Save button — primary gold CTA */
.profile-save-row {
  margin: 32px 0 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.profile-save-btn {
  flex: 1;
  min-width: 240px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #d4a843, #b8902a);
  color: #0a0907;
  border: none;
  border-radius: 14px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(212,168,67,.22);
  transition: transform .15s ease, background .25s ease;
}
.profile-save-btn:hover { transform: translateY(-2px); }
.profile-save-btn.saved {
  background: linear-gradient(135deg, #2ecc72, #25a85e);
  color: #fff;
  box-shadow: 0 18px 40px rgba(46,204,114,.25);
}
.profile-save-meta {
  font-size: 13px;
  color: #6b6256;
  line-height: 1.5;
  font-style: italic;
}

/* Account step variant — slightly muted to signal separation */
.profile-step--account .step-body {
  background: linear-gradient(180deg, rgba(16,14,12,.92), rgba(6,5,4,.96)) !important;
}
.account-row {
  padding: 14px 18px;
  background: rgba(10,8,6,.6);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  color: #d6ccc2;
  letter-spacing: .04em;
}
.tier-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(105,96,86,.2), rgba(105,96,86,.08));
  border: 1px solid rgba(184,170,156,.25);
  color: #b9aea3;
}
.tier-pill--gold {
  background: linear-gradient(135deg, rgba(212,168,67,.22), rgba(212,168,67,.08));
  border-color: rgba(212,168,67,.5);
  color: #d4a843;
}
.account-actions {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.account-action-btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .15s ease;
}
.account-action-btn--gold {
  background: linear-gradient(135deg, #d4a843, #b8902a);
  color: #0a0907;
  box-shadow: 0 14px 32px rgba(212,168,67,.22);
}
.account-action-btn--gold:hover { transform: translateY(-2px); }
.account-thanks {
  font-size: 14px;
  color: #5ad88d;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .04em;
}

/* Danger zone */
.profile-danger {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.danger-btn {
  background: transparent;
  border: 1px solid rgba(232,64,64,.35);
  color: #ec7878;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease;
}
.danger-btn:hover { background: rgba(232,64,64,.08); }

/* Mobile */
@media (max-width: 760px) {
  body[data-page="profile"] .hero { padding: 32px 18px 24px !important; }
  body[data-page="profile"] .hero-title {
    font-size: clamp(48px, 13vw, 76px) !important;
  }
  body[data-page="profile"] .hero-sub { font-size: 16px !important; }
  body[data-page="profile"] .back-btn { display: none; }
  body[data-page="profile"] .wrap { padding: 24px 16px 96px !important; }
  .step-body { padding: 20px; }
  .step-title { font-size: 24px; }
  .progress-card { padding: 18px; }
  .progress-pct { font-size: 26px; }
}


/* ============================================================
 * v8.11 — About page personal-story design + homepage anchor
 * ============================================================ */

/* About page tweaks: tighten max widths, polish reading rhythm */
body[data-page="about"] .about-page {
  max-width: 980px;
}

/* Hero override — slightly less massive than fuel/foot since this
   is a story page and the copy needs to sit close to the headline */
body[data-page="about"] .about-hero {
  margin-bottom: 32px;
}
body[data-page="about"] .about-hero .ss-kicker {
  font-size: 12px !important;
  letter-spacing: .22em !important;
  margin-bottom: 18px;
}
body[data-page="about"] .about-hero .ss-title {
  font-size: clamp(48px, 7.2vw, 96px) !important;
}
body[data-page="about"] .about-hero .ss-lede {
  font-size: clamp(19px, 2.1vw, 24px) !important;
  font-weight: 500;
  color: #ece2d6 !important;
  margin-top: 18px;
}

/* Lead paragraph block (the "for years I guessed" section) */
.about-block {
  padding: 28px 32px;
  margin-bottom: 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22,21,19,.86), rgba(8,7,6,.92));
  border: 1px solid rgba(255,255,255,.06);
}
.about-block p {
  color: #cfc5bb;
  font-size: 17.5px;
  line-height: 1.65;
  margin: 0 0 16px;
}
.about-block p:last-child { margin-bottom: 0; }
.about-block em {
  font-style: italic;
  color: #ff8d3e;
  font-weight: 500;
}
.about-block strong {
  color: #f4f0e8;
  font-weight: 700;
}

.about-block--lead {
  border-left: 3px solid #c95f1e;
  background: linear-gradient(180deg, rgba(28,22,16,.92), rgba(10,7,5,.94));
}

.about-block--next {
  border-color: rgba(212,168,67,.22);
  background:
    radial-gradient(circle at 92% 8%, rgba(212,168,67,.08), transparent 40%),
    linear-gradient(180deg, rgba(22,21,19,.92), rgba(8,7,6,.96));
}

.about-block-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: .9;
  letter-spacing: .025em;
  color: #f4f0e8;
  margin: 0 0 18px;
}
.about-block-title span { color: #d4a843; }

.about-closer {
  color: #f4f0e8 !important;
  font-size: 19px !important;
  font-weight: 500;
  font-style: italic;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px !important;
  margin-top: 24px !important;
}
.about-sign {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px !important;
  letter-spacing: .04em;
  color: #d4a843 !important;
  margin-top: 8px !important;
}

/* About cards — slightly more breathing room for narrative copy */
body[data-page="about"] .ss-grid {
  margin-bottom: 26px;
}
body[data-page="about"] .ss-card {
  padding: 30px;
}
body[data-page="about"] .ss-card h2 {
  font-size: clamp(32px, 3.4vw, 46px) !important;
  margin-bottom: 18px;
}
body[data-page="about"] .ss-card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 14px;
}
body[data-page="about"] .ss-card p:last-child { margin-bottom: 0; }

/* About card lists (Who I built this for / Who I didn't) */
.about-card-list .about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-card-list .about-list li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 16px;
  line-height: 1.55;
  color: #cfc5bb;
}
.about-card-list .about-list li:last-child { border-bottom: 0; }
.about-card-list .about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #c95f1e 0%, #c95f1e 35%, transparent 50%);
}
.about-card-list .about-list--muted li::before {
  background: radial-gradient(circle at center, #6b6256 0%, #6b6256 35%, transparent 50%);
}

/* CTA row at the bottom of the about page */
.about-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Mobile tweaks */
@media (max-width: 760px) {
  body[data-page="about"] .about-hero { padding: clamp(24px, 6vw, 38px) !important; }
  .about-block { padding: 22px 20px; }
  .about-block p { font-size: 16px; }
  body[data-page="about"] .ss-card { padding: 22px; }
  body[data-page="about"] .ss-grid { grid-template-columns: 1fr !important; gap: 14px; }
}

/* ============================================================
 * HOMEPAGE — personal anchor band
 * ============================================================ */
.home-anchor {
  width: min(1480px, calc(100vw - 72px));
  margin: 20px auto 28px;
  padding: 22px 28px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(28,22,16,.92), rgba(10,7,5,.94));
  border: 1px solid rgba(201,95,30,.32);
  border-left: 3px solid #c95f1e;
}
.home-anchor-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.home-anchor-mark {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ff8d3e, #c95f1e 70%);
  box-shadow: 0 8px 20px rgba(201,95,30,.28);
  position: relative;
}
.home-anchor-mark::after {
  content: "D";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: #fff;
  letter-spacing: .02em;
}
.home-anchor p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #d6ccc2;
}
.home-anchor strong {
  color: #f4f0e8;
  font-weight: 600;
}
.home-anchor a {
  color: #ff8d3e;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,141,62,.4);
  margin-left: 4px;
  white-space: nowrap;
}
.home-anchor a:hover {
  color: #ffa460;
  border-bottom-color: rgba(255,164,96,.7);
}

@media (max-width: 760px) {
  .home-anchor {
    width: calc(100vw - 24px);
    padding: 18px;
    border-radius: 14px;
  }
  .home-anchor-inner { gap: 14px; }
  .home-anchor p { font-size: 15px; }
  .home-anchor-mark { width: 32px; height: 32px; }
  .home-anchor-mark::after { font-size: 18px; }
}

/* v8.12 — Hero image upgrade (Don's actual riding shot, 5504px source) */
@media (min-width: 1440px) {
  body[data-page="home"] .hero:before {
    background-image:
      linear-gradient(90deg, rgba(5,5,5,.94) 0%, rgba(5,5,5,.72) 30%, rgba(5,5,5,.32) 58%, rgba(5,5,5,.55) 100%),
      url('shredsafe-bg-only-1800-hq.webp') !important;
    background-size: cover !important;
    background-position: 30% center !important;
    background-repeat: no-repeat !important;
  }
}
@media (min-width: 1920px),
       (min-resolution: 2dppx) and (min-width: 1100px) {
  body[data-page="home"] .hero:before {
    background-image:
      linear-gradient(90deg, rgba(5,5,5,.94) 0%, rgba(5,5,5,.72) 30%, rgba(5,5,5,.32) 58%, rgba(5,5,5,.55) 100%),
      url('shredsafe-bg-only-2400.webp') !important;
  }
}
@media (min-width: 2560px) {
  body[data-page="home"] .hero:before {
    background-image:
      linear-gradient(90deg, rgba(5,5,5,.94) 0%, rgba(5,5,5,.72) 30%, rgba(5,5,5,.32) 58%, rgba(5,5,5,.55) 100%),
      url('shredsafe-bg-only-3200.webp') !important;
  }
}


/* ============================================================
 * v8.13 — Ride Mode form polish
 *         Fix the Current Glucose overlap reported by Don
 *         + custom select chevrons + breathing room above form
 * ============================================================ */

/* Add breathing room between the H2 and the form */
body[data-page="ride-mode"] .system-card h2,
.system-card h2 {
  margin-bottom: 22px !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}

/* Custom select chevron — replace native browser rendering to stop
   it ever bleeding outside the input bounds */
.system-field select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%23cfc5bb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
  background-color: rgba(0,0,0,.34) !important;
  padding-right: 36px !important;
  cursor: pointer;
}

/* Primary field (Current Glucose) — full width, larger, more prominent */
.system-field--primary {
  grid-column: 1 / -1 !important;  /* span both columns */
}
.system-field--glucose label {
  font-size: 14px !important;
  color: #f4f0e8 !important;
}

.glucose-input-row {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 10px;
  align-items: stretch;
}
.glucose-input-row input,
.glucose-input-row select {
  min-height: 58px !important;
  font-size: 18px !important;
}
.glucose-input-row input {
  font-weight: 600;
  letter-spacing: .01em;
}
.glucose-input-row input::placeholder {
  font-weight: 400;
  color: #6d645c;
  letter-spacing: 0;
}

/* Hint text under the glucose row */
.system-field--glucose .field-hint {
  margin-top: 8px;
  font-size: 13px;
  color: #8a8076;
  line-height: 1.45;
  font-style: italic;
}

/* Mobile: stack the glucose input and unit selector */
@media (max-width: 760px) {
  .glucose-input-row {
    grid-template-columns: 1fr;
  }
  .glucose-input-row select {
    min-height: 50px !important;
    font-size: 16px !important;
  }
}

/* All other system-field selects: ensure consistent height with the
   primary glucose input so the grid sits clean */
.system-field input,
.system-field select {
  height: 52px;
}

/* Stop any inherited spinner styles from showing on the number input */
.system-field input[type="number"] {
  -moz-appearance: textfield;
}
.system-field input[type="number"]::-webkit-inner-spin-button,
.system-field input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* v8.12.1 — Ensure premium teaser cards behave correctly as anchors */
a.pt-card,
.pt-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.pt-card:focus-visible {
  outline: 2px solid rgba(212,168,67,.55);
  outline-offset: 3px;
}
a.pt-card:active {
  transform: translateY(0) !important;
}


/* v8.15 — Premium hero mobile overflow fix */
body[data-page="premium"] .hero-title {
  font-size: clamp(48px, 8vw, 84px) !important;
  line-height: .92 !important;
  letter-spacing: .02em !important;
}
body[data-page="premium"] .hero-title .premium-word {
  display: inline-block;
}
@media (max-width: 760px) {
  body[data-page="premium"] .hero-title {
    font-size: clamp(40px, 11vw, 64px) !important;
    line-height: .9 !important;
  }
  body[data-page="premium"] .hero-title .premium-word {
    display: block;
    margin-top: 2px;
  }
}

/* v8.15 hotfix: premium hero must allow wrap on mobile */
@media (max-width: 760px) {
  body[data-page="premium"] .hero-title {
    display: block !important;  /* break out of flex from premium-ui.css */
    white-space: normal !important;
  }
  body[data-page="premium"] .hero-title .premium-word {
    display: block !important;
    margin-top: 2px;
  }
}

/* v8.15 hotfix #2: Premium hero secondary buttons overflow on mobile */
@media (max-width: 760px) {
  body[data-page="premium"] .hero {
    flex-wrap: wrap !important;
  }
  body[data-page="premium"] .hero > div:last-child {
    margin-top: 12px;
    flex-shrink: 0;
  }
}


/* ============================================================
 * v8.16 — Trust + Proof
 * ============================================================ */

/* "Built Responsibly" page */
body[data-page="responsibly"] {
  background:
    radial-gradient(circle at 12% -10%, rgba(212,168,67,.06), transparent 45%),
    radial-gradient(circle at 88% 110%, rgba(201,95,30,.04), transparent 50%),
    #080706 !important;
}
.br-page { max-width: 1100px !important; }
body[data-page="responsibly"] .br-hero {
  margin-bottom: 32px;
}
body[data-page="responsibly"] .br-hero .ss-title {
  font-size: clamp(56px, 9vw, 110px) !important;
}
.br-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 36px;
}
@media (max-width: 880px) {
  .br-grid { grid-template-columns: 1fr; }
}
.br-card {
  padding: 28px 30px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22,21,19,.92), rgba(8,7,6,.96));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.br-card--final {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(232,64,64,.10), rgba(232,64,64,.02)), linear-gradient(180deg, rgba(28,22,22,.94), rgba(8,5,5,.96));
  border-color: rgba(232,64,64,.32);
}
.br-card .br-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #d4a843;
  margin-bottom: 14px;
}
.br-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: .95;
  letter-spacing: .015em;
  color: #f4f0e8;
  margin: 0 0 16px;
}
.br-card p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #cfc5bb;
  margin: 0 0 12px;
}
.br-card p:last-child { margin-bottom: 0; }
.br-card strong { color: #f4f0e8; font-weight: 700; }
.br-card a { color: #ff8d3e; text-decoration: none; }
.br-card a:hover { text-decoration: underline; }

.br-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 60px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* FAQ page */
body[data-page="faq"] .faq-page { max-width: 980px !important; }
body[data-page="faq"] .ss-hero { margin-bottom: 28px; }
body[data-page="faq"] .ss-hero .ss-title {
  font-size: clamp(48px, 7.5vw, 96px) !important;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.faq-item {
  padding: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22,21,19,.88), rgba(8,7,6,.94));
  border: 1px solid rgba(255,255,255,.07);
  transition: border-color .15s ease;
  overflow: hidden;
}
.faq-item:hover { border-color: rgba(212,168,67,.25); }
.faq-item[open] { border-color: rgba(212,168,67,.35); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  user-select: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: #d4a843;
  transition: transform .2s ease;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}
.faq-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: .15em;
  color: #d4a843;
  background: linear-gradient(135deg, rgba(212,168,67,.18), rgba(212,168,67,.05));
  border: 1px solid rgba(212,168,67,.4);
  border-radius: 4px;
  padding: 4px 10px;
  line-height: 1;
  flex-shrink: 0;
}
.faq-q {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: .015em;
  color: #f4f0e8;
  line-height: 1.05;
  padding-right: 40px;
}
.faq-a {
  padding: 0 24px 22px 24px;
}
.faq-a p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #cfc5bb;
  margin: 0 0 12px;
}
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { color: #ff8d3e; text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

.faq-footer-cta {
  text-align: center;
  padding: 36px 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-bottom: 60px;
}
.faq-footer-cta p {
  color: #b9aea3;
  margin-bottom: 18px;
}
.faq-footer-cta a {
  color: #ff8d3e;
  text-decoration: none;
}

@media (max-width: 760px) {
  .faq-item summary { padding: 16px 18px; gap: 12px; }
  .faq-q { font-size: 18px; padding-right: 32px; }
  .faq-a { padding: 0 18px 18px 18px; }
  .br-card { padding: 22px; }
  body[data-page="responsibly"] .br-hero .ss-title {
    font-size: clamp(40px, 11vw, 64px) !important;
  }
}

/* About page — portrait photo block */
.about-portrait {
  margin: 0 0 26px;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: #0a0907;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  float: right;
  width: 42%;
  margin-left: 28px;
  margin-bottom: 28px;
}
.about-portrait picture, .about-portrait img {
  display: block;
  width: 100%;
  height: auto;
}
.about-portrait figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 50%, rgba(0,0,0,.92) 100%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: .04em;
  color: #f4f0e8;
}
@media (max-width: 880px) {
  .about-portrait {
    float: none;
    width: 100%;
    margin: 0 0 24px;
  }
}

/* Trails page — data-confidence banner */
.data-confidence-banner {
  margin: 0 auto 28px;
  max-width: 1480px;
  padding: 0 28px;
}
.dcb-inner {
  padding: 24px 28px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(212,168,67,.06), transparent 60%),
    linear-gradient(180deg, rgba(22,21,19,.92), rgba(8,7,6,.96));
  border: 1px solid rgba(212,168,67,.2);
}
.dcb-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #d4a843;
  margin-bottom: 16px;
}
.dcb-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 760px) {
  .dcb-cards { grid-template-columns: 1fr; }
}
.dcb-card {
  padding: 16px 18px;
  background: rgba(8,7,6,.5);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 10px;
}
.dcb-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f4f0e8;
  margin-bottom: 6px;
}
.dcb-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #cfc5bb;
  margin-bottom: 8px;
}
.dcb-meta {
  font-size: 11.5px;
  color: #6b6256;
  font-style: italic;
  letter-spacing: .04em;
}
.dcb-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
  color: #8a8076;
  text-align: center;
}
.dcb-footer a {
  color: #d4a843;
  text-decoration: none;
}
.dcb-footer a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .data-confidence-banner { padding: 0 12px; }
  .dcb-inner { padding: 18px; }
}


/* ============================================================
 * v8.17 — Visual System + Polish
 * ============================================================ */

/* Tools grid hierarchy — primary tools larger, secondary smaller */
.tools--tiered { display: block; }

.tools-section-head {
  margin: 24px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}
.tools-section-head--secondary { margin-top: 36px; }
.tools-section-kicker {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: .035em;
  color: #f4f0e8;
}
.tools-section-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #8a8076;
}

.tools-primary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tool--primary {
  position: relative;
  padding: 28px 26px 24px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(201,95,30,.07), transparent 55%),
    linear-gradient(180deg, rgba(22,21,19,.92), rgba(8,7,6,.96));
  border: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  min-height: 180px;
}
.tool--primary:hover {
  transform: translateY(-2px);
  border-color: rgba(201,95,30,.4);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.tool--primary .tool-badge {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: .15em;
  color: #c95f1e;
  border: 1px solid rgba(201,95,30,.4);
  border-radius: 4px;
  padding: 3px 8px;
  line-height: 1;
}
.tool--primary h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  line-height: .95;
  letter-spacing: .02em;
  color: #f4f0e8;
  margin: 0 0 12px;
}
.tool--primary p {
  font-size: 14.5px;
  line-height: 1.55;
  color: #cfc5bb;
  margin: 0 0 18px;
  flex: 1;
}
.tool--primary .tool-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ff8d3e;
  margin-top: auto;
}

.tools-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tool--secondary {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(22,21,19,.85), rgba(8,7,6,.92));
  border: 1px solid rgba(255,255,255,.05);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
  min-height: 130px;
  display: flex;
  flex-direction: column;
}
.tool--secondary:hover {
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}
.tool--secondary h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: .02em;
  color: #f4f0e8;
  margin: 0 0 8px;
  line-height: 1;
}
.tool--secondary p {
  font-size: 13px;
  line-height: 1.5;
  color: #b9aea3;
  margin: 0;
  flex: 1;
}
.tool--secondary .tool-tag {
  display: inline-block;
  margin-top: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #d4a843;
  border: 1px solid rgba(212,168,67,.35);
  border-radius: 3px;
  padding: 3px 7px;
  align-self: flex-start;
}

@media (max-width: 880px) {
  .tools-primary { grid-template-columns: 1fr; }
  .tools-secondary { grid-template-columns: repeat(2, 1fr); }
  .tool--primary { min-height: 0; padding: 22px 20px 20px; }
  .tool--secondary { min-height: 0; padding: 14px 14px 12px; }
}
@media (max-width: 480px) {
  .tools-secondary { grid-template-columns: 1fr; }
}

/* Profile monogram */
.profile-monogram {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(201,95,30,.22), rgba(201,95,30,.06));
  border: 2px solid rgba(201,95,30,.45);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: #f4f0e8;
  letter-spacing: 0;
  box-shadow: 0 8px 24px rgba(201,95,30,.18);
  transition: all .2s ease;
}
.profile-monogram.has-name {
  background: linear-gradient(135deg, #ff8d3e, #c95f1e 70%);
  border-color: #ff8d3e;
  color: #fff;
  box-shadow: 0 8px 24px rgba(201,95,30,.32);
}
.profile-monogram #profile-monogram-letter {
  line-height: 1;
}

/* Save confirmation pill */
.ss-saved-pill {
  position: fixed;
  z-index: 9999;
  background: linear-gradient(135deg, #2d7a3a, #1f5527);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(45,122,58,.6);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ss-saved-pill--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ss-saved-tick {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: #2d7a3a;
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

/* Sample fuel plan state */
.sample-plan-wrapper {
  position: relative;
  padding-top: 4px;
}
.sample-plan-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(212,168,67,.10), rgba(212,168,67,.02));
  border: 1px solid rgba(212,168,67,.35);
  border-left: 3px solid #d4a843;
  border-radius: 8px;
  position: relative;
}
.sample-plan-label {
  flex-shrink: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #d4a843;
  background: rgba(212,168,67,.15);
  border: 1px solid rgba(212,168,67,.4);
  border-radius: 4px;
  padding: 4px 8px;
}
.sample-plan-text {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.5;
  color: #d6ccc2;
}
.sample-plan-dismiss {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #b9aea3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sample-plan-dismiss:hover {
  border-color: rgba(255,141,62,.6);
  color: #ff8d3e;
}

.result-card--sample {
  position: relative;
  padding: 26px 28px 24px;
  background: linear-gradient(180deg, rgba(22,21,19,.92), rgba(8,7,6,.96));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  margin-bottom: 18px;
}
.result-head {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.result-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: .015em;
  color: #f4f0e8;
  line-height: .95;
  margin-bottom: 6px;
}
.result-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a8076;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.result-block {
  padding: 16px 18px;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 10px;
}
.result-block-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b9aea3;
  margin-bottom: 6px;
}
.result-block-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: .02em;
  color: #ff8d3e;
  line-height: 1;
  margin-bottom: 8px;
}
.result-block-hint {
  font-size: 13px;
  line-height: 1.5;
  color: #cfc5bb;
}
.result-note {
  padding: 14px 18px;
  background: rgba(232,64,64,.05);
  border: 1px solid rgba(232,64,64,.25);
  border-left: 3px solid #e84040;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #d6ccc2;
}
.result-note strong { color: #f4f0e8; }

.sample-plan-cta {
  text-align: center;
  padding: 12px;
}
.gen-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  color: #b9aea3;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
}
.gen-btn-secondary:hover {
  border-color: rgba(255,141,62,.6);
  color: #ff8d3e;
}

@media (max-width: 760px) {
  .sample-plan-banner { flex-wrap: wrap; }
  .sample-plan-text { font-size: 12.5px; }
  .result-grid { grid-template-columns: 1fr; gap: 10px; }
  .result-card--sample { padding: 20px; }
}

/* v8.17 hotfix: override existing .tools grid when .tools--tiered is present */
body[data-page="home"] .tools.tools--tiered,
.tools.tools--tiered {
  display: block !important;
  padding: 0 44px 50px;
  grid-template-columns: none !important;
}
body[data-page="home"] .tools.tools--tiered .tool {
  /* Reset any inherited min-height from base .tool rule */
  min-height: 0 !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
body[data-page="home"] .tools.tools--tiered .tool--primary,
body[data-page="home"] .tools.tools--tiered .tool--secondary {
  /* Re-apply the proper styling on top of the reset */
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, rgba(201,95,30,.07), transparent 55%),
    linear-gradient(180deg, rgba(22,21,19,.92), rgba(8,7,6,.96)) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  padding: 28px 26px 24px !important;
  min-height: 180px !important;
}
body[data-page="home"] .tools.tools--tiered .tool--secondary {
  background: linear-gradient(180deg, rgba(22,21,19,.85), rgba(8,7,6,.92)) !important;
  padding: 18px 18px 16px !important;
  min-height: 130px !important;
  border-radius: 12px !important;
}
@media (max-width: 880px) {
  body[data-page="home"] .tools.tools--tiered { padding: 0 14px 90px; }
}

/* Safety is the priority destination in a safety app */
.ss-app-nav a[href="safety.html"],.ss-desktop-nav a[href="safety.html"]{color:#c95f1e;font-weight:700;}
