/* Iron Raven Labs store: base styles (tokens, type, buttons, forms, cards, header, footer, toast).
   Page styles: store-pages.css (home, shop, product, COA, content pages), store-checkout.css (cart, checkout, account).
   Brand guide: black iron #0B0B0C, gold #C9A36A (buttons with black text), Cormorant Garamond / IBM Plex Sans / IBM Plex Mono. */
:root {
  --bg: #0B0B0C; --panel: #0F0F11; --panel-2: #141416; --glass: rgba(15,15,17,.94);
  --line: #26262A; --line-2: #2A2A2F; --line-3: #34343A;
  --gold: #C9A36A; --gold-hover: #DDBB85; --gold-text: #D4B07A; --gold-light: #E9D3A8; --gold-pale: #E4D2B0; --bronze: #8C6E44;
  --white: #F6F7F9; --text: #E4E4E7; --text-2: #C9CCD1; --muted: #9A9DA3; --grey-dot: #71717A;
  --err-text: #F1A7A7; --err-bg: #1F1315; --err-line: #6E2C2C;
  --tip-bg: #1B1712;
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 3px; --card-radius: 5px; --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-text); text-decoration: none; }
a:hover { color: var(--gold-hover); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--white); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(26px, 2.8vw, 34px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--bg); padding: 10px 14px; }
.skip:focus { left: 12px; top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 12px; }
.eyebrow--lines { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow--lines::before, .eyebrow--lines::after { content: ''; width: 28px; height: 1px; background: var(--gold); opacity: .7; }
.divider { width: 36px; height: 1px; background: var(--gold); margin: 12px auto; border: 0; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }

/* buttons: gold with black text (primary), gold outline (secondary) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--radius); border: 1px solid var(--gold);
  background: transparent; color: var(--gold-text); font: 600 14px/1 var(--sans); letter-spacing: .02em; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--gold); color: var(--bg); }
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--bg); }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 15px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn--mono { font: 500 12.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled=true] { background: #26262A; border-color: #26262A; color: #6B6E74; cursor: not-allowed; }
.link-arrow { font: 500 13px/1.4 var(--sans); color: var(--gold-text); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: '→'; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--text); }
.field__hint, .field small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 11px 14px; background: var(--panel-2); color: var(--white); border: 1px solid var(--line-3); border-radius: var(--radius);
  font: 400 15px/1.4 var(--sans); }
textarea.input { min-height: 96px; resize: vertical; }
.input::placeholder { color: #6B6E74; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.input.is-bad, .input[aria-invalid=true] { border-color: var(--err-line); }
.err { color: var(--err-text); font-size: 12.5px; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.5; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--line-3); border-radius: 2px; background: var(--panel-2); cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: rotate(-45deg) translate(1px, -1px); }
.radio input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--panel-2); display: grid; place-items: center; flex: none; margin: 0; }
.radio input:checked { border-color: var(--gold); }
.radio input:checked::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* cards, notices */
.card { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--card-radius); }
.card__body { padding: 22px; }
.notice { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-3); background: var(--panel-2); font-size: 14px; }
.notice--bad { background: var(--err-bg); border-color: var(--err-line); color: var(--err-text); }
.notice--tip { background: var(--tip-bg); border-color: var(--bronze); color: var(--gold-pale); }
.notice--ok { border-color: var(--bronze); color: var(--gold-light); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--line-3); border-radius: 2px; font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; flex: none; }
.dot--white { background: #fff; } .dot--grey { background: var(--grey-dot); }
.stock { font: 500 11.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px; }
.stock.in-stock { color: var(--gold-text); } .stock.out-of-stock { color: var(--grey-dot); }

/* page banner: dark cinematic picture with a black overlay */
.banner { position: relative; background-size: cover; background-position: center; border-bottom: 1px solid var(--line); }
.banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.55), rgba(11,11,12,.92)); }
.banner > .wrap { position: relative; padding-top: 88px; padding-bottom: 44px; }
.banner h1 { margin-bottom: 10px; }
.crumbs { font: 500 11.5px/1.4 var(--mono); color: var(--text-2); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--text-2); } .crumbs a:hover { color: var(--gold-text); }

/* announcement bar + header */
.announce { background: var(--gold); color: var(--bg); text-align: center; font: 600 11.5px/1.4 var(--mono); letter-spacing: .14em; padding: 9px 16px; text-transform: uppercase; }
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(11,11,12,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.hdr__in { display: flex; align-items: center; gap: 24px; min-height: 86px; }
.hdr__logo img { height: 70px; width: auto; }
.hdr__nav { margin-left: auto; display: flex; gap: 26px; }
.hdr__nav a { color: var(--text); font-size: 14px; font-weight: 500; padding: 8px 0; border-bottom: 1px solid transparent; }
.hdr__nav a:hover, .hdr__nav a.is-active { color: var(--white); border-bottom-color: var(--gold); }
.hdr__tools { display: flex; align-items: center; gap: 14px; margin-left: 28px; }
.hdr__icon { color: var(--text); display: grid; place-items: center; width: 40px; height: 40px; }
.hdr__icon:hover { color: var(--gold-text); }
.hdr__cart { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line-3); border-radius: var(--radius); color: var(--white); font-size: 13.5px; font-weight: 600; }
.hdr__cart:hover { border-color: var(--gold); color: var(--white); }
.hdr__count { font: 600 12px/1 var(--mono); color: var(--gold-text); min-width: 10px; text-align: center; }
.hdr__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-3); border-radius: var(--radius); background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.hdr__burger span { width: 18px; height: 1.5px; background: var(--white); }
.hdr__mobile { display: none; }
@media (max-width: 900px) {
  .hdr__in { min-height: 70px; gap: 12px; }
  .hdr__logo img { height: 54px; }
  .hdr__nav { display: none; }
  .hdr__tools { margin-left: auto; gap: 8px; }
  .hdr__cart span { display: none; }
  .hdr__burger { display: inline-flex; }
  .hdr__mobile { display: flex; flex-direction: column; border-top: 1px solid var(--line); background: var(--bg); padding: 8px 24px 16px; }
  .hdr__mobile a { color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--line); min-height: 44px; }
}

/* research-use band + footer */
.ruo-band { background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ruo-band__in { display: flex; gap: 22px; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.ruo-band__in b { font-size: 11.5px; letter-spacing: .2em; white-space: nowrap; color: var(--white); }
.ruo-band__in p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.ftr { padding: 56px 0 28px; }
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.ftr__brand img { max-width: 240px; margin-bottom: 18px; }
.ftr__brand p:not(.eyebrow):not(.ftr__label) { font-size: 14px; color: var(--text-2); max-width: 300px; }
.ftr__label { font: 600 12px/1.4 var(--mono); letter-spacing: .18em; color: var(--white); margin: 18px 0 10px; }
.ftr__grid > div:not(.ftr__brand) .ftr__label { margin-top: 0; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr ul a { color: var(--text-2); font-size: 14px; }
.ftr ul a:hover { color: var(--gold-text); }
.ftr__mail { font: 500 13px/1.4 var(--mono); color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.ftr__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.ftr__legal p { font-size: 12.5px; color: var(--muted); }
.ftr__copy { font-size: 12px; color: var(--muted); margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } .ruo-band__in { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* added-to-cart toast */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.irl-added-toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--glass); border: 1px solid var(--bronze); border-radius: var(--card-radius); box-shadow: 0 12px 34px rgba(0,0,0,.55); min-width: 280px; animation: toastIn .2s ease-out; }
.irl-added-toast b { display: block; color: var(--white); font-size: 14px; }
.irl-added-toast small { color: var(--text-2); font-size: 12.5px; }
.irl-added-toast__check { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--bg); display: grid; place-items: center; font-weight: 700; flex: none; }
.irl-added-toast .btn { margin-left: auto; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .toast-wrap { left: 12px; right: 12px; bottom: 12px; } .irl-added-toast { min-width: 0; } }

/* waiting for the server: a thin moving bar (wire:loading.class="is-busy") */
.is-busy { position: relative; pointer-events: none; opacity: .75; }
.is-busy::after { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 40%; background: var(--gold); animation: busy 1s ease-in-out infinite; }
@keyframes busy { 0% { left: 0; } 50% { left: 60%; } 100% { left: 0; } }
