/* Visualized Performance — coming-soon landing page
   Brand tokens match the sample site in /workspace/vp-labs-site/css/styles.css
   Dark-first: matte black, VP Green, crisp white, red needle accent.
   Draft only — do not publish until go-live. */

:root {
  --brand-deep: #176132;
  --green: #176132;
  --green-bright: #22d65c;
  --green-dim: #0f4222;
  --green-glow: rgba(34, 214, 92, 0.24);
  --needle: #e01020;
  --needle-glow: rgba(224, 16, 32, 0.35);
  --bg: #080b0a;
  --bg-elevated: #101513;
  --bg-card: #151c19;
  --bg-hover: #1b2420;
  --border: #24332b;
  --border-strong: #31473b;
  --text: #edf3ef;
  --text-muted: #94a69b;
  --text-dim: #617368;
  --white: #f4f7f5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  --nav-h: 68px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--green-bright); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 0.75rem;
  padding: 0.55rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  color: var(--text);
  flex: 0 1 auto;
  min-width: 0;
}

.nav-brand img {
  height: 46px;
  width: auto;
  max-width: min(58vw, 240px);
}

.nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 0.15s ease, box-shadow var(--transition), color var(--transition);
  text-decoration: none;
  font-family: inherit;
  line-height: 1.2;
  min-height: 44px;
}

.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--brand-deep);
  border-color: #22d65c;
  color: #fff;
}

.btn-primary:hover {
  background: #1f7d41;
  color: #fff;
  box-shadow: 0 0 24px var(--green-glow);
}

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; min-height: 40px; }

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 2.25rem 0 2.75rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% 10% auto;
  height: 70%;
  background: radial-gradient(ellipse, var(--green-glow), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 0.75rem;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--needle);
  box-shadow: 0 0 10px var(--needle-glow);
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow .dot { animation: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

.hero h1 {
  font-size: clamp(1.85rem, 6.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.hero h1 .accent { color: var(--green-bright); white-space: nowrap; }

/* Desktop-only break so the hero line reads:
   "Visualize your way —" / "with Visualized Performance."
   On phones the break is hidden and the line wraps naturally. */
.br-desktop { display: none; }
@media (min-width: 900px) {
  .br-desktop { display: block; }
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.7rem;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 1.15rem;
}

.us-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.4rem 0.85rem 0.4rem 0.65rem;
  margin-bottom: 1.35rem;
}

.us-pill .pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--needle);
  box-shadow: 0 0 8px var(--needle-glow);
  flex-shrink: 0;
}

/* Signup */
.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: stretch;
  max-width: 34rem;
}

.signup input[type="email"] {
  flex: 1 1 12rem;
  min-width: 12rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.95rem;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.signup input[type="email"]::placeholder { color: var(--text-dim); }

.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.signup .btn { flex: 0 0 auto; min-height: 48px; padding-inline: 1.2rem; }

.form-hint {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 34rem;
}

.form-feedback {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--text);
  max-width: 34rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-hover);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
}

.form-feedback[hidden] { display: none; }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual .product-frame {
  width: 100%;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--bg-card), #0b100e);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 60px var(--green-glow);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.hero-visual figcaption {
  padding: 0.7rem 1rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* ——— Sections ——— */
.section { padding: 3.25rem 0; }

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-header {
  max-width: 42rem;
  margin-bottom: 1.85rem;
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 0.5rem;
}

.section-header h2,
.band-inner h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

.section-header p { color: var(--text-muted); }

/* Value points */
.value-grid {
  display: grid;
  gap: 1rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
}

.value-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--green-dim);
  border: 1px solid var(--border-strong);
  color: var(--green-bright);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.value-card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Product teaser */
.product-teaser {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.product-copy h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
  letter-spacing: -0.015em;
}

.product-copy p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.product-copy ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 1.25rem;
}

.product-copy li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.product-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green-glow);
}

.coming-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.flag strong {
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.product-shot {
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: #0b100e;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-shot img { width: 100%; }

/* US-made band */
.us-band {
  position: relative;
  padding: 3.25rem 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(23, 97, 50, 0.28), transparent 60%),
    var(--bg);
  border-block: 1px solid var(--border);
}

.us-band .rule {
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--needle), var(--green-bright));
  border-radius: 2px;
  margin-bottom: 1rem;
}

.band-inner { max-width: 40rem; }

.band-inner h2 { margin-bottom: 0.65rem; }

.band-inner p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 800px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 2.75rem 1rem 1.15rem;
  position: relative;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-bright);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item summary:hover { color: var(--green-bright); }

.faq-item .faq-body {
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.faq-item .faq-body p + p { margin-top: 0.65rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2.5rem 0 calc(1.75rem + env(safe-area-inset-bottom));
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.footer-brand img {
  height: 48px;
  width: auto;
  max-width: 220px;
  margin-bottom: 0.7rem;
}

.footer-brand .tagline {
  font-style: italic;
  color: var(--green-bright);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  font-size: 0.9rem;
}

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--green-bright); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text-muted); }

/* Legal stubs */
.page-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at top left, rgba(23, 97, 50, 0.18), transparent 65%);
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.page-hero p { color: var(--text-muted); max-width: 40rem; }

.legal-card {
  max-width: 40rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
}

.legal-card p { color: var(--text-muted); }
.legal-card p + p { margin-top: 0.75rem; }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-bright);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.75rem;
}

/* ——— Breakpoints ——— */
@media (min-width: 640px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-brand img { height: 52px; max-width: 260px; }
}

@media (min-width: 900px) {
  .hero { padding: 3.25rem 0 3.75rem; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; }
  .value-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
  .product-teaser { grid-template-columns: 0.95fr 1.05fr; gap: 2.5rem; }
  .section { padding: 4rem 0; }
  .us-band { padding: 4rem 0; }
}

@media (max-width: 899px) {
  /* Hero already shows this mock; don't make phone users scroll it twice. */
  .product-shot { display: none; }
}

@media (max-width: 399px) {
  .container { width: min(100% - 1.5rem, var(--max)); }
  .hero { padding: 1.75rem 0 2.15rem; }
  .signup { flex-direction: column; align-items: stretch; }
  .signup input[type="email"] {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    height: 48px;
    max-height: 48px;
  }
  .signup .btn { width: 100%; }
  .nav-brand img { height: 40px; }
}

/* Signup coming-soon state */
.signup input[type="email"]:disabled { opacity: 0.6; cursor: not-allowed; }
.form-hint a { color: inherit; text-decoration: underline; }
