/* ─────────────────────────────────────────────────────────────────────────────
   Solutech — shared store stylesheet (depends on tokens.css)
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Reset / base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-snug); letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { line-height: var(--lh-tight); }
/* never let long words break out of their container */
p, a, li, span, h1, h2, h3, h4 { overflow-wrap: break-word; }

/* ── Accessibility ─────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.prose { width: min(100% - 2.5rem, var(--maxw-prose)); margin-inline: auto; }
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.stack > * + * { margin-top: var(--space-4); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: .5ch;
}
.eyebrow::before { content: ">"; color: var(--coral); font-weight: 700; }

.lead { font-size: var(--fs-4); color: var(--fg-muted); max-width: 52ch; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6ch;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--fs-sm);
  border: 1.5px solid transparent;
  white-space: nowrap; max-width: 100%; text-align: center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-ink); box-shadow: var(--shadow); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-soft); }
.btn--ghost { border-color: var(--line); background: var(--card); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--coral { background: var(--coral); color: var(--ink); }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--fs-body); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; }

.arrow::after { content: "→"; transition: transform var(--dur) var(--ease); }
.arrow:hover::after { transform: translateX(4px); }

/* ── Header / nav ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .6ch; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; }
.brand__mark {
  font-family: var(--font-mono); color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 6px; padding: .1em .45em; font-size: .8em; font-weight: 700;
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav__links { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 1.9rem); }
/* only plain text links get the muted treatment — never the CTA button */
.nav__links a:not(.btn) { font-size: var(--fs-sm); font-weight: 500; color: var(--fg-muted); transition: color .25s var(--ease); }
.nav__links a:not(.btn):hover, .nav__links a:not(.btn)[aria-current="page"] { color: var(--fg); }
.nav__links a:not(.btn)[aria-current="page"] { font-weight: 600; }
.nav__cta { margin-left: .25rem; }
.nav .btn--dark { color: #fff; }

.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: var(--space-4) 1.25rem var(--space-6); gap: var(--space-4);
  }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  }
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink); color: #EDEAF2;
  padding-block: var(--space-8) var(--space-6);
  margin-top: var(--space-9);
}
.site-footer a { color: #EDEAF2; opacity: .8; transition: opacity .25s; }
.site-footer a:hover { opacity: 1; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6);
  padding-bottom: var(--space-6); border-bottom: 1px solid var(--line-dark);
}
.site-footer h4 { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: #B7AFC9; margin-bottom: var(--space-3); }
.site-footer__links { display: flex; flex-direction: column; gap: .55rem; font-size: var(--fs-sm); }
.site-footer__legal {
  font-family: var(--font-mono); font-size: var(--fs-xs); color: #9990AD;
  padding-top: var(--space-5); line-height: 1.7; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between;
}
@media (max-width: 680px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ── Hero (home) ───────────────────────────────────────────────────────────── */
.hero { padding-block: var(--space-9) var(--space-8); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-7); align-items: center; }
.hero h1 { font-size: var(--fs-1); margin-block: var(--space-4) var(--space-5); }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero__meta { margin-top: var(--space-6); display: flex; gap: var(--space-6); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-muted); }
.hero__meta b { display: block; font-size: 1.4rem; color: var(--fg); font-family: var(--font-display); }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } }

/* Terminal-style prompt card — the signature element */
.promptbox {
  background: var(--ink); color: #E8E4F0; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--font-mono);
  font-size: var(--fs-sm); line-height: 1.7;
}
.promptbox__bar { display: flex; align-items: center; gap: .5ch; padding: .8rem 1rem; background: #221E2E; border-bottom: 1px solid var(--line-dark); }
.promptbox__dot { width: 11px; height: 11px; border-radius: 50%; background: #4A4459; }
.promptbox__dot:nth-child(1) { background: var(--coral); }
.promptbox__dot:nth-child(2) { background: #E8FF59; }
.promptbox__dot:nth-child(3) { background: var(--perpetualx, #3DF5C5); }
.promptbox__title { margin-left: auto; font-size: var(--fs-xs); color: #8B83A1; }
.promptbox__body { padding: 1.25rem 1.25rem 1.5rem; }
.promptbox__line { white-space: pre-wrap; }
.promptbox__line .tok-key { color: #9C8BFF; }
.promptbox__line .tok-str { color: #6FE0BE; }
.promptbox__line .tok-com { color: #6B6480; }
.promptbox__caret { display: inline-block; width: .6ch; height: 1.1em; background: var(--coral); vertical-align: -2px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Prompt / product cards ────────────────────────────────────────────────── */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-5); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sand-deep); }
.card__thumb { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--sand); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__thumb img { transform: scale(1.04); }
.card__cat {
  position: absolute; top: .8rem; left: .8rem;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .04em;
  background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--ink);
  padding: .3rem .7rem; border-radius: var(--radius-pill); backdrop-filter: blur(4px);
}
.card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card__title { font-size: var(--fs-4); display: flex; align-items: baseline; justify-content: space-between; gap: 1ch; flex-wrap: wrap; }
.card__price { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.card__tagline { color: var(--fg-muted); font-size: var(--fs-sm); }
.card__foot { margin-top: auto; padding-top: var(--space-4); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.card__foot .btn { flex: 1 1 0; min-width: 0; padding-inline: .85rem; }

/* ── Generic section headers ───────────────────────────────────────────────── */
.section-head { max-width: 60ch; margin-bottom: var(--space-7); }
.section-head h2 { font-size: var(--fs-2); margin-block: var(--space-3); }
.section-head p { color: var(--fg-muted); }

/* ── How it works ──────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); counter-reset: step; }
.step { background: var(--sand); border-radius: var(--radius); padding: var(--space-6); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--accent-ink); font-weight: 700;
}
.step h3 { font-size: var(--fs-4); margin-block: var(--space-3) var(--space-2); }
.step p { color: var(--fg-muted); font-size: var(--fs-sm); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ── Featured band (dark) ──────────────────────────────────────────────────── */
.band { background: var(--ink); color: #EFECF5; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem); }
.band h2 { font-size: var(--fs-2); }
.band .lead { color: #B7AFC9; }

/* ── Product page ──────────────────────────────────────────────────────────── */
.product { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-7); align-items: start; padding-block: var(--space-7); }
.product__preview {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--sand); box-shadow: var(--shadow); position: sticky; top: 90px;
}
.product__chrome { display: flex; align-items: center; gap: .5ch; padding: .7rem 1rem; background: var(--card); border-bottom: 1px solid var(--line); }
.product__chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sand-deep); }
.product__url { margin-left: .5rem; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-muted); }
.product__frame { aspect-ratio: 4/3; width: 100%; border: 0; background: var(--sand); }
.product__aside .eyebrow { margin-bottom: var(--space-3); }
.product__aside h1 { font-size: var(--fs-2); }
.product__price { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; margin-block: var(--space-4) var(--space-2); }
.product__price small { font-size: var(--fs-sm); color: var(--fg-muted); font-weight: 400; }
.product__features { display: flex; flex-direction: column; gap: .6rem; margin-block: var(--space-5); }
.product__features li { display: flex; gap: .7ch; align-items: flex-start; font-size: var(--fs-sm); }
.product__features li::before { content: "▹"; color: var(--accent); flex: none; }
.product__actions { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.product__actions .btn { justify-content: center; }
@media (max-width: 880px) { .product { grid-template-columns: 1fr; } .product__preview { position: static; } }

/* ── Purchase form ─────────────────────────────────────────────────────────── */
.purchase { display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--space-7); align-items: start; padding-block: var(--space-7); }
.form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field .hint { font-size: var(--fs-xs); color: var(--fg-muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--fs-sm); color: var(--fg);
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field input[readonly] { background: var(--sand); color: var(--fg-muted); cursor: not-allowed; }
.field--error input, .field--error select { border-color: var(--coral); }
.field__error { color: #C23A1E; font-size: var(--fs-xs); min-height: 1em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .8ch; }
.field--check input { width: 20px; height: 20px; margin-top: .15rem; }
.field--check label { font-weight: 400; font-size: var(--fs-sm); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { padding: .9rem 1rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); display: none; }
.form__status.is-error { display: block; background: #FCEEEA; color: #9A2D14; border: 1px solid #F3C9BC; }
.form__status.is-busy { display: block; background: var(--sand); color: var(--fg-muted); }

.order-summary {
  background: var(--ink); color: #EFECF5; border-radius: var(--radius-lg);
  padding: var(--space-6); position: sticky; top: 90px; font-family: var(--font-body);
}
.order-summary h2 { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: #B7AFC9; }
.order-summary__item { display: flex; justify-content: space-between; gap: 1ch; padding-block: var(--space-4); border-bottom: 1px solid var(--line-dark); }
.order-summary__item b { font-family: var(--font-display); }
.order-summary__row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--fs-sm); padding-top: var(--space-3); color: #C9C2D8; }
.order-summary__total { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--fs-4); font-weight: 700; padding-top: var(--space-4); margin-top: var(--space-3); border-top: 1px solid var(--line-dark); }
.order-summary__note { font-size: var(--fs-xs); color: #9990AD; margin-top: var(--space-4); line-height: 1.6; }
@media (max-width: 880px) { .purchase { grid-template-columns: 1fr; } .order-summary { position: static; } }

/* ── Prose / legal pages ───────────────────────────────────────────────────── */
.doc { padding-block: var(--space-8); }
.doc h1 { font-size: var(--fs-2); margin-bottom: var(--space-3); }
.doc__meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-muted); margin-bottom: var(--space-7); }
.doc h2 { font-size: var(--fs-3); margin-block: var(--space-7) var(--space-3); }
.doc h3 { font-size: var(--fs-4); margin-block: var(--space-5) var(--space-2); }
.doc p, .doc li { color: #2D2937; }
.doc p + p { margin-top: var(--space-4); }
.doc ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .5rem; margin-top: var(--space-3); }
.doc a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.doc .callout { background: var(--sand); border-left: 3px solid var(--accent); padding: var(--space-4) var(--space-5); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-block: var(--space-5); font-size: var(--fs-sm); }
.doc__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block: var(--space-5) var(--space-7); }

/* ── Print: clean legal-document output (Save as PDF) ──────────────────────── */
@media print {
  .site-header, .site-footer, .skip-link, .doc__actions, .preview-banner { display: none !important; }
  body::after, body::before { display: none !important; }
  body { background: #fff; color: #000; }
  .doc { padding: 0; }
  .prose { width: 100%; max-width: 100%; }
  .doc a { color: #000; text-decoration: underline; }
  .doc h2 { break-after: avoid; }
  .doc h2, .doc h3 { break-inside: avoid; }
  .doc p, .doc li { orphans: 3; widows: 3; }
}

/* ── Thank-you / 404 / status pages ────────────────────────────────────────── */
.center-screen { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--space-8); }
.center-screen h1 { font-size: var(--fs-1); }
.center-screen .lead { margin-inline: auto; }
.center-screen__actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--space-6); }
.tick { width: 84px; height: 84px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); display: grid; place-items: center; margin: 0 auto var(--space-5); }
.tick svg { width: 40px; height: 40px; stroke: var(--accent); }

/* ── Reveal on scroll ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── Misc ──────────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--space-7); }
.tag { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-muted); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .25rem .7rem; }
.preview-banner {
  background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: var(--fs-xs);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 1.25rem; position: sticky; top: 0; z-index: 50;
}
.preview-banner a { color: #E8FF59; }

/* ── Premium polish ────────────────────────────────────────────────────────── */
/* fine paper grain — adds tactile depth so the store doesn't read as flat/AI */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-header, main, .site-footer { position: relative; z-index: 2; }

/* ambient animated wash behind the hero */
.hero { position: relative; isolation: isolate; }
.hero::after {
  content: ""; position: absolute; inset: -25% -10% auto; height: 620px; z-index: -1;
  pointer-events: none; filter: blur(80px); opacity: .55;
  background:
    radial-gradient(38% 60% at 22% 30%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
    radial-gradient(34% 55% at 82% 18%, color-mix(in srgb, var(--coral) 42%, transparent), transparent 70%);
  animation: heroWash 18s ease-in-out infinite;
}
@keyframes heroWash { 50% { transform: translate3d(2%, 3%, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }

.promptbox { border: 1px solid rgba(255,255,255,.08); }
.card { box-shadow: var(--shadow-sm); }
.eyebrow { font-weight: 500; }

/* full-width primary submit on the purchase form */
.form > button[type="submit"] { width: 100%; }

/* gradient accent on section eyebrows for a touch more identity */
.hero__meta b { background: linear-gradient(120deg, var(--accent-ink), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
