/* ============================================================
   MemRigDMA — design system
   Precision-instrument storefront. Brand cyan #00d4ff on near-black.
   Distinct type: Sora (display, system fallback) + JetBrains Mono (data).
   Backwards compatible with account.html (keep .wrap/.card/.btn/.status/.lic-table…).
   ============================================================ */

:root {
  /* surfaces — near-black, cool, layered */
  --bg0: #07090c;
  --bg1: #0a0d12;
  --bg2: #0e1218;
  --bg3: #141a23;
  --plate: rgba(13, 17, 24, 0.66);

  /* hairlines */
  --line: rgba(150, 193, 226, 0.16);
  --line-strong: rgba(0, 212, 255, 0.28);

  /* text */
  --text: #eaf0f6;
  --text-2: #a7b4c5;
  --text-3: #7d8da0;

  /* brand */
  --accent: #00d4ff;
  --accent-deep: #008fc7;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --accent-faint: rgba(0, 212, 255, 0.055);
  --accent-text: #03232e;

  /* status */
  --good: #2ee6a4;
  --good-dim: rgba(46, 230, 164, 0.12);
  --warn: #e9b44c;
  --warn-dim: rgba(233, 180, 76, 0.12);
  --bad: #ff5f6d;
  --bad-dim: rgba(255, 95, 109, 0.14);

  /* brand accent originally used Discord blue as the accent; the store's own
     signature is cyan #00d4ff. Keep a Discord blue token for the login button. */
  --discord: #5865f2;

  /* type */
  --font-display: "Sora", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Sora", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* shape */
  --r-sm: 8px;
  --r-md: 13px;
  --r-lg: 20px;
  --r-xl: 26px;

  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 2px 0 rgba(0, 0, 0, 0.32);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1.6px) 0 0 / 26px 26px,
    var(--bg0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
::selection { background: rgba(0, 212, 255, 0.28); color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- type utilities ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-2); }

/* ---------- layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px 64px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-head h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-head p { color: var(--text-2); margin-top: 12px; font-size: 15.5px; }
.section { padding: 72px 0 8px; }
.rule { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); opacity: .5; }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px clamp(18px, 4vw, 34px);
  background: rgba(9, 12, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line), 0 0 18px -6px rgba(0, 212, 255, 0.5);
}
.brand-word {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.12em; color: var(--text);
}
.brand-word em { color: var(--accent); font-style: normal; }
/* account.html keeps the old .logo text link — style it for consistency */
.logo { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; }
.logo span { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-user { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.nav-user img { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2px var(--line); }
.nav-user .nm { color: var(--text); font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 11px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }

a.btn-primary, button.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28); }

/* Default .btn is the primary CTA (kept for legacy account.html `class="btn"`).
   Modifier classes below override it in order. */
.btn, button.btn {
  background: var(--accent); color: var(--accent-text);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}
.btn:hover, button.btn:hover, a.btn-primary:hover, button.btn-primary:hover { background: #33ddff; }

.secondary, .btn-secondary, a.btn-secondary, button.btn.secondary, .btn.secondary {
  background: transparent; color: var(--text);
  border-color: var(--line-strong);
}
.secondary:hover, .btn-secondary:hover, a.btn-secondary:hover, button.btn.secondary:hover, .btn.secondary:hover { background: var(--accent-faint); border-color: var(--accent); color: var(--accent); }

.ghost, .btn-ghost, a.btn-ghost {
  background: transparent; color: var(--text-2); border-color: var(--line);
}
.ghost:hover, .btn-ghost:hover, a.btn-ghost:hover { color: var(--text); border-color: var(--text-3); background: var(--bg3); }

.discord, .btn-discord, a.btn-discord {
  background: var(--discord); color: #fff;
}
.discord:hover, .btn-discord:hover, a.btn-discord:hover { filter: brightness(1.08); background: var(--discord); }

.btn-sm { min-height: 38px; padding: 0 15px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- hero: the signature instrument panel ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(40px, 8vw, 84px) 22px 40px;
  overflow: hidden;
}
.hero-instrument {
  position: relative;
  width: min(720px, 94vw);
  margin: 0 auto 30px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(closest-side at 50% 44%, rgba(0, 212, 255, 0.13), transparent 72%),
    linear-gradient(180deg, var(--plate), #0a0d12);
  box-shadow: var(--shadow-lift);
  padding: clamp(26px, 5vw, 44px) clamp(16px, 4vw, 40px) 20px;
}
/* inner hairline bezel */
.hero-instrument::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(0, 212, 255, 0.09);
  border-radius: calc(var(--r-xl) - 6px);
  pointer-events: none;
}
.instrument-grid {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .8;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at center, transparent 30%, #000 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, #000 78%);
}
/* corner registration ticks */
.instrument-frame { position: absolute; inset: 0; pointer-events: none; }
.instrument-frame .c { position: absolute; width: 15px; height: 15px; border: 2px solid var(--line-strong); opacity: .55; }
.c-tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.c-tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.c-bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.c-br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* top / bottom micro readout bars */
.instrument-readout {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 22px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--text-3);
  padding: 10px 4px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.10);
}
.instrument-readout.bottom { border-bottom: 0; border-top: 1px solid rgba(0, 212, 255, 0.10); }
.instrument-readout .ro { white-space: nowrap; }
.instrument-readout .ro.gt { color: var(--accent); }
.instrument-readout .ro.sw {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3); box-shadow: 0 0 0 3px rgba(105, 121, 141, 0.18);
}
.instrument-readout .ro.sw.on { background: var(--good); box-shadow: 0 0 0 3px var(--good-dim); }

.inst-chip { position: relative; z-index: 2; padding: clamp(18px, 4vw, 30px) 0 8px; }
.logo-hero {
  width: min(224px, 52vw); height: auto; margin: 0 auto;
  border-radius: 26px;
  box-shadow:
    0 0 0 1px var(--line),
    0 0 40px -12px rgba(0, 212, 255, 0.4),
    0 24px 60px -28px rgba(0, 0, 0, 0.9);
}
/* a machined backing plate behind the chip */
.inst-chip::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 72%; aspect-ratio: 1; transform: translate(-50%, -48%);
  border-radius: 34px;
  border: 1px solid rgba(0, 212, 255, 0.14);
  background:
    radial-gradient(circle at 50% 38%, rgba(0, 212, 255, 0.10), transparent 62%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 3px);
  pointer-events: none; z-index: -1;
}

.hero-title {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.02;
  margin: 4px auto 18px; max-width: 760px;
}
.hero-sub { color: var(--text-2); font-size: clamp(15px, 2.1vw, 17px); max-width: 560px; margin: 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  margin-top: 34px; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-3); font-family: var(--font-mono);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; opacity: .8; }

/* ---------- product grid ---------- */
.prod-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.prod-card {
  position: relative;
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  padding: 22px 20px 20px;
  text-decoration: none; color: var(--text);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
a.prod-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
a.prod-card:focus-visible { outline-offset: -2px; }

.prod-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.platform { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; color: var(--text-3); text-transform: uppercase; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; border-radius: 999px; padding: 5px 10px;
}
.badge.live { color: var(--good); background: var(--good-dim); border: 1px solid rgba(46, 230, 164, 0.25); }
.badge.live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.badge.coming { color: var(--text-3); background: rgba(105, 121, 141, 0.14); border: 1px solid var(--line); }

.prod-name {
  font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15;
}
.prod-name em { font-style: normal; color: var(--accent); font-weight: 700; }
.prod-tag { color: var(--text-2); font-size: 13.5px; margin-top: 6px; }

.prod-spec {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-3);
}
.prod-spec span { border: 1px solid var(--line); padding: 4px 8px; border-radius: 6px; }

.prod-foot {
  margin-top: auto; padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.prod-price { line-height: 1; }
.prod-price .from { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.prod-price .amount { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); font-family: var(--font-mono); font-weight: 600; }

/* coming-soon cards: dimmed, not buyable */
.coming {
  border-color: var(--line); background: linear-gradient(180deg, #0c0f14, #0a0d11);
  filter: saturate(0.45) brightness(0.82);
  pointer-events: none; cursor: default;
}
.coming .prod-name { color: var(--text-3); }
.coming .prod-name em { color: var(--text-3); }
.coming .prod-tag { color: var(--text-3); }
.coming .prod-foot { visibility: hidden; }
.coming-block {
  display: block;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-3); border: 1px dashed var(--line); border-radius: 8px; padding: 9px 0; text-align: center;
  margin-top: auto; /* pushes to bottom since foot hidden */
}
.coming-block::before { content: "Comming soon"; }

/* ---------- trust pillars ---------- */
.pillars { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.pillar {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg2); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.pillar svg { width: 22px; height: 22px; stroke: var(--accent); margin-bottom: 8px; }
.pillar h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.pillar p { font-size: 13.5px; color: var(--text-2); }

/* ---------- review wall ---------- */
.review-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.review-card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.review-head { display: flex; align-items: center; gap: 11px; }
.review-ava {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bg3), var(--bg1));
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  flex: none;
}
.review-meta { line-height: 1.2; }
.review-meta .nm { font-size: 13.5px; font-weight: 600; }
.review-meta .sub { font-size: 11px; font-family: var(--font-mono); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; }
.review-stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; }
.review-card blockquote { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.review-card blockquote::before { content: "\201C"; font-family: var(--font-mono); color: var(--accent); font-size: 18px; }
.review-card .chip { margin-top: auto; font-size: 11px; font-family: var(--font-mono); color: var(--text-3); letter-spacing: .06em; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; align-self: flex-start; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; text-align: center;
  margin-top: 40px; padding: clamp(40px, 7vw, 68px) 22px; overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(closest-side at 50% 0%, rgba(0, 212, 255, 0.14), transparent 72%),
    linear-gradient(180deg, var(--plate), #0a0d12);
}
.cta-band h2 { font-size: clamp(26px, 4.4vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; }
.cta-band p { color: var(--text-2); max-width: 520px; margin: 14px auto 26px; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-note { margin-top: 24px; font-size: 11px; font-family: var(--font-mono); color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- footer ---------- */
footer.foot {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 40px 22px 48px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35));
}
.foot-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.foot-brand span { font-weight: 700; letter-spacing: 0.12em; font-size: 14px; }
.foot-brand span em { font-style: normal; color: var(--accent); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--text-2); }
.foot-links a { color: var(--text-2); }
.foot-links a:hover { color: var(--accent); }
.foot-copy { width: 100%; font-size: 11.5px; font-family: var(--font-mono); color: var(--text-3); letter-spacing: 0.06em; margin-top: 10px; }

/* ---------- card (account.html) ---------- */
.card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px; margin-top: 18px;
}
.card h2 { font-size: 17px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.card h3 { font-size: 15px; margin-bottom: 8px; font-weight: 600; }

/* ---------- notices ---------- */
.notice { padding: 13px 15px; border-radius: 11px; font-size: 14px; margin-top: 14px; border: 1px solid var(--line); }
.notice.good { background: var(--good-dim); color: var(--good); border-color: rgba(46, 230, 164, 0.25); }
.notice.bad { background: var(--bad-dim); color: var(--bad); border-color: rgba(255, 95, 109, 0.25); }
.notice.muted { background: var(--bg2); color: var(--text-2); border: 1px solid var(--line); }
.notice strong { color: var(--text); font-weight: 600; }

/* ---------- redeem banner (account.html) ---------- */
.redeem-banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 16px; border-radius: 12px; margin: 22px 0 0;
  border: 1px solid var(--line);
  font-size: 14px; line-height: 1.45;
}
.redeem-banner .redeem-icon {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; margin-top: 1px;
}
.redeem-banner strong { font-size: 14.5px; letter-spacing: -0.01em; }
.redeem-banner span { display: block; color: var(--text-2); margin-top: 2px; }
.redeem-banner b { color: var(--text); font-weight: 600; }
.redeem-banner.ok {
  background: var(--good-dim); border-color: rgba(46, 230, 164, 0.3);
}
.redeem-banner.ok .redeem-icon { background: var(--good); color: #04231a; }
.redeem-banner.err {
  background: var(--bad-dim); border-color: rgba(255, 95, 109, 0.3);
}
.redeem-banner.err .redeem-icon { background: var(--bad); color: #2a060a; }

/* ---------- form controls (account.html) ---------- */
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg1); color: var(--text); font-size: 15px; font-family: var(--font-body);
  min-height: 44px;
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
label { font-size: 13px; color: var(--text-2); }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.center { text-align: center; }
.form-grid { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }

.lic-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lic-table th, .lic-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.lic-table th { color: var(--text-3); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.lic-table td { font-family: var(--font-body); }

.status { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.status.sold { background: var(--accent-dim); color: var(--accent); }
.status.redeemed { background: var(--good-dim); color: var(--good); }
.status.revoked { background: var(--bad-dim); color: var(--bad); }
.status.expired { background: rgba(105, 121, 141, 0.18); color: var(--text-3); }

/* ---------- product page ---------- */
.backlink { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 22px; }
.backlink:hover { color: var(--accent); }
.backlink svg { width: 14px; height: 14px; }

.product-layout { display: grid; gap: 26px; grid-template-columns: 1.4fr 1fr; align-items: start; }

.prod-head { padding: 6px 0 4px; }
.prod-head .eyebrow { margin-bottom: 10px; display: inline-block; }
.prod-title { font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.prod-title em { font-style: normal; color: var(--accent); }
.prod-sub { color: var(--text-2); margin-top: 12px; font-size: 16px; max-width: 480px; }
.prod-flag { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; }
.prod-flag .price-ref { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.prod-flag .price-ref b { color: var(--accent); font-weight: 600; }

.buy-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background:
    radial-gradient(closest-side at 90% 0%, rgba(0, 212, 255, 0.10), transparent 70%),
    linear-gradient(180deg, var(--plate), var(--bg1));
  padding: 24px; position: sticky; top: 84px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 2px 0 rgba(0,0,0,0.32);
}
.buy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.buy-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }

.field { display: block; margin-top: 20px; }
.field-label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; transform: translateY(-60%);
  border: solid var(--accent); border-width: 0 1.6px 1.6px 0; padding: 3px;
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.var-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 44px; background: var(--bg1); font-weight: 500; color: var(--text);
}
.var-select option { background: var(--bg2); color: var(--text); }

.buy-total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 22px; padding: 16px 2px 6px;
  border-top: 1px dashed var(--line);
}
.buy-total .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.price-readout { font-family: var(--font-mono); font-size: 30px; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; }

.buy-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.buy-features { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 7px; }
.buy-features li {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2);
}
.buy-features li::before {
  content: ""; width: 9px; height: 9px; flex: none;
  border: 1.5px solid var(--accent); background: var(--accent-dim);
  border-radius: 2px; transform: rotate(45deg);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .prod-grid, .pillars, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; }
  .buy-panel { position: static; }
}
@media (max-width: 620px) {
  .prod-grid, .pillars, .review-grid { grid-template-columns: 1fr; }
  .nav-user .nm { display: none; }
  .brand-word { font-size: 13.5px; }
  .instrument-readout .ro.gt, .instrument-readout .ro:last-child { display: none; }
  .hero-instrument { width: 100%; }
  .logo-hero { width: min(176px, 60vw); }
  .section { padding-top: 52px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
