/* =========================================================
   FlowState Design Co. — Industrial dark storefront
   ========================================================= */

:root {
  --bg:          #070808;
  --bg-raised:   #101213;
  --bg-card:     #141718;
  --line:        #232829;
  --line-strong: #343b3c;
  --text:        #f4f6f6;
  --text-dim:    #a3a9ad;   /* matches "DESIGN CO" gray */
  --accent:      #1fc795;   /* FlowState mint */
  --accent-dim:  #1fc79526;

  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 6px;
  --max-w: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.accent {
  color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  /* blueprint grid + soft glow */
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, var(--accent-dim), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
  background-blend-mode: normal;
}

.hero::after {
  /* fades the grid out toward the bottom */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg));
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: auto;
  aspect-ratio: 108 / 97;
  flex-shrink: 0;
  color: var(--accent);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-word {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.logo-sub {
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(64px, 12vw, 140px) clamp(48px, 8vw, 96px);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-sub {
  max-width: 560px;
  margin: 0 0 36px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: #0d0f11;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px var(--accent);
}

.btn:focus-visible,
.nav-link:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 56px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.spec-strip li {
  display: flex;
  flex-direction: column;
}

.spec-strip strong {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.spec-strip span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---------- Products ---------- */

.products {
  padding-block: clamp(56px, 10vw, 110px);
  scroll-margin-top: 16px;
}

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-grid {
  display: grid;
  /* min() keeps cards from overflowing on very narrow screens */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  /* placeholder: swap for an <img> when photos are ready */
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--bg-raised);
  border-bottom: 1px solid var(--line);
}

.product-image::before {
  /* crosshair "image here" marker */
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 56px;
  height: 56px;
  translate: -50% -50%;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.part-no {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.product-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.product-desc {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.product-footer {
  /* pushes price + checkout to the bottom so cards align */
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
}

.checkout-embed {
  width: 100%;
  min-height: 44px; /* reserves space so cards don't jump when buttons load */
}

/* make injected payment buttons fill the card width */
.checkout-embed > a,
.checkout-embed > button,
.checkout-embed iframe {
  width: 100%;
  max-width: 100%;
}

/* ---------- Policy pages ---------- */

.page-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}

.legal {
  max-width: 760px;
  padding-block: clamp(48px, 8vw, 88px);
}

.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal .updated {
  margin: 0 0 40px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
}

.legal p,
.legal li {
  color: var(--text-dim);
}

.legal strong {
  color: var(--text);
}

.legal ul {
  padding-left: 20px;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--accent);
}

.callout {
  margin: 0 0 32px;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.callout p {
  margin: 0;
  color: var(--text);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px;
}

.logo--footer .logo-word { font-size: 1.15rem; }
.logo--footer .logo-mark { width: 30px; }


.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  width: 100%;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero h1 br {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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