/* Waitlist Configurator Styles (Ogilvy/Premium Aesthetic) */

/* ---------------------------------------------------------------------------
   SELF-CONTAINED DESIGN TOKENS.
   The landing pages are PUBLIC (_is_public allows /landing/*), but /design.css
   sits at the gated site root and returns 302→/login for anonymous visitors.
   So real visitors never received the design system, leaving every custom
   property undefined. Rules written as var(--x, #fallback) survived; the two
   written as bare var(--electric) computed to their INITIAL value (transparent)
   and — being higher-specificity — silently beat the working fallback rule,
   rendering the primary submit button invisible on the dark pages.
   Defining the tokens here (a public stylesheet that loads on all 8 pages)
   makes the landing funnel self-contained and independent of the gate.
   --------------------------------------------------------------------------- */
:root {
  --electric: #ffb000;
  --green: #4B1D8C;
  --amber: #ffb000;
  --ink: #241e3e;
  --ink-soft: #6f6885;
  --border: #d8d3de;
  --border-soft: #e3e8e3;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Persona accent — pages set --page-accent; CTA role is Amber per brand primitives */
  --page-accent: var(--electric, #ffb000);
  --page-accent-ink: #120e2c;
}

/* Smooth anchor scroll from hero/end-card CTAs to the form.
   scroll-margin keeps the form from hiding under the top edge on jump. */
html { scroll-behavior: smooth; }
#waitlist-container { scroll-margin-top: 32px; }

/* Hero CTA — uses --page-accent (persona theme) with electric fallback. */
.hero-cta {
  display: inline-block;
  background: var(--page-accent, var(--electric, #ffb000));
  color: var(--page-accent-ink, #120e2c);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 999px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--page-accent, #ffb000) 28%, transparent);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--page-accent, #ffb000) 38%, transparent);
}
/* Trust line under the hero CTA. #8a988f failed WCAG AA on the light pages
   (2.83:1). No single grey clears 4.5:1 against BOTH a near-white and a
   near-black background, so the light value is the default and the dark pages
   opt in via body[data-theme="dark"]. */
.hero-trust {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: #6f6885;          /* 7.0:1 on the light #fbfaf8 pages */
  letter-spacing: 0.01em;
}
body[data-theme="dark"] .hero-trust { color: #c8d0c8; }  /* legible over dark photo hero */

/* Consent row. Colour lives here (not inline in waitlist.js) so the dark pages
   can override it — an inline style would win over any stylesheet rule. */
.yw-consent { color: #6f6885; }
body[data-theme="dark"] .yw-consent { color: #c8d0c8; }
.yw-consent input[type="checkbox"] {
  width: 18px;             /* was the 13px UA default — small tap/vision target */
  height: 18px;
  accent-color: var(--page-accent, var(--electric));
}

/* Proof strip — 2-3 cited stats between hero and content. Sources are named
   as TEXT, never links: this is a conversion page and every outbound link is
   an exit path (plan R4). Contrast: values clear AA on both themes. */
.proof-strip {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 24px 8px;
  text-align: center;
}
.proof-item { max-width: 300px; }
.proof-item strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ink, #241e3e);
  margin-bottom: 6px;
}
.proof-item span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6f6885;          /* 7.0:1 on light */
}
body[data-theme="dark"] .proof-item strong { color: #ffffff; }
body[data-theme="dark"] .proof-item span { color: #8a988f; }  /* 7.3:1 on #0a140f */

/* End-card CTA — the page used to dead-end on a pun; give it an exit
   back to the form. Inherits the end-card's inverted color scheme. */
.end-cta {
  display: inline-block;
  margin-top: 28px;
  background: var(--page-accent, var(--electric, #ffb000));
  color: var(--page-accent-ink, #120e2c);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform 0.12s ease;
}
.end-cta:hover { transform: translateY(-2px); }

.yugawatt-waitlist-form {
  background: #ffffff;
  border: 1px solid var(--border-soft, #e3e8e3);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 12px 36px rgba(20, 32, 26, 0.08);
  max-width: 480px;
  width: 100%;
  /* Without this, width:100% + 32px padding each side overflowed the 390px
     mobile viewport by ~42px and scrolled the whole page sideways. */
  box-sizing: border-box;
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.yw-form-header h3 {
  margin: 0 0 24px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink, #241e3e);
  letter-spacing: -0.02em;
}

.yw-input-group {
  margin-bottom: 20px;
}

.yw-input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6f6885;
  margin-bottom: 8px;
}

.yw-input-group input,
.yw-input-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border, #c9d2cb);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fbfcfb;
  color: var(--ink, #241e3e);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.yw-input-group input:focus,
.yw-input-group select:focus {
  outline: 2px solid var(--ink, #241e3e);
  outline-offset: 2px;
  border-color: var(--ink, #241e3e);
  background: #ffffff;
}

.yw-submit-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 8px;
  background: var(--page-accent, var(--electric, #ffb000));
  color: var(--page-accent-ink, #120e2c);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, filter 0.2s;
}

.yw-submit-btn:hover {
  filter: brightness(1.08);
}

.yw-submit-btn:active {
  transform: translateY(1px);
}

.yw-submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.yw-status-message {
  margin-top: 16px;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
}

.yw-status-message.error {
  background: #fdeaea;
  color: #b4231f;
  border: 1px solid #f6c9c7;
}

/* Success State */
.yw-success-state {
  text-align: center;
  padding: 20px 0;
}

.yw-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #effaf3;
  color: var(--green, #4B1D8C);
  border-radius: 50%;
  font-size: 32px;
  margin-bottom: 20px;
}

.yw-success-state h4 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  color: var(--ink, #241e3e);
}

.yw-success-state p {
  color: #6f6885;
  margin: 0;
  line-height: 1.5;
}

/* ── Progressive 2-step form ── */
.yw-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.yw-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eef2ee;
  color: #6f6885;
  border: 1px solid #d4ddd4;
}
.yw-step-dot.is-active {
  background: var(--page-accent, var(--electric, #ffb000));
  color: var(--page-accent-ink, #120e2c);
  border-color: transparent;
}
.yw-step-dot.is-done {
  background: color-mix(in srgb, var(--page-accent, #ffb000) 18%, #fff);
  color: var(--page-accent, #4B1D8C);
  border-color: color-mix(in srgb, var(--page-accent, #ffb000) 35%, #fff);
}
.yw-step-line {
  width: 36px;
  height: 2px;
  background: #d4ddd4;
  border-radius: 1px;
}
.yw-step-hint {
  margin: -8px 0 0;
  font-size: 0.82rem;
  color: #6f6885;
  font-weight: 500;
}
.yw-form-meta {
  text-align: center;
  margin-top: 12px;
  font-size: 0.8rem;
  color: #6f6885;
}
.yw-skip-btn,
.yw-back-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: none;
  background: transparent;
  color: #6f6885;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.yw-skip-btn:hover,
.yw-back-btn:hover {
  color: var(--page-accent, #4B1D8C);
}
.yw-back-btn {
  text-decoration: none;
  font-weight: 500;
  margin-top: 4px;
}

/* Focus ring follows page accent */
.yw-input-group input:focus,
.yw-input-group select:focus {
  outline: 2px solid var(--page-accent, var(--ink, #241e3e));
  outline-offset: 2px;
  border-color: var(--page-accent, var(--ink, #241e3e));
  background: #ffffff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-accent, #ffb000) 18%, transparent);
}

/* Brand Book wordmark utility */
.yw-wordmark{font-family:"Birthstone",cursive;font-weight:400;color:#0B7A4B;text-transform:none;letter-spacing:0.01em;line-height:1.15}
