/* ============================================================
   BodyAxis Public - one stylesheet for store, apply, login.
   Editorial dark, cyan lead, orange reserved for primary action.
   ============================================================ */

:root {
  --bg: #0A1930; --bg-2: #0F1E3A;
  --panel: #142544; --panel-2: #1A2E52;
  --line: rgba(255,255,255,0.08); --line-2: rgba(255,255,255,0.14);
  --cyan: #14B8C4; --cyan-2: #35CCD8; --cyan-3: #7DE0E6;
  --cyan-soft: rgba(20,184,196,0.14);
  --orange: #F97316; --orange-2: #FB923C;
  --gold: #F0BE5B; --gold-soft: rgba(240,190,91,0.14);
  --mint: #7BD3B5; --mint-soft: rgba(123,211,181,0.14);
  --red: #F87171;
  --text: #E6EDF7; --text-2: #A8B4C8; --text-3: #8393AD; --text-4: #5C6C86;
  --serif: 'Playfair Display', Georgia, ui-serif, serif;
  --display: 'Inter Tight', Inter, system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
html, body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.55; min-height: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,25,48,0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 16px; }
.nav .brand img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.nav .brand .accent { color: var(--cyan); }
.nav ul { display: flex; gap: 24px; list-style: none; }
.nav ul a { font-size: 13px; color: var(--text-2); transition: color 0.15s; }
.nav ul a:hover { color: var(--cyan-3); }
.nav .nav-right { display: flex; gap: 10px; align-items: center; }
.nav .nav-link-sm { font-size: 13px; color: var(--text-2); padding: 10px 6px; }
.nav .cta {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 11px 18px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  color: #061019; font-weight: 700; font-size: 13px;
  font-family: var(--display); letter-spacing: 0.2px;
}
@media (max-width: 720px) {
  .nav ul { display: none; }
  .nav { padding: 12px 18px; }
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-submit {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 28px; border-radius: 10px; border: none; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.3px; transition: transform 0.15s, filter 0.15s;
}
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--cyan-2)); color: #061019; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-submit { width: 100%; padding: 16px 24px; font-size: 15px; background: linear-gradient(135deg, var(--cyan), var(--cyan-2)); color: #061019; }
.btn-primary:hover, .btn-submit:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan-3); }
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-submit:focus-visible { outline: 2px solid var(--cyan-3); outline-offset: 3px; }
.btn-primary[disabled], .btn-submit[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--cyan-3);
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
h1 em, h2 em, h3 em { font-family: var(--serif); font-style: italic; color: var(--cyan-3); font-weight: 500; }
.lede { color: var(--text-2); font-size: 16px; line-height: 1.65; }
@media (max-width: 720px) {
  .eyebrow { font-size: 10px; letter-spacing: 1.6px; }
}

/* ---------- Layout ---------- */
section { padding: 80px 30px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: 40px; margin-bottom: 12px; }
.section-head p { color: var(--text-2); max-width: 620px; margin: 0 auto; font-size: 15px; }
@media (max-width: 720px) {
  section { padding: 56px 20px; }
  .section-head h2 { font-size: 30px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 30px 100px;
  background: radial-gradient(ellipse at 20% 0%, rgba(20,184,196,0.14), transparent 55%);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero-copy { text-align: left; }
.hero-copy .eyebrow { margin-bottom: 16px; display: block; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); margin-bottom: 20px; }
.hero .lede { max-width: 540px; margin: 0 0 34px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media {
  aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(125,224,230,0.35), transparent 45%),
    radial-gradient(circle at 75% 80%, rgba(249,115,22,0.28), transparent 50%),
    linear-gradient(160deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line-2);
  position: relative;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 26px; text-align: center;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-3);
}
@media (max-width: 900px) {
  .hero { padding: 64px 20px 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { aspect-ratio: 16 / 10; order: -1; }
  .hero .lede { font-size: 15px; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  padding: 22px 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.trust-item {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--text-2); display: flex; align-items: center; gap: 8px;
}
.trust-item::before { content: '●'; color: var(--cyan); font-size: 6px; }

/* ---------- Path cards ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 800px) { .paths { grid-template-columns: 1fr; } }
.path-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 36px 30px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
  transition: border-color 0.15s;
}
.path-card:hover { border-color: var(--line-2); }
.path-card .badge {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.6px;
  padding: 5px 10px; border-radius: 4px; font-weight: 700; text-transform: uppercase;
}
.path-card.open .badge { background: var(--mint-soft); color: var(--mint); border: 1px solid rgba(123,211,181,0.35); }
.path-card.gated .badge { background: var(--cyan-soft); color: var(--cyan-3); border: 1px solid rgba(125,224,230,0.35); }
.path-num { font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px; color: var(--text-3); }
.path-card h3 { font-size: 26px; }
.path-card p { color: var(--text-2); font-size: 14px; line-height: 1.6; }
.path-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.path-card ul li { color: var(--text-2); font-size: 13px; padding-left: 22px; position: relative; }
.path-card ul li::before { content: '→'; position: absolute; left: 0; color: var(--cyan); }
.path-card .cta {
  margin-top: 10px; display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 12px 22px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  color: #061019; font-weight: 700; font-size: 13.5px;
  font-family: var(--display);
}
.path-card.gated .cta { background: transparent; color: var(--cyan-3); border: 1px solid rgba(125,224,230,0.4); }
.path-card.gated .cta:hover { background: var(--cyan-soft); }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); justify-content: center; gap: 20px; }
.product {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; padding: 0;
  display: flex; flex-direction: column;
  transition: transform 0.15s, border-color 0.15s;
}
.product:hover { transform: translateY(-2px); border-color: var(--line-2); }
.product-media {
  aspect-ratio: 4 / 3; position: relative;
  /* overflow:hidden is load-bearing: without it a box with aspect-ratio takes its
     min-content height, so a loaded square photo stretches the card to 1:1. */
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 25%, rgba(125,224,230,0.22), transparent 50%),
    linear-gradient(150deg, var(--panel-2), var(--bg-2));
  border-bottom: 1px solid var(--line);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Landing grid photo cards: same treatment as the store (.store-grid). The whole
   product photo is shown (contain), never cropped, on a light square with padding. */
.products .product-media.has-photo {
  aspect-ratio: 1;
  background: #f7f7f8;
  border-bottom: none;
  padding: 12px;
  box-sizing: border-box;
}
.products .product-media.has-photo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
.product-media .placeholder {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  padding: 18px; text-align: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-3);
}
.product-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cyan-3); }
.product h4 { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.25; }
.product p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.product .note { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); padding-top: 10px; border-top: 1px solid var(--line); }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; gap: 12px; }
.product-foot .price { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--cyan-3); }
.product-foot .buy {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 18px; border-radius: 8px;
  background: transparent; color: var(--text); border: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.4px; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.product-foot .buy:hover { background: var(--cyan); color: #061019; border-color: var(--cyan); }
.product-foot .buy.added { background: var(--mint-soft); color: var(--mint); border-color: rgba(123,211,181,0.4); }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.how-step { padding: 28px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.how-step .num { font-family: var(--serif); font-style: italic; font-size: 36px; color: var(--cyan-3); line-height: 1; margin-bottom: 14px; }
.how-step h4 { font-family: var(--display); font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.how-step p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; }

/* ---------- Compliance ---------- */
.compliance { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 30px; }
.compliance-inner { max-width: 900px; margin: 0 auto; display: flex; gap: 20px; align-items: flex-start; }
.compliance-badge {
  flex-shrink: 0; padding: 8px 12px;
  background: var(--orange); color: #1B0F02;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.6px;
  font-weight: 700; border-radius: 4px; text-transform: uppercase;
}
.compliance-body h5 { font-family: var(--display); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.compliance-body p { color: var(--text-2); font-size: 12.5px; line-height: 1.6; }
@media (max-width: 600px) { .compliance-inner { flex-direction: column; } }

/* ---------- Footer ---------- */
footer { padding: 40px 30px; background: var(--bg-2); border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; }
footer .footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
footer .footer-links a:hover { color: var(--cyan-3); }
footer .disclaimer { max-width: 1200px; margin: 24px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 11px; color: var(--text-3); line-height: 1.6; }

/* ---------- Forms (apply, login) ---------- */
.form-wrap { min-height: calc(100vh - 66px); padding: 48px 20px; display: flex; align-items: center; justify-content: center; }
.form-card {
  max-width: 640px; width: 100%;
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 18px; padding: 40px;
}
.form-card.narrow { max-width: 460px; }
.form-card h1 { font-size: 30px; margin-bottom: 8px; }
.form-card .lede { font-size: 14px; margin-bottom: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font-size: 16px; font-family: var(--body);
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); }
.field select { appearance: none; background-image: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } .form-card { padding: 28px 22px; border-radius: 14px; } .form-card h1 { font-size: 26px; } }

.consent {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 10px;
}
.consent input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cyan); flex-shrink: 0; }
.consent .t { font-weight: 600; font-size: 13.5px; }
.consent .s { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.consent a { color: var(--cyan-3); text-decoration: underline; text-underline-offset: 2px; }

.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 13px; }
.form-msg.error { background: rgba(248,113,113,0.12); color: var(--red); border: 1px solid rgba(248,113,113,0.3); }
.form-msg.ok { background: var(--mint-soft); color: var(--mint); border: 1px solid rgba(123,211,181,0.3); }

.form-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 13px; }
.form-links a { color: var(--text-2); }
.form-links a:hover { color: var(--cyan-3); }
.form-links a.strong { color: var(--cyan-3); }

/* Split login layout */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 66px); }
.split-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.split-brand {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(125,224,230,0.25), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(249,115,22,0.22), transparent 45%),
    linear-gradient(160deg, var(--panel-2), var(--bg));
  border-left: 1px solid var(--line);
  display: flex; align-items: center; padding: 60px;
}
.split-brand h2 { font-size: 40px; margin-bottom: 14px; }
.split-brand p { color: var(--text-2); max-width: 420px; font-size: 15px; line-height: 1.6; }
.split-brand .stats { display: flex; gap: 32px; margin-top: 34px; }
.split-brand .stat .num { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--cyan-3); }
.split-brand .stat .num em { font-family: var(--serif); font-style: italic; font-size: 20px; font-weight: 400; }
.split-brand .stat .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-3); margin-top: 4px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-brand { display: none; } }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  min-height: 36px; padding: 6px 12px; border-radius: 7px;
  background: transparent; border: 1px solid var(--line-2); color: var(--text-2);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer;
}
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(6,16,25,0.3); border-top-color: #061019; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Age gate ---------- */

/* ---------- Toast (public) ---------- */
.ba-toast-wrap { position: fixed; top: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 9000; pointer-events: none; }
.ba-toast { background: var(--panel); border: 1px solid var(--line-2); border-left: 3px solid var(--cyan); border-radius: 10px; padding: 12px 16px; min-width: 260px; max-width: 380px; color: var(--text); font-size: 13px; box-shadow: 0 20px 40px rgba(0,0,0,0.35); animation: ba-toast-in 0.22s ease-out; pointer-events: auto; }
.ba-toast.ok { border-left-color: var(--mint); } .ba-toast.warn { border-left-color: var(--orange); } .ba-toast.err { border-left-color: var(--red); }
.ba-toast .title { font-weight: 700; margin-bottom: 2px; font-family: var(--display); }
.ba-toast .body { color: var(--text-2); font-size: 12.5px; }
.ba-toast.fadeout { animation: ba-toast-out 0.25s ease-in forwards; }
@keyframes ba-toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes ba-toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ---------- Modal (public) ---------- */
.modal-wrap {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(6,12,22,0.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: ba-fade-in 0.18s ease-out;
}
.modal {
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 16px; padding: 28px;
  animation: ba-modal-in 0.24s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.confirm-box { width: min(460px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 24px; }
.confirm-box .title { font-family: var(--display); font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.confirm-box .body { color: var(--text-2); font-size: 13.5px; margin-bottom: 18px; line-height: 1.55; }
.confirm-box .actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 8px; background: transparent; color: var(--text-2); border: 1px solid var(--line-2); font-family: var(--display); font-weight: 700; font-size: 13px; cursor: pointer; }
.btn-ghost:hover { color: var(--text); border-color: var(--cyan); }
@keyframes ba-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ba-modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ============================================================
   MOBILE PASS - store, apply, login
   44px taps, 16px inputs, 12px floor, real mobile nav.
   ============================================================ */

/* Mobile nav drawer */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line-2);
  align-items: center; justify-content: center; cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text-2); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text-2);
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-drawer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,12,22,0.75); backdrop-filter: blur(8px);
  display: none;
}
.nav-drawer.open { display: block; }
.nav-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: var(--panel); border-left: 1px solid var(--line-2);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
  animation: navIn 0.26s cubic-bezier(0.2,0.9,0.3,1);
}
@keyframes navIn { from { transform: translateX(100%); } to { transform: none; } }
.nav-drawer-panel .close {
  align-self: flex-end; min-height: 44px; min-width: 44px; padding: 10px 14px;
  background: transparent; border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--text-2); font-family: var(--mono); font-size: 11px;
  letter-spacing: 1.4px; text-transform: uppercase; cursor: pointer; margin-bottom: 10px;
}
.nav-drawer-panel a {
  display: flex; align-items: center; min-height: 52px; padding: 12px 14px;
  border-radius: 10px; color: var(--text); font-size: 16px; font-weight: 500;
}
.nav-drawer-panel a:hover, .nav-drawer-panel a:focus-visible { background: var(--bg-2); color: var(--cyan-3); }
.nav-drawer-panel .divider { height: 1px; background: var(--line); margin: 10px 0; }
.nav-drawer-panel .cta-full {
  margin-top: auto; justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  color: #061019; font-weight: 700; font-family: var(--display);
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav .nav-link-sm { display: none; }
  .nav .cta { padding: 11px 16px; font-size: 12.5px; }
}

@media (max-width: 900px) {

  /* ---- Typography floor ---- */
  .trust-item, .path-num, .product-tag, .product .note,
  .compliance-body p, footer, footer .disclaimer,
  .path-card .badge, .hero-media .placeholder, .product-media .placeholder,
  .consent .s, .form-links, .split-brand .stat .lbl { font-size: 12px !important; }
  .field label { font-size: 11.5px !important; }
  .path-card .badge, .product-tag, .eyebrow { font-size: 10.5px !important; }
  footer .disclaimer { font-size: 11.5px !important; line-height: 1.65; }

  /* ---- Touch targets ---- */
  .btn-primary, .btn-secondary, .btn-submit,
  .path-card .cta, .product-foot .buy, .nav .cta,
  .pw-toggle, .btn-ghost { min-height: 48px; }
  .nav .brand { min-height: 44px; }
  .nav ul a, footer .footer-links a, .form-links a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0;
  }
  .consent { padding: 16px; min-height: 56px; }
  .consent input[type=checkbox] { width: 22px; height: 22px; }

  /* ---- Inputs at 16px, comfortable padding ---- */
  .field input, .field select, .field textarea { font-size: 16px; padding: 15px 16px; }
  .pw-wrap input { padding-right: 84px; }

  /* ---- Hero: full-bleed CTAs ---- */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta > * { width: 100%; }
  .hero h1 { font-size: clamp(36px, 10vw, 46px); }

  /* ---- Trust strip: 2-up grid, no cramped wrap ---- */
  .trust-strip {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
    padding: 18px 20px; justify-content: stretch;
  }
  .trust-item { justify-content: flex-start; }

  /* ---- Path cards ---- */
  .path-card { padding: 26px 20px; }
  .path-card h3 { font-size: 22px; }
  .path-card .badge { position: static; align-self: flex-start; order: -1; }
  .path-card .cta { width: 100%; }

  /* ---- Products: one column, full-width buy ---- */
  .products { grid-template-columns: 1fr; }
  .product-body { padding: 20px; }
  .product-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .product-foot .price { font-size: 26px; }
  .product-foot .buy { width: 100%; }

  /* ---- How steps ---- */
  .how { grid-template-columns: 1fr; }
  .how-step { padding: 22px 20px; }

  /* ---- Compliance ---- */
  .compliance { padding: 32px 20px; }
  .compliance-badge { align-self: flex-start; }

  /* ---- Footer ---- */
  footer { padding: 32px 20px; }
  footer .footer-inner { flex-direction: column; gap: 18px; }
  footer .footer-links { flex-direction: column; gap: 2px; }

  /* ---- Forms ---- */
  .form-wrap { padding: 24px 16px 40px; min-height: auto; align-items: flex-start; }
  .form-card { padding: 26px 20px; border-radius: 16px; }
  .form-card h1 { font-size: 26px; }
  .form-links { flex-direction: column; gap: 4px; }

  /* ---- Login split ---- */
  .split { min-height: auto; }
  .split-form { padding: 24px 16px 40px; align-items: flex-start; }

  /* ---- Age gate as a bottom sheet ---- */
        
  /* ---- Modal as a bottom sheet ---- */
  .modal-wrap { padding: 0; align-items: flex-end; }
  .modal { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; padding: 22px 18px 26px; }

  /* ---- Toast full width ---- */
  .ba-toast-wrap { top: 8px; left: 8px; right: 8px; }
  .ba-toast { min-width: 0; max-width: 100%; }
}

@media (max-width: 380px) {
  section { padding: 44px 16px; }
  .hero { padding: 52px 16px 44px; }
  .section-head h2 { font-size: 26px; }
  .trust-strip { grid-template-columns: 1fr; }
  .form-card { padding: 22px 16px; }
}

/* ---- Safe areas (iPhone notch / home indicator) ---- */
@supports (padding: max(0px)) {
  @media (max-width: 900px) {
    .nav { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); padding-top: max(12px, env(safe-area-inset-top)); }
    section, footer, .compliance { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
        .modal { padding-bottom: max(26px, calc(26px + env(safe-area-inset-bottom))); }
    .nav-drawer-panel { padding-bottom: max(20px, calc(20px + env(safe-area-inset-bottom))); padding-top: max(20px, env(safe-area-inset-top)); }
  }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.nav-drawer-panel, .modal { -webkit-overflow-scrolling: touch; }

/* Inline links inside consent rows and lede copy get a real tap area on mobile */
@media (max-width: 900px) {
  .consent a, .lede a, .form-links a, .signin-row a, .compliance-body a {
    display: inline-block; min-height: 34px; line-height: 22px; padding: 6px 2px;
  }
  .consent .t { line-height: 1.5; }
}

/* Mono label floor on mobile */
@media (max-width: 900px) {
  .eyebrow, .product-tag, .path-card .badge, .trust-item,
  .hero-media .placeholder, .product-media .placeholder { font-size: 11.5px !important; letter-spacing: 1.4px !important; }
  .product .note,
  body [style*="font-size: 11px"], body [style*="font-size:11px"] { font-size: 12px !important; }
  body [style*="font-size: 10.5px"], body [style*="font-size:10.5px"],
  body [style*="font-size: 10px"], body [style*="font-size:10px"] { font-size: 11.5px !important; }
}

/* Standalone (non-inline) links are navigation, not prose: full 44px targets */
@media (max-width: 900px) {
  .form-links a, .signin-row a, .back-link,
  .consent a, footer .footer-links a {
    min-height: 44px; line-height: 30px; padding: 7px 2px;
  }
  .consent a { display: inline-flex; align-items: center; }
  /* Old .check consent rows from the partner forms */
  .consent { align-items: flex-start; }
  .consent input[type=checkbox] { flex-shrink: 0; }
}

/* =========================================================================
   Full-screen interstitials: age gate and access screens.
   These are the only screens a person can meet before the portal renders, so
   they carry their own styles rather than inheriting from a page that may
   never load. Identical rules live in public.css so both stylesheets can
   render them.
   ========================================================================= */
.ba-screen {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(6, 12, 22, 0.94);
  backdrop-filter: blur(4px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.ba-screen[hidden] { display: none !important; }
.ba-screen-card {
  width: 100%; max-width: 460px; margin: auto;
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 16px; padding: 30px 26px; text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.ba-screen-card h2 {
  font-family: var(--serif, Georgia, serif); font-style: italic; font-weight: 500;
  color: var(--cyan-3); font-size: 27px; line-height: 1.2; margin: 0 0 10px;
}
.ba-screen-card.stop h2 { color: var(--orange-2); }
.ba-screen-card p {
  color: var(--text-2); font-size: 14.5px; line-height: 1.55; margin: 0 0 22px;
}
.ba-screen-card .fine {
  color: var(--text-3); font-size: 12px; margin: 18px 0 0;
}
.ba-screen-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ba-screen-btns button, .ba-screen-btns a {
  min-height: 46px; padding: 12px 20px; border-radius: 9px; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 13.5px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border: 1px solid transparent;
}
.ba-screen-btns .yes {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  color: #061019; border: none;
}
.ba-screen-btns .no {
  background: transparent; color: var(--text-2); border-color: var(--line-2);
}

/* One column below 420px. Two 13.5px buttons will not sit side by side on a
   360px phone without one of them wrapping mid-word. */
@media (max-width: 420px) {
  .ba-screen { padding: 16px; align-items: flex-start; padding-top: max(24px, env(safe-area-inset-top)); }
  .ba-screen-card { padding: 26px 20px; border-radius: 14px; }
  .ba-screen-card h2 { font-size: 24px; }
  .ba-screen-card p { font-size: 14px; }
  .ba-screen-btns { flex-direction: column; }
  .ba-screen-btns button, .ba-screen-btns a { width: 100%; }
}

/* ---- Toast: bottom sheet on a phone, not a corner card over the header ---- */
@media (max-width: 720px) {
  .ba-toast-wrap {
    top: auto; right: 12px; left: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    align-items: stretch;
  }
  .ba-toast { min-width: 0; max-width: 100%; padding: 14px 16px; }
  @keyframes ba-toast-in  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes ba-toast-out { to   { opacity: 0; transform: translateY(16px); } }
}

/* Empty-state links get a real target on a phone. Mirrors owner.css. */
.empty-state .sub a, .empty-state a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 4px;
}
@media (max-width: 900px) {
  .empty-state { padding: 40px 20px; }
  .empty-state .sub a, .empty-state a {
    min-height: 46px; width: 100%; margin-top: 6px;
    border: 1px solid var(--line-2); border-radius: 9px;
    font-family: var(--display); font-weight: 700; font-size: 13.5px;
    text-decoration: none;
  }
}

/* ---- State-level mobile pass (mirrors owner.css) ---- */
input[type="checkbox"], input[type="radio"] {
  width: 22px; height: 22px; flex-shrink: 0;
  accent-color: var(--cyan); cursor: pointer;
}
@media (max-width: 900px) {
  input[type="checkbox"], input[type="radio"] { width: 24px; height: 24px; }
  .consent input[type=checkbox] { width: 24px; height: 24px; }
  /* The nav drawer's close control measured 36px tall despite a min-height:
     the flex column was sizing it from content. Pinned explicitly. */
  .nav-drawer-panel .close { height: 46px; min-height: 46px; }
  .ba-toast a {
    display: inline-flex; align-items: center; min-height: 44px;
    padding: 0 2px; font-weight: 600;
  }
}

/* The Terms and Indemnity dialog is opened from the consent line on the
   application form. Its close control carried an inline 36px height. */
.modal-close-btn { min-height: 44px; padding: 10px 16px; font-size: 12.5px; }
@media (max-width: 900px) {
  .modal-close-btn { min-height: 46px; }
  /* No inline min-height below the touch minimum survives on a phone. */
  .modal [style*="min-height:36px"], .modal [style*="min-height: 36px"],
  .modal [style*="min-height:32px"], .modal [style*="min-height: 32px"] { min-height: 46px !important; }
}
