/* ============================================================
   Digital Delivery Store — storefront theme
   ============================================================ */
:root{
  --bg:#f6f6fb; --surface:#ffffff; --fg:#161629; --muted:#6b7280;
  --accent:#6d5efc; --accent-2:#8b7dff; --accent-ink:#ffffff;
  --border:#e8e8f2; --shadow:0 6px 24px rgba(30,20,80,.08);
  --radius:16px; --radius-sm:10px; --ok:#12b76a; --err:#e5484d;
  --maxw:1140px; --ff:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
/* The browser's own [hidden]{display:none} is weaker than any author rule that
   sets display, so `.btn`, `.coupon-applied` and `.discount-row` were all
   defeating the hidden attribute — the "Get it free" button showed on every
   item page whether a coupon had been entered or not. This restores it. */
[hidden]{display:none !important}
/* text-size-adjust: iOS Safari inflates text in blocks it decides are too wide
   for the screen, which resizes type the CSS already sized. Hold it at 100% and
   let the media queries do the work. */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Nothing on a phone should be draggable sideways. The ticker is a 5000px strip
   and iOS will happily pan a finger across anything that overflows, so clip it
   at the root. `clip` rather than `hidden` on purpose: `hidden` would make the
   root a scroll container and break the sticky header. */
@supports (overflow:clip){html,body{overflow-x:clip}}
body{margin:0;max-width:100%;font-family:var(--ff);background:var(--bg);color:var(--fg);line-height:1.55;-webkit-font-smoothing:antialiased;
  /* A title or URL with no space in it can otherwise set the page's width.
     `anywhere` rather than `break-word`: they wrap identically on screen, but
     only `anywhere` lowers the min-content width, which is what stops a long
     word forcing a grid or flex column wider than the phone. */
  overflow-wrap:anywhere}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
/* height:auto so the width/height attributes on <img> can never render a
   stretched picture if the intrinsic ratio isn't applied. */
img{max-width:100%;height:auto;display:block}
/* Everything the browser or a third party draws for us gets the same ceiling. */
audio,video,iframe,embed,object{max-width:100%}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}

/* ---- Sitewide banner ---- */
.site-banner{font-size:14px;font-weight:600;text-align:center;padding:9px 0;letter-spacing:.01em}
.site-banner a{text-decoration:none}
.site-banner a:hover{text-decoration:underline}

/* ---- Coupon box ---- */
.coupon-box{display:flex;gap:8px;margin:14px 0;align-items:stretch}
/* background + appearance: the email fields set both and this one did not, so
   iOS drew its own inset control here and the row looked like it belonged to a
   different site. min-width:0: `flex:1` alone leaves the input's intrinsic
   ~228px floor in place, which is what pushed Apply toward the edge — with the
   floor gone the field gives way and the button keeps its size. */
.coupon-box input{flex:1 1 0;min-width:0;padding:10px 12px;border:1px solid var(--border);
  border-radius:var(--radius-sm);font:inherit;background:#fff;
  -webkit-appearance:none;appearance:none;text-transform:uppercase}
.coupon-box .btn{flex:0 0 auto;white-space:nowrap}
.coupon-applied{display:flex;justify-content:space-between;align-items:center;background:#f0fff7;border:1px solid #cdeedd;border-radius:var(--radius-sm);padding:9px 12px;margin:12px 0;font-size:14px}
.coupon-applied .btn-link{color:var(--err)}
.discount-row{display:flex;justify-content:space-between;color:var(--ok);font-weight:600;margin-top:-6px;margin-bottom:8px}

/* ---- Header ---- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.85);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px;color:var(--fg)}
.brand:hover{text-decoration:none}
.brand-mark{color:var(--accent);font-size:20px;display:inline-flex;align-items:center}
/* Inline SVG spiral (see spiral_svg()). currentColor lets each context tint it. */
.spiral{display:inline-block;vertical-align:middle;flex:0 0 auto}
.video-brand .spiral{margin-right:2px}
.site-nav{display:flex;align-items:center;gap:22px;font-weight:600}
.site-nav a{color:var(--fg)}
.cart-link{position:relative;display:inline-flex;align-items:center;gap:7px}
.cart-link .icon-cart{flex:0 0 auto}
.cart-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--accent);color:#fff;font-size:12px;font-weight:700;margin-left:2px}

/* Six nav items will not sit beside the brand on a phone — the brand wrapped to
   three lines and the nav ran off the right edge. Below 700px the header
   becomes two centred rows, which fits everything without a hamburger. */
@media (max-width:700px){
  .header-inner{height:auto;flex-direction:column;gap:8px;padding-top:9px;padding-bottom:9px}
  .brand{font-size:17px;gap:7px}
  .site-nav{width:100%;justify-content:center;flex-wrap:wrap;gap:15px;font-size:15px}
  .nav-long{display:none}          /* "About Boris" → "About" */
}
/* iOS Safari zooms the whole page in when a focused field is under 16px, and it
   does not zoom back out. Every text control has to be at least 16px on phones,
   however small the surrounding type is. */
@media (max-width:700px){
  input[type=text],input[type=email],input[type=number],input[type=tel],
  input[type=search],input[type=url],input[type=password],select,textarea{font-size:16px}
}

@media (max-width:560px){
  .site-nav{gap:12px;font-size:14px}
  /* Icon + count is unambiguous once space is tight; the label stays in the
     accessibility tree for screen readers rather than being removed. */
  .cart-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .cart-link{gap:4px}
  .hero{padding:34px 16px 22px}
  .prose,.home-copy{padding-bottom:8px}
}

/* ---- Ticker ---- */
/* touch-action/contain: on iOS an overflow:hidden box is still draggable by
   finger, so the moving strip could be swiped sideways and shoved out of line.
   pan-y allows the vertical scroll through it and refuses the horizontal one. */
.ticker{overflow:hidden;touch-action:pan-y;overscroll-behavior-x:contain;contain:paint;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));border-bottom:1px solid var(--border)}
.ticker-track{display:flex;gap:34px;width:max-content;padding:11px 0;animation:ticker 40s linear infinite}
.ticker:hover .ticker-track{animation-play-state:paused}
.ticker-item{display:flex;align-items:center;gap:10px;color:#fff;font-weight:600;white-space:nowrap;opacity:.96}
.ticker-item:hover{text-decoration:none;opacity:1}
.ticker-item img{width:26px;height:26px;border-radius:6px;object-fit:cover;border:1px solid rgba(255,255,255,.5)}
.ticker-price{background:rgba(255,255,255,.2);padding:2px 9px;border-radius:999px;font-size:13px}
@keyframes ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.ticker-track{animation:none;flex-wrap:wrap;white-space:normal}}

/* ---- Hero ---- */
.hero{text-align:center;padding:56px 20px 28px}
.hero h1{font-size:clamp(30px,5vw,52px);margin:0 0 8px;letter-spacing:-.02em;font-weight:800}
.hero-tag{color:var(--muted);font-size:18px;margin:0}

/* ---- Grid / cards ---- */
.site-main{padding-bottom:64px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:22px;margin-top:12px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .18s ease,box-shadow .18s ease}
.card:hover{transform:translateY(-4px);box-shadow:0 14px 36px rgba(30,20,80,.14)}
.card-thumb{position:relative;display:block;aspect-ratio:1/1;background:linear-gradient(135deg,#efeffb,#e6e6f7)}
.card-thumb img{width:100%;height:100%;object-fit:cover}
/* The picture is a cart control (see index.php), so strip the button chrome and
   give it back the block layout the anchor had. */
.card-thumb-btn{width:100%;padding:0;border:0;font:inherit;cursor:pointer;-webkit-appearance:none;appearance:none}
/* Nothing about a picture says "tap me to buy", so the state pill says it — and
   doubles as the confirmation once the item is in the cart. */
.card-thumb-btn::after{content:'+ Add to cart';position:absolute;right:10px;bottom:10px;
  background:rgba(22,22,41,.72);color:#fff;font-size:12px;font-weight:700;letter-spacing:.01em;
  padding:5px 11px;border-radius:999px;backdrop-filter:blur(4px);transition:background .15s}
.card-thumb-btn.in-cart::after{content:'✓ In cart — tap to remove';background:rgba(11,122,75,.9)}
.card-thumb-btn.is-busy::after{content:'…'}
.card-thumb-btn.cart-err::after{content:'Didn’t save — tap again';background:rgba(229,72,77,.92)}
.card-thumb-btn:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
@media (max-width:420px){.card-thumb-btn.in-cart::after{content:'✓ In cart'}}
.card-noimg{position:absolute;inset:0;display:grid;place-items:center;font-size:48px;color:var(--accent);opacity:.45}
.badge-free{position:absolute;top:10px;left:10px;background:var(--ok);color:#fff;font-size:12px;font-weight:800;padding:4px 10px;border-radius:999px;letter-spacing:.04em}
.card-body{padding:14px 16px 16px}
.card-title{font-size:17px;margin:0 0 2px;font-weight:700;line-height:1.25}
.card-title a{color:var(--fg)}
.card-sub{color:var(--muted);font-size:13px;margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}
.price{font-weight:800;font-size:16px}
.empty{color:var(--muted);text-align:center;padding:40px 0}

/* ---- Buttons ---- */
.btn{display:inline-block;border:0;border-radius:var(--radius-sm);padding:10px 16px;font-weight:700;font-size:14px;font-family:inherit;cursor:pointer;transition:background .15s,opacity .15s;background:#eceafe;color:var(--accent)}
.btn:hover{text-decoration:none}
.btn-add{background:#eceafe;color:var(--accent)}
.btn-add:hover{background:#e0dcff}
.btn-primary{background:var(--accent);color:var(--accent-ink)}
.btn-primary:hover{background:#5b4cf0}
.btn-lg{padding:14px 22px;font-size:16px;width:100%;text-align:center}
.btn:disabled{opacity:.6;cursor:default}
/* In-cart state of the add/remove toggle. Reads as confirmation at rest and
   turns to the removal colour on hover, so the click's effect is visible
   before it happens. Wins over .btn-add/.btn-primary by coming after them. */
.btn.in-cart{background:#e4f7ed;color:#0b7a4b;white-space:nowrap}
.btn.in-cart:hover{background:#fde8e8;color:var(--err)}
.btn.cart-err{background:#fde8e8;color:var(--err)}
.btn-link{background:none;border:0;color:var(--muted);cursor:pointer;font:inherit;text-decoration:underline;padding:0}

/* ---- Item page ---- */
.item-page{padding-top:34px}
.item-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:44px;align-items:start}
/* minmax(0,1fr), not 1fr: a bare 1fr is floored at the column's min-content, so
   one child that refuses to shrink — the native audio player, PayPal's iframe,
   a word with no break in it — widens the column past the screen and carries the
   title and description out with it. A 0 floor lets the column stay put and the
   children wrap inside it. min-width:0 does the same for the columns themselves. */
@media (max-width:820px){.item-grid{grid-template-columns:minmax(0,1fr);gap:24px}}
.item-media,.item-info{min-width:0}
.item-image.square{position:relative;aspect-ratio:1/1;border-radius:var(--radius);overflow:hidden;background:linear-gradient(135deg,#efeffb,#e6e6f7);box-shadow:var(--shadow);border:1px solid var(--border)}
.item-image.square img{width:100%;height:100%;object-fit:cover}
.item-media{position:sticky;top:88px}
@media (max-width:820px){.item-media{position:static}}
.thumbs{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.thumb{padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;cursor:pointer;background:none;width:64px;height:64px;flex:0 0 auto}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb.active{border-color:var(--accent)}
.thumb:hover{border-color:var(--accent-2)}
.sample-player{margin-top:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:14px}
.sample-label{margin:0 0 8px;font-weight:700;color:var(--accent)}
/* The controls are drawn by the OS and iOS draws them wider than Chrome does;
   without a ceiling the player pushes its own box past the screen edge. */
.sample-player audio{width:100%;max-width:100%;min-width:0}
.delivery-hint{margin:6px 0 0}
/* PayPal renders into an iframe it sizes itself. Same reasoning as the player. */
#paypal-buttons,.pp-gate{max-width:100%;overflow:hidden}

/* On a phone the picture and the sample player have to share one screen. A
   square picture is as tall as the screen is wide, which put the player below
   the fold on every phone — worse in Safari, where the toolbars take another
   ~120px. So size the picture against the viewport's height instead of its own
   width, and let it letterbox rather than crop: the artwork carries text.
   svh (the height with toolbars showing) is what stops it moving as they hide;
   the vh line above is the fallback where svh isn't supported. */
@media (max-width:820px){
  .item-page{padding-top:14px}
  .crumbs{margin-bottom:10px}
  .item-image.square{aspect-ratio:auto;height:min(50vh,400px);height:min(50svh,400px)}
  .item-image.square img{object-fit:contain}
  .thumbs{margin-top:8px;gap:8px}
  .thumb{width:52px;height:52px}
  .sample-player{margin-top:10px;padding:10px 12px}
  .sample-label{margin-bottom:6px;font-size:14px}
}
.item-info h1{font-size:clamp(24px,3.5vw,36px);margin:0 0 6px;letter-spacing:-.01em}
.item-sub{color:var(--muted);font-size:17px;margin:0 0 18px}
.price-lg{font-size:26px}
.buy-box{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;margin:18px 0 24px;box-shadow:var(--shadow)}
.or-divider{text-align:center;color:var(--muted);font-size:13px;margin:14px 0}
/* Same appearance reset as the coupon field, so every input on the page is drawn
   by the stylesheet rather than by iOS. */
.buy-email input,.field input{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);font:inherit;background:#fff;margin-top:6px;-webkit-appearance:none;appearance:none}
.buy-email label,.field{display:block;font-weight:600;font-size:14px}
.receiving{background:#f0fff7;border:1px solid #cdeedd;border-radius:var(--radius-sm);padding:14px 16px;margin:0 0 20px}
.receiving h2,.item-desc h2{font-size:16px;margin:0 0 6px}
.receiving p{margin:0}
.item-desc .rich{color:#333}
.item-desc .rich p{margin:.5em 0}
.delivery-note{color:var(--muted);font-size:13px;background:#f7f7fb;border-radius:var(--radius-sm);padding:12px 14px}
.muted{color:var(--muted)}.small{font-size:13px}
.warn{color:var(--err);font-weight:600}

/* ---- Watch page ---- */
.watch-page{padding-top:30px}
.watch-h1{font-size:clamp(26px,4vw,40px);margin:0 0 18px}
.video-stage{position:relative;aspect-ratio:16/9;background:#0c0c16;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.video-stage .video-frame,.video-stage .video-el{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.video-facade{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;cursor:pointer;background-size:cover;background-position:center;transition:opacity .4s ease}
.video-facade::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(109,94,252,.55),rgba(20,16,40,.72))}
.video-facade.hide{opacity:0;pointer-events:none}
.video-brand{position:absolute;top:16px;left:18px;color:#fff;font-weight:800;letter-spacing:.02em;text-shadow:0 1px 6px rgba(0,0,0,.4);z-index:2}
.video-play{position:relative;z-index:2;background:none;border:0;cursor:pointer;transform:scale(1);transition:transform .15s ease;filter:drop-shadow(0 6px 18px rgba(0,0,0,.45))}
.video-facade:hover .video-play{transform:scale(1.08)}
.video-facade-title{position:relative;z-index:2;color:#fff;font-weight:700;font-size:clamp(16px,2.4vw,22px);text-align:center;padding:0 24px;text-shadow:0 2px 10px rgba(0,0,0,.5)}
.video-spinner{position:absolute;bottom:16px;z-index:3;color:#fff;font-size:13px;display:flex;align-items:center;gap:8px}
.video-spinner .spin{width:16px;height:16px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;display:inline-block;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.watch-desc{margin:18px 0 0;color:#333;max-width:760px}
.watch-more{font-size:18px;margin:34px 0 14px}
.video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}
.video-card{display:block;color:var(--fg)}
.video-card:hover{text-decoration:none}
.video-thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:var(--radius-sm);overflow:hidden;background:linear-gradient(135deg,#4b3fd6,#8b7dff) center/cover;box-shadow:var(--shadow)}
.video-thumb-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:26px;opacity:.9;text-shadow:0 2px 8px rgba(0,0,0,.4)}
.video-card.current .video-thumb{outline:3px solid var(--accent);outline-offset:2px}
.video-card-title{display:block;margin-top:8px;font-weight:600;font-size:15px;line-height:1.3}

/* ---- Cart ---- */
.cart-page{padding-top:34px;max-width:720px}
.cart-list{margin:18px 0}
.cart-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--border)}
.cart-thumb img{width:64px;height:64px;border-radius:10px;object-fit:cover}
.cart-meta{flex:1;display:flex;flex-direction:column}
.cart-meta a{color:var(--fg);font-weight:600}
.cart-price{color:var(--muted);font-size:14px}
.cart-summary{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
.cart-total{display:flex;justify-content:space-between;font-size:19px;margin-bottom:16px}
.checkout-status{margin-top:14px;padding:12px 14px;border-radius:var(--radius-sm);font-weight:600}
.checkout-status.ok{background:#eafff4;color:var(--ok)}
.checkout-status.err{background:#fff0f0;color:var(--err)}
.dl-links{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.dl-links .btn{color:#fff}

/* ---- Breadcrumbs ---- */
.crumbs{font-size:13px;color:var(--muted);padding:18px 0 0}
.crumbs a{color:var(--muted)}
.crumbs span{margin:0 6px}
.crumbs span:last-child{margin:0;color:var(--fg)}

/* ---- Trust bar (home hero) ---- */
.trust-bar{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 28px;
  margin:22px 0 0;padding:0;color:var(--muted);font-size:14px}
.trust-bar strong{color:var(--fg);font-weight:800}
.section-h{font-size:20px;margin:28px 0 4px}

/* ---- Long-form pages (guide, about) ---- */
.prose{max-width:760px;padding-bottom:20px}
.prose h1{font-size:clamp(28px,4.2vw,42px);line-height:1.15;letter-spacing:-.02em;margin:14px 0 10px}
.prose h2{font-size:clamp(21px,2.6vw,27px);margin:40px 0 10px;letter-spacing:-.01em;scroll-margin-top:80px}
.prose h3{font-size:18px;margin:26px 0 6px}
.prose p,.prose li{font-size:17px;line-height:1.7;color:#2b2b3c}
.prose ul,.prose ol{padding-left:22px}
.prose li{margin:6px 0}
.byline{color:var(--muted);font-size:14px;margin:0 0 22px}
.lede{font-size:19px !important;color:#3a3a4d !important}
.prose table{width:100%;border-collapse:collapse;margin:18px 0;font-size:15px;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}
.prose th,.prose td{padding:10px 12px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
.prose thead th{background:#f2f1fd;font-size:13px;letter-spacing:.02em}
.prose tbody th{font-weight:700;background:#fafaff;white-space:nowrap}
.prose tr:last-child td,.prose tr:last-child th{border-bottom:0}
/* Wide tables scroll inside their own box so the page itself never scrolls
   sideways. A min-width keeps columns readable instead of crushing four of them
   into 350px. */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:var(--radius-sm)}
.table-wrap:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.table-wrap table{margin:18px 0 4px}
.table-hint{display:none;font-size:13px;color:var(--muted);margin:0 0 18px;text-align:right}
@media (max-width:700px){
  .table-wrap table{min-width:560px}
  .table-hint{display:block}
}

/* ---- Guide: product picks ---- */
.guide-picks{display:flex;flex-direction:column;gap:10px;margin:18px 0}
.pick{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:12px 14px;color:var(--fg)}
.pick:hover{text-decoration:none;border-color:var(--accent-2);box-shadow:var(--shadow)}
.pick img{width:56px;height:56px;border-radius:8px;object-fit:cover;flex:0 0 auto}
.pick span{display:flex;flex-direction:column}
.pick strong{font-size:16px}
.pick em{color:var(--muted);font-size:13px;font-style:normal}
.pick-price{margin-left:auto;font-weight:800;color:var(--accent);white-space:nowrap}

/* ---- FAQ ---- */
.faq{margin:14px 0 8px;border-top:1px solid var(--border)}
.faq-item{border-bottom:1px solid var(--border)}
.faq-item summary{cursor:pointer;padding:14px 0;font-weight:700;font-size:16px;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";float:right;color:var(--accent);font-weight:800}
.faq-item[open] summary::after{content:"–"}
.faq-a{padding:0 0 14px}
.faq-a p{margin:0;font-size:16px}

/* ---- Item page: listening + author ---- */
.how-to-listen{background:#f7f7fb;border-radius:var(--radius-sm);padding:14px 16px;margin:0 0 18px}
.how-to-listen h2{font-size:16px;margin:0 0 6px}
.how-to-listen p{margin:0 0 8px;font-size:15px}
.author-card{display:flex;gap:14px;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:16px;margin:0 0 18px}
.author-card h2{font-size:16px;margin:0 0 6px}
.author-card p{margin:0 0 6px;color:#444}
.disclaimer-inline{margin-top:10px}

/* ---- Home copy ---- */
.home-copy{max-width:820px;margin-top:46px}
.home-copy h2{font-size:22px;margin:34px 0 8px;letter-spacing:-.01em}
.home-copy p{font-size:16px;line-height:1.7;color:#2b2b3c}
.ticks{list-style:none;padding:0;margin:10px 0}
.ticks li{position:relative;padding-left:26px;margin:8px 0;font-size:16px}
.ticks li::before{content:"✓";position:absolute;left:0;color:var(--ok);font-weight:800}
.mini-faq{margin:12px 0}
.mini-faq dt{font-weight:700;margin-top:14px}
.mini-faq dd{margin:4px 0 0;color:#444}
.actions-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}

/* ---- PayPal button gate (see buy.js) ---- */
.pp-gate{position:relative;border-radius:var(--radius-sm);transition:opacity .18s ease}
.pp-gate.locked{opacity:.45;filter:grayscale(1)}
/* Clicks fall through to .pp-gate, which intercepts them, so PayPal's popup
   never opens without a delivery address. */
.pp-gate.locked > *{pointer-events:none}
.pp-gate.locked{cursor:pointer}
.pp-gate-hint{margin:0 0 8px;font-size:13px;color:var(--muted);text-align:center}
.pp-gate-hint.nudge{color:var(--err);font-weight:600;animation:nudge .3s ease 2}
@keyframes nudge{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@media (prefers-reduced-motion:reduce){.pp-gate-hint.nudge{animation:none}}

/* ---- Contact form ---- */
.contact-page{max-width:640px}
.contact-form{margin-top:18px}
.contact-form .field{display:block;margin-bottom:16px;font-weight:600;font-size:15px}
/* Name and email sit side by side, stacking on narrow screens. */
/* align-items:end keeps the two inputs on the same baseline even if one label
   wraps to a second line at an awkward width. */
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;align-items:end}
@media (max-width:560px){.field-row{grid-template-columns:1fr;gap:0}}
.contact-form .field .hint{display:block;font-weight:400;font-size:13px;color:var(--muted);margin-top:2px}
.contact-form input[type=text],.contact-form input[type=email],.contact-form textarea{
  width:100%;margin-top:6px;padding:11px 12px;border:1px solid var(--border);
  border-radius:var(--radius-sm);font:inherit;background:#fff;color:var(--fg)}
.contact-form textarea{min-height:150px;resize:vertical}
.contact-form input:focus,.contact-form textarea:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.contact-form .btn-lg{width:auto;min-width:200px}
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.notice{background:#f7f7fb;border:1px solid var(--border);border-left:3px solid var(--accent);
  border-radius:var(--radius-sm);padding:12px 16px;margin:16px 0}
.notice p{margin:0;font-size:15px}
.notice-ok{background:#f0fff7;border-color:#cdeedd;border-left-color:var(--ok)}
.notice-err{background:#fff5f5;border-color:#f6d5d5;border-left-color:var(--err)}
.notice-err ul{margin:0;padding-left:18px}
.notice-err li{font-size:15px}

/* ---- Disclaimer ---- */
.disclaimer{margin:40px 0 0;padding:16px 18px;background:#fafaff;border:1px solid var(--border);
  border-radius:var(--radius-sm)}
.disclaimer p{font-size:14px !important;color:var(--muted) !important;line-height:1.6}

/* ---- Footer ---- */
.site-footer{border-top:1px solid var(--border);background:var(--surface);padding:28px 0;margin-top:40px}
.footer-inner{color:var(--muted);font-size:14px;text-align:center}
.footer-fine{font-size:12px;opacity:.8}

/* ---- Social links (footer + contact page) ---- */
.social-links{list-style:none;display:flex;flex-wrap:wrap;gap:4px;margin:0 0 12px;padding:0;justify-content:center}
/* 44px target: the marks are small and the footer is thumb territory. */
.social-links a{display:grid;place-items:center;width:44px;height:44px;border-radius:999px;
  color:var(--muted);transition:color .15s,background-color .15s}
.social-links a:hover{color:var(--accent);background:rgba(109,94,252,.10);text-decoration:none}
.social-links a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.social-links-lg a{width:50px;height:50px}
.contact-social{margin-top:34px;padding-top:22px;border-top:1px solid var(--border)}
.contact-social h2{font-size:19px;margin:0 0 8px}
.contact-social .social-links{justify-content:flex-start;margin-left:-13px}
