/* ─── Kibo web — shared styles ───────────────────────────── */
:root {
  --paper: #FBF3EE;
  --paper-warm: #EFE8E1;
  --hairline: rgba(0, 0, 0, 0.06);
  --hairline-soft: rgba(0, 0, 0, 0.04);
  --ink: #15171A;
  --ink-soft: #2A2C30;
  --body: #4A4744;
  --muted: #8F8B89;
  --muted-soft: #B3AFAC;
  --ember: #E94B3A;
  --ember-deep: #9C2723;
  --ember-soft: #FEE3E0;
  --amber: #D08A1E;
  --amber-soft: #FFF1D9;
  --green: #1BA85C;
  --green-soft: #DCF1E4;
  --plum: #7B3FE4;
  --plum-soft: #ECE0FE;
  --blue: #2D6FE0;
  --blue-soft: #DDE9FB;
  --peach-1: #F6D2CF;
  --peach-2: #F5DBD4;
  --peach-3: #F4E5DC;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  /* Match the body gradient's topmost stop. The browser over-scroll
     bounce, the iOS status-bar safe area, and any sliver between the
     viewport edge and the body box would otherwise show --paper-warm,
     which made the top edge look like a separate color band. Combined
     with <meta name="theme-color"> in each page head, the cream-coral
     starts from the very top edge of the device. */
  background: var(--peach-1);
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(233, 75, 58, 0.10) 0%, rgba(233, 75, 58, 0) 60%),
    radial-gradient(ellipse 50% 40% at 0% 30%, rgba(208, 138, 30, 0.08) 0%, rgba(208, 138, 30, 0) 60%),
    linear-gradient(180deg, var(--peach-1) 0%, var(--peach-2) 10%, var(--peach-3) 24%, var(--paper) 50%, var(--paper) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Subtle grain over everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.6;
  mix-blend-mode: multiply;
}

main, header, footer { position: relative; z-index: 1; }

/* ─── Typography ──────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(48px, 7.2vw, 96px); letter-spacing: -0.04em; }
h2 { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -0.035em; }
h3 { font-size: clamp(22px, 2.2vw, 28px); }
h4 { font-size: 18px; font-weight: 900; }

p { margin: 0; color: var(--body); font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-soft); font-weight: 600; }

em, .ital {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.numeric {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 300;
  letter-spacing: -0.04em;
  font-feature-settings: 'lnum' 1;
}

a { color: inherit; text-decoration: none; }

/* ─── Layout ──────────────────────────────────────────── */
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
section { padding: clamp(70px, 9vw, 130px) 0; }
section + section { padding-top: 0; }

/* ─── Glass surface ──────────────────────────────────── */
.glass {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.surface {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 4px 14px rgba(0, 0, 0, 0.04);
  border-radius: 22px;
}
.surface-deep {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 14px 40px rgba(0, 0, 0, 0.08);
  border-radius: 28px;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ember);
  color: #fff;
  box-shadow:
    0 8px 18px rgba(233, 75, 58, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(233, 75, 58, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 20px;
}
.btn-ghost:hover { background: rgba(0, 0, 0, 0.04); }
.btn-glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px) saturate(180%);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.8); }

/* ─── Nav ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 12px;
  z-index: 100;
  margin: 12px auto 0;
  width: min(1180px, calc(100% - 24px));
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.nav-brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-soft);
}
.nav-link:hover { background: rgba(0, 0, 0, 0.04); }
.nav-cta {
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.nav-cta:hover { background: var(--ember); }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ─── Pill / chip ─────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  backdrop-filter: blur(14px);
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px rgba(233, 75, 58, 0.18);
}

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--hairline);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h5 {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.footer li a:hover { color: var(--ember); }
.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Animations ─────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
@keyframes shake {
  0%, 8%, 16%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-12deg); }
  12% { transform: rotate(10deg); }
  14% { transform: rotate(-6deg); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.float { animation: float 6s ease-in-out infinite; }
.breathe { animation: breathe 4s ease-in-out infinite; }

/* ─── Page-paint motion ──────────────────────────────────────
   Elements with .reveal start hidden and animate up + in when JS
   adds .in (kibo-anim.js, via IntersectionObserver). The stagger
   index --reveal-i lets sibling elements cascade in one after
   another: <div class="reveal" style="--reveal-i: 2"> waits 180ms
   longer than <div class="reveal" style="--reveal-i: 0">. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 800ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

/* A slightly more characterful entrance: tiny rotation as the card
   settles. Used on inset cards inside hero sections where the page
   benefits from a less mechanical movement. */
.reveal-tilt {
  opacity: 0;
  transform: translateY(28px) rotate(-1.2deg);
  transition:
    opacity 900ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
}
.reveal-tilt.in { opacity: 1; transform: none; }

/* ─── Surface hover-lift ─────────────────────────────────────
   Cards rise a hair and the shadow deepens. Matched timing to the
   reveal so hover feels like an extension of the same motion
   vocabulary, not a separate library. */
.surface, .surface-deep {
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.surface:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 18px 38px rgba(0, 0, 0, 0.08);
}
.surface-deep:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 30px 60px rgba(0, 0, 0, 0.12);
}

/* ─── Nav shadow swell on scroll ─────────────────────────────
   Tiny but tells the reader "you're not at the top anymore". JS
   toggles .is-scrolled on the .nav wrapper. */
.nav .nav-inner {
  transition: box-shadow 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav.is-scrolled .nav-inner {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.10);
}

/* Respect user motion preferences for every animation declared above. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal.in, .reveal-tilt, .reveal-tilt.in {
    opacity: 1 !important;
    transform: none !important;
  }
  .surface:hover, .surface-deep:hover { transform: none !important; }
}

/* ─── Phone mock ─────────────────────────────────────── */
.phone {
  width: 280px;
  height: 590px;
  background: linear-gradient(180deg, var(--peach-1) 0%, var(--peach-2) 18%, var(--peach-3) 36%, var(--paper) 60%);
  border-radius: 36px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.10),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.phone::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 16px;
  z-index: 5;
}

/* ─── Floating card ──────────────────────────────────── */
.float-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ─── Logo swatch ────────────────────────────────────── */
.logo-tile {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

/* ─── Section heading helper ─────────────────────────── */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
  max-width: 720px;
}
