: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-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 800; letter-spacing: .02em;
}
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1rem; line-height: 1.05; }
.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(7, 1fr); gap: .75rem; }
.ladder-item {
  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: 44px; height: 64px; border-radius: 8px 8px 22px 22px; background: var(--tag, #ccc);
  border: 1px solid rgba(0, 0, 0, .12); position: relative;
}
.tag::before { content: ""; position: absolute; top: 8px; left: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateX(-50%); background: #fff; border: 1px solid rgba(0, 0, 0, .15); }
.tag::after { content: "NA"; position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font: 700 .75rem var(--font-head); color: var(--tag-text, #fff); }
.tag-lg { width: 56px; height: 80px; }
.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-30-days { background: #f26a1b; } .ms-60-days { background: #1f9d55; } .ms-90-days { background: #d7262d; }
.ms-9-months { background: #f5d327; color: #222; } .ms-1-year { background: #fff; 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; }

/* 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(4, 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; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .card-body { padding: .6rem .7rem .8rem; }
  .card-name { font-size: .85rem; }
}
