:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #2f2f2f;
  --line: #000000;
  --panel: #ffffff;
  --radius: 0;
  --sheet-offset: 71px;
  --hub-border: #2f2f2f;
  --card-radius: 12px;
  --btn-radius: 10px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: black; text-decoration: none; font-weight: bold; }
.center { text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--panel); border-bottom: 2px solid var(--line); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 14px 18px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: .2px; }
.brand img.logo { width: auto; height: 38px; display: block; }
.brand-name { font-size: 16px; line-height: 1; }

.primary-nav { margin-left: auto; justify-self: end;}
.primary-nav .nav-link:hover { text-decoration: none;}
.primary-nav ul { list-style:none; margin:0; padding:0; display:flex; gap:12px; }
.primary-nav .nav-link{
  display:inline-block; padding:8px 14px;
  border:2px solid #000; border-radius:14px; background:#fff; font-weight:700; color: #6D28D9;
}


/* “Solutions” box */
.has-dropdown > .nav-link { border: 2px solid var(--line); background: #fff; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; right: 0; top: 42px; display: none; min-width: 220px;
  background: var(--panel); border: 2px solid var(--line); padding: 8px;
}
.dropdown a { display: block; color: var(--ink); padding: 10px; font-size: 14px; }
.dropdown a:hover { text-decoration: underline; }
.has-dropdown:hover .dropdown { display: block; }

/* Mobile hamburger */
.menu-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border: 2px solid var(--line);
  background: var(--panel); color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; stroke-width: 2; }

/* Mobile menu sheet */
.sheet { position: absolute; right: 18px; top: var(--sheet-offset); width: 260px; background: var(--panel); border: 2px solid var(--line); padding: 10px; }
.sheet a { display: block; color: var(--ink); padding: 10px; }
.sheet a:hover { text-decoration: underline; }
.sheet details { margin: 0 0 8px; background: #fff; }
.sheet summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 700; border: 2px solid #000; }
.sheet summary::-webkit-details-marker { display: none; }
.sheet .sheet-list { padding: 8px 6px; }
.sheet details .sheet-list { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 400ms ease, opacity 400ms ease; }
.sheet details[open] .sheet-list { max-height: 420px; opacity: 1; }

/* Hero */
.hero { max-width: 980px; margin: 30px auto 20px; padding: 0 18px; text-align: center; }
.hero h1 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 44px); letter-spacing: .3px; font-weight: 800; }
.hero p { margin: 0; font-size: 16px; color: var(--muted); }
.hero-media { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; margin: 24px auto 0; }
.hero-media img { width: 100%; height: auto; display: block; border: 2px solid var(--line); }

/* Sections */
.section { max-width: 820px; margin: 70px auto; padding: 0 18px; }
.section h2 { margin: 0 0 8px; font-size: clamp(22px, 3.2vw, 28px); }
.section p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 2px solid var(--line); padding: 22px 18px; text-align: center; color: var(--muted); font-size: 15px; }

/* Purple shimmer + twinkle */
.spark{
  position: relative; display:inline-block;
  background: linear-gradient(90deg,#3b0764 0%,#6d28d9 25%,#a855f7 50%,#6d28d9 75%,#3b0764 100%);
  background-size: 200% 100%; background-repeat: repeat-x;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sparkSlide 3.2s linear infinite;
}
@keyframes sparkSlide{ from{background-position:0% 0} to{background-position:-200% 0} }
.spark::after{
  content:""; position:absolute; inset:-0.2em -0.15em;
  background:
    radial-gradient(6px 6px at 15% 40%, rgba(255,255,255,.95), transparent 60%),
    radial-gradient(4px 4px at 35% 70%, rgba(255,255,255,.95), transparent 60%),
    radial-gradient(5px 5px at 70% 30%, rgba(168,85,247,.95), transparent 60%),
    radial-gradient(3px 3px at 85% 65%, rgba(255,255,255,.95), transparent 60%);
  mix-blend-mode: screen; filter: drop-shadow(0 0 8px rgba(168,85,247,.55)); pointer-events:none;
  animation: twinkle 1.6s ease-in-out infinite;
}
@keyframes twinkle{ 0%,100%{opacity:.45;transform:translateY(0)} 50%{opacity:1;transform:translateY(-1px)} }
@media (prefers-reduced-motion: reduce){
  .spark{ animation: none; background-position: 50% 50%; }
  .spark::after{ animation: none; opacity:.75; }
}

/* Desktop breakpoint */
@media (min-width: 900px) {
  .primary-nav ul { display: flex; }
  .menu-btn { display: none; }
}

/* Mobile adjustments */
@media (max-width: 899px){
  .brand img.logo { height: 43px; }
  .brand-name { font-size: 15px; }
}

/* === Hub grid (4 blocks) === */
.hub-grid{
  max-width: 1120px; margin: 20px auto 80px; padding: 0 18px;
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
a.hub-card, a.hub-card:link, a.hub-card:visited{
  display:flex; flex-direction:column; gap:8px; text-decoration:none; color:var(--ink);
  background:#fff; border:2px solid var(--hub-border);
  border-radius: var(--card-radius); padding:14px;
  overflow: hidden; /* clip thumb so corners don’t show */
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari corner bleed fix */
}

/* Thumb slot: immovable bottom divider; image content can be nudged via object-position */
.hub-card .thumb{
  --thumb-y: 0px;                 /* per-card override this value */
  display:block;
  width: calc(100% + 28px);
  height: 120px;
  object-fit: cover;
  object-position: 50% calc(50% + var(--thumb-y));
  margin: -14px -14px 10px;
  border: 0;
  border-bottom: 2px solid var(--hub-border); /* stays fixed */
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Example per-card nudges (edit/delete as needed) */
.hub-card:nth-child(1) .thumb { --thumb-y: 0px; }  /* move content up 6px */
.hub-card:nth-child(2) .thumb { --thumb-y: 4px; }   /* move content down 4px */
.hub-card:nth-child(3) .thumb { --thumb-y: -30px; }
.hub-card:nth-child(4) .thumb { --thumb-y: -70px; }

/* Title bold; description not-bold */
.hub-card h3{ margin: 6px 0 2px; font-size: 16px; font-weight: 700; color: #6D28D9;}
.hub-card p{ margin: 0 0 8px; font-size: 14px; color: var(--muted); line-height: 1.35; font-weight: 400; }

.hub-card .pill{
  margin-top:auto; align-self:flex-start; border:2px solid var(--hub-border);
  border-radius: var(--btn-radius); padding:4px 8px; font-size:12px; color:var(--ink);
}
.hub-card:hover h3{ text-decoration: none; color: #6D28D9;}

/* Force hub colors without re-adding side/top borders on the thumb */
#solutions-hub .hub-card,
#solutions-hub .hub-card .pill{
  border-color: #5c5c5c !important;
  border-width: 2px !important;
  border-style: solid !important;
}
#solutions-hub .hub-card .thumb{
  border: 0 !important;
  border-bottom: 2px solid #5c5c5c !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* === Product layout === */
.product-wrap{
  max-width:1120px; margin: 24px auto 80px; padding: 0 18px;
  display:grid; gap:22px; grid-template-columns: 1fr 1fr !important; /* force 50/50 split */
}
.product-media{ position:relative; }
.media-frame{
  border:2px solid var(--line); background: #fff; padding:8px;
}
.media-frame img{ display:block; width:100%; height:auto; }
.media-thumbs{ display:grid; grid-template-columns: repeat(auto-fill,minmax(76px,1fr)); gap:8px; margin-top:10px; }
.media-thumbs .thumb{
  border:2px solid var(--line); background:#fff; padding:4px; cursor:pointer;
}
.media-thumbs .thumb.is-active{ outline:3px solid #6D28D9; }
.media-thumbs img{ width:100%; height:58px; object-fit:cover; display:block; }

.product-info{
  border:2px solid var(--line); background: var(--panel); padding:16px;
  align-self:start; position: sticky; top: calc(var(--sheet-offset) + 12px);
}
.kicker{ margin:0 0 4px; color: var(--muted); font-size:13px; letter-spacing:.2px; }
.product-info h1{ margin:0 0 6px; font-size: clamp(22px,3.2vw,30px); }
.sub{ margin:0 0 12px; color: var(--muted); }

.price-row{ display:flex; align-items:center; gap:10px; margin: 10px 0 14px; }
.price{ font-weight:800; border:2px solid var(--line); padding:2px 8px; }
.meta{ color: var(--muted); font-size:14px; }

.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 16px; border:2px solid var(--line); border-radius: var(--btn-radius);
  font-weight:750; cursor:pointer; text-decoration:none;
}
.btn-block{ width:100%; }
.btn-primary{ background:#6D28D9; color:#fff; font-size: 13px;}
.btn-primary:hover{ filter: saturate(1.05) brightness(1.02); }

.bullets{ margin:14px 0; padding-left: 18px; }
.bullets li{ margin:6px 0; }

.specs{ border-top:2px solid var(--line); padding-top:12px; margin-top:12px; }
.specs h2{ margin:0 0 8px; font-size:16px; }
.specs dl{ display:grid; grid-template-columns: 100px 1fr; gap:6px 10px; margin:0; }
.specs dt{ font-weight:700; }
.specs dd{ margin:0; color: var(--muted); }

.trust{ display:flex; align-items:center; gap:10px; margin-top:14px; }
.badge{ border:2px solid var(--line); padding:2px 6px; font-size:12px; }
.hint{ color: var(--muted); font-size:13px; }

/* Mobile */
@media (max-width: 899px){
  .product-wrap{ grid-template-columns: 1fr; }
  .product-info{ position:static; }
}

/* Minimal product panel */

.product-info{
  border:2px solid var(--line);
  background:var(--panel);
  padding:18px;
  gap:0;            /* kill vertical slack from generic flow */
}

.product-info h1 {
  margin: 0 0 6px;
  font-size: clamp(24px,3vw,32px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.lede{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.45;
  max-width: 44ch;  /* 3–4 lines at common widths */
}

/* Compact primary action */
.action-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 4px 0 12px;
}
.btn{
  padding:3px 12px;
  border:2px solid var(--line);
  border-radius: var(--btn-radius);
  font-weight:700;
  font-size:14px;
}
.btn-primary{
  background:#6D28D9;
  color:#fff;
}
.hint{
  font-size:13px;
  color:var(--muted);
}

/* Caution box stays loud */
.trust{ margin-top:6px; }
.badge{
  display:inline-block;
  border:2px solid var(--line);
  padding:3px 8px;
  font-size:12px;
  letter-spacing:.2px;
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 4px 0 12px;
}

.badge.caution {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;

}

/* LRI purple: #6D28D9 */