/* ─── Cozydo · Apple-style marketing ─────────────────────────── */

:root {
  /* Core */
  --bg:       #fbfbfd;
  --bg-alt:   #f5f5f7;
  --surface:  #ffffff;
  --text:     #1d1d1f;
  --muted:    #6e6e73;
  --sep:      rgba(0,0,0,0.08);

  /* Accent */
  --accent:      #5e4ce0;
  --accent-soft: rgba(94,76,224,0.10);
  --accent-glow: rgba(94,76,224,0.22);

  /* Section tints */
  --cream:    #fdf7ef;
  --mint:     #f2faf5;
  --lavender: #f4f2fd;
  --peach:    #fef4f0;
  --sky:      #f0f6ff;

  /* Layout */
  --max:    980px;
  --nav-h:  48px;
  --font:   -apple-system, BlinkMacSystemFont, "SF Pro Display",
            "Helvetica Neue", Arial, sans-serif;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #000000;
    --bg-alt:   #0a0a0a;
    --surface:  #111111;
    --text:     #f5f5f7;
    --muted:    #a1a1a6;
    --sep:      rgba(255,255,255,0.10);
    --accent:   #7c6af7;
    --accent-soft: rgba(124,106,247,0.14);
    --accent-glow: rgba(124,106,247,0.28);
    --cream:    #141210;
    --mint:     #0e1510;
    --lavender: #110f1a;
    --peach:    #160e0b;
    --sky:      #0b1018;
  }
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); }
.br-wide { display: none; }
@media (min-width: 640px) { .br-wide { display: block; } }

/* ─── Reveal animations ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  0.72s var(--ease),
    transform 0.72s var(--ease);
}
.reveal.visible     { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.32s; }

/* ─── Nav ────────────────────────────────────────────────────────── */
.nav, .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .site-header.scrolled {
  background: rgba(251,251,253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-color: var(--sep);
}
@media (prefers-color-scheme: dark) {
  .nav.scrolled, .site-header.scrolled {
    background: rgba(0,0,0,0.82);
  }
}

.nav-inner {
  width: 100%;
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand, .brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav-brand img, .brand img {
  width: 28px; height: 28px;
  border-radius: 7px;
}
.nav nav, .site-header nav {
  display: flex;
  gap: 1.5rem;
}
.nav nav a, .site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color 0.18s;
}
.nav nav a:hover,
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--text); }

/* ─── Shared UI ─────────────────────────────────────────────────── */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.375rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
  white-space: nowrap;
}
.cta:hover, .btn:hover { opacity: 0.84; transform: translateY(-1px); }

.cta-primary, .btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px var(--accent-glow);
}
.cta-ghost, .btn-ghost {
  background: rgba(0,0,0,0.06);
  color: var(--text);
}
@media (prefers-color-scheme: dark) {
  .cta-ghost, .btn-ghost { background: rgba(255,255,255,0.10); }
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--nav-h) + 4rem) 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%,  rgba(94,76,224,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%,   rgba(255,180,100,0.07) 0%, transparent 60%);
  z-index: 0;
}
.hero-body {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0 0 1.25rem;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--muted);
  max-width: 30rem;
  margin: 0 auto 2rem;
  line-height: 1.65;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}
.hero-visual {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
}
.hero-img {
  width: min(300px, 78vw);
  border-radius: 24px;
  box-shadow:
    0  2px  4px rgba(0,0,0,0.04),
    0  8px 24px rgba(0,0,0,0.08),
    0 28px 60px rgba(0,0,0,0.10);
  margin: 0 auto;
}

/* ─── Feature sections ───────────────────────────────────────────── */
.fs {
  padding: 6rem 1.5rem;
}
.bg-cream    { background: var(--cream); }
.bg-mint     { background: var(--mint); }
.bg-lavender { background: var(--lavender); }
.bg-peach    { background: var(--peach); }
.bg-sky      { background: var(--sky); }

.fs-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .fs-inner                  { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .fs-inner.fs-flip .fs-shot { order: -1; }
}

.fs-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.875rem;
}
.fs-copy h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.07;
  margin: 0 0 1.25rem;
  color: var(--text);
}
.fs-copy p {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 26rem;
}
.fs-shot {
  display: flex;
  justify-content: center;
}
.fs-shot img {
  width: min(280px, 78vw);
  border-radius: 22px;
  box-shadow:
    0  2px  8px rgba(0,0,0,0.06),
    0 12px 32px rgba(0,0,0,0.09),
    0 32px 64px rgba(0,0,0,0.07);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.fs-shot img:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow:
    0  4px 12px rgba(0,0,0,0.08),
    0 20px 48px rgba(0,0,0,0.12),
    0 48px 80px rgba(0,0,0,0.08);
}

/* ─── Privacy pillars ────────────────────────────────────────────── */
.pillars {
  padding: 7rem 1.5rem;
  text-align: center;
}
.pillars-inner { max-width: var(--max); margin: 0 auto; }
.pillars-inner h2 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  margin: 0.5rem 0 1rem;
  color: var(--text);
}
.pillars-lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 3rem;
  line-height: 1.65;
}
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  border: 1px solid var(--sep);
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  background: var(--sep);
}
@media (min-width: 600px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
}
.pillar {
  background: var(--bg);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}
.pillar:hover { background: var(--bg-alt); }
.pillar-icon {
  width: 24px; height: 24px;
  color: var(--accent);
  margin-bottom: 1rem;
  stroke-width: 1.6;
}
.pillar h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.pillar p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--sep);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
}
.footer-inner nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-inner nav a:hover { color: var(--text); }
.footer-inner p { margin: 0; }

/* ─── Legal pages ────────────────────────────────────────────────── */
.page-legal .site-header {
  /* on legal pages header is non-fixed, inline at top */
  position: sticky;
}
.page-legal .wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.5rem) 1.25rem 4rem;
}
.page-legal h1 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.page-legal .intro, .page-legal .lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.page-legal h2 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 2rem 0 0.75rem;
}
.page-legal h2.section-title {
  font-size: 1.0625rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sep);
}
.row {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--sep);
  background: var(--surface);
}
.row:last-child { border-bottom: none; }
.label  { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.25rem; color: var(--text); }
.detail { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.page-legal section { margin-bottom: 1.75rem; }
.page-legal section p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }
.page-legal ul { padding-left: 1.2rem; color: var(--muted); font-size: 0.95rem; }
.page-legal li { margin-bottom: 0.5rem; }
.cta-link, .cta { display: inline-flex; margin-top: 0.5rem; font-weight: 500; }
.page-legal footer.legal-meta {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  border: none;
  padding: 0;
}

/* ─── Pill (legacy) ──────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
}
