/* ============================================================
   Runbook Press — visual system adapted from the Crossposting
   template: white ground, signature green accent, pill buttons,
   soft rounded cards, Plus Jakarta Sans.
   ============================================================ */

:root{
  --brand:oklch(0.7666 0.1354 153.45);
  --brand-dark:oklch(0.66 0.15 153.45);
  --brand-soft:oklch(0.7666 0.1354 153.45 / .1);
  --brand-glow:oklch(0.7666 0.1354 153.45 / .16);
  --ink:oklch(0.355 0.032 262.99);
  --muted:oklch(0.55 0.03 262.99);
  --line:oklch(0.93 0 0);
  --bg:#fff;
  --bg-soft:#fafbfa;
  --max:1200px;
  --font:"Plus Jakarta Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);line-height:1.65;-webkit-font-smoothing:antialiased}
::selection{background:var(--brand-soft)}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{width:100%;max-width:var(--max);margin:0 auto;padding:0 20px}
@media(min-width:640px){.wrap{padding:0 24px}}
@media(min-width:1024px){.wrap{padding:0 32px}}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;
     padding:12px 24px;font-size:14px;font-weight:700;border:1px solid transparent;cursor:pointer;
     font-family:inherit;transition:all .18s}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0)}
.btn-brand{background:var(--brand);color:var(--ink)}
.btn-brand:hover{background:var(--brand-dark)}
.btn-primary{background:var(--ink);color:#fff}
.btn-primary:hover{opacity:.9}
.btn-ghost{background:#fff;border-color:var(--line);color:var(--ink)}
.btn-ghost:hover{background:#f8f9f8}
.btn-lg{padding:14px 32px;font-size:16px}
.btn-block{width:100%}

.eyebrow{font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--brand-dark)}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.82);
             backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px;gap:24px}
.logo{display:flex;align-items:center;gap:9px;font-weight:800;font-size:18px;letter-spacing:-.02em}
.logo-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;
           background:var(--brand);color:var(--ink);font-weight:900;font-size:15px}
.nav-links{display:flex;align-items:center;gap:28px}
.nav-links a{font-size:14px;font-weight:600;color:var(--muted);transition:color .15s}
.nav-links a:hover{color:var(--ink)}
.nav-links .btn{color:var(--ink)}
.nav-toggle{display:none;place-items:center;width:40px;height:40px;border-radius:10px;
            border:1px solid var(--line);background:#fff;font-size:17px;cursor:pointer}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;padding:64px 0 48px}
@media(min-width:640px){.hero{padding:88px 0 56px}}
.hero::before{content:"";position:absolute;left:0;right:0;top:-160px;height:384px;pointer-events:none;
              background:radial-gradient(60% 60% at 50% 0%,var(--brand-glow),transparent)}
.hero-inner{position:relative;max-width:820px;margin:0 auto;text-align:center}
.pill-link{display:inline-flex;align-items:center;gap:8px;margin-bottom:24px;padding:7px 15px;
           border:1px solid var(--line);border-radius:999px;background:#fff;font-size:12.5px;
           font-weight:600;color:var(--muted);box-shadow:0 1px 2px rgba(0,0,0,.04);transition:color .15s}
.pill-link:hover{color:var(--ink)}
.hero h1{font-size:38px;font-weight:800;line-height:1.06;letter-spacing:-.03em;margin:0}
@media(min-width:640px){.hero h1{font-size:58px}}
.mark{position:relative;white-space:nowrap;color:var(--brand-dark)}
.mark svg{position:absolute;left:0;bottom:-8px;width:100%}
.hero .sub{max-width:600px;margin:26px auto 0;font-size:18px;color:var(--muted)}
.hero-actions{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:32px}
@media(min-width:640px){.hero-actions{flex-direction:row;justify-content:center}}
.hero-actions .btn{width:100%}
@media(min-width:640px){.hero-actions .btn{width:auto}}
.hero-note{margin-top:26px;font-size:14px;color:var(--muted);display:flex;flex-wrap:wrap;
           gap:6px 14px;justify-content:center}
.hero-note strong{color:var(--ink)}

/* ---------- stats strip ---------- */
.stats{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--bg-soft)}
.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--line)}
@media(min-width:768px){.stats-grid{grid-template-columns:repeat(4,1fr)}}
.stat{background:var(--bg-soft);padding:28px 20px;text-align:center}
.stat b{display:block;font-size:26px;font-weight:800;letter-spacing:-.02em}
.stat span{font-size:13.5px;color:var(--muted);font-weight:600}

/* ---------- sections ---------- */
.section{padding:72px 0}
.section-alt{background:var(--bg-soft);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-head{max-width:660px;margin-bottom:36px}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center}
.section h2{font-size:30px;font-weight:800;letter-spacing:-.025em;margin:10px 0 12px}
@media(min-width:640px){.section h2{font-size:38px}}
.section .lead{color:var(--muted);font-size:17px;margin:0}

/* ---------- filters ---------- */
.filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:30px}
.filter{padding:9px 18px;border:1px solid var(--line);border-radius:999px;background:#fff;
        color:var(--muted);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;transition:.15s}
.filter:hover{color:var(--ink);border-color:#cfd4cf}
.filter.active{background:var(--ink);border-color:var(--ink);color:#fff}

/* ---------- cards ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:24px}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}
.card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
      border-radius:18px;padding:16px;transition:.2s}
.card:hover{box-shadow:0 12px 34px rgba(16,24,40,.09);transform:translateY(-3px)}
.card.plain{padding:28px}
.card h3{font-size:18px;font-weight:800;letter-spacing:-.01em;margin:0 0 8px}
.card h3 a:hover{color:var(--brand-dark)}
.card p{margin:0 0 18px;color:var(--muted);font-size:14.5px;flex:1}
.card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto}
.card-foot .price{font-size:20px;font-weight:800;letter-spacing:-.02em}
.card-foot .btn{padding:10px 18px;font-size:13.5px}

/* product photo (falls back to a coloured plate if the file is missing) */
.shot{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:5px;
      aspect-ratio:4/3;border-radius:12px;padding:20px;margin-bottom:16px;overflow:hidden;color:#fff}
.shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;font-size:0;color:transparent}
.shot::after{content:"";position:absolute;inset:0;
             background:linear-gradient(180deg,transparent 35%,rgba(10,20,15,.72))}
.shot>span{position:relative;z-index:2}
/* real photo present: drop the fallback caption and its scrim */
.shot.has-img>span,.shot.has-img::after{display:none}
.shot-brand{font-size:10.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;opacity:.8}
.shot-title{font-size:19px;font-weight:800;line-height:1.2;letter-spacing:-.015em}
.shot-meta{font-size:12px;font-weight:600;opacity:.85}
.shot-lg{aspect-ratio:4/3;margin-bottom:20px}
.shot-lg .shot-title{font-size:22px}

.tier{display:inline-block;padding:5px 12px;border-radius:999px;font-size:10.5px;font-weight:800;
      letter-spacing:.1em;text-transform:uppercase;margin-bottom:10px;align-self:flex-start;
      background:var(--brand-soft);color:var(--brand-dark)}
.step{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;
      background:var(--brand-soft);color:var(--brand-dark);font-weight:900;font-size:16px;margin-bottom:14px}

/* ---------- product page ---------- */
.crumb{padding:22px 0 0;font-size:13.5px;color:var(--muted);font-weight:600}
.crumb a:hover{color:var(--ink)}
.product{display:grid;grid-template-columns:1fr;gap:40px;padding:24px 0 56px;align-items:start}
@media(min-width:900px){.product{grid-template-columns:1.55fr 1fr;gap:52px}}
.product h1{font-size:34px;font-weight:800;letter-spacing:-.03em;line-height:1.1;margin:6px 0 16px}
@media(min-width:640px){.product h1{font-size:42px}}
.product .desc{font-size:18px;color:var(--muted);margin:0}
.product h2{font-size:21px;font-weight:800;letter-spacing:-.015em;margin:36px 0 14px}
.product ul{margin:0;padding-left:22px;color:var(--muted)}
.product li{margin-bottom:10px}
.product li strong{color:var(--ink)}

.buybox{border:1px solid var(--line);border-radius:20px;padding:22px;background:#fff;
        box-shadow:0 10px 34px rgba(16,24,40,.07)}
@media(min-width:900px){.buybox{position:sticky;top:92px}}
.buybox .amount{font-size:38px;font-weight:800;letter-spacing:-.03em;line-height:1}
.buybox .unit{font-size:13.5px;color:var(--muted);font-weight:600;margin:6px 0 18px}
.secure{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:14px;
        font-size:12.5px;color:var(--muted);font-weight:600}
.meta{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);font-size:13.5px;color:var(--muted)}
.meta div{display:flex;justify-content:space-between;gap:12px;margin-bottom:9px}
.meta div:last-child{margin-bottom:0}
.meta strong{color:var(--ink);font-weight:700}
.prevnext{display:flex;justify-content:space-between;gap:18px;padding:24px 0 64px;
          border-top:1px solid var(--line);font-size:14px;font-weight:700}
.prevnext a:hover{color:var(--brand-dark)}

/* ---------- faq ---------- */
.faq{max-width:780px;border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;padding:19px 0;font-weight:700;font-size:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";float:right;font-weight:500;font-size:21px;line-height:1;color:var(--muted)}
.faq details[open] summary::after{content:"\2212"}
.faq p{margin:0 0 19px;color:var(--muted);max-width:700px}
.faq a{color:var(--brand-dark);font-weight:600}

/* ---------- final cta ---------- */
.cta{background:var(--ink);border-radius:26px;padding:52px 28px;text-align:center;color:#fff;margin:0 0 72px}
.cta h2{font-size:30px;font-weight:800;letter-spacing:-.025em;margin:0 0 12px;color:#fff}
@media(min-width:640px){.cta h2{font-size:36px}}
.cta p{max-width:520px;margin:0 auto 28px;color:rgba(255,255,255,.72);font-size:16.5px}

/* ---------- legal / text pages ---------- */
.legal{max-width:820px;padding:44px 0 72px}
.legal h1{font-size:36px;font-weight:800;letter-spacing:-.03em;margin:0 0 8px}
.legal .updated{color:var(--muted);font-size:14px;font-weight:600;margin:0 0 34px}
.legal h2{font-size:20px;font-weight:800;letter-spacing:-.015em;margin:34px 0 10px}
.legal p,.legal li{color:var(--muted)}
.legal li{margin-bottom:8px}
.legal a{color:var(--brand-dark);font-weight:600}
.legal a:hover{text-decoration:underline}

.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin:32px 0 12px}
.contact-card{border:1px solid var(--line);border-radius:18px;padding:26px;background:#fff}
.contact-card h3{margin:0 0 8px;font-size:17px;font-weight:800}
.contact-card p{margin:0 0 20px;font-size:14.5px;color:var(--muted)}
.contact-card .btn{font-size:13.5px;padding:10px 18px}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--line);background:var(--bg-soft);padding:56px 0 26px}
.footer-grid{display:grid;grid-template-columns:1fr;gap:32px}
@media(min-width:700px){.footer-grid{grid-template-columns:2fr 1fr 1fr 1fr}}
.site-footer h4{font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;margin:0 0 16px}
.site-footer a{display:block;margin-bottom:10px;font-size:14px;color:var(--muted);font-weight:600}
.site-footer a:hover{color:var(--ink)}
.site-footer .about{font-size:14px;color:var(--muted);max-width:330px;margin:0}
.footer-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;
               margin-top:38px;padding-top:22px;border-top:1px solid var(--line);
               font-size:13px;color:var(--muted);font-weight:600}

@media(max-width:900px){
  .nav-links{display:none}
  .nav-links.open{display:flex;position:absolute;left:0;right:0;top:64px;flex-direction:column;
                  align-items:flex-start;gap:18px;padding:22px 24px 26px;background:#fff;
                  border-bottom:1px solid var(--line);box-shadow:0 12px 24px rgba(16,24,40,.06)}
  .nav-toggle{display:grid}
}

/* ---------- single-product checkout ---------- */
.co-bar{border-bottom:1px solid var(--line);background:#fff}
.co-bar-inner{display:flex;align-items:center;justify-content:space-between;height:64px;gap:20px}
.co-secure{font-size:13px;font-weight:700;color:var(--muted)}

.checkout{display:grid;grid-template-columns:1fr;gap:36px;padding:20px 0 72px;align-items:start}
/* phones: the order summary and Pay button come first, before the explainer */
@media(max-width:919px){.co-summary{order:-1}.checkout{gap:30px}}
@media(min-width:920px){.checkout{grid-template-columns:1.25fr 1fr;gap:56px}}
.checkout h1{font-size:36px;font-weight:800;letter-spacing:-.03em;margin:10px 0 10px}
.co-lead{color:var(--muted);font-size:17px;margin:0 0 30px}

/* product detail now lives in the left column of the checkout page */
.co-detail h2{font-size:21px;font-weight:800;letter-spacing:-.015em;margin:36px 0 14px}
.co-detail ul{margin:0;padding-left:22px;color:var(--muted)}
.co-detail li{margin-bottom:10px}
.co-detail li strong{color:var(--ink)}
.co-detail .tier{margin-bottom:4px}
.co-detail .co-lead{margin:0 0 4px}

.co-steps{margin:0;padding-left:22px;counter-reset:none}
.co-steps li{margin-bottom:16px;color:var(--muted)}
.co-steps li strong{color:var(--ink)}
.co-steps a{color:var(--brand-dark);font-weight:600}

.co-note{margin:30px 0 24px;padding:20px 22px;border:1px solid var(--line);
         border-left:4px solid var(--brand);border-radius:14px;background:var(--bg-soft)}
.co-note strong{display:block;font-size:14px;font-weight:800;margin-bottom:6px}
.co-note p{margin:0;font-size:14.5px;color:var(--muted)}
.co-note a{color:var(--brand-dark);font-weight:600}
.co-fine{font-size:13px;color:var(--muted);margin:0}
.co-fine a{color:var(--brand-dark);font-weight:600}

.co-summary{border:1px solid var(--line);border-radius:20px;padding:24px;background:#fff;
            box-shadow:0 10px 34px rgba(16,24,40,.07)}
@media(min-width:920px){.co-summary{position:sticky;top:24px}}
.co-summary h2{font-size:15px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;margin:0 0 18px}

.co-item{display:flex;gap:14px;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line)}
.co-item img{width:86px;height:64px;object-fit:cover;border-radius:9px;flex:none}
.co-item strong{display:block;font-size:15.5px;font-weight:800;letter-spacing:-.01em;line-height:1.3}
.co-item span{display:block;margin-top:4px;font-size:12.5px;color:var(--muted);font-weight:600}

.co-includes{margin:18px 0;padding-left:20px;font-size:13.5px;color:var(--muted)}
.co-includes li{margin-bottom:8px}
.co-includes strong{color:var(--ink);font-weight:700}
.co-includes a{color:var(--brand-dark);font-weight:700}

.co-lines{border-top:1px solid var(--line);padding-top:16px;font-size:14px;color:var(--muted)}
.co-lines div{display:flex;justify-content:space-between;gap:12px;margin-bottom:9px}
.co-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;
          margin:14px 0 20px;padding-top:16px;border-top:1px solid var(--line);
          font-size:15px;font-weight:700}
.co-total strong{font-size:26px;font-weight:800;letter-spacing:-.02em}
.co-pay{font-size:16.5px}
.co-badge{margin:14px 0 0;font-size:12.5px;color:var(--muted);text-align:center;line-height:1.5}
.co-back{margin:16px 0 0;text-align:center;font-size:13.5px;font-weight:700}
.co-back a{color:var(--muted)}
.co-back a:hover{color:var(--ink)}
