/* =============================================================================
 * ubild marketing site — styles
 * Brand source of truth: Marketing/Brand Pack/BRAND_STANDARD_FOR_AI.md
 * ============================================================================= */

:root {
  /* Brand palette — sympl-tokens.css */
  --navy:        #0c1a35;
  --navy-2:      #122040;
  --navy-3:      #1a2d4a;
  --navy-4:      #1f3558;
  --coral:       #e07857;
  --coral-deep:  #c75a3a;
  --cream:       #fafaf7;
  --cream-2:     #eeeae3;
  --cream-muted: rgba(250,250,247,0.6);
  --cream-bord:  rgba(250,250,247,0.10);
  --type:        "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Type scale */
  --h1: clamp(40px, 6.5vw, 78px);
  --h2: clamp(28px, 4vw, 44px);
  --h3: 20px;
  --body: 17px;
  --small: 14px;
  --eyebrow: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--type);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

a { color: var(--navy); }
::selection { background: var(--coral); color: var(--navy); }

/* Coral accents — applied around dots that act as the brand glyph */
.dot-coral { color: var(--coral); }
.dot-coral-deep { color: var(--coral-deep); }

/* ─── Header ───────────────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  color: var(--cream);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--cream-bord);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-link img { display: block; height: 32px; width: auto; }
.foot-logo img { height: 22px; }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--cream); }
@media (max-width: 640px) { .nav-links a:not(.cta-mini) { display: none; } }

.cta-mini {
  background: var(--coral);
  color: var(--navy) !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.cta-mini:hover { background: #f08c6c; }

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--cream);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) { .hero { padding: 56px 0 72px; } }
.hero h1 {
  font-size: var(--h1);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 24px 0 24px;
  max-width: 14ch;
}
.hero .lead {
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(250,250,247,0.78);
  margin: 0 0 40px;
  max-width: 38ch;
  line-height: 1.5;
}

.eyebrow {
  font-size: var(--eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral);
  margin: 0 0 16px;
}
.eyebrow.on-light { color: var(--coral-deep); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .1s ease, background .15s ease, border-color .15s ease;
  border: 0;
  cursor: pointer;
  min-height: 48px;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: var(--navy); }
.btn-primary:hover { background: #f08c6c; }
.btn-ghost { color: var(--cream); border: 1px solid var(--cream-bord); background: transparent; }
.btn-ghost:hover { background: var(--navy-3); border-color: rgba(250,250,247,0.20); }

/* ─── How it works (sections on cream) ─────────────────────────────────── */
.how, .cta-band { background: var(--cream); color: var(--navy); }
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: var(--h2);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 12px 0 16px;
}
.section-head p {
  font-size: 18px;
  color: rgba(12,26,53,0.68);
  margin: 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: white;
  border: 1px solid var(--cream-2);
  border-radius: 14px;
  padding: 28px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.step p { margin: 0; color: rgba(12,26,53,0.7); line-height: 1.6; }

/* ─── Trades ──────────────────────────────────────────────────────────── */
.trades { background: var(--cream-2); color: var(--navy); text-align: center; }
.trades h2 {
  font-size: var(--h2);
  font-weight: 800;
  margin: 12px 0 8px;
  letter-spacing: -0.015em;
}
.trades > .wrap > p {
  color: rgba(12,26,53,0.68);
  margin: 0;
}
.chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.chip {
  padding: 10px 18px;
  background: white;
  border: 1px solid rgba(12,26,53,0.10);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

/* ─── Why ─────────────────────────────────────────────────────────────── */
.why { background: var(--navy); color: var(--cream); }
.why .section-head h2 { color: var(--cream); }
.why .section-head p { color: rgba(250,250,247,0.7); }
.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .reasons { grid-template-columns: 1fr; } }
.reason {
  background: var(--navy-3);
  border: 1px solid var(--cream-bord);
  border-radius: 14px;
  padding: 28px;
}
.reason h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--cream);
}
.reason p {
  margin: 0;
  color: rgba(250,250,247,0.72);
  line-height: 1.6;
}

/* ─── CTA card ────────────────────────────────────────────────────────── */
.cta-band { text-align: center; }
.cta-card {
  background: white;
  border: 1px solid var(--cream-2);
  border-radius: 18px;
  padding: 56px 32px;
  max-width: 720px;
  margin: 0 auto;
}
.cta-card h2 {
  font-size: var(--h2);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.cta-card p {
  font-size: 18px;
  color: rgba(12,26,53,0.68);
  margin: 0 0 28px;
}
.cta-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(12,26,53,0.16);
  font-family: inherit;
  font-size: 16px;
  color: var(--navy);
  background: white;
}
.cta-form input[type="email"]:focus {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
  border-color: transparent;
}
.cta-form button {
  flex: 0 0 auto;
  background: var(--navy);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: 12px;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  min-height: 48px;
}
.cta-form button:hover { background: var(--navy-2); }
.form-note {
  font-size: 13px;
  color: rgba(12,26,53,0.55);
  margin-top: 14px;
}

/* ─── Footer ──────────────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(250,250,247,0.6);
  padding: 40px 0;
  font-size: 14px;
}
.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
footer a { color: rgba(250,250,247,0.75); text-decoration: none; }
footer a:hover { color: var(--cream); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-meta { font-size: 13px; }

/* ─── Cookie banner ───────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  background: var(--navy);
  color: var(--cream);
  border: 1px solid var(--cream-bord);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 18px 20px;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0;
}
.cookie-text {
  flex: 1 1 280px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(250,250,247,0.85);
}
.cookie-text strong { color: var(--cream); font-weight: 700; }
.cookie-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-actions .btn { min-height: 40px; padding: 10px 18px; font-size: 14px; }
.cookie-link {
  font-size: 13px;
  color: var(--coral);
  text-decoration: underline;
  margin-left: 4px;
}

/* ─── Standard pages (privacy / terms / cookies / contact / 404) ───────── */
.legal {
  background: var(--cream);
  color: var(--navy);
  padding: 64px 0 96px;
}
.legal .wrap { max-width: 760px; }
.legal h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.1;
}
.legal .updated {
  font-size: 13px;
  color: rgba(12,26,53,0.55);
  margin: 0 0 40px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.legal p, .legal li {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(12,26,53,0.85);
}
.legal ul { padding-left: 20px; margin: 8px 0 16px; }
.legal a { color: var(--coral-deep); text-decoration: underline; }
.legal a:hover { color: var(--navy); }
.legal .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 32px;
  text-decoration: none;
  color: var(--coral-deep);
}

/* ─── Contact + 404 (lighter pages) ─────────────────────────────────────── */
.simple-page {
  background: var(--cream);
  color: var(--navy);
  padding: 96px 0;
  min-height: calc(100vh - 200px);
}
.simple-page .wrap { max-width: 640px; text-align: center; }
.simple-page h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.simple-page p { font-size: 18px; line-height: 1.6; color: rgba(12,26,53,0.75); margin: 0 0 28px; }
.simple-page .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Tap targets ─────────────────────────────────────────────────────── */
a, button { touch-action: manipulation; }
