/* AminoGrade site styles
   Matched to the vial labels: blush label, stone backdrop, navy type, rounded wide display face. */
@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('../fonts/lexend.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #1D3951;
  --ink-2: #56606B;
  --ground: #F5F0EB;
  --card: #FBF8F5;
  --stone: #D6CFC7;
  --blush: #F9E1DF;
  --blush-2: #F1CBC8;
  --rose: #C48F8B;
  --rose-ink: #94504B;
  --line: #E3D9D0;
  --error: #A8261F;
  --display: 'Unbounded', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Lexend', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
html.gate-lock { overflow: hidden; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--text); font-size: 16px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--rose-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
button, input { font: inherit; color: inherit; }
main:focus { outline: none; }
sub { line-height: 0; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--card); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }
.wrap { max-width: 1320px; margin-left: auto; margin-right: auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- type ---------- */
.display { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.15; letter-spacing: -0.015em; }
.h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.35; letter-spacing: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; line-height: 1.55; }
.lede { margin: 16px 0 0; max-width: 56ch; font-size: 1.0625rem; color: var(--ink-2); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 30px; border: 0; border-radius: 999px;
  background: var(--ink); color: #FFFFFF; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #2A4F6E; color: #FFFFFF; }
.btn:disabled { background: #D3CBC4; color: #4F4A46; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #FFFFFF; }
.link {
  display: inline-block; padding: 10px 0; color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.link:hover { color: var(--rose-ink); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 500; }
.input {
  width: 100%; height: 52px; padding: 0 20px;
  border: 1.5px solid #8C8580; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 1rem;
}
.input[aria-invalid="true"] { border-color: var(--error); }
.input--code { letter-spacing: 0.04em; }
.error { margin: 10px 0 0; color: var(--error); font-weight: 500; font-size: 0.9375rem; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; }
.check input { width: 22px; height: 22px; flex: 0 0 22px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.check label { cursor: pointer; line-height: 1.5; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid #8C8580; border-radius: 999px; background: var(--card); }
.stepper button { width: 48px; height: 49px; border: 0; background: transparent; color: var(--ink); font-size: 1.25rem; cursor: pointer; border-radius: 999px; }
.stepper span { min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; }

/* label-style pills (the "5mg | 99% PURITY" pair on every vial) */
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0; }
.pill-fill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 0.8125rem; font-weight: 500; position: relative; z-index: 1; white-space: nowrap; }
.pill-note { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px 0 22px; margin-left: -12px; border: 1px solid var(--ink); border-radius: 0 999px 999px 0; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

/* ---------- header ---------- */
.ruo-bar { background: var(--ink); color: #E9EEF3; font-size: 0.8125rem; line-height: 1.4; }
.ruo-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
.ruo-bar p { margin: 0; }
.ruo-bar a { color: #E9EEF3; text-underline-offset: 3px; }
.ruo-bar a:hover { color: #FFFFFF; }
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-top: 14px; padding-bottom: 14px; }
.wordmark { display: inline-flex; align-items: flex-start; gap: 6px; min-height: 44px; padding-top: 6px; margin: 0; color: var(--ink); text-decoration: none; line-height: 1; }
.wordmark:hover { color: var(--ink); }
.wordmark b { font-family: var(--display); font-weight: 800; font-size: 1.625rem; letter-spacing: -0.03em; }
.wordmark span { font-family: var(--text); font-weight: 500; font-size: 0.5625rem; letter-spacing: 0.32em; margin-top: 3px; }
.site-head .wordmark { margin-right: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 0.9375rem; }
.nav a { padding: 12px 0; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--rose); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.cart-link[aria-current="page"], .cart-link[aria-current="page"]:hover { background: var(--ink); color: #FFFFFF; }
@media (max-width: 700px) {
  .site-head .wrap { gap: 0 16px; }
  .nav { order: 3; width: 100%; gap: 0 22px; }
  .cart-link { order: 2; padding: 0 14px; }
}

/* ---------- home: hero ---------- */
.hero { padding-top: clamp(24px, 3vw, 40px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }
.hero__card {
  position: relative; overflow: hidden; border-radius: 28px;
  background: linear-gradient(90deg, #FCECEA 0%, #F8DCD9 55%, #EDC2BE 88%, #D9A6A2 100%);
  padding: clamp(32px, 5vw, 64px); padding-right: clamp(32px, 12vw, 190px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: clamp(420px, 44vw, 600px);
}
.hero__ghost {
  position: absolute; top: 50%; right: clamp(8px, 1.5vw, 24px); transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; font-family: var(--display); font-weight: 800; line-height: 0.82;
  font-size: clamp(5rem, 9.5vw, 9.5rem); letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.62);
  pointer-events: none; user-select: none;
}
.hero__ghost small { font-family: var(--text); font-weight: 500; font-size: 0.11em; letter-spacing: 0.3em; color: rgba(29, 57, 81, 0.35); margin-top: 0.4em; }
.hero__title { position: relative; font-size: clamp(2.125rem, 3.7vw, 3.375rem); max-width: 12em; }
.hero__title span { display: block; }
.hero__copy { position: relative; display: flex; flex-direction: column; gap: 24px; }
.hero__lede { margin: 0; max-width: 34rem; font-size: 1.0625rem; line-height: 1.6; color: #3E4A57; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero__photo { margin: 0; border-radius: 28px; overflow: hidden; background: var(--stone); min-height: 320px; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .hero__ghost { display: none; }
  .hero__card { padding-right: clamp(32px, 5vw, 64px); min-height: 0; }
}

/* ---------- sections ---------- */
.section { margin-top: clamp(80px, 10vw, 136px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.facts-row > div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px 26px; }
.facts-row p { margin: 8px 0 0; color: var(--ink-2); max-width: 38ch; }

/* product tiles */
.products { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 44px 20px; }
.ptile { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.ptile:hover { color: var(--ink); }
.ptile__img { aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: var(--stone); margin-bottom: 6px; }
.ptile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ptile:hover .ptile__img img { transform: scale(1.025); }
.ptile__name { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.005em; }
.ptile:hover .ptile__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ptile__sub { margin: -4px 0 4px; font-size: 0.9375rem; color: var(--ink-2); }

/* steps band */
.band { background: #EDE5DD; }
.band > .wrap { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { background: var(--card); border-radius: 18px; padding: 24px 24px 28px; }
.steps__n { margin: 0 0 36px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--blush-2); font-family: var(--display); font-weight: 600; font-size: 0.9375rem; }
.steps li > p:last-child { margin: 8px 0 0; color: var(--ink-2); max-width: 34ch; }

/* COA request */
.coa { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 64px; padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.coa__copy { flex: 1 1 360px; max-width: 520px; }
.coa__copy p { margin: 16px 0 0; color: var(--ink-2); }
.coa__form { flex: 1 1 380px; max-width: 560px; }
.field-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field-row .field { flex: 1 1 220px; }
.sent { margin: 10px 0 0; font-size: 0.9375rem; color: var(--ink-2); }

/* research-use band */
.ruo { background: var(--blush); position: relative; overflow: hidden; }
.ruo .wrap { position: relative; padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.ruo .h2 { max-width: 16em; }
.ruo__intro { margin: 18px 0 0; max-width: 52ch; color: #4A5560; }
.ruo__grid { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ruo__grid > div { background: rgba(255, 255, 255, 0.55); border-radius: 18px; padding: 24px 26px 26px; }
.ruo__grid p { margin: 8px 0 0; color: #4A5560; max-width: 38ch; }
.ruo .link { margin-top: 28px; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #CBD5DF; overflow: hidden; }
.site-foot .wrap { padding-top: 72px; padding-bottom: 32px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.foot-brand { flex: 1 1 280px; max-width: 380px; }
.foot-brand p { margin: 12px 0 0; color: #A9B6C4; }
.site-foot .wordmark { color: #FFFFFF; min-height: 0; padding-top: 0; }
.site-foot a { color: #FFFFFF; text-underline-offset: 4px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.foot-cols h2 { margin: 0 0 10px; font-family: var(--display); font-size: 0.8125rem; font-weight: 600; color: #FFFFFF; letter-spacing: 0.02em; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols a { display: inline-block; padding: 6px 0; color: #E2E8EE; text-decoration: none; }
.foot-cols a:hover { color: #FFFFFF; text-decoration: underline; }
.foot-legal { margin-top: 56px; padding-top: 28px; border-top: 1px solid #34506A; font-size: 0.8125rem; line-height: 1.7; color: #A9B6C4; }
.foot-legal p { margin: 0; max-width: 92ch; }
.foot-legal p + p { margin-top: 16px; }
.foot-legal strong { color: #FFFFFF; font-weight: 600; }
.foot-ghost { margin: 40px 0 -0.22em; font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 19vw, 17rem); line-height: 0.8; letter-spacing: -0.04em; color: #24445F; user-select: none; }

/* ---------- inner pages ---------- */
.page { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(80px, 10vw, 128px); }

/* catalog */
.toolbar { margin-top: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 32px; }
.toolbar .field { flex: 1 1 320px; max-width: 440px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-size: 0.9375rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.count { margin: 20px 0 0; font-size: 0.875rem; color: var(--ink-2); }
.products--catalog { margin-top: 28px; }
.empty { margin-top: 28px; padding: clamp(28px, 5vw, 56px); background: var(--card); border: 1px solid var(--line); border-radius: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.empty p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.aside-note { margin-top: 80px; padding: 22px 26px; background: var(--blush); border-radius: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; }
.aside-note p { margin: 0; }
.aside-note p:first-child { font-family: var(--display); font-weight: 600; font-size: 0.9375rem; }
.aside-note p:last-child { color: #4A5560; max-width: 76ch; }

/* product page */
.crumbs { padding-top: 28px; font-size: 0.875rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); text-underline-offset: 3px; }
.crumbs span[aria-hidden] { margin: 0 10px; }
.product__grid { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.product__media { border-radius: 28px; overflow: hidden; background: var(--stone); }
@media (min-width: 901px) { .product__media { position: sticky; top: 24px; } }
@media (max-width: 900px) { .product__grid { grid-template-columns: minmax(0, 1fr); } }
.product__info { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.tag { align-self: flex-start; margin: 0; padding: 5px 12px; border: 1px solid var(--rose-ink); border-radius: 999px; color: var(--rose-ink); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.product__title { font-size: clamp(2rem, 3.8vw, 3rem); text-transform: uppercase; }
.product__sub { margin: -10px 0 0; font-size: 1.0625rem; color: var(--ink-2); }
.sizes { border: 0; margin: 0; padding: 0; }
.sizes legend { padding: 0; margin-bottom: 10px; font-size: 0.875rem; font-weight: 500; }
.sizes__row { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-height: 46px; min-width: 88px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.size[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1.5px solid var(--ink); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.8125rem; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.buy .btn { flex: 1 1 200px; }
.added { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding: 8px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.added p { margin: 0; }
.notice { padding: 18px 22px; background: var(--blush); border-radius: 18px; font-size: 0.9375rem; line-height: 1.55; }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; color: #4A5560; }
.notice__title { font-weight: 600; }
.split { margin-top: clamp(72px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 64px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split > div:first-child p { margin: 14px 0 0; color: var(--ink-2); max-width: 36ch; }
.spec { margin: 0; border-top: 1.5px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 2.2fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-2); }
.spec dd { margin: 0; overflow-wrap: anywhere; }
.spec__seq { letter-spacing: 0.08em; }
.prose p { margin: 0; max-width: 64ch; }
.prose p + p { margin-top: 16px; }
.explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.explain > div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 24px; }
.explain p { margin: 8px 0 0; color: var(--ink-2); }

/* testing page trace */
.trace { margin: 48px 0 0; }
.trace__plot { position: relative; height: clamp(150px, 18vw, 240px); }
.trace__plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.trace__label { position: absolute; top: 0; right: calc(16.667% + 18px); text-align: right; line-height: 1.35; }
.trace__label p { margin: 0; font-size: 0.8125rem; color: var(--ink-2); }
.trace__label p:first-child { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.trace__axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.trace figcaption { margin-top: 14px; max-width: 62ch; font-size: 0.8125rem; color: var(--ink-2); }
@media (max-width: 640px) { .trace__label { display: none; } }

/* cart */
.cart { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 40px 56px; align-items: start; }
@media (max-width: 900px) { .cart { grid-template-columns: minmax(0, 1fr); } }
.cart__list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; background: var(--stone); }
.cart-line h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.3; text-transform: uppercase; }
.cart-line h2 a { text-decoration: none; }
.cart-line h2 a:hover { text-decoration: underline; }
.cart-line p { margin: 2px 0 0; font-size: 0.9375rem; color: var(--ink-2); }
.cart-line .remove { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-size: 0.875rem; cursor: pointer; }
@media (max-width: 520px) {
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-line img { width: 72px; height: 72px; }
  .cart-line .stepper { grid-column: 2; justify-self: start; }
}
.summary { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.summary__dl { margin: 16px 0 0; }
.summary__dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary__dl dt { color: var(--ink-2); }
.summary__dl dd { margin: 0; text-align: right; }
.summary .check { margin-top: 8px; font-size: 0.9375rem; }
.summary .btn { width: 100%; margin-top: 8px; min-height: 54px; }
.summary .small { margin: 10px 0 0; }
.cart-empty { margin-top: 40px; padding: 48px clamp(24px, 4vw, 48px); background: var(--blush); border-radius: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cart-empty p { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.25rem; }

/* policy */
.policy { margin-top: 56px; display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 72ch); gap: 40px 72px; align-items: start; }
@media (max-width: 900px) { .policy { grid-template-columns: minmax(0, 1fr); } }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 22px; }
@media (min-width: 901px) { .toc { position: sticky; top: 24px; } }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 8px 0; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.psec { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.psec:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.psec .h2 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); }
.psec p { margin: 14px 0 0; }
.psec ul { margin: 12px 0 0; padding-left: 1.25em; }
.psec li + li { margin-top: 8px; }
.faq { margin-top: 16px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; font-weight: 500; font-size: 1.0625rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: 0 0 20px; transition: transform 0.16s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0 40px 24px 0; color: var(--ink-2); max-width: 64ch; }

/* gate */
.gate { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; background: rgba(23, 44, 64, 0.9); }
.gate__card { position: relative; overflow: hidden; width: 100%; max-width: 560px; margin: auto; background: linear-gradient(90deg, #FCECEA 0%, #F8DCD9 70%, #EFC7C3 100%); border-radius: 28px; padding: clamp(28px, 5vw, 48px); }
.gate__title { margin-top: 24px; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.gate__card > p { margin: 14px 0 0; }
.gate__checks { margin-top: 24px; border-top: 1px solid rgba(29, 57, 81, 0.18); }
.gate__checks .check { border-bottom: 1px solid rgba(29, 57, 81, 0.18); }
.gate__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.gate .muted { color: #4A5560; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
