/* The public shop, on top of app.css (same tokens, font and buttons).
   Navy bands carry the big moments; content sits on the light page. */
:root {
  --navy: #0b1736;
  --navy-2: #13224a;
  --navy-line: #26386a;
  --on-navy: #ffffff;
  --on-navy-muted: #b4c3e3;
  --amber: #f59e0b;
}
@media (prefers-color-scheme: dark) {
  :root { --navy: #050a19; --navy-2: #0e1a3b; --navy-line: #22305a; }
}

body.shop { min-height: 100vh; display: flex; flex-direction: column; }
body.shop main { flex: 1; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.inner { max-width: 1160px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 760px) { .inner { padding-left: 24px; padding-right: 24px; } }
.icon { width: 24px; height: 24px; flex: none; }

/* ---- menu ---- */
.shop-top { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1b2f66 100%); color: var(--on-navy); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--navy-line); }
.shop-bar { max-width: 1160px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.shop-logo { color: var(--on-navy); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; }
.shop-logo b { color: var(--amber); }
.shop-menu { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 8px; padding: 8px 0 12px; }
.shop-menu.open { display: flex; }
/* Each heading in its own frosted-glass box: translucent, blurred, with a
   fine light border and a soft top highlight. The bar is navy in both
   themes, so one set of glass colours works for light and dark. */
.shop-menu a {
  color: #dbe5fb; text-decoration: none; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 12px 14px; border-radius: 12px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 14px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.shop-menu a:hover { color: #ffffff; background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.09)); border-color: rgba(255, 255, 255, 0.32); transform: translateY(-1px); }
.shop-menu a[aria-current="page"] { color: #ffffff; border-color: var(--amber); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -2px 0 var(--amber), 0 4px 14px rgba(0, 0, 0, 0.25); }
@media (prefers-reduced-motion: reduce) { .shop-menu a { transition: none; } .shop-menu a:hover { transform: none; } }
@media (prefers-reduced-transparency: reduce) { .shop-menu a, .shop-menu a:hover { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--navy-2); } }
.shop-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cart-link { position: relative; color: var(--on-navy); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; }
.cart-link:hover { background: var(--navy-2); }
.cart-link .count[hidden] { display: none; }
.cart-link .count { position: absolute; top: 4px; right: 2px; background: var(--amber); color: var(--navy); font-size: 0.7rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.sign-in { color: var(--on-navy); text-decoration: none; border: 1px solid var(--navy-line); border-radius: 999px; padding: 8px 14px; font-size: 0.9rem; }
.sign-in:hover { background: var(--navy-2); }
.shop-top .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
.menu-toggle { background: transparent; color: var(--on-navy); border-color: var(--navy-line); width: 44px; padding: 0; }
.menu-toggle:hover { background: var(--navy-2); }
.shop-top :focus-visible { outline-color: var(--amber); }
@media (min-width: 1040px) {
  .shop-bar { flex-wrap: nowrap; padding: 12px 24px; }
  .shop-menu { display: flex; order: 0; flex-basis: auto; flex-direction: row; gap: 6px; padding: 0; }
  .shop-menu a { padding: 8px 10px; font-size: 0.72rem; letter-spacing: 0.05em; }
  .shop-top .menu-toggle { display: none; }
}
.preview-strip { margin: 0; background: var(--warn-bg); color: var(--warn); text-align: center; font-size: 0.85rem; font-weight: 600; padding: 8px 16px; }

/* ---- bands and headings ---- */
.band { background: var(--navy); color: var(--on-navy); }
.band a:not(.btn) { color: #bfd4ff; }
.hero { padding-top: 48px; padding-bottom: 40px; display: grid; gap: 14px; }
.eyebrow { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.band .eyebrow { color: var(--amber); }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em; max-width: 18ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { margin: 0; font-size: 1.1rem; color: var(--on-navy-muted); max-width: 60ch; }
.section { padding-top: 44px; padding-bottom: 44px; }
.section-head { display: grid; gap: 8px; margin-bottom: 22px; max-width: 70ch; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.section-head p { margin: 0; color: var(--muted); }
.band .section-head p { color: var(--on-navy-muted); }

/* ---- buttons ---- */
.btn { font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid #2563eb; background: #2563eb; color: #ffffff; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(0.93); }
.btn.ghost { background: transparent; color: var(--link); }
.band .btn.ghost { color: var(--on-navy); border-color: var(--navy-line); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 0.875rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; filter: none; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.link-btn { min-height: 36px; padding: 4px 8px; border: 0; background: transparent; color: var(--link); text-decoration: underline; }

/* ---- the Tri-Split ---- */
.split { display: grid; gap: 14px; padding-bottom: 48px; }
@media (min-width: 760px) { .split { grid-template-columns: repeat(3, 1fr); } }
.door { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 18px; text-decoration: none; color: var(--on-navy); background: var(--navy-2); border: 1px solid var(--navy-line); transition: transform 0.15s, border-color 0.15s; }
.door:hover { border-color: var(--amber); transform: translateY(-2px); }
.door .tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.door h2 { margin: 0; font-size: 1.45rem; letter-spacing: -0.01em; }
.door p { margin: 0; color: var(--on-navy-muted); }
.door .go { font-weight: 700; color: #bfd4ff; }
/* A fixed blue in both themes: white text on it is 5.2:1 (dark mode's
   lighter --brand would be 3.7:1). */
.door.hot { background: #2563eb; border-color: #2563eb; }
.door.hot h2, .door.hot p, .door.hot .go { color: #ffffff; }
.door.hot .tag { color: #ffffff; }
.door .icon { width: 34px; height: 34px; color: var(--amber); }
.door.hot .icon { color: #ffffff; }
@media (prefers-reduced-motion: reduce) { .door, .door:hover { transition: none; transform: none; } }

.trust-strip { display: flex; flex-wrap: wrap; gap: 8px 26px; padding-top: 14px; padding-bottom: 14px; color: var(--muted); font-size: 0.875rem; font-weight: 600; }

/* ---- tiles (domains, steps) ---- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--ink); min-width: 0; }
a.tile:hover { border-color: var(--brand); }
.tile h3 { margin: 0; font-size: 1.05rem; }
.tile p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.tile .icon { color: var(--brand); width: 30px; height: 30px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.journey { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); counter-reset: step; }
.journey li { list-style: none; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.journey li::before { counter-increment: step; content: counter(step); width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #ffffff; font-size: 0.8rem; font-weight: 800; display: grid; place-items: center; }
.journey b { font-size: 0.98rem; }
.journey span { color: var(--muted); font-size: 0.88rem; }
.journey-list { margin: 0; padding: 0; }

/* ---- catalogue cards ---- */
.items { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 8px; grid-template-rows: auto auto auto 1fr auto auto; min-width: 0; }
.item-head { display: flex; justify-content: space-between; align-items: center; }
.item-icon { width: 36px; height: 36px; color: var(--brand); }
.badge { background: var(--amber); color: var(--navy); font-size: 0.72rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.item h3 { margin: 0; font-size: 1.05rem; }
.item .spec { margin: 0; color: var(--muted); font-size: 0.9rem; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 0.88rem; align-content: start; }
.ticks li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.price { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-variant-numeric: tabular-nums; }
.price b { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.price small { color: var(--muted); font-size: 0.8rem; }
.nw { white-space: nowrap; }
.price.quote { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.item .btn { justify-self: start; }

/* ---- Rental Matrix ---- */
.matrix-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.matrix-tools .label { font-size: 0.875rem; color: var(--on-navy-muted); font-weight: 600; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--navy-line); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; min-height: 40px; background: transparent; color: var(--on-navy-muted); padding: 6px 14px; font-size: 0.875rem; font-weight: 700; }
.seg button[aria-checked="true"] { background: var(--amber); color: var(--navy); }
.seg button:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
.table-wrap { position: relative; overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.band .table-wrap { border-color: var(--navy-line); background: var(--navy-2); }
table.matrix { min-width: 760px; }
.band table.matrix th, .band table.matrix td { border-bottom-color: var(--navy-line); color: var(--on-navy); }
.band table.matrix thead th { color: var(--on-navy-muted); }
table.matrix tbody th { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 400; }
.dev { display: flex; gap: 10px; align-items: flex-start; }
.dev .icon { color: var(--amber); margin-top: 2px; }
.dev b, .dev small { display: block; }
.dev small, td.inc, td.fit { color: var(--on-navy-muted); font-size: 0.85rem; }
.mprice { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mprice b { display: block; font-size: 1.15rem; }
.mprice small { color: var(--on-navy-muted); font-size: 0.78rem; }
.mprice.na { color: var(--on-navy-muted); font-size: 0.85rem; }
.matrix-note { margin: 12px 0 0; color: var(--on-navy-muted); font-size: 0.85rem; }

/* ---- plan comparison ---- */
.plans .item { border-width: 2px; }

/* ---- cart ---- */
table.cart { min-width: 620px; }
table.cart tbody th { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 1rem; font-weight: 400; }
table.cart tbody th small, td.num small { display: block; color: var(--muted); font-size: 0.8rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qty { width: 84px; }
.totals { margin: 18px 0 8px auto; max-width: 440px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 700; }
.totals .grand { border-top: 2px solid var(--ink); padding-top: 8px; font-size: 1.15rem; }
.totals .grand dt { color: var(--ink); font-weight: 800; }
.checkout-next { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 12px; }
.checkout-next h2 { margin: 0; }
.checkout-next .btn { justify-self: start; }
.empty { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 40px 16px; }
.empty .big { width: 48px; height: 48px; color: var(--brand); }

/* ---- info blocks ---- */
.callout { border: 1px solid var(--line); border-left: 4px solid var(--amber); background: var(--surface); border-radius: 12px; padding: 16px 18px; display: grid; gap: 6px; }
.callout p { margin: 0; }
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.facts div { display: grid; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .facts div { grid-template-columns: 240px 1fr; gap: 16px; } }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }
.todo { color: var(--warn); font-weight: 700; }
.prose { max-width: 70ch; display: grid; gap: 12px; }
.prose p, .prose ul, .prose ol { margin: 0; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 6px; }
.prose h2 { margin: 14px 0 0; font-size: 1.2rem; }
.legal .facts dd { overflow-wrap: anywhere; }

/* ---- footer ---- */
.shop-foot { background: var(--navy); color: var(--on-navy-muted); margin-top: 40px; }
.shop-foot-in { max-width: 1160px; margin: 0 auto; padding: 32px 16px 12px; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.foot-col { display: grid; gap: 6px; align-content: start; font-size: 0.9rem; }
.foot-col strong { color: var(--on-navy); }
.foot-col a { color: var(--on-navy-muted); font-weight: 500; text-decoration: none; }
.foot-col a:hover { color: var(--on-navy); text-decoration: underline; }
.foot-note { max-width: 1160px; margin: 0 auto; padding: 12px 16px 28px; font-size: 0.8rem; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.staff-links { display: inline-flex; gap: 14px; order: 0; }
.staff-links a { color: var(--on-navy-muted); opacity: 0.75; text-decoration: none; font-size: 0.75rem; }
.staff-links a:hover, .staff-links a:focus-visible { opacity: 1; color: var(--on-navy); text-decoration: underline; }

/* ---- sign-up ---- */
.signup { max-width: 640px; }
.signup legend { font-weight: 700; margin-bottom: 6px; }
.signup fieldset { border: 0; padding: 0; margin: 0; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.consent input { margin-top: 2px; }
.problems ul { margin: 6px 0 0; padding-left: 20px; }

/* ---- product photos and stock ---- */
.item-photo { width: 100%; height: auto; aspect-ratio: 20 / 13; object-fit: cover; border-radius: 10px; background: var(--chip); }
.stock-note { font-size: 0.75rem; font-weight: 700; color: #0a7d3b; }
.stock-note.out { color: var(--muted); }
@media (prefers-color-scheme: dark) { .stock-note { color: #4ade80; } }
.item:has(> .item-photo) { grid-template-rows: auto auto auto auto 1fr auto auto; }

/* "← Back" under the menu on every page but home */
.shop-back { max-width: 1160px; margin: 0 auto; padding: 12px 16px 0; display: flex; gap: 14px; align-items: center; }
.shop-back .back-btn { background: transparent; color: var(--ink, inherit); border: 1px solid var(--line, #cbd5e1); border-radius: 999px; min-height: 40px; padding: 6px 16px; font-weight: 700; cursor: pointer; }
.shop-back .back-btn:hover { border-color: currentColor; }
.shop-back a { font-size: 0.9rem; }
