/*
 * Molecular Edge: site styles, built on the brand bible (Brand Guidelines v1.0, November 2026).
 * Palette: Midnight Navy, Edge Blue, Signal Blue + White / Lab Mist / Lab Line / Slate.
 * Type: Sora (headlines, buttons) and Inter (body), JetBrains Mono for data. 8px spacing, 8px cards, 6px buttons.
 * Rules honoured here: gradient only on hero bands, key buttons and the slanted-bar accent (never behind body text);
 * Signal Blue is never used for small text on white or navy; blue stays an accent (~60% light / 25% navy / 10% + 5% blue).
 */
:root {
  --navy: #051C36;
  --edge: #0A52A6;
  --signal: #1A80CF;
  --white: #FFFFFF;
  --mist: #F3F6FA;
  --line: #D9E1EA;
  --slate: #5B6B7F;
  --gradient: linear-gradient(90deg, #0A52A6, #1A80CF);

  --sora: 'Sora', 'Montserrat', Arial, sans-serif;
  --inter: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --r-card: 8px;
  --r-btn: 6px;
  --shadow: 0 4px 16px rgba(5, 28, 54, .08);

  /* The brand defines no feedback colours; these two are used only for error states. */
  --error: #B3261E;
  --error-tint: #FDECEA;

  --motif: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'><g stroke='white' stroke-width='2' fill='white' stroke-linecap='round'><path fill='none' d='M40 60L120 30L190 90L280 50M190 90L150 210L60 170M150 210L250 230L330 300M250 230L320 140L280 50M150 210L90 300'/><circle cx='40' cy='60' r='6'/><circle cx='120' cy='30' r='4'/><circle cx='190' cy='90' r='8'/><circle cx='280' cy='50' r='5'/><circle cx='320' cy='140' r='6'/><circle cx='60' cy='170' r='4'/><circle cx='150' cy='210' r='9'/><circle cx='250' cy='230' r='5'/><circle cx='330' cy='300' r='6'/><circle cx='90' cy='300' r='5'/></g></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--navy); font: 400 16px/1.6 var(--inter); -webkit-font-smoothing: antialiased; }
/* the E's gradient as a thin band across the very top of every page */
body::before { content: ""; display: block; height: 4px; background: var(--gradient); }
h1, h2, h3, h4 { margin: 0; font-family: var(--sora); color: var(--navy); text-wrap: balance; letter-spacing: -.01em; }
h1 { font-weight: 700; font-size: 48px; line-height: 1.15; }
h2 { font-weight: 600; font-size: 36px; line-height: 1.2; }
h3 { font-weight: 600; font-size: 24px; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--slate); }
.center { text-align: center; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.h2 { font: 600 36px/1.2 var(--sora); }
.h3 { font: 600 24px/1.3 var(--sora); margin-bottom: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1.4 var(--inter); letter-spacing: .12em; text-transform: uppercase; color: var(--edge); }
/* the E's slanted bar, same angle as the logo, used as the accent mark */
.eyebrow::before, .slant { content: ""; display: inline-block; width: 24px; height: 8px; background: var(--gradient); transform: skewX(-24deg); border-radius: 1px; flex: none; }
.slant { content: none; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--line); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--edge); text-decoration: underline; font: inherit; }
.lede { font-size: 18px; line-height: 1.6; }

/* links: Edge Blue, underlined on hover */
.prose a, .legal-body a, .gate-copy a, .gate-foot a, .ruo-box a, .empty a, .locked-card a:not(.btn), .info-list a, .gate-check a, .doc-hint a, .crumbs a, .continue { color: var(--edge); }
.prose a:hover, .legal-body a:hover, .gate-copy a:hover, .gate-foot a:hover, .ruo-box a:hover, .empty a:hover, .info-list a:hover, .gate-check a:hover, .crumbs a:hover { text-decoration: underline; }
.empty a, .gate-check a, .info-list a { text-decoration: underline; }

/* buttons: Sora 600, 6px radius. Primary = Edge Blue (hover Signal Blue); secondary = white with navy outline */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: var(--r-btn); border: 1px solid transparent; font: 600 16px/1 var(--sora); transition: background .15s, color .15s, border-color .15s; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-ink, .btn-pine { background: var(--edge); color: var(--white); }
.btn-ink:hover:not(:disabled), .btn-pine:hover { background: var(--signal); }
.btn-ink:disabled { background: var(--line); color: var(--slate); cursor: not-allowed; }
.btn-line { background: var(--white); border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--mist); }
/* on navy: key button uses the brand gradient; the secondary is a white outline */
.btn-pale { background: var(--gradient); color: var(--white); }
.btn-pale:hover { background: var(--signal); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* top strip + header */
.ruo-strip { background: var(--mist); color: var(--navy); border-bottom: 1px solid var(--line); font: 600 12px/1 var(--inter); letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 10px 16px; }
header.site { position: sticky; top: 0; z-index: 60; background: var(--white); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 32px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; height: 56px; width: auto; }
.qc-btn, .session-chip, nav.primary a, .linkbtn { white-space: nowrap; }
nav.primary { display: flex; gap: 32px; margin-left: auto; }
nav.primary a { position: relative; font: 500 15px/1 var(--inter); color: var(--navy); padding: 12px 0; }
nav.primary a:hover { color: var(--edge); }
nav.primary a.active { color: var(--edge); font-weight: 600; }
nav.primary a.active::after { content: ""; position: absolute; left: 4px; bottom: 2px; width: 24px; height: 4px; background: var(--gradient); transform: skewX(-24deg); border-radius: 1px; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.qc-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; font: 500 15px/1 var(--inter); color: var(--navy); padding: 8px 2px; }
.qc-btn:hover { color: var(--edge); }
.qc-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--edge); color: var(--white); display: inline-grid; place-items: center; font: 600 12px/1 var(--inter); padding: 0 6px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--slate); border-radius: var(--r-btn); flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-btn span { width: 18px; height: 2px; background: var(--navy); }

/* hero: navy title band with the molecule motif at low opacity */
.hero { position: relative; overflow: hidden; color: var(--white); padding: 96px 0; background: var(--navy); }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--motif); background-size: 360px 360px; opacity: .07; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font: 700 clamp(34px, 4.4vw, 48px)/1.15 var(--sora); margin: 24px 0 24px; color: var(--white); }
.hero h1 .h1-sub { display: block; margin-top: 12px; font: 600 .62em/1.25 var(--sora); letter-spacing: -.005em; color: var(--signal); }
.hero .lede { max-width: 52ch; color: var(--line); margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-molecule { display: flex; justify-content: center; }
.hero-molecule svg { width: 100%; max-width: 540px; height: auto; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(217, 225, 234, .25); font-size: 14px; line-height: 1.5; color: var(--line); }
.hero-facts b { display: block; color: var(--white); font: 600 15px/1.4 var(--inter); margin-bottom: 2px; }

.page-hero { position: relative; overflow: hidden; color: var(--white); padding: 64px 0; background: var(--navy); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font: 700 clamp(32px, 4vw, 44px)/1.15 var(--sora); color: var(--white); margin: 16px 0; max-width: 20ch; }
.page-hero p { max-width: 60ch; font-size: 18px; color: var(--line); }

/* sections */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head .h2 { margin-top: 16px; }
.section-head p { max-width: 48ch; font-size: 18px; color: var(--slate); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 32px 32px 8px 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step .n { font: 700 40px/1 var(--sora); color: var(--edge); margin-bottom: 16px; }
.step h3 { font: 600 20px/1.3 var(--sora); margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 16px; max-width: 36ch; }

.statband { background: var(--navy); color: var(--white); padding: 64px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 0 32px; border-left: 1px solid rgba(217, 225, 234, .22); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat::before { content: ""; display: block; width: 28px; height: 6px; margin-bottom: 16px; background: var(--gradient); transform: skewX(-24deg); border-radius: 1px; }
.stat strong { display: block; font: 700 40px/1.1 var(--sora); color: var(--white); margin-bottom: 8px; }
.stat span { font-size: 14px; line-height: 1.5; color: var(--line); }

/* product cards */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.pcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcode { font: 500 12px/1 var(--mono); background: var(--mist); color: var(--navy); padding: 6px 8px; border-radius: 4px; letter-spacing: .02em; }
.pcat { font: 600 12px/1.2 var(--inter); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); text-align: right; }
.pcard-main { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: start; }
.pcard-vial { background: var(--mist); border-radius: var(--r-card); display: flex; justify-content: center; padding: 8px 0 4px; }
.pcard h3 { font: 600 18px/1.3 var(--sora); }
.pcard h3 a:hover { color: var(--edge); }
.pblurb { margin-top: 8px; font-size: 14px; color: var(--slate); line-height: 1.5; }
.specs { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line); }
.specs li { display: grid; grid-template-columns: 1fr auto 40px; gap: 16px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.specs li:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-id b { display: block; font: 500 13px/1.3 var(--mono); }
.spec-id span { font-size: 13px; color: var(--slate); }
.specs em { font: 500 15px/1 var(--mono); font-style: normal; }
.add { width: 40px; height: 40px; border-radius: var(--r-btn); border: 1px solid var(--slate); background: var(--white); font-size: 20px; line-height: 1; transition: .15s; }
.add:hover { background: var(--edge); color: var(--white); border-color: var(--edge); }

/* shop toolbar */
.toolbar { display: grid; gap: 16px; margin-bottom: 32px; }
.search { position: relative; max-width: 720px; }
.search input { width: 100%; padding: 16px 16px 16px 48px; border: 1px solid var(--slate); border-radius: var(--r-btn); background: var(--white); font: 400 16px/1 var(--inter); color: var(--navy); }
.search input:focus { border-color: var(--edge); outline: 2px solid var(--signal); outline-offset: 1px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--slate); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--white); border: 1px solid var(--slate); border-radius: var(--r-btn); padding: 10px 16px; font: 500 14px/1 var(--inter); color: var(--navy); }
.chip span { margin-left: 6px; color: var(--slate); font-weight: 500; }
.chip:hover { border-color: var(--edge); color: var(--edge); }
.chip.active { background: var(--edge); border-color: var(--edge); color: var(--white); }
.chip.active span { color: var(--line); }
.count { font-size: 14px; color: var(--slate); }
.empty { grid-column: 1 / -1; background: var(--white); border: 1px dashed var(--slate); border-radius: var(--r-card); padding: 48px; text-align: center; }

/* product detail */
.pd-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.pd-stage { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); min-height: 480px; display: grid; place-items: center; padding: 32px; }
.pd-info { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 32px; }
.crumbs { font-size: 14px; color: var(--slate); margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { font: 600 12px/1 var(--inter); letter-spacing: .06em; text-transform: uppercase; background: var(--mist); color: var(--edge); padding: 6px 8px; border-radius: 4px; }
.pd-info h1 { font: 700 34px/1.15 var(--sora); margin-bottom: 16px; }
.pd-lede { color: var(--slate); font-size: 18px; max-width: 54ch; margin-bottom: 24px; }
.spec-pick { border: 0; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.spec-pick legend { font: 600 12px/1 var(--inter); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 16px; padding: 0; }
.spec-opt input { position: absolute; opacity: 0; pointer-events: none; }
.spec-opt span { display: grid; gap: 4px; min-width: 112px; padding: 12px 16px; border: 1px solid var(--slate); border-radius: var(--r-btn); cursor: pointer; }
.spec-opt b { font: 600 15px/1.3 var(--inter); }
.spec-opt em { font: 500 13px var(--mono); font-style: normal; color: var(--slate); }
.spec-opt input:checked + span { border-color: var(--edge); box-shadow: 0 0 0 2px var(--edge); background: var(--mist); }
.spec-opt input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.pd-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.pd-price { display: grid; margin-right: auto; }
.pd-price strong { font: 600 28px/1.1 var(--mono); }
.pd-price .muted { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.pd-price .mono { font-size: 12px; color: var(--slate); }
.pd-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.pd-meta div { padding: 16px; border-bottom: 1px solid var(--line); }
.pd-meta div:nth-child(odd) { border-right: 1px solid var(--line); }
.pd-meta div:nth-last-child(-n+2) { border-bottom: 0; }
.pd-meta dt { font: 600 12px/1 var(--inter); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.pd-meta dd { margin: 0; font-size: 15px; }
.pd-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.apps { margin: 0 0 24px; padding-left: 20px; color: var(--slate); font-size: 16px; line-height: 1.9; }
.ruo-box { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); padding: 24px; font-size: 14px; color: var(--slate); line-height: 1.7; }
.ruo-box b { color: var(--navy); letter-spacing: .02em; }
.related { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.related a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.related a:hover { color: var(--edge); }
.related em { font: 500 13px var(--mono); font-style: normal; color: var(--slate); }

/* about / contact / legal */
.prose { max-width: 66ch; color: var(--slate); font-size: 18px; line-height: 1.6; }
.prose p + p { margin-top: 24px; }
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.vial-stage { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-card); display: flex; gap: 8px; justify-content: center; align-items: flex-end; padding: 48px 24px 24px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.value { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow); }
.value h3 { font: 600 20px/1.3 var(--sora); margin-bottom: 8px; }
.value p { font-size: 16px; color: var(--slate); }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 32px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label, .field legend { font: 600 12px/1.2 var(--inter); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--slate); border-radius: var(--r-btn); background: var(--white); font: 400 16px/1.4 var(--inter); color: var(--navy); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--edge); outline: 2px solid var(--signal); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.info-list { margin: 0; display: grid; gap: 24px; }
.info-list dt { font: 600 12px/1 var(--inter); letter-spacing: .1em; text-transform: uppercase; color: var(--edge); margin-bottom: 8px; }
.info-list dd { margin: 0; color: var(--navy); font-size: 16px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.legal-body { max-width: 74ch; }
.legal-body h2 { font: 600 20px/1.3 var(--sora); margin: 32px 0 8px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p { color: var(--slate); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.legal-meta { font: 500 13px var(--mono); color: var(--slate); padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.cta-band { background: var(--mist); border-top: 1px solid var(--line); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 64px; padding-bottom: 64px; }
.disclaim { background: var(--white); border-top: 1px solid var(--line); padding: 32px 0; }
.disclaim p { max-width: 130ch; font-size: 14px; color: var(--slate); line-height: 1.6; }
.disclaim b { color: var(--navy); }
.disclaim a { color: var(--edge); text-decoration: underline; }

/* app pages sit on Lab Mist so white cards stand out */
body:is([data-page=shop], [data-page=product], [data-page=cart], [data-page=checkout], [data-page=order], [data-page=orders], [data-page=access], [data-page=contact]) main > .section { background: var(--mist); }
#featured-locked { background: var(--mist); }

/* footer: reversed colours on navy; the logo sits on a white panel (brand rule for dark backgrounds) */
footer.site { background: var(--navy); color: var(--line); padding: 64px 0 32px; }
.brand-panel { display: inline-block; background: var(--white); border-radius: var(--r-card); padding: 8px 16px; }
.brand-panel .brand img { height: 56px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.foot-brand p { font-size: 15px; max-width: 38ch; margin: 24px 0 16px; }
.foot-contact { line-height: 1.9; margin-top: 0 !important; }
.foot-contact a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.foot-grid h4 { font: 600 13px/1 var(--inter); letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-grid ul a { font-size: 15px; }
.foot-grid ul a:hover, .foot-bottom a:hover { color: var(--white); text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(217, 225, 234, .22); font-size: 13px; line-height: 1.5; color: var(--line); }

/* cart page */
.cart-card { padding: 0; overflow: hidden; }
.cart-head { display: flex; justify-content: space-between; align-items: baseline; padding: 24px 24px 16px; }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-lines li { display: grid; grid-template-columns: 64px 1fr auto 96px 32px; gap: 16px; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.cart-lines .thumb { background: var(--mist); border-radius: var(--r-card); display: flex; justify-content: center; padding: 6px 0 2px; }
.cart-item b { display: block; font: 600 16px/1.3 var(--inter); }
.cart-item a:hover b { color: var(--edge); }
.cart-item span { display: block; font-size: 14px; color: var(--slate); }
.cart-item .unit { margin-top: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--slate); border-radius: var(--r-btn); }
.stepper button { width: 36px; height: 40px; background: none; border: 0; font-size: 18px; }
.stepper button:hover { color: var(--edge); }
.stepper span { min-width: 28px; text-align: center; font: 500 14px var(--mono); }
.line-total { text-align: right; font: 500 15px var(--mono); }
.line-remove { background: none; border: 0; color: var(--slate); font-size: 24px; line-height: 1; }
.line-remove:hover { color: var(--error); }
.continue { display: inline-block; padding: 16px 24px; font: 600 15px/1 var(--inter); }
.continue:hover { text-decoration: underline; }

.notice-ok { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--edge); border-radius: var(--r-card); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.notice-ok .check { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--edge); color: var(--white); display: grid; place-items: center; font: 700 18px var(--inter); }
.notice-ok h2 { font: 600 22px/1.25 var(--sora); color: var(--navy); margin-bottom: 8px; }
.notice-ok p { font-size: 16px; color: var(--navy); line-height: 1.6; }

/* gate pages: navy title band, white card, logo at the top of the card */
.gate-page { min-height: calc(100vh - 140px); display: grid; place-items: center; justify-items: center; padding: 48px 24px; background: var(--navy); position: relative; }
.gate-page::before { content: ""; position: absolute; inset: 0; background-image: var(--motif); background-size: 360px 360px; opacity: .07; pointer-events: none; }
.gate-card { position: relative; width: 100%; max-width: 500px; background: var(--white); border-radius: var(--r-card); padding: 32px; box-shadow: 0 4px 16px rgba(5, 28, 54, .24); }
.gate-card h1 { font: 700 28px/1.2 var(--sora); margin: 16px 0 8px; }
.gate-logo { margin: -8px 0 16px; }
.gate-logo img { display: block; height: 56px; width: auto; }
.gate-copy { color: var(--slate); font-size: 16px; margin-bottom: 24px; }
.gate-check { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 8px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.gate-check:has(input:checked) { border-color: var(--edge); background: var(--mist); }
.gate-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--edge); flex: none; }
#gate-submit, #w-enter { margin-top: 8px; }
.waiver-page { min-height: 100vh; }
.gate-foot { font-size: 13px; color: var(--slate); margin-top: 16px; line-height: 1.55; }
.gate-error { background: var(--error-tint); border: 1px solid var(--error); color: var(--error); border-radius: var(--r-btn); padding: 12px 16px; font-size: 15px; margin: 8px 0 16px; }
.dev-note { background: var(--mist); border: 1px solid var(--edge); color: var(--navy); border-radius: var(--r-card); padding: 16px; margin-bottom: 16px; font-size: 15px; }
.dev-note p { margin: 4px 0 16px; }
.session-chip { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; color: var(--slate); }
.session-chip .who { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.session-chip a { font-weight: 600; color: var(--edge); }
.session-chip a:hover { text-decoration: underline; }
.locked-card { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 48px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 500; transform: translate(-50%, 16px); background: var(--navy); color: var(--white); padding: 16px 24px; border-radius: var(--r-btn); font-size: 15px; font-weight: 500; opacity: 0; pointer-events: none; transition: .22s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--white); font-weight: 600; margin-left: 8px; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

/* checkout, order, orders */
.co-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 32px; align-items: start; }
.co-summary { position: sticky; top: 104px; }
.sum-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sum-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sum-list b { display: block; font: 600 15px/1.3 var(--inter); }
.sum-list span { font-size: 13px; color: var(--slate); }
.sum-list em { font: 500 14px var(--mono); font-style: normal; white-space: nowrap; }
.sum-totals { margin: 16px 0 0; display: grid; gap: 8px; }
.sum-totals div { display: flex; justify-content: space-between; font-size: 15px; }
.sum-totals dt { color: var(--slate); }
.sum-totals dd { margin: 0; font-family: var(--mono); }
.sum-totals .grand { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; font-weight: 600; font-size: 18px; }
.sum-totals .grand dt { color: var(--navy); }
.ship-to { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.ship-to h3 { font: 600 12px/1 var(--inter); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.ship-to p { font-size: 15px; color: var(--navy); line-height: 1.6; }

.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 32px; padding: 0; }
.progress li { position: relative; padding: 16px 16px 0 0; border-top: 4px solid var(--line); font-size: 14px; color: var(--slate); font-weight: 500; }
.progress li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mist); border: 1px solid var(--line); font: 600 12px var(--inter); margin-right: 8px; }
.progress li.done { border-top-color: var(--edge); color: var(--navy); }
.progress li.done span, .progress li.current span { background: var(--edge); border-color: var(--edge); color: var(--white); }
.progress li.current { border-top-color: var(--edge); color: var(--navy); font-weight: 600; }
.progress li.cancelled { grid-column: 1 / -1; border-top-color: var(--slate); color: var(--slate); padding-right: 0; }

.pay-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; margin: 24px 0 16px; }
.qr { margin: 0; text-align: center; }
.qr img { display: block; width: 220px; height: 220px; margin: 0 auto 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px; }
.qr figcaption { font-size: 13px; color: var(--slate); }
.pay-steps { margin: 0; display: grid; gap: 16px; }
.pay-steps dt { font: 600 12px/1 var(--inter); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.pay-steps dd { margin: 0; font-size: 18px; word-break: break-all; }
.pay-warn { background: var(--mist); border: 1px solid var(--edge); color: var(--navy); border-radius: var(--r-card); padding: 16px; font-size: 15px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.sub { font: 600 18px var(--sora); }

/* order status: palette only; the text label carries the meaning, colour only reinforces it */
.status { display: inline-block; padding: 6px 10px; border-radius: 4px; font: 600 12px/1 var(--inter); letter-spacing: .02em; background: var(--mist); color: var(--slate); border: 1px solid var(--line); }
.status-payment_submitted { background: var(--white); color: var(--edge); border-color: var(--edge); }
.status-paid { background: var(--edge); color: var(--white); border-color: var(--edge); }
.status-shipped { background: var(--navy); color: var(--white); border-color: var(--navy); }
.status-cancelled { background: var(--white); color: var(--slate); border-color: var(--slate); }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.orders-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.orders-table th { text-align: left; padding: 16px; font: 600 12px/1 var(--inter); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); background: var(--mist); border-bottom: 1px solid var(--line); white-space: nowrap; }
.orders-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.orders-table tr:last-child td { border-bottom: 0; }
.orders-table .num { text-align: right; white-space: nowrap; }
.orders-table .ref { font-size: 13px; color: var(--slate); margin-top: 4px; }
.order-link { font-weight: 600; color: var(--edge); }
.order-link:hover { text-decoration: underline; }
.orders-table .actions { white-space: nowrap; }
.mini { padding: 8px 12px; border-radius: var(--r-btn); border: 1px solid var(--edge); background: var(--edge); color: var(--white); font: 600 13px var(--sora); margin-right: 8px; }
.mini:hover { background: var(--signal); border-color: var(--signal); }
.mini-quiet { background: var(--white); color: var(--navy); border-color: var(--slate); }
.mini-quiet:hover { background: var(--mist); border-color: var(--navy); }

/* access admin */
.invite-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 16px; align-items: end; }
.invite-row .field { margin-bottom: 0; }
.invite-row .btn { white-space: nowrap; }
.orders-table td.reason { max-width: 320px; color: var(--slate); font-size: 15px; }
.wv-caption { caption-side: top; text-align: left; padding: 16px; font-size: 14px; color: var(--slate); border-bottom: 1px solid var(--line); }

/* gate: clear choice between signing in and requesting access */
.or-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0 16px; color: var(--slate); font: 600 12px/1 var(--inter); letter-spacing: .1em; text-transform: uppercase; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gate-note { background: var(--mist); border-radius: var(--r-btn); padding: 16px; font-size: 15px; color: var(--navy); margin: -8px 0 24px; }

/* WhatsApp contact: one-colour icon so it sits inside the palette */
.wa { display: inline-flex; align-items: center; gap: 8px; }
.wa:hover .wa-num { text-decoration: underline; }
.wa-icon { flex: none; color: var(--edge); }
.wa-label { font-size: .9em; color: var(--slate); }
footer.site .wa-icon { color: var(--white); }
footer.site .wa-label { color: var(--line); }
footer.site .foot-contact .wa { color: var(--white); text-decoration: none; }
.info-list .wa { color: var(--navy); font-size: 16px; }
.info-list .wa-label { display: none; }

/* signed waiver */
.waiver-card { max-width: 780px; }
.waiver-doc { max-height: 340px; overflow-y: auto; padding: 24px; border: 1px solid var(--slate); border-radius: var(--r-card); background: var(--mist); font-size: 15px; line-height: 1.65; color: var(--navy); }
.waiver-doc:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.waiver-doc h2 { font: 700 16px/1.3 var(--sora); letter-spacing: .01em; color: var(--navy); margin-bottom: 16px; }
.waiver-doc h3 { font: 600 15px/1.3 var(--sora); color: var(--navy); margin: 24px 0 8px; }
.waiver-doc p { margin-bottom: 8px; }
.waiver-doc ol { margin: 8px 0; padding-left: 24px; }
.waiver-doc li { margin-bottom: 8px; }
.doc-hint { font-size: 13px; color: var(--slate); margin: 8px 0 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sign-h { font: 600 18px/1.3 var(--sora); margin-bottom: 16px; }
.sign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-bottom: 8px; }
.sign-grid .field input { height: 56px; }
.sig-input { font: 600 22px/1.2 var(--sora) !important; color: var(--edge) !important; }
.sig-input.bad { border-color: var(--error) !important; }
.field input[readonly] { background: var(--mist); color: var(--slate); }

@media (max-width: 1180px) {
  .nav-right .btn { display: none; }
  .session-chip .who { max-width: 130px; }
  .nav-row { gap: 24px; }
  nav.primary { gap: 24px; }
}
@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  .section { padding: 64px 0; }
  h1 { font-size: 34px; }
  h2, .h2 { font-size: 28px; }
  h3, .h3 { font-size: 20px; }
  .hero { padding: 64px 0; }
  .hero .wrap, .pd-grid, .pd-body, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .hero-molecule { order: -1; }
  .hero-molecule svg { max-width: 380px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .steps, .values { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: flex; }
  nav.primary { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; margin: 0; }
  header.site.menu-open nav.primary { display: flex; }
  nav.primary a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  nav.primary a.active::after { bottom: 8px; }
  .nav-right .btn, .session-chip .who { display: none; }
  .nav-row { gap: 16px; }
  .qc-btn { margin-left: 0; }
  .menu-btn { margin-left: auto; }
  .co-grid, .pay-grid { grid-template-columns: 1fr; }
  .co-summary { position: static; }
  .progress { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .cart-lines li { grid-template-columns: 56px 1fr 32px; row-gap: 8px; }
  .cart-lines .stepper, .cart-lines .line-total { grid-column: 2; justify-self: start; }
  .cart-lines .line-remove { grid-column: 3; grid-row: 1; }
  .invite-row { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .pgrid, .field-row { grid-template-columns: 1fr; }
  .pd-meta { grid-template-columns: 1fr; }
  .pd-meta div:nth-child(odd) { border-right: 0; }
  .pd-meta div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; }
  .pd-info { padding: 24px; }
  .sign-grid { grid-template-columns: 1fr; }
  .waiver-doc { max-height: 280px; padding: 16px; }
  .locked-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
