/* ============================================================
   CardiBee — Web Design System
   ------------------------------------------------------------
   Sourced from the mobile app's visual DNA:
   - Cream warm background, deep navy, honey-gold accent
   - Friendly + financial — soft cards, generous spacing
   ============================================================ */

:root {
  /* Surfaces */
  --bg:           #F6F2E9;     /* warm cream — page background */
  --bg-alt:       #EFEADD;     /* slightly deeper cream — band */
  --surface:      #FFFFFF;     /* card surface */
  --ink:          #0E163A;     /* deep navy — primary text */
  --ink-2:        #1A2350;     /* navy-2 — card backgrounds */
  --ink-3:        #2A3460;     /* navy-3 — gradients */
  --muted:        #6B7095;     /* secondary text */
  --line:         #E6DFCE;     /* hairline border on cream */
  --line-2:       #EFE8D6;     /* softer line */

  /* Accents */
  --honey:        #F5B027;     /* primary gold / honey */
  --honey-2:      #FFC53D;     /* lighter honey for highlights */
  --honey-soft:   #FFE9B5;     /* honey tint — chip bg */
  --honey-wash:   #FBF1D6;     /* very pale honey */
  --orange:       #FF7A3A;     /* expiry / urgency */
  --orange-soft:  #FFE3D2;
  --mint:         #2BB673;     /* success / saved */
  --mint-soft:    #D6F3E3;
  --rose:         #E94B6A;
  --pink:         #FF4E8A;

  /* Type */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Scale (px) */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 40px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14,22,58,.05), 0 2px 8px rgba(14,22,58,.04);
  --shadow-md: 0 4px 14px rgba(14,22,58,.06), 0 12px 32px rgba(14,22,58,.06);
  --shadow-lg: 0 18px 48px rgba(14,22,58,.12), 0 6px 14px rgba(14,22,58,.05);
  --shadow-card: 0 24px 60px -20px rgba(14,22,58,.35);
}

/* ============ Reset / base ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }

/* ============ Layout primitives ============ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
.container-wide {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 140px 0; position: relative; }
.section-sm { padding: 96px 0; }
.section-tight { padding: 72px 0; }

/* ============ Type ============ */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--honey);
}

h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.022em;
  line-height: 1.04;
  font-weight: 700;
}
h1.display {
  font-size: clamp(48px, 7.4vw, 108px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.96;
}
h2.headline {
  font-size: clamp(40px, 5.4vw, 78px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.0;
}
h3.title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.lede {
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 60ch;
  font-weight: 400;
}
.muted { color: var(--muted); }
.honey { color: var(--honey); }
.balance { text-wrap: balance; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--honey);
  color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(245,176,39,.55);
}
.btn-primary:hover { background: var(--honey-2); box-shadow: 0 14px 30px -10px rgba(245,176,39,.6); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #060d2a; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(14,22,58,.04); }

.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 60px; padding: 0 34px; font-size: 17px; }

/* ============ Cards ============ */
.card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 28px;
  border: 1px solid var(--line-2);
}
.card-dark {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 32px;
}

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246,242,233,.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--honey);
  display: grid; place-items: center;
  color: var(--ink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  opacity: .78;
  transition: opacity .2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-link-cta {
  font-size: 14.5px;
  font-weight: 600;
  opacity: 1;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ============ Tag / chip ============ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--honey-soft);
  color: #8C5A00;
  font-size: 13px;
  font-weight: 600;
}
.chip-orange {
  background: var(--orange-soft);
  color: #B33C00;
}
.chip-dark {
  background: var(--ink);
  color: #fff;
}
.chip-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

/* ============ Glow dots ============ */
.dot-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(43,182,115,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43,182,115,.7); }
  70% { box-shadow: 0 0 0 12px rgba(43,182,115,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,182,115,0); }
}

/* ============ Utility ============ */
.grid { display: grid; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mt-20 { margin-top: 80px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.relative { position: relative; }

/* honey marker / underline */
.marker {
  background: linear-gradient(180deg, transparent 60%, rgba(245,176,39,.45) 60%);
  padding: 0 4px;
}
