*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ margin:0; background:var(--paper); color:var(--ink); font-family:'Sora',system-ui,sans-serif; line-height:1.6; }
.mono{ font-family:'IBM Plex Mono', ui-monospace, monospace; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.wrap{ max-width:1140px; margin:0 auto; padding:0 28px; }

/* header */
.site-header{ position:sticky; top:0; z-index:20; background:rgba(237,231,216,0.92); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
.nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 0; gap:20px; }
.site-logo{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:16px; }
.site-logo .tag{ font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:700; background:var(--ink); color:var(--gold-bright); padding:2px 6px; border-radius:4px; }
.main-nav ul{ list-style:none; display:flex; gap:26px; margin:0; padding:0; font-size:14px; color:var(--muted); }
.main-nav{ display:none; }
@media(min-width:760px){ .main-nav{ display:block; } }
.main-nav a:hover{ color:var(--ink); }
.header-cart{ font-family:'IBM Plex Mono',monospace; font-size:13px; font-weight:600; background:var(--panel); border:1px solid var(--line); padding:8px 14px; border-radius:8px; }
.header-account{ font-family:'IBM Plex Mono',monospace; font-size:13px; font-weight:600; color:var(--gold); }

/* buttons */
.btn{ display:inline-flex; align-items:center; gap:8px; padding:10px 18px; border-radius:8px; font-weight:600; font-size:14px; border:1px solid transparent; cursor:pointer; font-family:inherit; }
.btn-primary{ background:var(--gold); color:#fff; }
.btn-primary:hover{ background:#8f6b09; }
.btn-ghost{ border-color:var(--line); color:var(--ink); background:var(--panel); }

.badge{
  display:inline-flex; align-items:center; gap:6px; font-family:'IBM Plex Mono',monospace;
  font-size:11px; font-weight:700; letter-spacing:.04em; color:#8f6b09;
  background:var(--gold-dim); border:1px solid var(--gold-line); padding:5px 10px; border-radius:20px;
  margin-bottom:14px;
}

/* hero / page banner */
.page-banner{ padding:56px 0 32px; }
.eyebrow{ font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.06em; color:var(--gold); margin-bottom:14px; }
.eyebrow::before{ content:"› "; color:var(--muted); }
.page-banner h1{ font-size:38px; letter-spacing:-0.02em; margin:0 0 14px; font-weight:800; }
.page-banner p{ color:var(--muted); font-size:17px; max-width:60ch; margin:0; }

/* storefront grid */
.storefront-toolbar{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding:10px 16px; font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--muted);
  background:var(--panel); border:1px solid var(--line); border-radius:10px 10px 0 0;
}
.medd-downloads-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap:0;
  background:var(--panel); border:1px solid var(--line); border-top:none; border-radius:0 0 10px 10px; overflow:hidden;
}
.medd-download-card{ border-right:1px solid #EFE9DA; border-bottom:1px solid #EFE9DA; padding:22px; text-align:left; display:flex; flex-direction:column; gap:10px; position:relative; }
.medd-download-card .ficon{ width:34px; height:34px; border-radius:7px; background:var(--gold); color:#fff; font-family:'IBM Plex Mono',monospace; font-size:10px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.medd-download-card h4{ margin:6px 0 0; font-size:15px; }
.medd-download-card h4 a:hover{ color:var(--gold); }
.medd-download-card img{ border-radius:8px; margin-bottom:6px; }
.pro-pill{
  position:absolute; top:16px; right:16px; font-family:'IBM Plex Mono',monospace; font-size:10px; font-weight:700;
  background:var(--gold-dim); color:#8f6b09; border:1px solid var(--gold-line); padding:3px 8px; border-radius:12px;
}

/* single download */
.download-single{ display:grid; grid-template-columns:1fr; gap:36px; padding:48px 0 72px; }
@media(min-width:900px){ .download-single{ grid-template-columns:1.2fr 0.8fr; } }
.download-main h1{ font-size:32px; margin:0 0 16px; }
.download-content{ color:var(--ink); font-size:16px; }
.download-content p{ color:var(--muted); }

.buy-panel{ background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:24px; align-self:start; position:sticky; top:96px; }
.buy-panel .file-meta{ font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--muted); display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px dashed var(--line); }
.buy-panel .file-meta:last-of-type{ border-bottom:none; margin-bottom:16px; }
.medd-buy-form{ display:flex; flex-direction:column; gap:12px; }
.medd-price{ font-size:26px; font-weight:800; }
.medd-add-to-cart-btn{ background:var(--gold); color:#fff; border:none; border-radius:8px; padding:12px; font-weight:700; cursor:pointer; }
.medd-price-select{ padding:10px; border-radius:8px; border:1px solid var(--line); font-family:inherit; }

/* cart / checkout / receipt / account */
.medd-cart, .medd-checkout-form, .medd-receipt, .medd-restricted-notice, .medd-account{
  background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:28px; margin:24px 0;
}
.medd-cart-table{ width:100%; border-collapse:collapse; }
.medd-cart-table th, .medd-cart-table td{ text-align:left; padding:10px 6px; border-bottom:1px solid #EFE9DA; font-size:14px; }
.medd-checkout-link, .medd-place-order-btn, .medd-add-to-cart-btn{ background:var(--gold); color:#fff; border:none; border-radius:8px; padding:10px 18px; font-weight:600; cursor:pointer; display:inline-block; }
.medd-remove-item{ background:none; border:none; color:#D64545; cursor:pointer; font-size:16px; }
.medd-checkout-form input[type=text], .medd-checkout-form input[type=email]{ width:100%; padding:10px; border:1px solid var(--line); border-radius:8px; font-family:inherit; }
.medd-checkout-form label{ font-size:14px; font-weight:600; display:block; margin-bottom:6px; }
.medd-checkout-form h3{ font-size:16px; margin:20px 0 10px; }

/* account dashboard — subscriptions & licenses */
.account-tabs{ display:flex; gap:8px; margin-bottom:24px; flex-wrap:wrap; }
.account-tab{ font-family:'IBM Plex Mono',monospace; font-size:12px; padding:8px 14px; border-radius:8px; background:var(--panel); border:1px solid var(--line); color:var(--muted); }
.account-tab.active{ background:var(--gold-dim); border-color:var(--gold-line); color:#8f6b09; font-weight:700; }
.license-key-chip{ font-family:'IBM Plex Mono',monospace; background:#F8F4E9; border:1px solid var(--line); padding:3px 8px; border-radius:6px; font-size:12px; }
.site-plan-meter-track{ height:6px; background:#F1EAD6; border-radius:6px; overflow:hidden; margin-top:6px; width:120px; display:inline-block; }
.site-plan-meter-fill{ height:100%; background:var(--gold); display:block; }

/* empty state */
.medd-empty{ padding:48px 24px; text-align:center; background:var(--panel); border:1px dashed var(--line); border-radius:12px; color:var(--muted); }

/* footer */
.site-footer{ padding:40px 0; border-top:1px solid var(--line); margin-top:40px; }
.foot-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; font-size:13px; color:var(--muted); }


/* ===== v1.1 — hero, page hero, footer columns, CTA band ===== */
:root{ --accent:var(--gold); --accent-hover:#8f6b09; }
.skip-link{ position:absolute; left:-9999px; top:8px; background:var(--ink); color:#fff; padding:8px 14px; border-radius:6px; z-index:100; }
.skip-link:focus{ left:8px; }
.nav-actions{ display:flex; align-items:center; gap:16px; }
.btn-primary{ background:var(--accent); color:#fff; }
.btn-primary:hover{ background:var(--accent-hover); }
.btn-ghost-dark{ border-color:rgba(255,255,255,.35); color:#fff; background:transparent; }
.badge{ display:inline-flex; align-items:center; gap:6px; font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:700; letter-spacing:.04em; color:var(--ink); background:rgba(0,0,0,.05); border:1px solid var(--line); padding:5px 10px; border-radius:20px; margin-bottom:16px; }

.hero{ padding:72px 0 40px; }
.hero-grid{ display:grid; grid-template-columns:1fr; gap:48px; align-items:center; }
@media(min-width:960px){ .hero-grid{ grid-template-columns:1.05fr 1fr; } }
.hero h1{ font-size:44px; line-height:1.06; letter-spacing:-0.02em; margin:0 0 20px; font-weight:800; }
@media(min-width:760px){ .hero h1{ font-size:54px; } }
.hero h1 .hl{ color:var(--accent); }
.hero .sub{ font-size:18px; color:var(--muted); max-width:48ch; margin:0 0 30px; }
.hero-ctas{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.hero-note{ font-size:13px; color:var(--muted); }
.hero-note a{ text-decoration:underline; }
.hero-card{ background:var(--panel); border:1px solid var(--line); border-radius:14px; box-shadow:0 24px 48px -24px rgba(20,23,26,.25); overflow:hidden; }
.hero-card-top{ background:linear-gradient(135deg,#14171A,#2b2f36); color:#F3E6C4; padding:22px 24px; display:flex; flex-direction:column; gap:8px; }
.hero-card-top span{ font-size:11px; letter-spacing:.08em; color:var(--gold-bright, #D9A404); }
.hero-card-top strong{ font-size:18px; letter-spacing:.03em; font-weight:600; }
.hero-card-body{ padding:16px 24px 22px; }
.lrow{ display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px dashed var(--line); font-size:13px; }
.lrow:last-of-type{ border-bottom:none; }
.lrow span:first-child{ color:var(--muted); }
.lrow .ok{ color:var(--green); font-weight:700; }
.lmeter{ margin-top:16px; }
.lmeter-track{ height:8px; background:rgba(0,0,0,.07); border-radius:6px; overflow:hidden; margin-top:8px; }
.lmeter-fill{ height:100%; background:var(--accent); display:block; }
.lmeter-label{ display:flex; justify-content:space-between; font-size:11px; color:var(--muted); }
.strip{ padding:20px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin-bottom:56px; }
.strip-inner{ display:flex; gap:24px; flex-wrap:wrap; align-items:center; justify-content:center; font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--muted); }
.strip-inner b{ color:var(--ink); }

.section-head{ max-width:640px; margin:0 0 28px; }
.section-head h2{ font-size:30px; letter-spacing:-0.01em; margin:0 0 10px; font-weight:800; }
.section-head p{ color:var(--muted); margin:0; }
.section-head p a{ text-decoration:underline; color:var(--accent); }
.how-grid{ display:grid; grid-template-columns:1fr; gap:16px; }
@media(min-width:760px){ .how-grid{ grid-template-columns:repeat(3,1fr); } }
.how-card{ display:block; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:24px; transition:transform .15s, border-color .15s; }
.how-card:hover{ transform:translateY(-2px); border-color:var(--accent); }
.how-n{ font-size:12px; color:var(--accent); font-weight:700; }
.how-card h4{ margin:8px 0 6px; font-size:17px; }
.how-card p{ margin:0; color:var(--muted); font-size:14px; }
.cta-band{ background:linear-gradient(135deg,#14171A,#2b2f36); color:#F3E6C4; border-radius:16px; padding:48px 36px; text-align:center; }
.cta-band h2{ color:#fff; margin:0 0 10px; font-size:28px; }
.cta-band p{ color:#cbbf9e; max-width:52ch; margin:0 auto 24px; }
.cta-band .hero-ctas{ justify-content:center; margin:0; }

.page-hero{ background:linear-gradient(135deg,#14171A,#2b2f36); color:#F3E6C4; border-bottom:4px solid var(--accent); }
.page-hero-inner{ padding:48px 28px 44px; }
.page-hero h1{ font-size:38px; letter-spacing:-0.02em; margin:0 0 12px; font-weight:800; color:#fff; }
.page-hero .eyebrow{ color:var(--accent); filter:brightness(1.35); }
.page-hero .eyebrow::before{ color:#9a9078; }
.page-hero-sub{ color:#cbbf9e; font-size:17px; max-width:62ch; margin:0 0 18px; }
.crumbs{ font-size:12px; color:#9a9078; margin-bottom:14px; }
.crumbs a{ color:#cbbf9e; text-decoration:underline; }
.notfound-links{ display:flex; gap:20px; list-style:none; padding:0; margin:0 0 24px; flex-wrap:wrap; }
.notfound-links a{ text-decoration:underline; }

.site-footer{ padding:48px 0 28px; }
.foot-cols{ display:grid; grid-template-columns:1fr; gap:28px; padding-bottom:28px; }
@media(min-width:760px){ .foot-cols{ grid-template-columns:1.4fr 1fr 1fr; } }
.foot-brand p{ color:var(--muted); font-size:14px; max-width:36ch; }
.foot-col h4{ font-size:11px; letter-spacing:.08em; color:var(--muted); margin:0 0 12px; }
.foot-col ul, .foot-row ul{ list-style:none; margin:0; padding:0; }
.foot-col li{ margin-bottom:8px; font-size:14px; }
.foot-col a:hover, .foot-row a:hover{ color:var(--accent); }
.foot-row ul{ display:flex; gap:20px; flex-wrap:wrap; }
.foot-row{ border-top:1px solid var(--line); padding-top:22px; }
.entry-content h2{ margin:32px 0 10px; font-size:22px; }
.entry-content p, .entry-content li{ color:var(--muted); }
.entry-content a{ color:var(--accent); text-decoration:underline; }
.entry-content .btn{ text-decoration:none; }
.entry-content .btn-primary{ color:#fff; }
.entry-content code{ background:rgba(0,0,0,.06); padding:2px 6px; border-radius:5px; font-family:'IBM Plex Mono',monospace; font-size:.9em; }
.meddt-universal-thumb{ width:100%; height:auto; border-radius:8px; }
