/* Biply refinement layer. Loaded after every other stylesheet: slightly smaller type, calmer spacing, finer surfaces.
   It only adjusts sizes, shadows and motion; layout and colours stay with the page styles. */

:root {
  --shadow-1: 0 1px 2px rgba(20, 16, 50, .05), 0 6px 18px -8px rgba(20, 16, 50, .10);
  --shadow-2: 0 2px 4px rgba(20, 16, 50, .05), 0 22px 44px -22px rgba(20, 16, 50, .22);
  --hair: rgba(20, 16, 50, .09);
}
html { -webkit-text-size-adjust: 100%; }
body { font-size: 15.5px; line-height: 1.5; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11", "ss01", "calt"; }
::selection { background: color-mix(in srgb, var(--accent, #5546ff) 22%, transparent); }
:focus-visible { outline: 2px solid var(--accent, #5546ff); outline-offset: 3px; }

/* ---------- type scale, about 12% smaller ---------- */
.h-xl { font-size: clamp(38px, 5.9vw, 74px); line-height: 1.03; letter-spacing: -.042em; }
.h-l { font-size: clamp(30px, 3.9vw, 48px); line-height: 1.07; letter-spacing: -.036em; }
.h-m { font-size: clamp(25px, 3vw, 37px); line-height: 1.1; letter-spacing: -.034em; }
.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; }
.eyebrow { font-size: 13px; letter-spacing: .02em; }
.pd-title h1 { font-size: clamp(36px, 4.8vw, 60px); }
.bl-head h1 { font-size: clamp(32px, 4.2vw, 50px); }
.post h1 { font-size: clamp(30px, 3.9vw, 44px); }
.pg .hero h1 { font-size: 58px; }
.pg .sh h2 { font-size: 32px; }
.pg .page-title h1, .pg .mhead h1, .pg .ph-head h1 { font-size: 29px; }
.card-name { font-size: 27px; }
.step-t { font-size: 19px; }
.step-d, .card-blurb { font-size: 15px; }
.seo-in h2 { font-size: 26px; }
.seo-in p, .seo-in li { font-size: 15.5px; line-height: 1.7; }
.dc-hero h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.dc-hero.center h1 { font-size: clamp(2rem, 4.8vw, 3.5rem); }
.dc-sec-title h2, .dc-sec h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }

/* ---------- buttons ---------- */
.btn { height: 46px; padding: 0 24px; font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; transition: background .2s, transform .25s var(--ease), box-shadow .25s, filter .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-ink { box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6); }
.btn-accent { box-shadow: 0 12px 26px -12px var(--accent, #5546ff); }
.btn-ghost { border-color: var(--hair); background: rgba(255, 255, 255, .6); }
.link-arrow { font-size: 14.5px; font-weight: 600; }

/* ---------- navigation ---------- */
.nav-links, .nav-links > a, .mg-btn, .nav-signin { font-size: 13.5px; }
.logo { font-size: 17.5px; }

/* ---------- surfaces: cards, panels, pills ---------- */
.card, .cat, .step, .buy, .post-card, .dc-card, .feat, .opt { border-color: var(--hair); }
.card, .buy, .post-card { box-shadow: var(--shadow-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.chip, .tag, .badge, .pill { letter-spacing: .005em; }
.card-cat { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.card-go { font-size: 13px; padding: 9px 17px; }
.card-price { font-size: 14px; }
.crumbs { font-size: 13px; }
.mg-panel { box-shadow: 0 30px 70px -20px rgba(20, 16, 60, .22), 0 0 0 1px var(--hair); }
.footer-col, .footer-brand p { font-size: 13.5px; }
img { image-rendering: auto; }

/* ---------- product page ---------- */
.pd-main p, .plist li { font-size: 15.5px; line-height: 1.65; }
.buy-price b { font-size: 36px; }
.pbh h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.pbh-em { font-size: clamp(1.1rem, 2vw, 1.6rem); }
.pbh-lead { font-size: clamp(.95rem, 1.25vw, 1.05rem); }
.pbh-cta .btn { height: 46px; font-size: 14.5px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .card, .btn, .step, .cat { will-change: transform; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .pg .hero h1 { font-size: 38px; }
  .pg .sh h2 { font-size: 26px; }
  .pbh h1 { font-size: clamp(2.1rem, 11.5vw, 2.9rem); }
}
