:root {
  --ocean-900: #0a2350;
  --ocean-800: #0e2d66;
  --ocean-700: #1c4fa8;
  --ocean-600: #2f6fd6;
  --teal-500: #2f6fd6;
  --teal-400: #4a94ff;
  --teal-50: #e6fcf5;
  --mint: #2bffc8; /* logo mint: accents only, never text on white */
  --brand-blue: #4a94ff; /* logo blue */
  --coral-500: #ff7a59;
  --coral-50: #fff1ec;
  --sand: #f7f5f0;
  --bg: #f5f8fa;
  --card: #ffffff;
  --text: #102433;
  --muted: #5b6d7c;
  --line: #e2e9ee;
  --error: #c0362c;
  --error-bg: #fdeeec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 35, 80, .06);
  --shadow: 0 2px 4px rgba(11, 35, 80, .04), 0 12px 32px rgba(11, 35, 80, .08);
  --shadow-lg: 0 24px 60px rgba(11, 35, 80, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6rem; }
h2 { font-size: 1.25rem; letter-spacing: -.01em; margin: 0 0 .5rem; }
h3 { font-size: 1.02rem; margin: 0; line-height: 1.3; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.sprite { display: none; }
svg { width: 1.2em; height: 1.2em; flex: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
main { flex: 1; padding-bottom: 140px; }
main > .step.wrap { padding-top: 40px; }

/* ---------- header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 30; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.12rem; color: var(--ocean-800); text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--teal-500), var(--ocean-600)); }
.brand-mark svg { width: 22px; height: 22px; }
.steps { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; color: var(--muted); font-size: .88rem; font-weight: 600; transition: background .3s var(--ease), color .3s; }
.steps .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: var(--line); color: var(--muted); transition: all .3s var(--ease); }
.steps li.active { background: var(--teal-50); color: var(--ocean-800); }
.steps li.active .dot { background: var(--teal-500); color: #fff; box-shadow: 0 0 0 4px rgba(47, 111, 214, .18); }
.steps li.complete { color: var(--ocean-700); }
.steps li.complete .dot { background: var(--ocean-700); color: #fff; font-size: 0; }
.steps li.complete .dot::after { content: "✓"; font-size: .8rem; }
.progress { height: 3px; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-400), var(--teal-500)); transition: width .5s var(--ease); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; padding: 56px 0 110px;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(43, 255, 200, .35), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(47, 111, 214, .9), transparent 60%),
    linear-gradient(160deg, var(--ocean-700), var(--ocean-900)); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(#fff 1px, transparent 1.5px); background-size: 22px 22px; pointer-events: none; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; color: var(--bg); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #c9fbf2; margin-bottom: 18px; }
.eyebrow.dark { background: var(--teal-50); color: var(--ocean-700); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .82); max-width: 520px; }
.lead-sm { font-size: 1.08rem; color: var(--muted); }
.how { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.how li { display: flex; gap: 14px; align-items: center; }
.how-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16); color: var(--teal-400); }
.how-icon svg { width: 22px; height: 22px; }
.how strong { display: block; }
.how span span, .how div > span { color: rgba(255, 255, 255, .7); font-size: .92rem; }
.how strong span { color: inherit !important; font-size: inherit !important; }

/* ---------- cards & forms ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.form-card { color: var(--text); box-shadow: var(--shadow-lg); padding: 32px; }
.form-card h2 { font-size: 1.45rem; margin-bottom: 4px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
input {
  font: inherit; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfcfd; color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder { color: #a3b1bc; }
input:hover { border-color: #c9d5de; }
input:focus { outline: none; border-color: var(--teal-500); background: #fff; box-shadow: 0 0 0 4px rgba(47, 111, 214, .15); }
input[aria-invalid="true"] { border-color: var(--error); background: #fff; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #94a6b4; pointer-events: none; }
.input-icon input { padding-left: 42px; }
.hint { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }
.field-error { color: var(--error); font-size: .84rem; font-weight: 500; margin: 6px 0 0; }
.field-error:empty { display: none; }
.fine { color: var(--muted); font-size: .78rem; margin: 14px 0 0; text-align: center; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -8px; position: relative; }
.trust > div { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.trust svg { width: 28px; height: 28px; color: var(--teal-500); }
.trust strong { display: block; font-size: .95rem; }
.trust span span, .trust div > span { color: var(--muted); font-size: .86rem; }
.trust strong { color: var(--text); }

.alert { border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 20px; font-weight: 500; animation: slide-in .3s var(--ease); }
.alert.error { background: var(--error-bg); color: var(--error); }
.alert.info { background: var(--teal-50); color: var(--ocean-700); }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-weight: 650; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--text);
  padding: 10px 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s; text-decoration: none;
}
.btn:hover:not(:disabled) { border-color: #c9d5de; transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, .option:focus-visible, .chip:focus-visible { outline: 3px solid rgba(47, 111, 214, .45); outline-offset: 2px; }
.btn.primary { background: linear-gradient(135deg, var(--teal-500), #1f57b8); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(47, 111, 214, .32); }
.btn.primary:hover:not(:disabled) { box-shadow: 0 10px 24px rgba(47, 111, 214, .42); }
.btn.primary:disabled { box-shadow: none; background: #b7c6cf; }
.btn.ghost { background: transparent; }
.btn.lg { padding: 14px 24px; font-size: 1.02rem; }
.btn.block { width: 100%; }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn.link { background: none; border: none; color: var(--ocean-600); padding: 6px 4px; box-shadow: none; }
.btn.link:hover:not(:disabled) { text-decoration: underline; transform: none; }
.btn.center { display: flex; margin: 10px auto 0; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading > * { visibility: hidden; }
.btn.loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .9); border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn:not(.primary).loading::after { border-color: var(--teal-500); border-right-color: transparent; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ---------- catalogue ---------- */
.catalogue-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 36px 0 18px; }
.catalogue-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.catalogue-head p { margin: 0; }
.search { position: relative; margin: 0; width: min(340px, 100%); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a6b4; }
.search input { padding-left: 42px; border-radius: 999px; background: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 18px; scrollbar-width: none; position: sticky; top: 71px; z-index: 5;
  background: linear-gradient(var(--bg) 80%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--muted); transition: all .2s var(--ease); }
.chip:hover { color: var(--text); border-color: #c9d5de; }
.chip[aria-pressed="true"] { background: var(--ocean-800); border-color: var(--ocean-800); color: #fff; }
.chip .count { opacity: .6; margin-left: 4px; font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }
.product { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1.5px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
  animation: fade-up .4s var(--ease) both; }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product.selected { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(47, 111, 214, .15), var(--shadow); }
.product-media { position: relative; aspect-ratio: 4 / 3; background: #e8eef2; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.product:hover .product-media img { transform: scale(1.04); }
.pill { position: absolute; left: 12px; top: 12px; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--ocean-700); backdrop-filter: blur(4px); }
.badge-added { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-500); color: #fff; box-shadow: 0 4px 12px rgba(47, 111, 214, .4); animation: pop .35s var(--ease); }
.badge-added svg { width: 18px; height: 18px; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.meta { color: var(--muted); font-size: .84rem; margin: 0; }
.desc { font-size: .9rem; color: #334a5a; flex: 1; margin: 0; }
.product-foot { margin-top: 10px; display: flex; gap: 10px; align-items: center; }
.product-foot .btn { flex: 1; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--teal-500); border-radius: 999px; overflow: hidden; flex: 1; background: var(--teal-50); }
.stepper button { border: 0; background: transparent; color: var(--ocean-700); width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.stepper button:hover { background: rgba(47, 111, 214, .15); }
.stepper input { border: 0; background: transparent; text-align: center; font-weight: 700; padding: 0; height: 40px; min-width: 0; flex: 1; border-radius: 0; box-shadow: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; }
.unit { font-size: .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.remove { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: .82rem; padding: 4px; text-decoration: underline; }
.remove:hover { color: var(--error); }

/* quote tray */
.tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(11, 35, 80, .08); transform: translateY(0); transition: transform .3s var(--ease); }
.tray-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.tray-info { display: flex; align-items: center; gap: 16px; min-width: 0; }
.tray-thumbs { display: flex; }
.tray-thumbs img, .tray-thumbs .more { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2.5px solid #fff; margin-left: -12px;
  box-shadow: var(--shadow-sm); background: #e8eef2; animation: pop .3s var(--ease); }
.tray-thumbs :first-child { margin-left: 0; }
.tray-thumbs .more { display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--ocean-700); background: var(--teal-50); }
.tray-thumbs:empty::before { content: ""; width: 40px; height: 40px; border-radius: 50%; border: 2px dashed #c9d5de; display: block; }
.meter { width: 160px; height: 6px; border-radius: 99px; background: var(--line); margin-top: 6px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-400), var(--teal-500)); border-radius: inherit; transition: width .35s var(--ease); }
.tray.bump { animation: bump .35s var(--ease); }

/* ---------- verify ---------- */
.section-head { margin-bottom: 24px; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.review-list { list-style: none; padding: 0; margin: 0; }
.review-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-list li:last-child { border-bottom: 0; }
.review-list img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #e8eef2; }
.review-list .name { flex: 1; font-weight: 600; }
.review-list .qty-tag { background: var(--teal-50); color: var(--ocean-700); font-weight: 700; font-size: .88rem; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.verify-card { text-align: center; }
.verify-card p { color: var(--muted); }
.center-label { text-align: center; margin-top: 8px; }
.code-input { font-size: 2rem; font-weight: 700; letter-spacing: .45em; text-align: center; padding: 14px 0 14px .45em; margin-bottom: 14px;
  font-variant-numeric: tabular-nums; }

/* ---------- feature cards (done / existing) ---------- */
.feature { text-align: center; padding: 44px 36px; }
.feature-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 18px;
  background: var(--teal-50); color: var(--teal-500); }
.feature-icon svg { width: 30px; height: 30px; }
.feature-icon.success { border-radius: 50%; width: 76px; height: 76px; background: linear-gradient(135deg, var(--teal-400), var(--teal-500)); color: #fff;
  box-shadow: 0 12px 30px rgba(47, 111, 214, .4); }
.feature-icon.success svg { width: 38px; height: 38px; }
.feature-icon.pop { animation: pop .6s var(--ease) .1s both; }
#follow-up { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 28px; }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.option { font: inherit; cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 14px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff; color: var(--text);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.option:hover { transform: translateY(-3px); border-color: var(--teal-500); box-shadow: var(--shadow); }
.option strong { font-size: .98rem; }
.option span:last-child { font-size: .84rem; color: var(--muted); }
.option-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-500); margin-bottom: 4px; }
.option-icon svg { width: 24px; height: 24px; }
.option.subtle .option-icon { background: #eef2f5; color: var(--muted); }
.option.loading { opacity: .6; pointer-events: none; }
.follow-msg { margin-top: 26px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--teal-50); color: var(--ocean-700); font-weight: 600; animation: slide-in .3s var(--ease); }

.site-footer { color: var(--muted); font-size: .85rem; padding: 22px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes bump { 50% { transform: translateY(-4px); } }
.step:not([hidden]) { animation: fade-up .35s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 36px 0 90px; }
  .steps .label { display: none; }
  .steps li { padding: 4px; }
  .steps li.active .label { display: inline; }
  .steps li.active { padding-right: 12px; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .trust { grid-template-columns: 1fr; gap: 10px; }
  .form-card, .card { padding: 22px; }
  .feature { padding: 32px 20px; }
  .options { grid-template-columns: 1fr; }
  .option { flex-direction: row; text-align: left; padding: 14px 16px; flex-wrap: wrap; }
  .option-icon { margin: 0; }
  .option strong { flex: 1; }
  .option span:last-child { width: 100%; padding-left: 62px; margin-top: -10px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body { padding: 12px; }
  .desc { display: none; }
  .product-foot { flex-direction: column; align-items: stretch; gap: 6px; }
  .stepper button { width: 34px; }
  .meter { width: 100px; }
  .tray-thumbs { display: none; }
  .steps li.active .label { display: none; }
  .steps li.active { padding-right: 4px; }
  .chips { top: 71px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}

/* ---------- small-screen polish ---------- */
.brand span:last-child { white-space: nowrap; }
.tray-count-short { display: none; }
@media (max-width: 640px) {
  .header-inner { min-height: 60px; }
  .brand { font-size: 1rem; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-mark svg { width: 18px; height: 18px; }
  .steps { gap: 2px; }
  .steps .dot { width: 24px; height: 24px; }
  .chips { top: 63px; }
  .product-foot { flex-direction: row; align-items: center; }
  .product-foot .btn { font-size: .85rem; padding: 9px 10px; }
  .product-foot .btn svg { display: none; }
  .stepper button { width: 32px; height: 36px; }
  .stepper input { height: 36px; }
  .unit { font-size: .75rem; }
  .tray-inner { padding-top: 10px; padding-bottom: 10px; }
  .tray-count-full { display: none; }
  .tray-count-short { display: inline; }
  #sel-count { font-size: .95rem; white-space: nowrap; }
  .tray .btn.lg { padding: 12px 18px; font-size: .95rem; white-space: nowrap; }
}

/* add / added toggle */
.btn.added { flex: 1; background: var(--teal-50); border-color: var(--teal-500); color: var(--ocean-700); }
.btn.added svg { color: var(--teal-500); }
.btn.added .when-hover { display: none; }
@media (hover: hover) {
  .btn.added:hover { background: var(--coral-50); border-color: var(--coral-500); color: #b4432a; }
  .btn.added:hover svg { display: none; }
  .btn.added:hover .when-idle { display: none; }
  .btn.added:hover .when-hover { display: inline; }
}
@media (max-width: 640px) {
  .product-foot .btn.added svg { display: inline; }
}

/* server-rendered pages (links opened from emails) */
.stack-forms { display: grid; gap: 10px; max-width: 380px; margin: 22px auto 0; }
.stack-forms form { margin: 0; }
.feature .muted { margin-top: 10px; }

/* invite-only states */
.input-icon.locked input { background: #eef3f6; color: var(--ocean-700); font-weight: 600; cursor: default; }
.input-icon.locked input:focus { box-shadow: none; border-color: var(--line); }
input[readonly] { cursor: default; }
.next-email { display: flex; gap: 14px; align-items: flex-start; text-align: left; margin: 28px 0 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--teal-50); }
.next-email .option-icon { background: #fff; margin: 0; flex: none; }
.next-email strong { display: block; margin-bottom: 2px; }
.next-email span:last-child { color: var(--muted); font-size: .95rem; }
body.gated .steps { visibility: hidden; }

/* =====================================================================
   GLOSSY THEME — premium type, glass surfaces, depth, motion
   ===================================================================== */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --ocean-950: #071a3d;
  --glass: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .6);
  --shine: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  --shadow-soft: 0 1px 2px rgba(11, 35, 80, .05), 0 8px 24px rgba(11, 35, 80, .07);
  --shadow-float: 0 2px 6px rgba(11, 35, 80, .06), 0 24px 48px -12px rgba(11, 35, 80, .22);
  --radius: 20px;
}
body {
  font-family: "Plus Jakarta Sans", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(43, 255, 200, .07), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(47, 111, 214, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
h1, h2, h3, .brand { letter-spacing: -.025em; }
h1 { font-weight: 800; }

/* header: frosted glass */
.site-header { background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 rgba(11, 35, 80, .06); }
.brand-mark { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px rgba(47, 111, 214, .35); }
.progress span { box-shadow: 0 0 12px rgba(43, 255, 200, .8); }

/* hero: deep ocean with slow-moving light */
.hero {
  background:
    radial-gradient(900px 480px at 82% -12%, rgba(43, 255, 200, .42), transparent 62%),
    radial-gradient(700px 420px at -8% 108%, rgba(74, 148, 255, .85), transparent 62%),
    linear-gradient(165deg, #0b5675 0%, var(--ocean-800) 45%, var(--ocean-950) 100%);
  isolation: isolate;
}
.hero::before { opacity: .06; }
.hero::after {
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none; opacity: .5;
  background:
    radial-gradient(40% 30% at 30% 40%, rgba(43, 255, 200, .18), transparent 70%),
    radial-gradient(35% 25% at 70% 60%, rgba(120, 200, 255, .14), transparent 70%);
  animation: caustics 18s ease-in-out infinite alternate;
}
@keyframes caustics { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); text-shadow: 0 2px 24px rgba(0, 0, 0, .18); }
.hero .eyebrow { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
.how-icon { background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }

/* form card: frosted glass on the ocean */
.form-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .9));
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px -20px rgba(5, 18, 45, .55), 0 0 0 1px rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px);
  border-radius: 24px;
}
input { border-radius: 12px; background: #f7fafb; }
input:focus { box-shadow: 0 0 0 4px rgba(47, 111, 214, .16), 0 4px 14px rgba(47, 111, 214, .12); }

/* buttons: glossy with a light sweep */
.btn.primary {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #22c9b5 0%, #2563c9 55%, #0b8f81 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 22px -6px rgba(37, 99, 201, .65);
}
.btn.primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--shine);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn.primary:hover:not(:disabled)::before { transform: translateX(120%); }
.btn.primary:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 28px -6px rgba(37, 99, 201, .75); }
.btn.primary:disabled { background: #b7c6cf; box-shadow: none; }

/* trust strip */
.trust > div { border: 1px solid rgba(11, 35, 80, .06); box-shadow: var(--shadow-soft); background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); }
.trust svg { padding: 8px; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-50); }

/* catalogue */
.catalogue-head h1 { font-weight: 800; }
.chips { background: linear-gradient(rgba(245, 248, 250, .92) 75%, transparent); backdrop-filter: blur(6px); }
.chip { border-color: transparent; background: #fff; box-shadow: var(--shadow-soft); }
.chip[aria-pressed="true"] { background: linear-gradient(180deg, var(--ocean-700), var(--ocean-800)); box-shadow: 0 6px 16px -4px rgba(14, 45, 102, .5); }
.grid { gap: 22px; }
.product { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-soft); background: #fff; }
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-float); }
.product-media { margin: 8px 8px 0; border-radius: 14px; }
.product-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 26, 61, .12)); pointer-events: none; }
.product:hover .product-media img { transform: scale(1.06); }
.pill { background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px); box-shadow: 0 2px 8px rgba(11, 35, 80, .1); }
.product.selected { box-shadow: 0 0 0 2.5px var(--teal-500), 0 18px 40px -12px rgba(47, 111, 214, .45); }
.badge-added { width: 36px; height: 36px; background: linear-gradient(180deg, #4a94ff, #2563c9); box-shadow: 0 0 0 4px rgba(255, 255, 255, .7), 0 8px 18px rgba(37, 99, 201, .5); z-index: 1; }
.product-body h3 { font-weight: 700; font-size: 1.04rem; }
.btn.added { background: linear-gradient(180deg, #effcf9, #dff6f2); }

/* skeleton cards while products load */
.skeleton { pointer-events: none; }
.skeleton .product-media, .skeleton .sk-line { background: linear-gradient(90deg, #e9eff3 0%, #f6f9fb 40%, #e9eff3 80%); background-size: 200% 100%; animation: sheen 1.3s linear infinite; }
.skeleton .sk-line { height: 12px; border-radius: 6px; }
.skeleton .sk-line.w60 { width: 60%; height: 16px; } .skeleton .sk-line.w40 { width: 40%; } .skeleton .sk-line.btn-sk { height: 38px; border-radius: 999px; margin-top: 8px; }
@keyframes sheen { to { background-position: -200% 0; } }

/* floating glass quote tray */
.tray {
  left: 50%; right: auto; bottom: 16px; transform: translateX(-50%);
  width: min(1100px, calc(100% - 32px)); border-radius: 22px;
  background: rgba(255, 255, 255, .8); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 20px 50px -12px rgba(11, 35, 80, .35);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tray .tray-inner { padding-left: 18px; padding-right: 12px; }
.tray.bump { animation: tray-bump .4s var(--ease); }
@keyframes tray-bump { 50% { transform: translate(-50%, -6px); } }
.meter { height: 8px; background: #e6edf1; }
.meter span { box-shadow: 0 0 10px rgba(43, 255, 200, .7); }

/* verify + done */
.card { border-radius: 24px; box-shadow: var(--shadow-float); border: 1px solid rgba(11, 35, 80, .04); }
.code-input { border-radius: 16px; background: linear-gradient(180deg, #fbfdfe, #f2f7f9); letter-spacing: .5em; }
.feature-icon.success { box-shadow: 0 0 0 10px rgba(43, 255, 200, .12), 0 0 0 22px rgba(43, 255, 200, .06), 0 16px 34px rgba(47, 111, 214, .45); }
.next-email { background: linear-gradient(135deg, #ecfbf8, #e3f3f8); border: 1px solid rgba(47, 111, 214, .15); }

/* celebration burst */
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* page transitions */
.step:not([hidden]) { animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.995); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .tray { bottom: 10px; width: calc(100% - 20px); border-radius: 18px; }
  .product-media { margin: 6px 6px 0; border-radius: 12px; }
  .grid { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after, .skeleton .product-media, .skeleton .sk-line { animation: none !important; }
}
/* the font kerns "e," tightly, but kerning can't cross the name's own element */
h1 [data-first-name] { margin-right: -.07em; }
/* phones: get to the form sooner (heading, intro, form, then how-it-works) */
@media (max-width: 960px) {
  .hero-copy { display: contents; }
  .hero-grid { gap: 18px; }
  .hero-grid > .eyebrow, .hero-copy > .eyebrow { order: 1; justify-self: start; margin-bottom: 0; }
  .hero-copy > h1 { order: 2; margin: 0; }
  .hero-copy > .lead { order: 3; margin: 0; }
  .form-card { order: 4; }
  .hero-copy > .how { order: 5; margin-top: 10px; }
}
@media (max-width: 640px) {
  .chips { background: rgba(245, 248, 250, .97); }
  .hero .lead { font-size: 1.02rem; }
}

/* checkout: keep the code box in view */
body { background-attachment: scroll; }
.sel-count { color: var(--muted); font-weight: 600; font-size: .9em; }
.verify-card { position: sticky; top: 96px; }
.review-toggle { display: none; }
@media (max-width: 960px) {
  /* phones/tablets: code box first, product list folded underneath */
  .two-col { display: flex; flex-direction: column; }
  .verify-card { order: -1; position: static; }
  .review-list.folded li:nth-child(n + 4) { display: none; }
  .review-toggle:not([hidden]) { display: flex; margin: 6px auto 0; }
  .review-list li { padding: 10px 0; }
  .review-list img { width: 44px; height: 44px; }
}

/* "Show more" under the product grid */
.grid .more { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0 4px; }
.grid .more .btn { min-width: 220px; background: #fff; box-shadow: var(--shadow-soft); }
.more-note { font-size: .85rem; color: var(--muted, #5b6b78); }

/* ---- Weststate brand (logo blue #4A94FF + mint #2BFFC8) ---- */
.brand-logo { display: block; height: 84px; width: auto; margin: 8px 0; }
.brand { gap: 0; }
@media (max-width: 640px) { .brand-logo { height: 72px; margin: 6px 0; } }
.progress span { background: linear-gradient(90deg, var(--mint), var(--brand-blue)); }
.product.selected { box-shadow: 0 0 0 3px var(--mint), var(--shadow); }
.btn.primary { background: linear-gradient(135deg, var(--brand-blue), #2f6fd6 55%, #1f57b8); }
.steps li.active .dot { box-shadow: 0 0 0 4px rgba(43, 255, 200, .45); }

/* ---- Weststate contact details opposite the logo ---- */
.header-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-left: auto; }
.header-contact[hidden], .hc-item[hidden] { display: none; }
.hc-item { display: inline-flex; align-items: center; gap: 7px; color: var(--ocean-800, #0e2d66); font-weight: 650; font-size: .95rem; text-decoration: none; line-height: 1.35; white-space: nowrap; }
.hc-item:hover .hc-full { text-decoration: underline; }
.hc-item svg { width: 17px; height: 17px; color: var(--brand-blue, #4a94ff); flex: none; }
.hc-label { display: none; }
@media (max-width: 640px) {
  .header-contact { flex-direction: row; gap: 6px; }
  .hc-item { flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 12px; background: var(--teal-50, #eef6ff); font-size: .72rem; min-width: 46px; }
  .hc-item svg { width: 20px; height: 20px; }
  .hc-full { display: none; }
  .hc-label { display: inline; }
}
@media (max-width: 820px) {
  /* phones and small tablets: logo + contact on top, progress steps on their own row */
  .header-inner { flex-wrap: wrap; row-gap: 0; }
  .header-inner .steps { order: 3; width: 100%; justify-content: center; padding: 0 0 8px; }
  body.gated .header-inner .steps { display: none; }
}
@media (max-width: 640px) { .brand-logo { height: 64px; } }
@media (min-width: 821px) {
  /* computers: centre the progress steps between the logo and the contact details */
  .header-inner .steps { margin-left: auto; padding-left: 24px; }
  .header-inner .header-contact { padding-left: 24px; }
}

/* ---- click a product picture to see it larger ---- */
.product-media.zoomable { cursor: zoom-in; }
.product-media.zoomable:focus-visible { outline: 3px solid var(--brand-blue, #4a94ff); outline-offset: -3px; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--ocean-800, #0e2d66); box-shadow: 0 2px 8px rgba(11, 35, 80, .18); pointer-events: none; }
.zoom-hint svg { width: 17px; height: 17px; }
.viewer { border: 0; padding: 0; border-radius: 18px; width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  box-shadow: 0 30px 80px rgba(6, 22, 52, .35); background: #fff; color: inherit; }
.viewer::backdrop { background: rgba(6, 22, 52, .62); backdrop-filter: blur(3px); }
.viewer[open] { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.viewer-media { background: #e8eef2; display: grid; place-items: center; min-height: 280px; }
.viewer-media img { width: 100%; height: 100%; max-height: 78vh; object-fit: contain; display: block; }
.viewer-body { padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.viewer-body .pill { position: static; align-self: flex-start; }
.viewer-body h3 { margin: 4px 0 0; font-size: 1.35rem; line-height: 1.25; }
.viewer-body .desc { color: var(--muted); }
.viewer-foot { margin-top: auto; padding-top: 14px; }
.viewer-foot .btn { width: 100%; }
.viewer-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .95); color: var(--ocean-800, #0e2d66); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(11, 35, 80, .2); }
.viewer-close svg { width: 20px; height: 20px; }
@media (max-width: 700px) {
  .viewer[open] { grid-template-columns: 1fr; }
  .viewer-media img { max-height: 55vh; }
  .viewer-body { padding: 18px 18px 20px; }
}

/* ---- header always visible while scrolling ---- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 1px 0 rgba(11, 35, 80, .08), 0 6px 18px rgba(11, 35, 80, .06); }
/* category buttons stay pinned just below the header (its height changes with screen size) */
.chips { top: var(--header-h, 103px); }
.viewer-body .desc { display: block; }

/* ---- search + categories pinned together under the header ---- */
.catalogue-bar { position: sticky; top: var(--header-h, 103px); z-index: 6; display: flex; align-items: center; gap: 14px;
  margin: 0 -16px 8px; padding: 10px 16px 10px; background: rgba(245, 248, 250, .97);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 14px -12px rgba(11, 35, 80, .25); }
.catalogue-bar .search { flex: 0 0 300px; width: auto; }
.catalogue-bar .chips { position: static; top: auto; flex: 1; min-width: 0; padding: 4px 2px; margin: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 760px) {
  .catalogue-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 16px; }
  .catalogue-bar .search { flex: none; width: 100%; }
}
