/* ============================================================================
   Team Syzygy — Day-1 launch site styles
   ----------------------------------------------------------------------------
   Principles (see MVP brief):
   - Mobile-first: base rules target small screens; media queries scale up.
   - Simple + readable: plain CSS, no build step, generously commented.
   - Manager-first: the primary CTA is visually dominant; partner path is quieter.
   - Design tokens live in :root so future theming / Next.js migration is easy.
   ============================================================================ */

/* ===== DESIGN TOKENS ===================================================== */
:root {
  /* Brand palette (carried over from the original placeholder page) */
  --bg-top: #0f172a;        /* deep slate */
  --bg-bottom: #1e293b;     /* lighter slate */
  --surface: #1e293b;       /* card / panel background */
  --surface-2: #273449;     /* raised panel background */
  --border: #334155;        /* subtle borders */
  --text: #f8fafc;          /* primary text */
  --text-muted: #cbd5e1;    /* secondary text */
  --text-subtle: #94a3b8;   /* tertiary text */
  --accent: #38bdf8;        /* sky-blue accent (primary actions) */
  --accent-strong: #0ea5e9; /* accent hover */
  --accent-ink: #0f172a;    /* text placed on top of the accent colour */

  /* Spacing + shape */
  --radius: 12px;
  --radius-lg: 20px;
  --maxw: 1080px;           /* max content width on large screens */
  --gap: 1rem;
}

/* ===== RESET / BASE ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;      /* smooth jumps for in-page CTA anchors */
  scroll-padding-top: 80px;     /* offset so the sticky header never hides headings */
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Constrain readable content and centre it with side padding on mobile. */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

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

/* Accessibility: a clear focus ring for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ===== BUTTONS ========================================================= */
/* Shared button base. Modifiers below set the manager-first hierarchy. */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.2s ease, border-color 0.2s ease;
}

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

/* Primary = manager/HR/founder call to action (dominant). */
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

/* Secondary = partner interest (intentionally quieter / outlined). */
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Disabled state: used for consent-gated Send button. */
.btn:disabled,
.btn:disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

.btn-secondary:disabled,
.btn-secondary:disabled:hover {
  background: transparent;
  color: var(--text-subtle);
  border-color: var(--border);
}

/* ===== SITE HEADER (sticky nav) ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  min-height: 64px;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.2px;
}

/* Nav links are hidden on mobile to keep the header clean; the hero CTAs
   provide the primary paths on small screens. They appear from tablet up. */
.site-nav {
  display: none;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* ===== SECTIONS ======================================================== */
.section {
  padding-block: 56px;
}

.section-alt {
  /* Subtle band to visually separate alternating sections. */
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--border);
}

.section-title {
  font-size: 1.6rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 100%;
}

/* ===== HERO ============================================================ */
.hero {
  padding-block: 72px 64px;
  text-align: center;
}

.hero h1 {
  font-size: 2.1rem;
  max-width: 20ch;
  margin-inline: auto;
}

.hero .lede {
  margin-inline: auto;
  margin-bottom: 2rem;
  max-width: 42ch;
  font-size: 1.2rem;
}

/* CTA row: stacks on mobile, sits side by side on larger screens. */
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  max-width: 340px;
  margin-inline: auto;
}

/* ===== "WHAT IT IS" FEATURE GRID ======================================= */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card h3 {
  font-size: 1.15rem;
  color: var(--text);
}

.card p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* ===== SAMPLE REPORT (Phase 1B) ======================================== */
.report-sample {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 1.5rem;
}

.report-card {
  /* Slightly raised surface so the sample feels like a real artefact. */
  background: var(--surface-2);
}

.report-card__label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.report-card h3 {
  font-size: 1.35rem;
}

.report-card > p {
  font-size: 1.02rem;
}

/* Report-in-one-minute: three quick readings, stacked and easy to scan. */
.report-metrics {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.report-metrics li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.report-metrics__value {
  font-weight: 800;
  color: var(--accent);
  min-width: 5.5em;
  flex-shrink: 0;
}

.report-metrics__key {
  color: var(--text-muted);
  font-size: 1rem;
}

/* The conversation prompt is the actionable payoff, so give it emphasis. */
.report-prompt-list {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 12px;
}

.report-prompt {
  margin: 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(56, 189, 248, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.1rem;
  color: var(--text);
  font-style: italic;
}

.report-card__foot {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-subtle);
}

.report-actions {
  margin-top: 1.5rem;
  text-align: center;
}

.report-quadrants {
  margin-top: 1.25rem;
  max-width: 100%;
}

.report-quadrants__intro {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.report-quadrants__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--text-muted);
}

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

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

.muted {
  color: var(--text-subtle);
}

/* Example survey dimension — illustrates respondent 1–7 scales (report-style layout). */
.survey-example {
  margin-top: 1.5rem;
  margin-bottom: var(--gap);
  background: var(--surface-2);
}

.survey-example__title {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.survey-example__intro {
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.survey-example__group {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
}

/* Operating spectrum: preference + norm share dimension pole labels. */
.survey-example__group--spectrum {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Explicitness: different question type + clarity endpoints only here. */
.survey-example__group--explicitness {
  margin-top: 0;
  padding-top: 1.25rem;
  border: 1px solid var(--border);
  border-top: 1px solid var(--accent);
  background: rgba(56, 189, 248, 0.06);
  border-radius: 0 0 var(--radius) var(--radius);
}

.survey-example__group-heading {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.survey-example__stem {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.survey-example__poles p {
  margin: 0.35rem 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.survey-example__poles {
  margin-bottom: 1.25rem;
}

.survey-example__poles strong {
  color: var(--accent);
}

.survey-example__signal {
  margin-bottom: 1rem;
}

.survey-example__signal:last-child {
  margin-bottom: 0;
}

.survey-example__signal-label {
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 1rem;
}

.survey-example__scale-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.survey-example__scale-cell {
  text-align: center;
  padding: 0.5rem 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.survey-example__scale-cell.is-selected {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent);
  color: var(--text);
  font-weight: 700;
}

.survey-example__scale-ends {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
}

.survey-example__scale-ends strong {
  color: var(--accent);
}

@media (max-width: 719px) {
  .survey-example__scale-track {
    gap: 0.2rem;
  }

  .survey-example__scale-cell {
    font-size: 0.8rem;
    padding: 0.35rem 0;
  }

  .survey-example__scale-ends {
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* ===== TRUST / ANONYMITY (Phase 1C) ==================================== */
.trust-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.trust-item h3 {
  font-size: 1.15rem;
  color: var(--text);
}

.trust-item p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* ===== LEAD FORM (Phase 1D) ============================================ */
/* Narrower container keeps the form comfortable to read/fill on desktop. */
.container--narrow {
  max-width: 680px;
}

.lead-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

/* Inputs share one look; box-sizing keeps widths aligned. */
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: var(--text-subtle);
}

/* Two-up rows collapse to a single column on mobile. */
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Partner path choices (radio cards) + inline consent checkbox. */
.partner-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 0;
  display: grid;
  gap: 12px;
}

/* Fix: display:grid above overrides the HTML hidden attribute; force hide. */
.partner-block[hidden] {
  display: none;
}

.partner-block legend {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  padding: 0 6px;
}

.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.choice strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

.choice input {
  width: auto;
  margin-top: 3px;
}

.choice--inline {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.field--checkbox {
  margin-top: 0.25rem;
}

.lead-form__submit {
  justify-self: start;
  min-width: 160px;
}

.form-submit-hint {
  margin: -0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Status line: neutral by default, coloured for success/error states. */
.form-status {
  margin: 0;
  font-size: 0.95rem;
  min-height: 1.2em;
}

.form-status--error {
  color: #fca5a5;
}

.form-status--success {
  color: #86efac;
}

/* ===== PARTNERS (Phase 1E) ============================================= */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 1.5rem;
}

.partner-cta {
  margin-top: 1.5rem;
}

/* ===== FOOTER ========================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 32px;
  color: var(--text-subtle);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a {
  color: var(--text-muted);
}

/* ===== RESPONSIVE SCALING (tablet / desktop) =========================== */
@media (min-width: 720px) {
  .site-nav {
    display: flex;
  }

  .hero {
    padding-block: 96px 80px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* CTAs sit side by side once there is room. */
  .cta-row {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .cta-row .btn {
    min-width: 200px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Sample report: focus area beside the suggested conversation. */
  .report-sample {
    grid-template-columns: 1fr 1fr;
  }

  /* Trust points in a responsive multi-column grid. */
  .trust-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Paired form fields sit side by side once there's room. */
  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  /* Two partner paths side by side. */
  .partner-grid {
    grid-template-columns: 1fr 1fr;
  }

  .survey-example__scale-track {
    gap: 0.35rem;
  }
}

/* Honeypot anti-spam field: visually removed but still submitted by bots.
   Off-screen (not display:none) so naive bots still fill and reveal themselves. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
