/* ═══════════════════════════════════════════════════
   PINDRO — style.css
   Mobile-first · Dark palette · Precision tool aesthetic
═══════════════════════════════════════════════════ */

:root {
  --bg: #09090b;
  --bg-2: #111113;
  /* R11: Removed unused --bg-3 variable */
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --accent: #22d3ee;
  --accent-dim: rgba(34,211,238,0.12);
  --accent-mid: rgba(34,211,238,0.3);
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --red: #f87171;
  --red-bg: rgba(248,113,113,0.1);
  --amber: #fbbf24;
  --amber-bg: rgba(251,191,36,0.1);
  --green: #4ade80;
  --green-bg: rgba(74,222,128,0.1);
  --radius: 8px;
  --radius-lg: 14px;
  --max-w: 900px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Courier New', 'Lucida Console', monospace;
  --focus-ring: 0 0 0 3px rgba(34,211,238,0.45);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Consistent, visible focus rings for keyboard navigation */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius);
}

/* fieldset reset — removes default browser border/padding */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  padding: 0;
  margin-bottom: 16px;
  display: block;
  width: 100%;
}

.hidden { display: none !important; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ═══════════════════════════════════════════════
   TERMINAL OVERLAY
═══════════════════════════════════════════════ */

#terminal-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

#skip-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.28);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  transition: color 0.2s;
  z-index: 10;
}
#skip-btn:hover { color: rgba(255,255,255,0.55); }
#skip-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.7);
}

#terminal-window {
  width: 100%;
  max-width: 720px;
  background: #0d0d0f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  overflow: hidden;
}

.terminal-titlebar {
  background: #1c1c1e;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.terminal-title {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-left: 8px;
  font-family: var(--font);
  letter-spacing: 0.02em;
}

#terminal-body {
  padding: 20px;
  height: 420px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
#terminal-body::-webkit-scrollbar { width: 4px; }
#terminal-body::-webkit-scrollbar-track { background: transparent; }
#terminal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.tline          { display: block; }
.tline-cmd      { color: #e2e8f0; }
.tline-info     { color: #a1a1aa; }
.tline-header   { color: #71717a; }
.tline-data     { color: #94a3b8; }
.tline-data-red { color: var(--red); }
.tline-warn     { color: var(--amber); }
.tline-error    { color: var(--red); font-weight: bold; }
.tline-punchline { color: var(--accent); font-size: 15px; margin-top: 8px; }

.cursor {
  display: inline-block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  animation: blink 1s step-end infinite;
}

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

/* ═══════════════════════════════════════════════
   NAV
   R17: Targeting <main> instead of div#main-page
═══════════════════════════════════════════════ */

main#main-page { min-height: 100vh; }

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,9,11,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 7px 14px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.nav-cta:hover {
  color: var(--text);
  border-color: var(--accent-mid);
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */

.hero {
  padding: 80px 0 60px;
  text-align: center;
  width: 100%;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.blink-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

h1 {
  font-size: clamp(28px, 5.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.subhead {
  font-size: clamp(15px, 2.5vw, 17px);
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.cta-sub {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════
   SCORE STRIP
═══════════════════════════════════════════════ */

.score-strip {
  padding: 48px 0 64px;
  width: 100%;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strip-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.strip-label em { font-style: normal; color: var(--text-2); }

.score-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.score-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
  transition: border-color 0.2s;
}
.score-card:hover { border-color: var(--border-strong); }

.score-icon { width: 28px; height: 28px; margin: 0 auto 12px; }
.score-icon svg { width: 100%; height: 100%; }

.score-card.red   .score-icon { color: var(--red); }
.score-card.amber .score-icon { color: var(--amber); }
.score-card.green .score-icon { color: var(--green); }

.score-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.score-card.red   .score-value { color: var(--red); }
.score-card.amber .score-value { color: var(--amber); }
.score-card.green .score-value { color: var(--green); }

.score-label {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 8px;
  line-height: 1.3;
}

.score-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}
.score-card.red   .score-status { background: var(--red-bg);   color: var(--red); }
.score-card.amber .score-status { background: var(--amber-bg); color: var(--amber); }
.score-card.green .score-status { background: var(--green-bg); color: var(--green); }

/* ═══════════════════════════════════════════════
   PAIN POINTS
═══════════════════════════════════════════════ */

.pain-section { padding: 72px 0 72px; width: 100%; }

.pain-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pain-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.pain-card:hover { border-color: var(--border-strong); }

.pain-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 16px; }
.pain-icon svg { width: 100%; height: 100%; }

.pain-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.pain-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ═══════════════════════════════════════════════
   SURVEY TEASE
═══════════════════════════════════════════════ */

.survey-tease { padding: 0 0 72px; width: 100%; }

.tease-card {
  background: var(--bg-2);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
}
.tease-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg, rgba(34,211,238,0.4), rgba(34,211,238,0.05), rgba(34,211,238,0.2));
  z-index: -1;
}

.tease-card h2 {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.tease-card p { font-size: 14px; color: var(--text-2); margin-bottom: 28px; }

/* ═══════════════════════════════════════════════
   SOCIAL PROOF
═══════════════════════════════════════════════ */

.social-proof {
  padding: 48px 0;
  width: 100%;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.proof-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.avatar-stack { display: flex; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #000;
  margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }

.av1 { background: #22d3ee; }
.av2 { background: #a78bfa; }
.av3 { background: #34d399; }
.av4 { background: #fb923c; }
.av5 { background: #f472b6; }

.proof-row p { font-size: 14px; color: var(--text-2); }
#counter { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* +1 bubble animation on form submit */
.counter-wrap {
  position: relative;
  display: inline-block;
}

.plus-one-bubble {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  white-space: nowrap;
  pointer-events: none;
  animation: bubble-rise 2s ease-out forwards;
}

@keyframes bubble-rise {
  0%   { opacity: 0; transform: translateX(-50%) translateY(4px); }
  15%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  70%  { opacity: 1; transform: translateX(-50%) translateY(-12px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-24px); }
}

/* ═══════════════════════════════════════════════
   SURVEY SECTION
═══════════════════════════════════════════════ */

.survey-section {
  padding: 0 0 96px;
  border-top: 1px solid var(--border);
}

.survey-header {
  text-align: center;
  padding: 64px 0 40px;
}
.survey-header h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.survey-header p { font-size: 14px; color: var(--text-2); }

/* R3: Honeypot hardened — visibility:hidden + zero size prevents
   aggressive autofill tools from filling an off-screen input.
   aria-hidden="true" on the wrapper handles screen readers. */
.hp-field {
  visibility: hidden;
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Question blocks */
.survey-q {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

/* R14: Use explicit .survey-q-last class instead of :last-of-type.
   :last-of-type matched both the last <div class="survey-q"> (Q4)
   AND the last <fieldset class="survey-q"> (Q6) because they are
   different element types — removing the divider from Q4 unintentionally. */
.survey-q-last {
  border-bottom: none;
}

.q-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
  color: var(--text);
  cursor: default;
}

.q-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}

.req { color: var(--accent); margin-left: 3px; }

.q-opt {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 8px;
  letter-spacing: 0.02em;
}

/* Radio options */
.radio-group { display: flex; flex-direction: column; gap: 10px; }

.radio-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.radio-opt:hover {
  border-color: var(--accent-mid);
  background: var(--accent-dim);
}
.radio-opt input[type="radio"] { display: none; }
.radio-opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.radio-opt span { font-size: 14px; color: var(--text-2); transition: color 0.15s; }
.radio-opt:has(input:checked) span { color: var(--text); }

/* Keyboard focus: tab focuses the hidden input, style the label via :focus-within */
.radio-opt:focus-within {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
  outline: none;
}

/* Checkbox options */
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }

.check-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.check-opt:hover {
  border-color: var(--accent-mid);
  background: var(--accent-dim);
}
.check-opt input[type="checkbox"] { display: none; }
.check-opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.check-opt span { font-size: 14px; color: var(--text-2); transition: color 0.15s; }
.check-opt:has(input:checked) span { color: var(--text); }
.check-opt:focus-within {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
  outline: none;
}

/* Textarea */
textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.15s;
  line-height: 1.6;
}
textarea:focus { outline: none; border-color: var(--accent-mid); box-shadow: var(--focus-ring); }
textarea::placeholder { color: var(--text-3); }

.char-count {
  text-align: right;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 6px;
}

/* Email input */
input[type="email"] {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: 12px 14px;
  transition: border-color 0.15s;
}
input[type="email"]:focus { outline: none; border-color: var(--accent-mid); box-shadow: var(--focus-ring); }
input[type="email"]::placeholder { color: var(--text-3); }

.field-note { font-size: 12px; color: var(--text-3); margin-top: 8px; }

/* Error */
.form-error {
  background: var(--red-bg);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: var(--radius);
  color: var(--red);
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

/* Submit button */
#submit-btn {
  width: 100%;
  background: var(--accent);
  color: #000;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  padding: 15px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: opacity 0.2s, transform 0.15s;
}
#submit-btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
#submit-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
#submit-btn:focus-visible { box-shadow: var(--focus-ring); outline: none; }

.submit-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 12px;
}

/* Confirmation */
.confirm-wrap { text-align: center; padding: 80px 20px; }

.confirm-icon {
  width: 64px;
  height: 64px;
  background: var(--green-bg);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  color: var(--green);
}
.confirm-icon svg { width: 28px; height: 28px; }

.confirm-wrap h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.confirm-wrap p {
  font-size: 15px;
  color: var(--text-2);
  max-width: 460px;
  margin: 0 auto 12px;
  line-height: 1.65;
}
.confirm-sub a { color: var(--accent); text-decoration: none; }
.confirm-sub a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */

footer { border-top: 1px solid var(--border); padding: 28px 20px; }

.footer-text { text-align: center; font-size: 12px; color: var(--text-3); }
.footer-text a { color: var(--text-3); text-decoration: none; }
.footer-text a:hover { color: var(--text-2); }

/* ═══════════════════════════════════════════════
   prefers-reduced-motion
   Collapses all animations and transitions for
   users with OS motion sensitivity enabled.
═══════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════════ */

@media (max-width: 640px) {
  #terminal-body { height: 340px; font-size: 11.5px; }

  .hero { padding: 56px 0 44px; }

  .score-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .score-cards .score-card:last-child { grid-column: 1 / -1; }

  .pain-cards { grid-template-columns: 1fr; gap: 12px; }

  .tease-card { padding: 36px 24px; }

  .proof-row { gap: 12px; }

  .survey-header { padding: 48px 0 32px; }
}

@media (max-width: 400px) {
  #terminal-body { height: 300px; font-size: 11px; }
}
