/* CVVolt — validation site styles.
   Brand: near-black #070711, deep surface #0D0D1A, volt yellow #FACC15,
   off-white #F4F4FF. Bold geometric/system sans. Subtle grid texture.
   No fake app screenshot. No external fonts.
   All rights reserved by CVVolt. */

:root {
  --cvv-bg: #070711;
  --cvv-surface: #0D0D1A;
  --cvv-surface-2: #14142A;
  --cvv-border: #1F1F38;
  --cvv-fg: #F4F4FF;
  --cvv-fg-muted: #B5B5D1;
  --cvv-fg-dim: #80809A;
  --cvv-accent: #FACC15;
  --cvv-accent-press: #E0B310;
  --cvv-danger: #F87171;
  --cvv-success: #34D399;
  --cvv-radius: 10px;
  --cvv-radius-sm: 6px;
  --cvv-radius-lg: 16px;
  --cvv-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.35);
  --cvv-maxw: 1100px;
  --cvv-gutter: clamp(16px, 4vw, 32px);
  --cvv-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Display",
    "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --cvv-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cvv-bg);
  color: var(--cvv-fg);
  font-family: var(--cvv-font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle grid texture — flat, no fake screenshot. */
body {
  background-image:
    linear-gradient(to right, rgba(250, 204, 21, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250, 204, 21, 0.035) 1px, transparent 1px),
    radial-gradient(1200px 600px at 80% -10%, rgba(250, 204, 21, 0.08), transparent 60%),
    linear-gradient(180deg, var(--cvv-bg) 0%, var(--cvv-surface) 100%);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%;
  background-attachment: fixed;
  min-height: 100dvh;
}

/* Skip link — first focusable element. */
.cvv-skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 1000;
  background: var(--cvv-accent);
  color: var(--cvv-bg);
  padding: 10px 14px;
  border-radius: var(--cvv-radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}
.cvv-skip:focus { top: 12px; outline: 3px solid var(--cvv-fg); outline-offset: 2px; }

/* Visible focus ring everywhere — never invisible. */
:focus-visible {
  outline: 3px solid var(--cvv-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Layout containers. */
.cvv-wrap { max-width: var(--cvv-maxw); margin: 0 auto; padding: 0 var(--cvv-gutter); }
.cvv-wrap--narrow { max-width: 760px; }

a { color: var(--cvv-accent); }
a:hover { color: var(--cvv-fg); }

/* Header */
.cvv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7, 7, 17, 0.72);
  border-bottom: 1px solid var(--cvv-border);
}
.cvv-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.cvv-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cvv-fg);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.125rem;
}
.cvv-brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cvv-bg);
}
.cvv-brand__mark img { width: 28px; height: 28px; display: block; }
.cvv-brand__name { font-weight: 800; }
.cvv-brand__name b { font-weight: 900; color: var(--cvv-accent); }
.cvv-nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--cvv-radius);
  background: transparent;
  color: var(--cvv-fg);
  border: 1px solid var(--cvv-border);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.cvv-nav__cta:hover { border-color: var(--cvv-accent); color: var(--cvv-accent); }

/* Hero */
.cvv-hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 6vw, 64px);
}
.cvv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--cvv-fg-muted);
  margin: 0 0 18px;
  font-weight: 600;
}
.cvv-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cvv-accent);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
}
.cvv-hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 22ch;
  font-weight: 800;
}
.cvv-hero h1 em {
  font-style: normal;
  color: var(--cvv-accent);
}
.cvv-hero p.cvv-lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--cvv-fg-muted);
  max-width: 60ch;
  margin: 0 0 32px;
}
.cvv-hero__form {
  background: var(--cvv-surface);
  border: 1px solid var(--cvv-border);
  border-radius: var(--cvv-radius-lg);
  padding: clamp(20px, 4vw, 28px);
  box-shadow: var(--cvv-shadow);
  max-width: 640px;
}

/* Sections */
.cvv-section { padding: clamp(40px, 7vw, 80px) 0; }
.cvv-section + .cvv-section { border-top: 1px solid var(--cvv-border); }
.cvv-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  font-weight: 800;
}
.cvv-section p { color: var(--cvv-fg-muted); max-width: 70ch; }
.cvv-section__lede { font-size: 1.05rem; margin-bottom: 28px; }

.cvv-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 24px;
}
.cvv-card {
  background: var(--cvv-surface);
  border: 1px solid var(--cvv-border);
  border-radius: var(--cvv-radius);
  padding: 22px;
}
.cvv-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.cvv-card p { margin: 0; font-size: 0.95rem; }
.cvv-card__num {
  display: inline-block;
  font-family: var(--cvv-font-mono);
  color: var(--cvv-accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

/* Steps */
.cvv-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}
.cvv-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--cvv-surface);
  border: 1px solid var(--cvv-border);
  border-radius: var(--cvv-radius);
  padding: 18px;
}
.cvv-step__num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--cvv-accent);
  color: var(--cvv-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--cvv-font-mono);
}
.cvv-step h3 { margin: 4px 0 4px; font-size: 1rem; font-weight: 700; }
.cvv-step p { margin: 0; font-size: 0.92rem; }

/* FAQ */
.cvv-faq { margin-top: 24px; }
.cvv-faq details {
  background: var(--cvv-surface);
  border: 1px solid var(--cvv-border);
  border-radius: var(--cvv-radius);
  padding: 0;
  margin: 0 0 12px;
}
.cvv-faq summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}
.cvv-faq summary::-webkit-details-marker { display: none; }
.cvv-faq summary::after {
  content: "+";
  color: var(--cvv-accent);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.cvv-faq details[open] summary::after { content: "−"; }
.cvv-faq details > p, .cvv-faq details > div {
  padding: 0 18px 18px;
  margin: 0;
  color: var(--cvv-fg-muted);
}

/* Form */
form.cvv-form { display: grid; gap: 14px; }
.cvv-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .cvv-form__row--split { grid-template-columns: 1fr 1fr; }
}
.cvv-field { display: flex; flex-direction: column; gap: 6px; }
.cvv-field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cvv-fg);
}
.cvv-field__hint {
  font-size: 0.85rem;
  color: var(--cvv-fg-dim);
}
.cvv-field input[type="email"],
.cvv-field input[type="text"],
.cvv-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--cvv-radius-sm);
  border: 1px solid var(--cvv-border);
  background: var(--cvv-bg);
  color: var(--cvv-fg);
  font: inherit;
}
.cvv-field input::placeholder { color: var(--cvv-fg-dim); }
.cvv-field input:focus, .cvv-field select:focus {
  border-color: var(--cvv-accent);
}

/* Honeypot — visually and a11y hidden but still rendered (so naive bots see it). */
.cvv-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.cvv-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(250, 204, 21, 0.04);
  border: 1px solid var(--cvv-border);
  border-radius: var(--cvv-radius-sm);
  padding: 12px;
}
.cvv-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--cvv-accent);
}
.cvv-consent label { font-size: 0.92rem; font-weight: 500; color: var(--cvv-fg-muted); }

.cvv-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--cvv-radius);
  background: var(--cvv-accent);
  color: var(--cvv-bg);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.cvv-submit:hover { background: var(--cvv-accent-press); }
.cvv-submit:active { transform: translateY(1px); }
.cvv-submit[disabled] { opacity: 0.6; cursor: not-allowed; }

.cvv-status {
  margin-top: 6px;
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--cvv-fg-muted);
}
.cvv-status[data-state="ok"] { color: var(--cvv-success); }
.cvv-status[data-state="err"] { color: var(--cvv-danger); }

/* Final CTA */
.cvv-finalcta {
  background: linear-gradient(180deg, var(--cvv-surface) 0%, var(--cvv-bg) 100%);
  border-top: 1px solid var(--cvv-border);
  border-bottom: 1px solid var(--cvv-border);
  padding: clamp(40px, 7vw, 80px) 0;
}
.cvv-finalcta h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 10px; }
.cvv-finalcta p { margin: 0 0 22px; color: var(--cvv-fg-muted); }

/* Footer */
.cvv-footer {
  padding: 32px 0 48px;
  color: var(--cvv-fg-dim);
  font-size: 0.9rem;
}
.cvv-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--cvv-border);
  padding-top: 24px;
}
.cvv-footer a { color: var(--cvv-fg-muted); text-decoration: none; }
.cvv-footer a:hover { color: var(--cvv-accent); }
.cvv-footer__copy { margin: 0; }
.cvv-footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Thanks page */
.cvv-thanks {
  padding: clamp(56px, 10vw, 120px) 0;
  text-align: center;
}
.cvv-thanks h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.cvv-thanks p { color: var(--cvv-fg-muted); max-width: 56ch; margin: 0 auto 18px; }
.cvv-eyebrow--center { justify-content: center; }
.cvv-thanks .cvv-thanks__back { margin-top: 24px; }
.cvv-thanks__pulse {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--cvv-accent);
  margin: 0 auto 22px;
  box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.5);
  animation: cvv-pulse 1.8s ease-out 1;
}
@keyframes cvv-pulse {
  0% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.55); }
  100% { box-shadow: 0 0 0 28px rgba(250, 204, 21, 0); }
}

/* Privacy page specifics */
.cvv-prose h2 { margin-top: 28px; }
.cvv-prose ul { padding-left: 1.1rem; }
.cvv-prose li { margin-bottom: 6px; color: var(--cvv-fg-muted); }
.cvv-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.08);
  color: var(--cvv-accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Responsive — 390x844 (iPhone 12/13/14 width) must not overflow horizontally. */
@media (max-width: 480px) {
  html, body { font-size: 16px; }
  .cvv-hero h1 { font-size: 2rem; }
  .cvv-hero__form { padding: 18px; border-radius: 12px; }
  .cvv-nav__cta { padding: 0 12px; font-size: 0.9rem; }
  .cvv-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* 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;
  }
  .cvv-thanks__pulse { animation: none; }
}

/* Hidden visually but available to screen readers */
.cvv-vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
