/* Andre.Media store - "Color Bay" theme. Teal/orange on near-black. */

@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/assets/fonts/barlow-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/assets/fonts/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2'); }

:root {
  --bg: #080b0e;
  --bg-2: #0d1217;
  --surface: #111820;
  --surface-2: #16202a;
  --line: #1f2b36;
  --line-2: #2a3a48;
  --text: #e8eef2;
  --muted: #8a9aa8;
  --teal: #2dd4bf;
  --teal-ink: #04201d;
  --teal-soft: rgba(45, 212, 191, .12);
  --orange: #ff7a45;
  --orange-soft: rgba(255, 122, 69, .12);
  --danger: #ff6b6b;
  --ok: #34d399;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1120px;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
body::after { /* subtle scanlines */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: #5eead4; }
code { font: 500 .9em var(--mono); background: var(--surface-2); padding: .1em .4em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3, .h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.5rem; }
.h4 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.accent { color: var(--orange); }
.eyebrow { font: 500 .75rem/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-bottom: .9rem; }
.eyebrow a { color: inherit; }
.lede { font-size: 1.15rem; color: #c3cfd8; max-width: 38em; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--teal); color: var(--teal-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .95rem/1 var(--body); padding: .85em 1.3em; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--teal-ink); }
.btn-primary:hover { background: #5eead4; color: var(--teal-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--text); }
.btn-sm { padding: .6em 1em; font-size: .875rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: ' →'; }

/* ---------- header / logo */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8, 11, 14, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; position: relative; padding-bottom: 7px; }
.logo-word { font: 700 1.45rem/1 var(--display); color: #fff; letter-spacing: .02em; }
.logo-sub { font: 500 9px/1 var(--mono); letter-spacing: .24em; color: var(--orange); margin-top: 4px; }
.logo::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%; background: linear-gradient(90deg, var(--teal), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.logo:hover::after, .logo:focus-visible::after { transform: scaleX(1); }
.logo-sm .logo-word { font-size: 1.2rem; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .925rem; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: 10px; }
@media (max-width: 720px) { .nav { display: none; } .header-actions { margin-left: auto; } }

/* ---------- hero */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 90px); position: relative; overflow-x: clip; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, rgba(255,122,69,.13), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; }
.hero-grid > * { min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1rem; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-visual { display: grid; gap: 14px; }
.grade-frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(255,122,69,.35); }
.grade-half { position: absolute; top: 0; bottom: 0; width: 50%; }
.grade-log { left: 0; background: linear-gradient(170deg, #6f7b80 0%, #59646a 45%, #4a5358 46%, #3d4448 100%); filter: saturate(.35) contrast(.8); }
.grade-graded { right: 0; background: linear-gradient(170deg, #0f5e66 0%, #0b3c45 45%, #1a1210 46%, #2a1609 100%); }
.grade-graded::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 40%, rgba(255,122,69,.45), transparent 70%); }
.grade-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.6); }
.grade-label { position: absolute; top: 12px; font: 500 .7rem var(--mono); letter-spacing: .2em; color: #fff; background: rgba(0,0,0,.45); padding: 4px 8px; border-radius: 6px; z-index: 2; }
.grade-log .grade-label { left: 12px; }
.grade-graded .grade-label { right: 12px; }
.grade-car { position: absolute; left: 14%; right: 14%; bottom: 20%; height: 22%; border-radius: 40% 46% 12% 12% / 70% 70% 20% 20%; background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.9)); }
.grade-car::before, .grade-car::after { content: ''; position: absolute; bottom: -22%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #050607; border: 3px solid #2a3138; }
.grade-car::before { left: 12%; } .grade-car::after { right: 12%; }
.scope { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.scope-bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; flex: 1; }
.scope-bars i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(0deg, var(--teal), var(--orange)); opacity: .85; animation: scope 2.6s ease-in-out infinite alternate; }
.scope-bars i:nth-child(1) { height: 30%; } .scope-bars i:nth-child(2) { height: 55%; animation-delay: -.3s; }
.scope-bars i:nth-child(3) { height: 80%; animation-delay: -.6s; } .scope-bars i:nth-child(4) { height: 65%; animation-delay: -.9s; }
.scope-bars i:nth-child(5) { height: 90%; animation-delay: -1.2s; } .scope-bars i:nth-child(6) { height: 70%; animation-delay: -1.5s; }
.scope-bars i:nth-child(7) { height: 50%; animation-delay: -1.8s; } .scope-bars i:nth-child(8) { height: 75%; animation-delay: -2.1s; }
.scope-bars i:nth-child(9) { height: 45%; animation-delay: -.4s; } .scope-bars i:nth-child(10) { height: 60%; animation-delay: -.8s; }
.scope-bars i:nth-child(11) { height: 35%; animation-delay: -1.1s; } .scope-bars i:nth-child(12) { height: 20%; animation-delay: -1.6s; }
.scope-label { font: 500 .7rem var(--mono); letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
@keyframes scope { to { transform: scaleY(.7); transform-origin: bottom; } }

/* ---------- sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- pack cards */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 28px; }
.pack-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: border-color .2s, transform .2s; }
.pack-card:hover { border-color: var(--line-2); }
.pack-card h3 { font-size: 2rem; margin-top: 10px; }
.pack-card h3 a { color: var(--text); text-decoration: none; }
.pack-card h3 a:hover { color: var(--teal); }
.pack-card.is-upcoming { background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.pack-card.is-owned { border-color: rgba(45,212,191,.45); box-shadow: 0 0 0 1px rgba(45,212,191,.15), 0 20px 50px -30px rgba(45,212,191,.5); }
.pack-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pack-tagline { color: #c3cfd8; }
.pack-card-actions { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.price { font: 700 1.6rem/1 var(--display); color: var(--text); }
.price-lg { font-size: 3.2rem; margin-bottom: 4px; }
.tag { display: inline-block; font: 500 .68rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; }
.tag-live { background: var(--teal-soft); color: var(--teal); }
.tag-soon { background: var(--orange-soft); color: var(--orange); }
.tag-owned { background: var(--teal); color: var(--teal-ink); }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; color: #c3cfd8; font-size: .95rem; }
.checks li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.skeleton { min-height: 260px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps h3 { font-size: 1.4rem; margin: 10px 0 6px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
.step-n { font: 500 .8rem var(--mono); color: var(--orange); letter-spacing: .14em; }

/* ---------- faq */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 1.2rem/1 var(--mono); color: var(--teal); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: #c3cfd8; padding-bottom: 6px; }

/* ---------- forms */
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; position: relative; }
.inline-form input[type=email] { flex: 1 1 260px; max-width: 360px; }
.inline-form .form-msg { flex-basis: 100%; }
input[type=email], input[type=text], input[type=password] {
  width: 100%; font: 400 1rem var(--body); color: var(--text); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 10px; padding: .8em .95em; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #55626e; }
input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
input[aria-invalid=true] { border-color: var(--danger); }
input[name=licenseKey] { font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.help { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin: -4px 0 18px; cursor: pointer; }
.check input { accent-color: var(--teal); width: 16px; height: 16px; }
.form-msg { margin: 12px 0 0; font-size: .92rem; min-height: 1.2em; }
.form-msg.is-error { color: var(--danger); }
.form-msg.is-ok { color: var(--ok); }

/* ---------- auth pages */
.auth-section { padding: clamp(32px, 7vw, 80px) 20px; display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 5vw, 40px); box-shadow: 0 40px 100px -50px rgba(45,212,191,.35); }
.auth-card h1 { font-size: clamp(2.2rem, 7vw, 2.9rem); }
.auth-alt { margin: 22px 0 0; color: var(--muted); text-align: center; }

/* ---------- pack page */
.pack-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; position: relative; }
.pack-layout > * { min-width: 0; }
.hero-pack .tag { margin-bottom: 14px; }
.buy-box { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; position: sticky; top: 92px; }
.buy-box .checks { margin-bottom: 22px; }
.buy-box .btn { width: 100%; white-space: normal; text-align: center; }
.buy-box .btn + .small { margin-top: 12px; }
@media (max-width: 880px) { .pack-layout { grid-template-columns: 1fr; } .buy-box { position: static; } }

/* ---------- dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.dash-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.notice { background: var(--orange-soft); border: 1px solid rgba(255,122,69,.4); color: #ffd2bf; border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 18px; }
.license-hint { font: 500 .78rem var(--mono); color: var(--muted); letter-spacing: .08em; }

/* ---------- prose */
.prose h2 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; color: #c3cfd8; }
.prose li { margin-bottom: .5em; }

/* ---------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-start; max-width: 620px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--text); }
.footer-base { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }

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