/*
Theme Name: Saintifi
Theme URI: https://saintifi.com
Author: Saintifi / Sophia Institute Press
Author URI: https://sophiainstitute.com
Description: Custom marketing theme for Saintifi — unlimited Catholic audiobooks & ebooks. Modeled on the approved homepage redesign. Self-contained front page plus clean templates for standard pages and posts.
Version: 1.12.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saintifi
*/

:root{
  --ink:#1b1733;
  --indigo:#4e49a5;
  --indigo-deep:#36316f;
  --indigo-soft:#ece9fb;
  --gold:#c4a052;
  --gold-deep:#a9863b;
  --cream:#f7f3ec;
  --paper:#ffffff;
  --muted:#615d78;
  --line:#e7e2d8;
  --shadow:0 18px 50px -20px rgba(27,23,51,.35);
  --serif:'Cormorant Garamond',Georgia,serif;
  --sans:'Inter',system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--sans);color:var(--ink);background:var(--paper);line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block;height:auto}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.serif{font-family:var(--serif)}
.ital{font-family:var(--serif);font-style:italic;font-weight:500}
h1,h2,h3{font-family:var(--serif);font-weight:600;line-height:1.08;letter-spacing:-.01em}
h2{font-size:clamp(30px,4.4vw,52px);color:var(--ink)}
.eyebrow{font-family:var(--sans);font-size:13px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-deep)}
.btn{display:inline-flex;align-items:center;gap:8px;font-family:var(--sans);font-weight:600;font-size:15px;padding:14px 26px;border-radius:999px;cursor:pointer;transition:.2s;border:1.5px solid transparent}
.btn-primary{background:var(--indigo);color:#fff}
.btn-primary:hover{background:var(--indigo-deep);transform:translateY(-1px)}
.btn-gold{background:var(--gold);color:#241c05}
.btn-gold:hover{background:var(--gold-deep)}
.btn-ghost{background:transparent;border-color:rgba(255,255,255,.4);color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.12)}
.btn-outline{background:transparent;border-color:var(--indigo);color:var(--indigo)}
.btn-outline:hover{background:var(--indigo-soft)}

/* ---------- NAV ---------- */
header.site-nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav-inner{display:flex;align-items:center;gap:32px;height:72px}
.site-nav .logo img{height:34px;width:auto}
.nav-links{display:flex;gap:26px;margin-left:8px;font-size:15px;font-weight:500;list-style:none}
.nav-links a:hover{color:var(--indigo)}
.nav-cta{margin-left:auto;display:flex;align-items:center;gap:16px}
.nav-cta .login{font-weight:600;font-size:15px}
.hamburger{display:none;font-size:24px;background:none;border:none;cursor:pointer;color:var(--ink)}

/* ---------- HERO ---------- */
.hero{position:relative;color:#fff;overflow:hidden;background:
    radial-gradient(120% 120% at 80% 0%,rgba(42,37,82,.84) 0%,rgba(27,23,51,.9) 55%,rgba(21,18,42,.95) 100%),
    url('https://saintifi.com/wp-content/uploads/2026/06/hero-reading-scaled.jpg') center/cover no-repeat;}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:50px;align-items:center;padding-top:74px;padding-bottom:60px}
.hero h1{font-size:clamp(38px,5.6vw,68px);color:#fff;margin-bottom:18px}
.hero h1 .ital{color:#d9b96a}
.hero p.lede{font-size:19px;color:#d7d4e6;max-width:540px;margin-bottom:28px}
.hero-cta{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:26px}
.trust{display:flex;gap:28px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.14);padding-top:22px}
.trust .stat{display:flex;flex-direction:column}
.trust .num{font-family:var(--serif);font-size:30px;font-weight:600;color:#d9b96a;line-height:1}
.trust .lbl{font-size:12.5px;letter-spacing:.05em;color:#b8b4cd;text-transform:uppercase;margin-top:6px}
.stores{display:flex;gap:14px;margin-top:24px;align-items:center}
.stores a{display:inline-flex;transition:.2s}
.stores a:hover{transform:translateY(-2px)}
.stores img{height:52px;width:auto}
.hero-visual{position:relative;min-height:540px;max-width:500px;margin:0 auto;width:100%}
.hero-ph{position:absolute;filter:drop-shadow(0 28px 42px rgba(0,0,0,.5))}
.hero-ph-player{width:96%;top:6px;right:-3%;z-index:2}
.hero-ph-book{width:60%;bottom:0;left:-7%;z-index:3}
.glow{position:absolute;width:400px;height:400px;border-radius:50%;background:radial-gradient(circle,rgba(196,160,82,.32),transparent 65%);top:40px;left:50%;transform:translateX(-50%);filter:blur(10px);z-index:1}
.stars{color:#e7c873;letter-spacing:2px;font-size:15px}

/* ---------- SECTIONS ---------- */
.section{padding:84px 0}
.section.cream{background:var(--cream)}
.center{text-align:center}
.center .lead{max-width:680px;margin:18px auto 0;color:var(--muted);font-size:18px}
.kicker{margin-bottom:14px}

/* ---------- CAROUSEL ---------- */
.row-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:24px;gap:20px}
.row-head h3{font-size:30px}
.row-head .viewall{font-weight:600;font-size:14px;color:var(--indigo);white-space:nowrap}
.shelf{display:grid;grid-auto-flow:column;grid-auto-columns:170px;gap:20px;overflow-x:auto;padding-bottom:16px;scroll-snap-type:x mandatory}
.shelf::-webkit-scrollbar{height:8px}
.shelf::-webkit-scrollbar-thumb{background:var(--line);border-radius:8px}
.book{scroll-snap-align:start}
.book img{aspect-ratio:1/1;object-fit:cover;border-radius:12px;box-shadow:var(--shadow);transition:.25s}
.book:hover img{transform:translateY(-6px)}

/* ---------- AUTHORS ---------- */
.authors{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.author{text-align:center}
.author img{width:130px;height:130px;border-radius:50%;object-fit:cover;margin:0 auto 14px;border:3px solid var(--paper);box-shadow:var(--shadow)}
.author .nm{font-family:var(--serif);font-size:20px;font-weight:600}
.author .rl{font-size:13px;color:var(--muted)}

/* ---------- TOPICS ---------- */
.topics{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;max-width:880px;margin:0 auto}
.chip{border:1.5px solid var(--line);background:var(--paper);border-radius:999px;padding:11px 20px;font-size:14.5px;font-weight:500;transition:.2s;cursor:pointer}
.chip:hover{border-color:var(--indigo);color:var(--indigo);background:var(--indigo-soft)}

/* ---------- ENDORSEMENTS ---------- */
.quotes{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.quote{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:30px;box-shadow:var(--shadow)}
.quote .stars{margin-bottom:14px}
.quote p{font-family:var(--serif);font-size:20px;line-height:1.4;color:var(--ink);margin-bottom:20px}
.qby{display:flex;align-items:center;gap:12px}
.qby img{width:52px;height:52px;border-radius:50%;object-fit:cover}
.qby .nm{font-weight:700;font-size:15px}
.qby .rl{font-size:13px;color:var(--muted)}

/* ---------- PRICING ---------- */
.pricing{background:radial-gradient(120% 120% at 50% 0%,#2a2552,#1b1733);color:#fff}
.plans{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-top:44px;max-width:760px;margin-left:auto;margin-right:auto}
.plan{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.14);border-radius:20px;padding:32px 28px;display:flex;flex-direction:column}
.plan.featured{background:#fff;color:var(--ink);border:none;transform:translateY(-10px);box-shadow:0 40px 70px -25px rgba(0,0,0,.55)}
.plan .tag{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-deep);margin-bottom:6px}
.plan.featured .ribbon{display:inline-block;background:var(--gold);color:#241c05;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:5px 12px;border-radius:999px;margin-bottom:14px;align-self:center}
.plan h3{font-size:26px;margin-bottom:4px}
.plan .price{font-family:var(--serif);font-size:48px;font-weight:700;line-height:1}
.plan .price small{font-size:16px;font-family:var(--sans);font-weight:500;color:var(--muted)}
.plan.featured .price small{color:var(--muted)}
.plan ul{list-style:none;margin:20px 0 26px;display:flex;flex-direction:column;gap:11px}
.plan li{font-size:14.5px;display:flex;gap:10px;align-items:flex-start;color:inherit;opacity:.92}
.plan li:before{content:"\2726";color:var(--gold);font-size:13px;margin-top:3px}
.plan .btn{width:100%;justify-content:center;margin-top:auto}

/* ---------- CAROUSEL (Books shelves) ---------- */
.carousel{position:relative}
.carousel .shelf{scroll-behavior:smooth}
.carousel-nav{position:absolute;top:calc(50% - 8px);transform:translateY(-50%);z-index:6;
  width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--paper);
  color:var(--indigo);font-size:24px;line-height:1;cursor:pointer;box-shadow:var(--shadow);
  display:flex;align-items:center;justify-content:center;transition:.2s}
.carousel-nav:hover{background:var(--indigo);color:#fff;border-color:var(--indigo)}
.carousel-nav.prev{left:-14px}
.carousel-nav.next{right:-14px}
.carousel-nav[hidden]{display:none}
.book-noimg{display:flex;align-items:center;justify-content:center;text-align:center;
  aspect-ratio:1/1;border-radius:12px;background:var(--indigo-soft);color:var(--indigo);
  font-family:var(--serif);font-size:18px;padding:14px}
@media(max-width:640px){
  .carousel-nav{display:none}
}

/* ---------- SINGLE BOOK PAGE ---------- */
.book-single{max-width:1040px;margin:0 auto;padding:48px 24px 80px}
.bs-back{display:inline-block;margin-bottom:28px;font-size:14px;font-weight:600;color:var(--indigo)}
.bs-back:hover{color:var(--indigo-deep)}
.bs-grid{display:grid;grid-template-columns:340px 1fr;gap:48px;align-items:start}
.bs-cover img{width:100%;border-radius:16px;box-shadow:var(--shadow)}
.bs-sample{margin-top:18px}
.bs-sample-label{display:block;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.bs-audio{width:100%;height:42px}
.bs-info .eyebrow{margin-bottom:10px}
.bs-title{font-size:clamp(30px,4vw,46px);line-height:1.05;margin-bottom:20px}
.bs-meta{display:flex;flex-direction:column;gap:10px;margin:0 0 26px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.bs-meta .row{display:flex;gap:16px;align-items:baseline}
.bs-meta .k{min-width:96px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.bs-meta .v{font-family:var(--serif);font-size:19px;color:var(--ink)}
.bs-cats{margin-top:0;margin-bottom:26px}
.bs-cats .v{color:var(--gold-deep)}
.bs-desc{font-size:17px;color:#332f4a;margin-bottom:30px}
.bs-desc p{margin:0 0 16px}
.bs-cta{display:flex;flex-wrap:wrap;gap:14px}
.bs-cta .btn-primary{font-size:16px;padding:15px 30px}
@media(max-width:760px){
  .bs-grid{grid-template-columns:1fr;gap:28px}
  .bs-cover{max-width:280px}
}

/* ---------- SHELF ARCHIVE (portfolio) ---------- */
.shelf-archive{max-width:1180px;margin:0 auto;padding:48px 24px 80px}
.shelf-archive .archive-title{font-size:clamp(32px,4.5vw,52px);margin:8px 0 36px}
.book-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:40px 32px}
@media(max-width:760px){.book-grid{grid-template-columns:repeat(2,1fr);gap:30px 22px}}
@media(max-width:460px){.book-grid{grid-template-columns:1fr}}
.book-card{display:flex;flex-direction:column;gap:12px}
.book-card-cover img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px;box-shadow:var(--shadow);transition:.25s}
.book-card:hover .book-card-cover img{transform:translateY(-6px)}
.book-card-title{font-family:var(--serif);font-size:18px;font-weight:600;line-height:1.2;color:var(--ink)}
.book-card:hover .book-card-title{color:var(--indigo)}

/* ============================================================
   LANDING PAGE (distraction-free, for paid social traffic)
   ============================================================ */
.lp-nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.lp-nav-inner{display:flex;align-items:center;height:64px}
.lp-nav .logo img{height:30px;width:auto}
.lp-nav .btn{margin-left:auto;padding:11px 22px;font-size:14.5px}
.lp{width:100%}

/* Hero */
.lp-hero{position:relative;color:#fff;text-align:center;overflow:hidden;background:
	radial-gradient(120% 120% at 50% 0%,rgba(42,37,82,.86) 0%,rgba(27,23,51,.92) 55%,rgba(21,18,42,.96) 100%),
	url('https://saintifi.com/wp-content/uploads/2026/06/hero-reading-scaled.jpg') center/cover no-repeat;}
.lp-hero .wrap{max-width:780px;padding:58px 24px 50px}
.lp-hero .stars{color:#e7c873;letter-spacing:2px;font-size:15px;margin-bottom:14px}
.lp-hero h1{font-family:var(--serif);font-weight:600;color:#fff;font-size:clamp(34px,6vw,58px);line-height:1.06;margin-bottom:18px}
.lp-hero h1 .ital{color:#d9b96a}
.lp-hero .sub{font-size:18px;color:#d7d4e6;max-width:600px;margin:0 auto 26px}
.lp-cta-row{display:flex;justify-content:center}
.reassure{display:flex;gap:18px;flex-wrap:wrap;justify-content:center;margin-top:16px;font-size:13.5px;color:#cfccdf}
.reassure span{display:inline-flex;align-items:center;gap:7px}
.reassure .ck{color:#9be6b0;font-weight:700}
.lp-hero .stores{justify-content:center;margin-top:24px}
.lp-hero .hero-visual{margin:34px auto 0;min-height:420px;max-width:460px}

/* Trust strip */
.trust-strip{background:var(--cream);padding:22px 0;border-bottom:1px solid var(--line)}
.trust-strip .wrap{display:flex;gap:28px;justify-content:center;align-items:center;flex-wrap:wrap}
.trust-strip .lab{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:600}
.trust-strip .who{display:flex;align-items:center;gap:9px}
.trust-strip img{width:42px;height:42px;border-radius:50%;object-fit:cover}
.trust-strip .nm{font-family:var(--serif);font-size:17px;font-weight:600}

/* Sections + components */
.lp-section{padding:64px 0}
.lp-section.cream{background:var(--cream)}
.lp-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:42px}
.lp-benefit{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:30px 26px;text-align:center;box-shadow:var(--shadow)}
.lp-benefit h3{font-size:23px;margin-bottom:8px}
.lp-benefit p{color:var(--muted);font-size:15.5px}
.lp-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:42px;counter-reset:step}
.lp-step{text-align:center}
.lp-step .n{counter-increment:step;width:52px;height:52px;border-radius:50%;background:var(--indigo);color:#fff;font-family:var(--serif);font-size:23px;font-weight:700;display:flex;align-items:center;justify-content:center;margin:0 auto 14px}
.lp-step .n:before{content:counter(step)}
.lp-step h3{font-size:21px;margin-bottom:6px}
.lp-step p{color:var(--muted);font-size:15px;max-width:280px;margin:0 auto}
.lp-final{background:var(--indigo);color:#fff;text-align:center;padding:72px 0}
.lp-final h2{color:#fff}
.lp-final p{max-width:560px;margin:16px auto 30px;color:#dcdaf2;font-size:18px}
.lp-micro{font-size:13.5px;color:var(--muted);margin-top:12px}

/* Minimal footer */
.lp-foot{background:var(--ink);color:#9b97b4;text-align:center;padding:30px 24px;font-size:13.5px}
.lp-foot a{color:#b3afca;text-decoration:underline}

/* Sticky mobile CTA */
.sticky-cta{display:none}
@media(max-width:760px){
	.lp-benefits,.lp-steps{grid-template-columns:1fr}
	.sticky-cta{display:block;position:fixed;left:12px;right:12px;bottom:12px;z-index:60;background:var(--gold);color:#241c05;text-align:center;padding:15px;border-radius:12px;font-weight:700;box-shadow:0 12px 30px -8px rgba(0,0,0,.4)}
	.lp-foot{padding-bottom:88px}
}

/* ---------- STATIC PAGES: SUPPORT / PRIVACY ---------- */
.page-shell .page-lead{font-size:19px;color:var(--muted);margin:-8px 0 28px}
.support-actions{display:flex;flex-wrap:wrap;gap:14px;margin:0 0 40px}
.support-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:0 0 16px}
.support-card{background:var(--cream);border:1px solid var(--line);border-radius:16px;padding:24px}
.support-card h3{font-size:19px;margin-bottom:8px}
.support-card p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.5}
.support-card .status-ok{color:#1f9d57;font-weight:700}
.support-notice{background:var(--indigo-soft);border-radius:14px;padding:22px 24px;font-size:15px;color:var(--ink);margin-top:8px}
.support-notice strong{color:var(--indigo-deep)}

/* FAQ accordion (shared) */
.faq{margin:8px 0 8px}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;list-style:none;padding:18px 4px;font-family:var(--serif);font-size:21px;font-weight:600;display:flex;justify-content:space-between;align-items:center;gap:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary:after{content:"+";color:var(--indigo);font-family:var(--sans);font-weight:400;font-size:26px;transition:.2s}
.faq details[open] summary:after{transform:rotate(45deg)}
.faq .faq-a{padding:0 4px 20px;color:var(--muted);font-size:16px}
.faq .faq-a a{color:var(--indigo);text-decoration:underline}

@media(max-width:760px){
  .support-cards{grid-template-columns:1fr}
}

/* ---------- FOOTER MENUS ---------- */
.site-footer .footer-menu{list-style:none;margin:0;padding:0}
.site-footer .footer-menu li{padding:0;margin:0}
.site-footer .footer-menu a{display:block;padding:5px 0;color:#b3afca}
.site-footer .footer-menu a:hover{color:#fff}

/* ---------- PODCASTS ---------- */
.pods{display:grid;grid-template-columns:repeat(6,1fr);gap:18px}
.pods img{border-radius:14px;box-shadow:var(--shadow);transition:.2s}
.pods img:hover{transform:translateY(-5px)}

/* ---------- FINAL CTA ---------- */
.finalcta{background:var(--indigo);color:#fff;text-align:center}
.finalcta h2{color:#fff}
.finalcta p{max-width:560px;margin:16px auto 30px;color:#dcdaf2;font-size:18px}
/* keep the eyebrow label small — .finalcta p was overriding it to 18px */
.finalcta .eyebrow{font-size:13px;max-width:none;margin:0 0 14px}

/* ---------- FOOTER ---------- */
footer.site-footer{background:var(--ink);color:#c8c4dc;padding:56px 0 30px;font-size:14px}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:36px;margin-bottom:36px}
.site-footer h4{font-family:var(--sans);font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:#fff;margin-bottom:14px}
.site-footer a{display:block;padding:5px 0;color:#b3afca}
.site-footer a:hover{color:#fff}
.foot-logo img{height:38px;margin-bottom:14px;filter:brightness(0) invert(1)}
.foot-bottom{border-top:1px solid rgba(255,255,255,.12);padding-top:22px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;color:#8e8aa6;font-size:13px}

.topbar{background:var(--gold);color:#241c05;text-align:center;font-size:13px;font-weight:600;padding:9px 16px;letter-spacing:.02em}

/* ---------- GENERIC PAGE / POST CONTENT ---------- */
.page-shell{max-width:820px;margin:0 auto;padding:64px 24px 80px}
.page-shell .page-title{font-size:clamp(30px,4vw,46px);margin-bottom:24px}
.entry-content{font-size:17px;color:#332f4a}
.entry-content p{margin:0 0 18px}
.entry-content h2{font-size:30px;margin:34px 0 14px}
.entry-content h3{font-size:23px;margin:28px 0 12px}
.entry-content ul,.entry-content ol{margin:0 0 18px 22px}
.entry-content li{margin-bottom:8px}
.entry-content a{color:var(--indigo);text-decoration:underline}
.entry-content img{border-radius:12px;margin:18px 0}
.entry-content blockquote{border-left:3px solid var(--gold);padding-left:18px;margin:20px 0;font-family:var(--serif);font-size:21px;color:var(--ink)}
.post-list{max-width:820px;margin:0 auto;padding:64px 24px 80px}
.post-list .post-item{padding:22px 0;border-bottom:1px solid var(--line)}
.post-list .post-item h2{font-size:28px;margin-bottom:6px}
.post-list .post-item h2 a:hover{color:var(--indigo)}
.post-meta{font-size:13px;color:var(--muted);margin-bottom:8px}
.pagination{max-width:820px;margin:0 auto;padding:0 24px 60px;display:flex;gap:14px}
.pagination a,.pagination .current{padding:8px 14px;border:1px solid var(--line);border-radius:8px}

/* ============================================================
   BLOCK-EDITOR COMPATIBILITY
   Makes core Gutenberg block markup (groups, buttons, images,
   lists) match the bespoke Saintifi design when the homepage is
   built as an editable Page from the "Saintifi Homepage" pattern.
   ============================================================ */

/* Full-bleed homepage container (page-templates/template-home.php) */
.home-main{width:100%}

/* Group blocks: let our section/wrap classes fully control layout.
   Neutralize core layout max-width + auto child spacing inside them. */
.wp-block-group.section,
.wp-block-group.hero{display:block}
/* Only neutralize the legacy group inner-container (core-block sections).
   Must NOT target the native blocks' own .wrap, which needs its max-width. */
.section > .wp-block-group__inner-container,
.hero > .wp-block-group__inner-container{max-width:none}
.wp-block-group.wrap{max-width:1180px;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}
/* remove core block-gap margins where our grids/flex manage spacing */
.hero-grid > *,
.authors > *,
.quotes > *,
.plans > *,
.pods > *,
.shelf > *,
.stores > *,
.row-head > *{margin-block:0}

/* Headings/paragraphs inside groups shouldn't inherit core constrained width */
.wrap > .wp-block-heading,
.wrap > p{max-width:none}

/* Reset default figure spacing from wp:image inside our modules */
.hero-copy .wp-block-image,
.stores .wp-block-image,
.authors .wp-block-image,
.pods .wp-block-image,
.quote .wp-block-image{margin:0}

/* Buttons: map the core button block to the Saintifi .btn styles.
   className "btn btn-gold|btn-ghost|btn-primary" sits on the wrapper. */
.wp-block-button.btn > .wp-block-button__link{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--sans);font-weight:600;font-size:15px;
  padding:14px 26px;border-radius:999px;border:1.5px solid transparent;
  transition:.2s;text-decoration:none;line-height:1.2;
}
.wp-block-button.btn-gold > .wp-block-button__link{background:var(--gold);color:#241c05}
.wp-block-button.btn-gold > .wp-block-button__link:hover{background:var(--gold-deep)}
.wp-block-button.btn-ghost > .wp-block-button__link{background:transparent;border-color:rgba(255,255,255,.4);color:#fff}
.wp-block-button.btn-ghost > .wp-block-button__link:hover{background:rgba(255,255,255,.12)}
.wp-block-button.btn-primary > .wp-block-button__link{background:var(--indigo);color:#fff}
.wp-block-button.btn-primary > .wp-block-button__link:hover{background:var(--indigo-deep)}
.wp-block-buttons.hero-cta{gap:14px;margin-bottom:26px}
/* The .btn classes also land on the button-block WRAPPER, which created an
   outer pill around the inner link pill. Strip the wrapper so only the inner
   link renders as the button. */
.wp-block-button.btn{padding:0;border:0;background:transparent;border-radius:0}

/* Endorsement bylines: the section is centered, so force the name/role block
   left under the avatar. */
.qby{text-align:left}
.qby > div{flex:1}

/* Eyebrow/lede/lead paragraphs keep their look as core paragraphs */
p.eyebrow{margin:0 0 14px}
p.lede{font-size:19px;color:#d7d4e6;max-width:540px;margin-bottom:28px}
p.stars{margin-bottom:14px}

/* Classic themes (no theme.json) wrap a group's inner blocks in
   .wp-block-group__inner-container. Where we need the group's CHILDREN laid
   out (the 2-column hero, the row-head), make that wrapper span the full
   group width and become the grid/flex container itself. These selectors are
   no-ops on modern markup (where the wrapper is absent and the base
   .hero-grid / .row-head rules apply directly). */
.hero-grid > .wp-block-group__inner-container{
  grid-column:1 / -1;
  display:grid;grid-template-columns:1.05fr .95fr;gap:50px;align-items:center;
}
.row-head > .wp-block-group__inner-container{
  flex:1;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:960px){
  .hero-grid > .wp-block-group__inner-container{grid-template-columns:1fr}
  .hero-grid{grid-template-columns:1fr;gap:30px;padding-top:54px;padding-bottom:40px}
  .hero-visual{min-height:420px;order:2}
  .authors{grid-template-columns:repeat(2,1fr)}
  .quotes{grid-template-columns:1fr}
  .plans{grid-template-columns:1fr}
  .plan.featured{transform:none}
  .pods{grid-template-columns:repeat(3,1fr)}
  .nav-links{display:none}
  .hamburger{display:none}
  .nav-cta .login{display:none}
  .nav-cta{gap:0}
  .nav-cta .btn{padding:9px 18px;font-size:13.5px}
  .nav-inner{height:64px;gap:16px}
}
@media(max-width:560px){
  .foot-grid{grid-template-columns:1fr 1fr}
  .trust{gap:18px}
  .authors{grid-template-columns:repeat(2,1fr)}
}
