:root {
  /* ── Exact Nnabo palette ── */
  --coral:      #FF4D24;
  --coral-deep: #DE3A10;
  --coral-rgb:  255,77,36;
  --coral-soft: rgba(255,77,36,0.10);

  --espresso:   #17120E;
  --espresso-2: #211913;
  --ink:        #17130F;

  /* Page tokens */
  --bg:      #17120E;
  --surface: #211913;
  --border:  rgba(255,255,255,0.08);
  --white:   #FFFFFF;
  --text:    #EDE8E3;
  --muted:   #8A8178;

  --radius: 14px;

  --display: 'Sora', 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Layout wrap (matches main app --wrap: 1160px) ── */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav / Header ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(23,18,14,0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .2s, background .2s;
}

.nav.scrolled {
  background: rgba(23,18,14,0.97);
  border-bottom-color: var(--border);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* ── Brandmark ── */
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

/* The coral tile — set via the class so no inline styles needed */
.brandmark .tile {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.brandmark .tile.coral { background: var(--coral); }

.brandmark .word {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--white);
  line-height: 1;
}

.brandmark .word b {
  font-weight: 800;
  color: var(--white);
}

/* ── Nav CTA buttons (mirrors .btn.btn-coral from main app) ── */
.nav-cta { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
  line-height: 1;
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}

.btn-coral:hover  { background: var(--coral-deep); }
.btn-coral:active { transform: scale(0.97); }

/* ── Hero ── */
.hero {
  padding: 72px 24px 48px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  background: rgba(var(--coral-rgb), 0.10);
  border: 1px solid rgba(var(--coral-rgb), 0.22);
  border-radius: 100px;
  padding: 5px 13px;
  margin-bottom: 26px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 18px;
}

.hero h1 .accent { color: var(--coral); }

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero-sub strong { color: var(--text); font-weight: 600; }

/* ── Signup card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  max-width: 480px;
  margin: 0 auto 48px;
}

.card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder { color: rgba(138,129,120,0.55); }

.field input:focus,
.field select:focus {
  border-color: var(--coral);
  background: rgba(var(--coral-rgb), 0.05);
}

.field input.error,
.field select.error { border-color: #e84343; }

.select-wrap { position: relative; }

.select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--muted);
  pointer-events: none;
}

.select-wrap select { padding-right: 36px; cursor: pointer; }
.select-wrap select option { background: var(--espresso-2); color: var(--white); }

.fallback-picker { display: none; margin-top: 4px; }
.fallback-picker.visible { display: block; }

.fallback-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
}

.fallback-divider::before,
.fallback-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

.error-msg {
  display: none;
  font-size: 13px;
  color: #e84343;
  margin-top: 6px;
}
.error-msg.visible { display: block; }

.submit-btn {
  width: 100%;
  background: var(--coral);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.2px;
}

.submit-btn:hover:not(:disabled) { background: var(--coral-deep); }
.submit-btn:active:not(:disabled) { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Form states ── */
.state-success,
.state-error-global {
  display: none;
  text-align: center;
  padding: 12px 0 4px;
}
.state-success.visible,
.state-error-global.visible { display: block; }

.state-success p { color: var(--text); font-size: 15px; line-height: 1.5; }
.state-success .big { font-size: 32px; margin-bottom: 8px; }
.state-error-global p { color: #e84343; font-size: 14px; }

/* ── Features ── */
.features {
  max-width: 560px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.features-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  text-align: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(var(--coral-rgb), 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
}

.feature-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}

.feature-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ── Util ── */
.hidden { display: none !important; }

@media (max-width: 400px) {
  .hero h1 { font-size: 30px; letter-spacing: -1.2px; }
}
