/* Canvoz landing page — palette mirrored from constants/colors.ts (governed tokens).
   Standalone static site; not part of the RN app. */

:root {
  /* Brand palette */
  --tangerine: #e8906a;
  --tangerine-700: #c56e4a;
  --tangerine-100: #fdf2ec;
  --charcoal-blue: #274156;
  --charcoal-900: #1c2f3e;
  --charcoal-500: #3d5a72;
  --canary: #f8f272;

  /* Ink ramp */
  --ink-900: #1d1f1e;
  --ink-700: #4a4f4c;
  --ink-500: #88958d;
  --ink-200: #e2e6e3;
  --ink-100: #f1f3f1;
  --white: #ffffff;

  /* Semantic (light theme) */
  --page: #f7f8f7;
  --card: #ffffff;
  --text-primary: var(--ink-900);
  --text-secondary: var(--ink-700);
  --text-muted: var(--ink-500);
  --border-hairline: var(--ink-200);
  --link: var(--tangerine-700);
  --danger: #b3261e;
  --success: #2f6b3d;

  /* Spacing scale (mirrors tokens/spacing.css) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  /* Radius */
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --tap-min: 44px;
}

/* Two font weights only: 400 and 500. */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--page);
  line-height: 1.5;
}

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

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ---- Hero ---- */
.hero {
  background: var(--charcoal-blue);
  color: var(--white);
  padding: var(--space-12) 0 var(--space-12);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
}

.brand .name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.tagline {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--canary);
  margin: 0 0 var(--space-4);
}

.hero h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 500;
  margin: 0 0 var(--space-4);
}

.hero p {
  font-size: 16px;
  line-height: 1.6;
  color: #e6ecf0;
  margin: 0 0 var(--space-2);
  max-width: 34em;
}

/* ---- Waitlist section ---- */
.waitlist {
  padding: var(--space-12) 0;
}

.waitlist h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 var(--space-2);
}

.waitlist .sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 var(--space-6);
  line-height: 1.6;
}

form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

label .opt {
  font-weight: 400;
  color: var(--text-muted);
}

input[type="email"],
input[type="tel"] {
  min-height: var(--tap-min);
  padding: 0 var(--space-4);
  font-size: 16px; /* >=16px avoids iOS zoom on focus */
  font-family: inherit;
  color: var(--text-primary);
  background: var(--card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
}

input:focus-visible {
  outline: 2px solid var(--tangerine);
  outline-offset: 2px;
  border-color: var(--tangerine);
}

button[type="submit"] {
  min-height: var(--tap-min);
  padding: 0 var(--space-6);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  color: var(--white);
  background: var(--tangerine);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
}

button[type="submit"]:hover { background: var(--tangerine-700); }
button[type="submit"]:focus-visible {
  outline: 2px solid var(--charcoal-blue);
  outline-offset: 2px;
}
button[type="submit"]:disabled {
  background: var(--ink-500);
  cursor: default;
}

/* Honeypot — visually hidden, off-screen, not display:none (some bots skip hidden). */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Status message */
.status {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  min-height: 1.5em;
}
.status[data-state="success"] { color: var(--success); font-weight: 500; }
.status[data-state="error"] { color: var(--danger); font-weight: 500; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border-hairline);
  padding: var(--space-8) 0 var(--space-12);
}

footer .links {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}

footer .links a {
  font-size: 14px;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
}

footer .note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero { padding: var(--space-8) 0; }
}
