/* OriginAI Labs — "Coming soon" landing page.
   Built on the brand tokens in tokens.css per DESIGN.md.
   Division: Labs (amber accent, Bricolage Grotesque headlines).
   Theme: light (brand default/backbone). */

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

html, body {
  height: 100%;
}

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

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* — top bar: wordmark + status — */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: clamp(20px, 4vw, 40px) clamp(20px, 6vw, 64px) 0;
}

.wordmark {
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.wordmark-sub {
  font-weight: 400;
  font-variation-settings: 'wght' 400;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .status-dot {
    animation: pulse 3.4s var(--ease) infinite;
  }
}

/* — hero headline — */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 32px clamp(20px, 6vw, 64px);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 6.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero h1 span {
  display: block;
}

.hero h1 .dim {
  color: var(--text-muted);
}

/* — bottom bar: contact + email capture — */

.bottombar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding: 20px clamp(20px, 6vw, 64px) 32px;
  border-top: 1px solid var(--border);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.55;
  color: var(--text-secondary);
}

.capture-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.capture {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: min(480px, 100%);
}

.input {
  flex: 1;
  min-height: 44px;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

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

.input:hover {
  border-color: var(--n-400);
}

.input:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 0;
  border-color: var(--accent-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  border: none;
  padding: 8px 20px;
  border-radius: var(--r-md);
  min-height: 44px;
  transition: background var(--ease) 120ms;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fill-text);
}

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

.btn-primary:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.form-msg {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-secondary);
}

.form-msg.success {
  color: var(--success-text);
}

.form-msg.error {
  color: var(--danger-text);
}

.honeypot {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .bottombar {
    flex-direction: column;
    align-items: stretch;
  }

  .capture-wrap {
    justify-content: stretch;
  }

  .capture {
    width: 100%;
  }

  .form-msg {
    right: auto;
    left: 0;
  }
}
