/* Coachiqo web — mirrors mobile/src/theme/tokens.ts (D-017: red/black/white, dark only) */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('/assets/fonts/Poppins_400Regular.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('/assets/fonts/Poppins_500Medium.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('/assets/fonts/Poppins_600SemiBold.woff2') format('woff2'); }

:root {
  --bg: #000000;
  --surface: #141414;
  --surface-raised: #1e1e1e;
  --border: #2e2e2e;
  --border-focus: #5a5a5a;
  --text: #ffffff;
  --text-muted: #a8a8a8;
  --text-subtle: #8c8c8c;
  --accent: #d7262d;
  --accent-pressed: #b51e24;
  --success: #34c759;
  --danger: #ff8a80;
  --danger-surface: #2a1414;
  --radius: 12px;
  --gutter: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

/* Language: only the active language's blocks are shown */
/* Pages without a translation mark the English block data-fallback; es/de readers then see English plus a .notice. */
html[data-lang='en'] [lang]:not(html):not([lang='en']),
html[data-lang='tr'] [lang]:not(html):not([lang='tr']),
html[data-lang='es'] [lang]:not(html):not([lang='es']):not([data-fallback]),
html[data-lang='de'] [lang]:not(html):not([lang='de']):not([data-fallback]) { display: none !important; }
.notice { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; color: var(--text-muted); font-size: 14px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.wordmark { font-weight: 600; font-size: 24px; letter-spacing: -0.5px; text-decoration: none; color: var(--text); }
.wordmark .iq { color: var(--accent); }
.lang-switch { display: flex; gap: 6px; }
@media (max-width: 400px) { .lang-switch { gap: 4px; } .lang-switch button { min-width: 44px; padding: 0 8px; } .wordmark { font-size: 21px; } }
.lang-switch button {
  font: 500 13px/1 'Poppins', sans-serif; color: var(--text-muted); background: transparent;
  border: 1px solid var(--border); border-radius: 999px; min-width: 48px; min-height: 36px; padding: 0 12px; cursor: pointer;
}
.lang-switch button[aria-pressed='true'] { color: var(--text); border-color: var(--text); }

/* Hero */
.hero { text-align: center; padding: 64px 0 48px; }
.hero .logo { font-weight: 600; font-size: clamp(48px, 11vw, 88px); line-height: 1.1; letter-spacing: -1.5px; margin: 0; }
.hero .logo .iq { color: var(--accent); }
.hero .tagline { font-size: clamp(16px, 3.5vw, 20px); margin: 4px 0 32px; }
.hero h1 { font-weight: 600; font-size: clamp(22px, 4.6vw, 32px); line-height: 1.3; margin: 0 auto 16px; max-width: 640px; }
.hero .lead { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 32px 0 56px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.card h3 { font-weight: 600; font-size: 17px; margin: 0 0 8px; }
.card p { color: var(--text-muted); font-size: 15px; margin: 0; }
.card .num { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: 1px; margin-bottom: 12px; display: block; }

/* Waitlist form */
.waitlist { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px var(--gutter); margin-bottom: 64px; }
.waitlist h2 { font-weight: 600; font-size: 22px; margin: 0 0 6px; }
.waitlist > p { color: var(--text-muted); margin: 0 0 20px; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row input[type='email'] { flex: 1 1 260px; }
label.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
input[type='email'], input[type='password'] {
  font: 400 16px 'Poppins', sans-serif; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); min-height: 52px; padding: 0 16px; width: 100%;
}
input:focus { outline: none; border-color: var(--border-focus); }
input[aria-invalid='true'] { border-color: var(--danger); }
.btn {
  font: 600 16px/1 'Poppins', sans-serif; color: #fff; background: var(--accent); border: 0; border-radius: var(--radius);
  min-height: 52px; padding: 0 24px; cursor: pointer; flex: 0 0 auto;
}
.btn:hover { background: var(--accent-pressed); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.secondary { background: var(--surface-raised); border: 1px solid var(--border); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: 0 0 auto; }
.msg { margin-top: 16px; border-radius: var(--radius); padding: 12px 14px; font-size: 15px; display: none; }
.msg.show { display: block; }
.msg.error { background: var(--danger-surface); color: var(--danger); border: 1px solid #5a2420; }
.msg.ok { background: #0f2416; color: #a6f0bc; border: 1px solid #1f4a2c; }

/* Prose pages (legal, support, auth) */
.prose { padding: 24px 0 64px; }
.prose h1 { font-weight: 600; font-size: clamp(24px, 5vw, 32px); line-height: 1.25; margin: 8px 0 8px; }
.prose h2 { font-weight: 600; font-size: 18px; margin: 32px 0 8px; }
.prose h3 { font-weight: 600; font-size: 16px; margin: 20px 0 4px; }
.prose p, .prose li { color: #d6d6d6; font-size: 15px; }
.prose .meta { color: var(--text-subtle); font-size: 14px; }
.draft {
  background: #2a2410; border: 1px solid #5a4a1a; color: #f3d98b; border-radius: var(--radius);
  padding: 12px 14px; font-size: 14px; margin: 16px 0 8px;
}
.center-box { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 12px; }
.center-box .icon { font-size: 44px; }
.center-box p { color: var(--text-muted); max-width: 440px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 16px auto 0; width: 100%; text-align: left; }
.hint { color: var(--text-subtle); font-size: 13px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--text-subtle); font-size: 14px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 40px; }
  .btn { width: 100%; }
}

/* Home already shows the big logo in the hero; avoid the duplicate wordmark */
body.home .site-header .wordmark { visibility: hidden; }
