/* Kerbwise marketing site: shared styles. Brand tokens mirror apps/mobile/src/theme/colours.ts */

:root {
  --sky: #22B6F6;
  --mint: #2ECC9A;
  --indigo: #4F46E5;
  --indigo-dark: #4338CA;
  --sunshine: #FFC83D;
  --coral: #FF6B6B;
  --navy: #0F172A;
  --slate: #334155;
  --cool-gray: #64748B;
  --light-gray: #E5E7EB;
  --white: #FFFFFF;
  --bg: #F3F9FF;
  --surface: #FFFFFF;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 4px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);

  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Cookie consent ---------- */

.cookie-banner {
  display: none;
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-lg);
}

.cookie-banner.visible { display: block; }

.cookie-banner p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #E2E8F0;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.cookie-btn-primary { background: var(--indigo); color: var(--white); }
.cookie-btn-primary:hover { background: var(--indigo-dark); }

.cookie-btn-secondary { background: transparent; color: #CBD5E1; border: 1px solid rgba(255, 255, 255, 0.24); }
.cookie-btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }

@media (max-width: 480px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 249, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-gray);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
}

.brand img { height: 28px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--indigo); }

.nav-cta {
  background: var(--indigo);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.nav-cta:hover { background: var(--indigo-dark); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--light-gray); box-shadow: var(--shadow-md); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 16px 24px; border-bottom: 1px solid var(--light-gray); }
  .nav-links .nav-cta { width: calc(100% - 48px); margin: 16px 24px; text-align: center; border-bottom: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--light-gray);
    background: var(--surface);
    cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--navy); position: relative;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #EAF5FF 0%, var(--bg) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  color: var(--indigo);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
  color: var(--navy);
}

.hero p.lead {
  font-size: 19px;
  color: var(--slate);
  margin: 0 0 32px;
  max-width: 46ch;
}

.store-badges {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Width is the controlled dimension (not height) so both badges are always
   forced to identical width, regardless of either source SVG's own ratio. */
.store-badge img { width: 140px; height: auto; display: block; }

.coming-soon-note {
  font-size: 13px;
  color: var(--cool-gray);
  margin: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* ---------- Sections ---------- */

section { padding: 76px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

.section-head .eyebrow { margin-bottom: 14px; }

h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--navy);
}

.section-head p {
  color: var(--slate);
  font-size: 17px;
  margin: 0;
}

/* Status legend grid */

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 720px) {
  .status-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .status-grid { grid-template-columns: 1fr; }
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 0 4px currentColor22;
}

.status-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.status-card p { margin: 0; color: var(--slate); font-size: 14px; }

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.feature-card p { margin: 0; color: var(--slate); font-size: 15px; }

/* How it works steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
}

.step { position: relative; padding-left: 56px; }

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--white);
  font-weight: 800;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}

.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--slate); font-size: 15px; }

/* Coverage / honesty section */

.honesty-band {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 760px) {
  .honesty-band { grid-template-columns: 1fr; padding: 32px 24px; }
}

.honesty-band h2 { color: var(--white); }
.honesty-band p { color: #CBD5E1; font-size: 16px; margin: 0 0 0; }

.honesty-stat { display: flex; flex-direction: column; gap: 6px; }
.honesty-stat strong { font-size: 15px; }

/* CTA band */

.cta-band {
  text-align: center;
  background: linear-gradient(135deg, var(--indigo) 0%, #6D5AF0 100%);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  color: var(--white);
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: #E0E3FF; font-size: 17px; margin: 0 0 32px; }
.cta-band .store-badges { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--light-gray);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--cool-gray); font-size: 14px; margin: 0; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--light-gray);
  background: var(--surface);
  color: var(--slate);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.social-icon-sm { font-size: 11px; }

.social-icon:hover {
  background: var(--indigo);
  color: var(--white);
  border-color: var(--indigo);
}

.social-icon svg { display: block; }

.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cool-gray); margin: 0 0 14px; }
.footer-col a { display: block; text-decoration: none; color: var(--slate); font-size: 15px; margin-bottom: 10px; font-weight: 600; }
.footer-col a:hover { color: var(--indigo); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--cool-gray);
  font-size: 13px;
  padding-top: 24px;
  border-top: 1px solid var(--light-gray);
}

/* ---------- Simple content pages (privacy / support) ---------- */

.page-hero {
  padding-top: 56px;
  padding-bottom: 24px;
}

.page-hero h1 { font-size: clamp(30px, 4vw, 40px); }
.page-hero .updated { color: var(--cool-gray); font-size: 14px; }

.doc {
  background: var(--surface);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 0 0 64px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  .doc { padding: 24px; }
}

.doc h2 { font-size: 20px; margin: 32px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--slate); font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--indigo); font-weight: 600; text-decoration: underline; }

.support-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

@media (max-width: 640px) {
  .support-cards { grid-template-columns: 1fr; }
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.support-card h3 { margin: 0 0 8px; font-size: 17px; }
.support-card p { margin: 0 0 16px; color: var(--slate); font-size: 15px; }
.support-card a.button {
  display: inline-block;
  background: var(--indigo);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
}
