:root {
  --blue: #0019ff;
  --blue-dark: #0012b8;
  --ink: #15171c;
  --ink-2: #4a4f5a;
  --line: #e4e6ec;
  --bg: #ffffff;
  --bg-alt: #f4f5f9;
  --radius: 14px;
  --wrap: 1180px;
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.55; font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
p { margin: 0 0 1rem; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 8px; z-index: 100; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 48px; width: auto; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { color: var(--ink); padding: .5rem .75rem; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: var(--bg-alt); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; border: 2px solid transparent;
  cursor: pointer; font-family: var(--font-body); font-size: 1rem;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; width: 100%; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 1.75rem; }
.section-head p { color: var(--ink-2); margin: 0; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--blue); margin-bottom: .75rem; }
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }
.page-head p { color: var(--ink-2); max-width: 70ch; }

/* Hero */
.hero { background: linear-gradient(180deg, #f4f5f9 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: clamp(2rem, 6vw, 4.5rem) 0; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 48ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-art { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 1.5rem; box-shadow: 0 24px 60px rgba(0, 25, 255, .10); }
.hero-art img { max-height: 460px; width: auto; margin-inline: auto; }

/* Milestone ladder */
.ladder { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: .75rem; }
.ladder-item {
  height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem;
  padding: 1rem .5rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff;
  transition: transform .15s, box-shadow .15s;
}
.ladder-item:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.tag { display: block; width: 40px; height: 80px; object-fit: contain; }
.tag-lg { width: 56px; height: 112px; }
.ladder-label { font-family: var(--font-head); font-weight: 700; }
.ladder-sub { font-size: .75rem; color: var(--ink-2); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--tag); border: 1px solid rgba(0,0,0,.2); margin-right: .4rem; }
.ms-title { display: flex; align-items: center; gap: 1rem; }
.ms-title p { color: var(--ink-2); margin: 0; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.cat { display: block; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cat:hover { text-decoration: none; border-color: var(--blue); }
.cat-img { display: block; aspect-ratio: 1; background: #fff; padding: 10%; }
.cat-img img { width: 100%; height: 100%; object-fit: contain; }
.cat-name { display: block; font-family: var(--font-head); font-weight: 700; padding: .6rem .8rem 0; }
.cat-sub { display: block; font-size: .8rem; color: var(--ink-2); padding: 0 .8rem .8rem; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.grid-tight { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.card { display: block; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.card:hover { text-decoration: none; border-color: var(--blue); box-shadow: 0 10px 30px rgba(0, 0, 0, .07); }
.card[hidden] { display: none; }
.card-img { display: block; aspect-ratio: 1; position: relative; background: #fff; padding: 8%; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-noimg { display: grid; place-items: center; height: 100%; color: var(--ink-2); font-size: .85rem; background: var(--bg-alt); border-radius: 10px; }
.card-noimg-lg { aspect-ratio: 1; }
.card-body { display: block; padding: .75rem .9rem 1rem; }
.card-name { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.card-meta { display: block; color: var(--ink-2); font-size: .8rem; margin-top: .2rem; }
.card-price { display: block; font-family: var(--font-head); font-weight: 700; margin-top: .4rem; }
.pill { display: inline-block; font-size: .7rem; font-weight: 700; padding: .25rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.pill-ms { position: absolute; top: 10px; left: 10px; background: #111; color: #fff; }
.product .pill-ms { position: static; margin-bottom: 1rem; font-size: .75rem; }
.ms-welcome { background: #fff; color: #222; border: 1px solid var(--line); }
.ms-30-days { background: #f26a1b; } .ms-60-days { background: #1f9d55; } .ms-90-days { background: #d7262d; }
.ms-6-months { background: #1c3fa8; }
.ms-9-months { background: #f5d327; color: #222; } .ms-1-year { background: #eef3dc; color: #222; border: 1px solid var(--line); }
.ms-18-months { background: #9aa0a6; } .ms-multiple-years { background: #111; color: #f3c53b; }

/* Filters / subnav */
.filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4rem .85rem; font: 500 .85rem var(--font-body); cursor: pointer; color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.subnav { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1rem; }
.subnav a { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; color: var(--ink); font-size: .9rem; display: inline-flex; align-items: center; }
.subnav a:hover { border-color: var(--blue); text-decoration: none; }
.subnav-alt { color: var(--blue) !important; border-style: dashed !important; }
.shop-section:nth-of-type(even) { background: var(--bg-alt); }

/* Product page */
.product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.product-media { border: 1px solid var(--line); border-radius: var(--radius); padding: 6%; background: #fff; position: sticky; top: 90px; }
.product-media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.crumbs { font-size: .85rem; color: var(--ink-2); }
.price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; margin: .25rem 0 .75rem; }
.desc { color: var(--ink-2); font-size: 1.05rem; }
.buy { margin: 1.5rem 0; padding: 1.25rem; background: var(--bg-alt); border-radius: var(--radius); }
.buy-note { font-size: .85rem; color: var(--ink-2); margin: .75rem 0 0; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; font-size: .92rem; margin: 0; }
.specs dt { font-weight: 600; } .specs dd { margin: 0; color: var(--ink-2); }

/* How / story */
.how-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: start; }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .75rem; }
.story-card { background: var(--ink); color: #fff; padding: 1.75rem; border-radius: var(--radius); font-size: 1.05rem; }
.story-card .eyebrow { color: #9fb0ff; }
.story-card a { color: #fff; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose .sig { font-style: italic; }
.rates { border-collapse: collapse; margin: 0 0 1rem; }
.rates th, .rates td { text-align: left; padding: .4rem 1.5rem .4rem 0; border-bottom: 1px solid var(--line); }
.rates th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }

/* Cart */
.cart-toggle { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .45rem .9rem; font: 500 .95rem var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.cart-toggle:hover { border-color: var(--blue); }
.cart-count { background: var(--blue); color: #fff; border-radius: 999px; min-width: 1.4em; height: 1.4em; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 700; padding: 0 .35em; }
.cart-backdrop { position: fixed; inset: 0; background: rgba(21, 23, 28, .45); z-index: 90; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 100; display: flex; flex-direction: column; padding: 1.25rem; box-shadow: -20px 0 60px rgba(0,0,0,.18); overflow-y: auto; }
.cart-drawer[hidden], .cart-backdrop[hidden], .cart-count[hidden], #cart-email[hidden] { display: none; }
.cart-open { overflow: hidden; }
.cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cart-head h2 { margin: 0; font-size: 1.4rem; }
.cart-close { border: 0; background: var(--bg-alt); width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.cart-items { flex: 1; }
.cart-empty { color: var(--ink-2); }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line img, .cart-noimg { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cart-line-name { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.cart-line-meta { color: var(--ink-2); font-size: .8rem; margin-top: .15rem; }
.cart-line-price { font-family: var(--font-head); font-weight: 700; }
.cart-qty { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; }
.cart-qty button { border: 1px solid var(--line); background: #fff; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 1rem; line-height: 1; }
.cart-qty span { min-width: 1.5em; text-align: center; font-weight: 600; }
.cart-rm { width: auto !important; border: 0 !important; color: var(--ink-2); font-size: .8rem; margin-left: .5rem; text-decoration: underline; }
.cart-state { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .95rem; margin-top: 1rem; }
.cart-state select { font: 1rem var(--font-body); padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; max-width: 60%; }
#cart-tax-row[hidden] { display: none; }
.cart-totals { margin: 1rem 0; font-size: .95rem; }
.cart-totals > div { display: flex; justify-content: space-between; padding: .25rem 0; }
.cart-total-row { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .6rem !important; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.cart-msg { color: #b3261e; font-size: .9rem; min-height: 1.2em; margin: .6rem 0 0; }
.cart-fine { font-size: .78rem; color: var(--ink-2); margin-top: .75rem; }
.buy-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.buy-row label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .85rem; }
.buy-row select, .buy-row input { font: 1rem var(--font-body); padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 7rem; }
.buy-row input { width: 5.5rem; min-width: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; background: #fff; font-size: .92rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 2.5rem 0 1rem; }
.footer-brand, .footer-head { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.license { font-size: .8rem; }
.footer-fine { border-top: 1px solid var(--line); padding: 1rem 0 2rem; font-size: .78rem; }
.footer-fine p { margin: .25rem 0; }

@media (max-width: 900px) {
  .hero-grid, .product-grid, .how-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; } .hero-art img { max-height: 320px; }
  .ladder { grid-template-columns: repeat(3, 1fr); }
  .product-media { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 560px) {
  .header-row { flex-direction: column; align-items: flex-start; padding: .75rem 0; }
  .cart-drawer { padding: 1rem; }
  .ladder { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .card-body { padding: .6rem .7rem .8rem; }
  .card-name { font-size: .85rem; }
}
