/* ============================================================================
   theme.css: clean light theme for every public template.
   Loaded last in <head>. Remove the <link> to roll a page back.
   ========================================================================== */

/* 1. Tokens: shared design system (styles.css) and standalone pages */
:root:root {
  --c-base-dark:#000; --c-navy:#1d1d1f; --c-navy-700:#2c2c2e;
  --c-cream:#fff; --c-neutral:#f5f5f7; --c-neutral-200:#e3e3e8; --c-white:#fff;
  --c-gold:#0071e3; --c-gold-deep:#0066cc; --c-gold-soft:#eef6ff; --c-gold-ring:rgba(0,113,227,.28);
  --c-teal:#0071e3; --c-teal-deep:#0066cc; --c-teal-soft:#eef6ff; --c-teal-ring:rgba(0,113,227,.24);
  --c-text:#1d1d1f; --c-text-muted:#6e6e73; --c-text-soft:#86868b;
  --font-sans:-apple-system,BlinkMacSystemFont,'Inter',system-ui,sans-serif;
  --font-serif:-apple-system,BlinkMacSystemFont,'Inter',system-ui,sans-serif;
  --navy:#1d1d1f; --indigo:#0071e3; --indigo2:#0066cc; --cyan:#0071e3;
  --amber:#0071e3; --amber2:#0066cc;
  --bg:#f5f5f7; --border:#e3e3e8; --text:#1d1d1f; --muted:#6e6e73;
  --r:18px; --shadow:none; --shadow-lg:0 12px 40px rgba(0,0,0,.08);
}

/* 2. Type */
html body, html body :is(h1,h2,h3,h4,h5,button,input,select,textarea) {
  font-family:-apple-system,BlinkMacSystemFont,'Inter',system-ui,sans-serif;
}
body :is(h1,h2) { letter-spacing:-.015em; }
body h1 em, body h1 .accent { font-style:normal; color:inherit; }

/* 3. Header (all pages that use the shared header) */
:root { --sh-h:52px; }
body .sh-header.sh-header { height:52px; background:rgba(15,20,36,.92); -webkit-backdrop-filter:saturate(180%) blur(20px); backdrop-filter:saturate(180%) blur(20px); box-shadow:none; }
body .sh-logo img { height:30px; }
body .sh-link { font-size:13px; font-weight:500; }
body .sh-cta.sh-cta { background:#0071e3; color:#fff; box-shadow:none; font-size:13px; font-weight:500; padding:7px 15px; }

/* 4. Page heroes: light, dark text (homepage has its own) */
body:not(.home-page) :is(.hero,.page-hero,.article-hero,.rdm-hero) { background:#f5f5f7; color:#1d1d1f; }
body:not(.home-page) .hero::before, body:not(.home-page) .hero::after { display:none; }
body:not(.home-page) :is(.hero,.page-hero,.article-hero) :is(h1,h2,h3,strong,.hero-title,.n,.num) { color:#1d1d1f; }
body:not(.home-page) :is(.hero,.page-hero,.article-hero) :is(p,.hero-lead,.hero-sub,.t-lead,.hero-trust,.byline,.meta,.l,.lbl) { color:#6e6e73; }
body:not(.home-page) :is(.hero,.page-hero,.article-hero) :is(.crumbs,.breadcrumb),
body:not(.home-page) :is(.hero,.page-hero,.article-hero) :is(.crumbs,.breadcrumb) :is(a,span) { color:#6e6e73; }
body:not(.home-page) :is(.hero,.page-hero,.article-hero) :is(.eyebrow,.hero-eyebrow) { color:#0066cc; background:transparent; border-color:#d2d2d7; }
body:not(.home-page) .hero .btn-outline-invert, body:not(.home-page) .hero :is(.btn-ghost,.btn-cta-outline) { background:transparent; border-color:#0071e3; color:#0066cc; }
body:not(.home-page) .hero .quick-answer { background:#fff; border-color:#e3e3e8; }
body:not(.home-page) .hero .quick-answer :is(p,strong) { color:#1d1d1f; }

/* 5. Buttons: blue pills with white text */
body :is(.btn,.btn-cta,.btn-vp,.btn-rq,.btn-sub,.btn-submit,.btn-quote,.btn-co,.btn-view-co,.btn-req-co,.btn-plan,.btn-pq,.btn-pq2,.btn-fp,.pf-btn-primary,.pf-btn-secondary,.pf-claim-btn,.upgrade-btn,.btn-done,.btn-sv,.btn-portal,.btn-reset,.nav-cta) { border-radius:980px; box-shadow:none; }
body :is(.btn-primary,.btn-teal,.btn-gold,.btn-cta,.btn-sub,.btn-submit,.btn-quote,.pf-btn-primary,.upgrade-btn,.btn-plan.paid,.btn-submit.paid-plan,.btn-submit.basic),
body :is(.btn-primary,.btn-teal,.btn-gold,.btn-cta,.btn-sub,.btn-submit,.btn-quote,.pf-btn-primary,.upgrade-btn,.btn-plan.paid):hover { background:#0071e3; border-color:#0071e3; color:#fff; }
body .btn-dark { background:#1d1d1f; border-color:#1d1d1f; color:#fff; }

/* 6. Surfaces */
body:not(.home-page) { background:#fff; color:#1d1d1f; }
body :is(.card,.rcard,.post-card,.co-card,.rel-card,.cat,.uc,.detail-card,.sidebar-card,.answer-card,.factor-card,.uc-card,.plan-card,.partner-card,.form-card,.step,.faq-item,.pf-section,.pf-fact) { border-radius:18px; box-shadow:none; }
body .section-neutral { background:#f5f5f7; }
body :is(.section-navy,.final-cta) { background:#000; }
body :is(.section-navy,.final-cta) :is(h2,h3,h4) { color:#fff; }
body :is(.eyebrow)::before { display:none; }

/* 7. Header and footer */
body .sh-header a, body .sh-header a:hover { text-decoration:none; }
body .ft-wrap.ft-wrap { background:#f5f5f7; border-top:1px solid #e3e3e8; color:#6e6e73; margin-top:0; }
body .ft-wrap :is(.ft-tagline,.ft-col-title) { color:#1d1d1f; }
body .ft-wrap :is(.ft-about,.ft-links a,.ft-copy,.ft-copy a,.ft-legal a) { color:#515154; }
body .ft-wrap :is(.ft-links a,.ft-legal a,.ft-soc-link):hover { color:#0066cc; }
body .ft-wrap .ft-bottom { border-top-color:#d2d2d7; }
body .ft-wrap .ft-soc-link { background:#fff; border-color:#d2d2d7; color:#515154; }
body .ft-wrap .ft-logo img { mix-blend-mode:normal !important; background:#1d1d1f !important; border-radius:8px; padding:4px 8px; }

/* 8. Directory and robot detail contrast */
body .hero .hero-stats { background:#fff; border:1px solid #e3e3e8; }
body .hero .hstat { border-color:#e3e3e8; }
body .hero .hstat-n { color:#1d1d1f; }
body .hero .hstat-l { color:#6e6e73; }
body .hero :is(.badge-type,.rdm-tag) { background:#fff; border-color:#d2d2d7; color:#1d1d1f; }
body .hero .badge-avail-ok { background:#e8f8ee; border-color:#b7e4c7; color:#0a6b35; }
body .hero .badge-avail-no { background:#fdecec; border-color:#f5c2c2; color:#a12121; }
body .hero .btn-co, body .hero .btn-co:hover { background:#fff; border:1px solid #0071e3; color:#0066cc; }

/* 9. Listing photos: square boxes, whole robot visible */
body :is(.rcard-img,.co-media.co-media) { height:auto; aspect-ratio:1/1; background:#fff; }
body :is(.rcard-img,.co-media) img { object-fit:contain; }
body .pf-robot-img { aspect-ratio:1/1; height:auto; object-fit:contain; background:#fff; }
body .pf-robot-btn { border-radius:16px; }
body .rcard :is(.btn-vp,.btn-rq) { border-radius:12px; }

/* 10. Directory Rent / Buy switch */
body .tab-bar .tab-btn.tab-btn { background:#fff; border:1px solid #0071e3; color:#0066cc; box-shadow:none; }
body .tab-bar .tab-btn.tab-btn.active { background:#0071e3; color:#fff; }

/* 11. Headline accents and breadcrumb spacing */
body:not(.home-page) h1 :is(em,.accent,span.hl,.grad) { font-style:normal; color:inherit !important; -webkit-text-fill-color:currentColor; background:none; }
body:not(.home-page) .crumbs:first-child, body:not(.home-page) main > :first-child .crumbs { padding-top:14px; }

/* 12. Fit and contrast fixes */
body:not(.home-page) .hero-copy { min-width:0; }
body:not(.home-page) .hero-copy h1 { font-size:clamp(2.1rem,1.2rem + 3vw,3.5rem) !important; overflow-wrap:anywhere; }
body:not(.home-page) .hero :is(p,div,span) > :is(b,strong,span[id],span[data-live-countries]) { color:#1d1d1f !important; }
body .sponsor-card .btn-plan, body .btn-plan.sponsor-btn { background:#0071e3; color:#fff; border-color:#0071e3; box-shadow:none; }
body .price-table a { color:#0066cc; }

/* 13. Legal page headings */
body:not(.home-page) section:has(.legal-updated) { padding-block:20px 32px; }
body:not(.home-page) .legal-updated { margin-top:12px; }

/* 14. How It Works steps: three even cards */
body .steps:not(.ax-steps) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:stretch; }
body .steps:not(.ax-steps) .step { background:#f5f5f7; border:0; border-radius:22px; padding:32px 26px; text-align:center; }
body .steps:not(.ax-steps) .step-ic { display:flex; align-items:center; justify-content:center; width:56px; height:56px; margin:0 auto 18px; border-radius:50%; background:#fff; color:#0071e3; }
body .steps:not(.ax-steps) .step h3 { font-size:20px; margin-bottom:8px; }
@media (max-width:800px) { body .steps:not(.ax-steps) { grid-template-columns:minmax(0,1fr); } }

/* 15. One palette: neutral tags, light plan boxes, blue accent */
body :is(.ptag-r,.ptag-u,.tag-r,.tag-u,.ptag-loc,.pf-tags a,.pf-tag-more,.pf-robot-type,.rcard-type,.co-tags .badge) { background:#f5f5f7; color:#424245; border-color:#e3e3e8; }
body .card.sponsor-card, body .plan-card.sponsor { background:#fff; border:1px solid #1d1d1f; }
body .sponsor-card :is(.card-name,.card-price-period,.card-tagline,.stripe-note) { color:#6e6e73; }
body .sponsor-card :is(.card-price-num,.card-features li,.card-features li strong) { color:#1d1d1f; }
body .sponsor-card .card-divider, body .plan-card.sponsor .plan-divider { background:#e3e3e8; }
body .sponsor-card .cf-check { background:#eef6ff; }
body .sponsor-card .cf-check svg { stroke:#0071e3; }
body .plan-card.sponsor :is(.plan-price,.plan-features li) { color:#1d1d1f; }
body .plan-card.sponsor .plan-tagline { color:#6e6e73; }
body .card-badge, body .card-badge.sponsor-badge, body .plan-badge { background:#0071e3; color:#fff; box-shadow:none; }
body .roi-callout::before { display:none; }
body .roi-callout { border-left:0; }
body .claim-band, body .math-head:is(.f,.p,.m), body .ptable thead th:is(.pop,.top) { background:#1d1d1f; color:#fff; }
body .ptable .col-member { background:#f5f5f7; }
body .answer-card { background:#f5f5f7; border:0; }
body .answer-card :is(.answer,.answer strong) { color:#1d1d1f; }

/* 16. Photos: show the whole picture; theme.js fills any empty sides */
body .post-hero-img img { aspect-ratio:auto !important; height:auto !important; object-fit:contain !important; }
body:not(.home-page) .hero-visual { height:auto !important; align-self:center; }
body:not(.home-page) .hero-visual .hv-img { display:block; width:100%; height:auto; max-height:520px; object-fit:contain; background:transparent; border:0; box-shadow:none; }
@media (max-width:860px) { body:not(.home-page) .hero-visual .hv-img { max-height:360px; } }
body .featured-post .fp-media img { object-fit:contain; }
body .pf-hero-photo img { object-fit:contain; }
.ph-fill { position:relative; overflow:hidden; isolation:isolate; }
.ph-fill::before { content:""; position:absolute; inset:-24px; clip-path:inset(24px round 18px); z-index:-1; background:var(--ph) center/cover no-repeat; filter:blur(22px) saturate(1.1); opacity:.75; }
.ph-fill > img { background:transparent !important; }
body :is(.hero-visual,.featured-post .fp-media).ph-fill { border-radius:20px; }
.ph-box { display:block; width:100%; }
.ax-tile .ph-box { margin-top:28px; }
.ax-tile .ph-box > img { margin-top:0; }
body:not(.home-page) .hero-visual.ph-fill { overflow:visible; }
body:not(.home-page) .hero-visual:has(> img[src$=".svg"]) .hv-chip { bottom:-22px; }
