/* ============================================================
   COVE — Warm Harbour design system
   Landing page styles. Mobile-first, responsive.
   ============================================================ */

:root {
  /* ---- Palette (from Cove master doc) ---- */
  --navy:        #1E2A4A;
  --navy-deep:   #19253F;
  --midnight:    #1C1C24;
  --harbour-air: #A8C4CC;
  --sand:        #D4C8B0;
  --ivory:       #F4EBD0;
  --cream:       #F8F3ED;
  --cream-card:  #EDE6DC;
  --terracotta:  #C07A56;
  --honey:       #D4A373;
  --sage:        #8BA89A;
  --sky:         #8BCDED;

  /* ---- Semantic ---- */
  --accent:        var(--terracotta);
  --accent-ink:    #fff;
  --ink:           var(--navy);
  --ink-soft:      #5A5A6A;
  --ink-meta:      #6E6E7E;
  --on-dark:       var(--ivory);
  --on-dark-soft:  #B9C2D6;
  --page-bg:       var(--cream);

  /* ---- Type ---- */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --head-weight: 700;
  --head-tracking: -0.02em;

  /* ---- Shape ---- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* ---- Shadow (cool blue-grey violet, per doc) ---- */
  --shadow-1: 0 1px 2px rgba(30, 42, 74, 0.06), 0 2px 8px rgba(30, 42, 74, 0.05);
  --shadow-2: 0 4px 12px rgba(30, 42, 74, 0.08), 0 12px 32px rgba(30, 42, 74, 0.07);
  --shadow-3: 0 8px 24px rgba(30, 42, 74, 0.10), 0 24px 60px rgba(30, 42, 74, 0.12);

  /* ---- Layout ---- */
  --maxw: 1300px;
  --gutter: clamp(20px, 4vw, 52px);
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--page-bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   Buttons & badges
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-1); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(244,235,208,0.3); }
.btn-ghost-light:hover { background: rgba(244,235,208,0.08); }

/* App-store style badge */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 11px 20px 11px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-badge:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .sb-small { font-size: 0.62rem; line-height: 1; letter-spacing: 0.02em; opacity: 0.82; text-transform: uppercase; }
.store-badge .sb-big { font-size: 1.16rem; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; margin-top: 2px; }

.store-badge.soon {
  background: transparent;
  color: var(--on-dark);
  border: 1px dashed rgba(244,235,208,0.32);
}
.store-badge.soon .sb-small { opacity: 0.7; }
.store-badge.soon .sb-big { font-weight: 600; }

/* On light sections */
.on-light .store-badge.soon {
  color: var(--ink);
  border-color: rgba(30,42,74,0.22);
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(248,243,237,0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: rgba(30,42,74,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logomark {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  object-fit: cover;
  /* crisp outer keyline follows the rounded tile cleanly */
  box-shadow:
    0 0 0 1px rgba(244,235,208,0.55),
    0 2px 8px rgba(0,0,0,0.30);
  transition: box-shadow .3s ease;
}
.nav.scrolled .brand .logomark {
  box-shadow:
    inset 0 0 0 1px rgba(30,42,74,0.10),
    0 2px 8px rgba(30,42,74,0.22);
}
.brand .wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  /* scales down on narrow screens so the full wordmark never wraps or clips */
  font-size: clamp(1.25rem, 4.6vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--on-dark);
  white-space: nowrap;
}
.nav.scrolled .brand .wordmark { color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--on-dark); }
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav.scrolled .nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav .store-badge { padding: 8px 15px 8px 13px; border-radius: 11px; }
.nav .store-badge svg { width: 21px; height: 21px; }
.nav .store-badge .sb-big { font-size: 0.95rem; }
.nav .store-badge .sb-small { font-size: 0.55rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  color: var(--on-dark);
}
.nav.scrolled .nav-toggle { color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--gutter) 24px;
  background: var(--cream);
  border-bottom: 1px solid rgba(30,42,74,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 4px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(30,42,74,0.06);
}
.mobile-menu .store-badges { margin-top: 16px; }

/* ============================================================
   HERO — "underwater" deep navy
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(139,205,237,0.10), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 62%, #16223A 100%);
  color: var(--on-dark);
  padding-top: clamp(40px, 8vw, 90px);
  padding-bottom: clamp(90px, 11vw, 150px);
  margin-top: -78px; /* slide under sticky nav */
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: 130px;
  align-items: flex-start;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 0.99;
  letter-spacing: -0.035em;
  color: var(--ivory);
  white-space: nowrap;
}
.hero h1 .accent { color: var(--honey); }
.hero .lede {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  line-height: 1.45;
  color: var(--ivory);
  font-weight: 500;
}
.hero .sub {
  margin-top: 1.1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--on-dark-soft);
  max-width: 480px;
}
.hero .store-badges { margin-top: 3.2rem; }
.hero-note { margin-top: 1.1rem; font-size: 0.85rem; color: var(--on-dark-soft); display: flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); flex: none; }
.hero-badges-inline { align-items: center; }
.hero-note-inline { margin-top: 0; font-weight: 700; color: var(--ivory); font-size: 0.95rem; }

.hero-legal {
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--on-dark-soft);
}
.hero-legal a { color: var(--on-dark-soft); }
.hero-legal a:hover { color: var(--ivory); }
.hero-legal-dot { opacity: 0.6; }

/* Surfacing divider into the harbour */
.surface-divider {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(70px, 10vw, 150px);
  display: block;
}
.surface-divider path { fill: var(--cream); }

/* ============================================================
   Phone mockups
   ============================================================ */
.hero-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex: none;
  margin-top: -110px;
}
.hero-phone-img {
  height: auto;
  width: auto;
  max-height: 560px;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 32px 64px rgba(14,26,52,0.35));
  will-change: transform;
}
.phone {
  position: relative;
  width: 290px;
  border-radius: 44px;
  background: #0e1730;
  padding: 11px;
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.phone::before { /* notch */
  content: "";
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; border-radius: 999px;
  background: #0e1730;
  z-index: 4;
}
.phone-screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 9 / 19.3;
  background: linear-gradient(180deg, var(--navy) 0%, #3a5168 55%, var(--harbour-air) 100%);
}
.phone.tilt-l { transform: rotate(-6deg) translateY(8px); }
.phone.tilt-r { transform: rotate(5deg); }

.hero-stage .phone.back {
  position: absolute;
  right: 4%;
  z-index: 1;
  width: 262px;
  transform: rotate(6deg) translate(28px, 26px);
  filter: saturate(0.96);
}
.hero-stage .phone.front {
  position: relative;
  z-index: 2;
  transform: rotate(-4deg) translateX(-18px);
}

/* --- App screen: Home dashboard --- */
.scr { position: absolute; inset: 0; padding: 40px 16px 14px; display: flex; flex-direction: column; color: var(--ivory); }
.scr-status { position: absolute; top: 14px; left: 20px; right: 20px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: rgba(244,235,208,0.85); }
.scr-h { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; opacity: 0.85; display:flex; justify-content: space-between; align-items:center; }
.scr-h .add { color: var(--sky); font-weight: 600; }

.weight-circle {
  width: 150px; height: 150px; margin: 14px auto 6px;
  border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(139,205,237,0.22), rgba(139,205,237,0.04) 70%);
  box-shadow: 0 0 0 1.5px rgba(139,205,237,0.35), 0 0 40px rgba(139,205,237,0.18);
}
.weight-circle .wv { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.weight-circle .wu { font-size: 13px; opacity: 0.7; }
.weight-circle .wl { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; margin-bottom: 5px; }
.trend { text-align: center; font-size: 12px; color: var(--sage); font-weight: 600; margin-bottom: 14px; }
.trend .ar { color: var(--sage); }

.rings { display: flex; justify-content: center; gap: 14px; margin-bottom: 16px; }
.ring { text-align: center; }
.ring .rc { width: 50px; height: 50px; border-radius: 50%; display: grid; place-content: center; margin: 0 auto 5px; font-size: 13px; }
.ring .rl { font-size: 9px; opacity: 0.7; letter-spacing: 0.04em; }

.scr-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 11px 13px;
  margin-top: auto;
}
.scr-card .row { display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 6px 0; }
.scr-card .row + .row { border-top: 1px solid rgba(255,255,255,0.06); }
.scr-card .chk { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid rgba(244,235,208,0.4); flex: none; }
.scr-card .chk.on { background: var(--terracotta); border-color: var(--terracotta); }
.scr-card .row.done { opacity: 0.45; text-decoration: line-through; }

.tabbar {
  display: flex; justify-content: space-around;
  margin: 10px -16px -14px;
  padding: 10px 0 18px;
  background: var(--midnight);
  font-size: 9px; color: #6B6B7B;
}
.tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tabbar .tab .ti { width: 18px; height: 18px; border-radius: 5px; background: currentColor; opacity: 0.6; }
.tabbar .tab.active { color: var(--terracotta); }
.tabbar .tab.active .ti { opacity: 1; }

/* Official App Store badge */
.appstore-badge { display: inline-block; transition: transform .15s ease, opacity .15s ease; line-height: 0; }
.appstore-badge:hover { transform: translateY(-1px); opacity: 0.88; }
.appstore-badge svg, .appstore-badge img { height: 52px; width: auto; display: block; }
.nav .appstore-badge svg, .nav .appstore-badge img { height: 40px; }
.mobile-menu .appstore-badge svg, .mobile-menu .appstore-badge img { height: 48px; }

/* Fallback badge shown only if the official artwork fails to load */
.appstore-badge-fallback {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 11px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.appstore-badge.fallback .appstore-badge-fallback { display: inline-flex; }
.appstore-badge-fallback svg { width: 22px; height: 22px; flex: none; }
.appstore-badge-fallback .ab-small { display: block; font-size: 0.6rem; line-height: 1; letter-spacing: 0.02em; opacity: 0.85; text-transform: uppercase; }
.appstore-badge-fallback .ab-big { display: block; font-size: 1.05rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; margin-top: 1px; }


/* ============================================================
   Front phone — live Home screen (matches app)
   ============================================================ */
.phone-screen.home2 {
  background: linear-gradient(180deg, #0f1b35 0%, #2a3f5e 46%, #54677e 70%, #6f7e8e 100%);
}
.h2 { position: absolute; inset: 0; display: flex; flex-direction: column; color: var(--ivory); }

.h2-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px 0; font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
}
.h2-ico { display: flex; align-items: center; gap: 5px; }
.h2-ico svg { height: 11px; width: auto; fill: #fff; }
.h2-ico svg:nth-child(2) { height: 12px; }
.h2-batt { width: 24px; height: 12px; border-radius: 3px; background: #F2C14E; display: grid; place-content: center; position: relative; }
.h2-batt::after { content: ""; position: absolute; right: -2.5px; top: 3.5px; width: 1.6px; height: 5px; border-radius: 0 1px 1px 0; background: #F2C14E; }
.h2-batt-n { font-size: 8px; font-weight: 800; color: #1b1b1b; }

/* Hero ring */
.h2-hero { flex: none; display: grid; place-content: center; padding: 26px 0 30px; }
.h2-ring {
  width: 168px; height: 168px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.22),
    inset 0 0 0 9px rgba(255,255,255,0.05),
    inset 0 0 0 10.5px rgba(255,255,255,0.14),
    0 0 46px rgba(180,205,230,0.10);
}
.h2-ring-l { font-size: 10px; letter-spacing: 0.02em; color: rgba(244,235,208,0.6); margin-bottom: 2px; }
.h2-ring-v { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ivory); }
.h2-ring-v span { font-size: 15px; font-weight: 500; letter-spacing: 0; margin-left: 2px; opacity: 0.7; }
.h2-ring-s { font-size: 11px; color: rgba(244,235,208,0.62); margin-top: 6px; }

/* Cream sheet with cards */
.h2-sheet {
  margin-top: auto;
  background: var(--sand);
  border-radius: 26px 26px 0 0;
  padding: 13px 12px;
  display: flex; flex-direction: column; gap: 11px;
}
.h2-card { background: var(--cream); border-radius: 17px; padding: 14px 14px 13px; }
.h2-ch { font-size: 13.5px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; margin-bottom: 13px; }

.h2-goals { display: flex; align-items: flex-start; gap: 4px; }
.h2-goal { flex: 1; text-align: center; }
.h2-gauge {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 8px;
  background: conic-gradient(var(--col) var(--p), rgba(30,42,74,0.10) 0);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 57%);
          mask: radial-gradient(circle, transparent 56%, #000 57%);
}
.h2-gl { font-size: 10px; font-weight: 700; color: var(--navy); }
.h2-gs { font-size: 9px; color: var(--ink-meta); margin-top: 1px; }
.h2-pct {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-content: center;
  background: rgba(139,205,237,0.16);
  font-size: 14px; font-weight: 700; color: var(--navy);
  margin-top: 0;
}

.h2-sleep { display: flex; align-items: center; gap: 9px; margin-top: 14px; }
.h2-sleep-l { font-size: 11px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.h2-sleep-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(30,42,74,0.10); }
.h2-sleep-v { font-size: 12px; font-weight: 700; color: var(--ink-meta); }
.h2-sleep-note { text-align: right; font-size: 9.5px; color: var(--ink-meta); margin-top: 5px; }

.h2-hh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.h2-hh > span:first-child { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.h2-link { font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.h2-habit { display: flex; align-items: center; gap: 11px; }
.h2-num { width: 22px; height: 22px; border-radius: 7px; background: var(--navy); color: var(--ivory); font-size: 11px; font-weight: 700; display: grid; place-content: center; flex: none; }
.h2-habit-t { flex: 1; font-size: 13px; font-weight: 600; color: var(--navy); }
.h2-chk { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(30,42,74,0.22); flex: none; }

/* Tab bar */
.h2-tab {
  display: flex; justify-content: space-around;
  background: #14233f;
  padding: 9px 4px calc(9px + env(safe-area-inset-bottom, 4px));
  padding-bottom: 16px;
}
.h2-t { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9px; font-weight: 500; color: #7c879b; }
.h2-t svg { width: 19px; height: 19px; }
.h2-t.active { color: var(--terracotta); }

/* ============================================================
   Sections (light / harbour)
   ============================================================ */
section { position: relative; }
.section-pad { padding-block: clamp(64px, 10vw, 130px); }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-ivory { background: var(--ivory); }

.sec-head { max-width: 720px; margin: 0 auto; text-align: center; }
.sec-head h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
}
.sec-head .sub {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================================================
   Big feature block
   ============================================================ */
.feature-block {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-top: clamp(40px, 6vw, 72px);
}
.feature-block.flip { grid-template-columns: 1fr 1fr; }
.fb-copy { padding: clamp(32px, 5vw, 64px); }
.fb-tag { display: inline-flex; align-items: center; gap: 9px; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 22px; }
.fb-tag .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-content: center; flex: none; }
.fb-copy h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.025em; line-height: 1.1; }
.fb-copy p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.65; }
.fb-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 12px; }
.fb-list .li { display: flex; gap: 11px; align-items: flex-start; font-size: 1rem; color: var(--ink); }
.fb-list .li svg { width: 21px; height: 21px; flex: none; margin-top: 1px; color: var(--sage); }
.fb-visual { position: relative; align-self: stretch; min-height: 380px; display: flex; align-items: center; justify-content: center; padding: clamp(28px, 4vw, 56px); background: linear-gradient(155deg, var(--cream) 0%, var(--cream-card) 100%); }
.feature-block.flip .fb-copy { order: 2; }
.feature-block.flip .fb-visual { order: 1; }

/* Insights chart card */
.chart-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 22px 22px 18px;
}
.chart-card .cc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.chart-card .cc-title { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.chart-card .cc-meta { font-size: 0.74rem; color: var(--ink-meta); }
.chart-card .cc-big { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.chart-card .cc-big small { font-size: 0.95rem; font-weight: 500; color: var(--ink-meta); }
.chart-legend { display: flex; gap: 16px; margin: 12px 0 6px; font-size: 0.72rem; color: var(--ink-soft); }
.chart-legend .lg { display: flex; align-items: center; gap: 6px; }
.chart-legend .sw { width: 16px; height: 3px; border-radius: 2px; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-pills { display: flex; gap: 6px; margin-top: 14px; }
.chart-pills .cp { font-size: 0.7rem; padding: 5px 11px; border-radius: var(--r-pill); background: var(--cream-card); color: var(--ink-soft); font-weight: 600; }
.chart-pills .cp.on { background: var(--navy); color: var(--ivory); }

/* ============================================================
   Feature cards (3-up)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: clamp(40px, 6vw, 72px);
}
.card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(30,42,74,0.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card .ic {
  width: 56px; height: 56px; border-radius: 15px;
  display: grid; place-content: center; margin-bottom: 24px;
}
.card .ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.34rem; line-height: 1.2; letter-spacing: -0.02em; }
.card p { margin-top: 0.9rem; color: var(--ink-soft); font-size: 1.01rem; line-height: 1.6; }

/* ============================================================
   Why Cove exists
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 72px);
}
.why-item { padding-top: 22px; border-top: 2px solid rgba(30,42,74,0.1); }
.why-num {
  font-family: var(--font-display, inherit);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--terracotta);
}
.why-item h3 { margin-top: 14px; font-size: 1.38rem; letter-spacing: -0.02em; }
.why-item p { margin-top: 0.8rem; color: var(--ink-soft); font-size: 1.01rem; line-height: 1.65; }
.why-pivot {
  margin: clamp(44px, 6vw, 72px) auto 0;
  max-width: 640px;
  text-align: center;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.4;
}

/* ============================================================
   Compact feature grid
   ============================================================ */
.fgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(20px, 3vw, 28px);
}
.fcard {
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(30,42,74,0.04);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s cubic-bezier(.2,.7,.3,1);
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.fcard .ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-content: center; margin-bottom: 18px;
}
.fcard .ic svg { width: 23px; height: 23px; }
.fcard h3 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.02em; }
.fcard p { margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.6; }

/* stagger the grid reveals */
.fgrid .fcard:nth-child(2), .why-grid .why-item:nth-child(2) { transition-delay: .1s; }
.fgrid .fcard:nth-child(3), .why-grid .why-item:nth-child(3) { transition-delay: .2s; }
.fgrid .fcard:nth-child(4) { transition-delay: .3s; }

/* ============================================================
   Free to try
   ============================================================ */
.try-card {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
}
.try-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; }
.try-copy p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; max-width: 56ch; }
.try-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; justify-self: center; }
.try-note { font-size: 0.85rem; color: var(--ink-meta); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: clamp(40px, 6vw, 64px) auto 0; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(30,42,74,0.04);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 24px clamp(20px, 3vw, 30px);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.faq-icon { position: relative; width: 22px; height: 22px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--accent);
  border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
}
.faq-icon::before { top: 10px; left: 0; width: 22px; height: 2.5px; }
.faq-icon::after { left: 10px; top: 0; width: 2.5px; height: 22px; }
.faq-item.open .faq-icon::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-a-inner { padding: 0 clamp(20px, 3vw, 30px) 26px; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.66; }
.faq-a-inner p + p { margin-top: 0.9rem; }

/* ============================================================
   Final CTA
   ============================================================ */
.cta {
  position: relative;
  background:
    radial-gradient(900px 500px at 50% 120%, rgba(139,205,237,0.12), transparent 60%),
    linear-gradient(180deg, #16223A 0%, var(--navy) 100%);
  color: var(--on-dark);
  text-align: center;
  overflow: hidden;
}
.cta-divider { position: absolute; top: -1px; left: 0; width: 100%; height: clamp(60px, 8vw, 120px); }
.cta-divider path { fill: var(--cream); }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); color: #fff; letter-spacing: -0.035em; }
.cta h2 .accent { color: var(--honey); }
.cta .sub { margin: 1.2rem auto 0; max-width: 560px; font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--ivory); line-height: 1.5; }
.cta .store-badges { justify-content: center; margin-top: 2.4rem; }
.cta-note { margin-top: 1.3rem; font-size: 0.85rem; color: var(--on-dark-soft); }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--midnight); color: var(--on-dark-soft); padding-block: clamp(48px, 7vw, 76px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand .wordmark { color: var(--ivory); }
.footer-blurb { margin-top: 16px; max-width: 320px; font-size: 0.95rem; line-height: 1.6; color: #8E96AC; }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #6B6B7B; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; padding: 7px 0; font-size: 0.95rem; color: var(--on-dark-soft); transition: color .15s ease; }
.footer-col a:hover { color: var(--ivory); }
.footer-disclaimer {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #7A8299;
  max-width: 820px;
}
.footer-bottom { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.82rem; color: #6B6B7B; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Simple contact-only nav/footer (temporary trimmed page)
   ============================================================ */
.btn-contact {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  background: var(--ivory);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-contact:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(14,26,52,0.18); }
.nav.scrolled .btn-contact { background: var(--navy); color: var(--ivory); }

.footer-simple { background: var(--navy); padding: 28px 0; }
.footer-simple-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-simple .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ivory); }
.footer-simple-links { display: flex; gap: 24px; }
.footer-simple-links a { color: var(--on-dark-soft); font-size: 0.9rem; }
.footer-simple-links a:hover { color: var(--ivory); }
.footer-simple-copy { font-size: 0.85rem; color: var(--on-dark-soft); }

@media (max-width: 560px) {
  .footer-simple-inner { justify-content: center; text-align: center; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta .store-badges { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 52px; }
  .hero-copy { max-width: 620px; margin-inline: auto; }
  .hero .sub { margin-inline: auto; }
  .hero .store-badges, .hero-note { justify-content: center; }
  .hero-stage { margin-top: 20px; }
  .hero-phone-img { max-height: 620px; }

  .feature-block, .feature-block.flip { grid-template-columns: 1fr; }
  .feature-block.flip .fb-copy { order: 1; }
  .feature-block.flip .fb-visual { order: 2; }
  .fb-visual { min-height: 340px; }

  .cards { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .fgrid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .fgrid .fcard, .why-grid .why-item { transition-delay: 0s; }
  .try-card { grid-template-columns: 1fr; text-align: center; }
  .try-copy p { margin-inline: auto; }

  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-bottom: 90px; }
  .hero-stage { }
  .hero-phone-img { max-height: 460px; }
  .hero h1 { white-space: normal; font-size: clamp(2rem, 9vw, 2.6rem); }

  /* tighten the brand lockup so the full wordmark and the Contact button coexist */
  .nav-inner { gap: 12px; }
  .nav .brand { gap: 8px; }
  .nav .brand .logomark { width: 38px; height: 38px; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .store-badge { padding: 10px 16px; }
  .btn { width: 100%; justify-content: center; }
}
