/* Nestvo website: same warm palette and Nunito font as the app. */
:root {
  --bg: #FBF6F0;
  --surface: #FFFFFF;
  --sand: #F6EEE6;
  --ink: #2B2233;
  --muted: #6F6577;
  --line: #EEE3D8;
  --brand: #C24F36;
  --brand-soft: #FCE9E2;
  --plum: #4E3384;
  --plum-soft: #EEE8F8;
  --grad: linear-gradient(135deg, #E9805F 0%, #C24F36 50%, #9C3B5E 100%);
  --shadow: 0 10px 30px rgba(90, 58, 42, 0.10);
  --radius: 24px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #9C3B5E; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(251, 246, 240, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 16px; font-weight: 800; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(194, 79, 54, 0.25); }
.btn-primary:hover { background: #A9432D; color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn-ghost:hover { color: var(--brand); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin: 16px 0 18px; font-weight: 800; letter-spacing: -0.02em; }
h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 21px; color: var(--muted); font-weight: 600; margin: 0 0 28px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.small-note { font-size: 15px; color: var(--muted); font-weight: 600; margin-top: 14px; }

/* ---------- phone mock-up (pure CSS, mirrors the app's Home screen) ---------- */
.phone { width: 300px; max-width: 100%; margin: 0 auto; background: #1d1720; border-radius: 46px; padding: 12px; box-shadow: 0 30px 60px rgba(60, 30, 40, 0.25); }
.screen { background: var(--bg); border-radius: 36px; overflow: hidden; }
.screen-hero { background: var(--grad); color: #fff; padding: 34px 20px 46px; border-radius: 0 0 26px 26px; }
.screen-hero .hello { font-size: 13px; font-weight: 600; opacity: 0.9; }
.screen-hero .fam { font-size: 24px; font-weight: 800; line-height: 1.1; margin: 2px 0 12px; }
.avatars { display: flex; align-items: center; }
.avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.avatars span:first-child { margin-left: 0; }
.avatars em { font-style: normal; font-size: 12px; font-weight: 700; margin-left: 8px; }
.screen-body { padding: 0 12px 16px; margin-top: -26px; }
.mini-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.mini-actions div { background: #fff; border-radius: 14px; padding: 9px 4px; text-align: center; font-size: 10px; font-weight: 800; box-shadow: var(--shadow); }
.mini-actions b { display: block; font-size: 16px; color: var(--brand); }
.mini-card { background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.mini-card h4 { margin: 0 0 6px; font-size: 13px; font-weight: 800; }
.mini-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; }
.mini-row .ic { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; flex: none; }
.mini-row .t { flex: 1; font-weight: 700; line-height: 1.2; }
.mini-row .t small { display: block; color: var(--muted); font-weight: 600; font-size: 10px; }
.mini-row .time { font-weight: 800; font-size: 11px; }
.mini-card.plum { background: var(--plum-soft); display: flex; align-items: center; gap: 10px; }
.mini-card.plum .days { width: 42px; height: 42px; border-radius: 14px; background: var(--plum); color: #fff; display: grid; place-items: center; font-weight: 800; line-height: 1; font-size: 16px; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.01em; }
.section-lead { color: var(--muted); font-weight: 600; font-size: 20px; margin: 0 0 32px; max-width: 46ch; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .icon { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-weight: 600; font-size: 17px; }

.privacy-band { background: var(--plum); color: #fff; border-radius: 32px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.privacy-band h2 { color: #fff; }
.privacy-band p { color: rgba(255, 255, 255, 0.85); font-weight: 600; margin: 0 0 18px; }
.privacy-band a.btn-ghost { color: var(--plum); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.checks li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); display: grid; place-items: center; font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); font-weight: 600; font-size: 17px; }

.cta-final { text-align: center; background: var(--grad); color: #fff; border-radius: 32px; padding: 56px 24px; }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255, 255, 255, 0.9); font-weight: 600; font-size: 20px; margin: 0 auto 26px; max-width: 40ch; }
.cta-final .btn { background: #fff; color: var(--brand); }

/* ---------- document pages (privacy, support) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-top: 0; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc h3 { font-size: 20px; margin: 26px 0 6px; }
.doc p, .doc li { font-size: 18px; }
.doc ul { padding-left: 24px; }
.doc li { margin: 6px 0; }
.doc .placeholder { background: #FFF1C7; color: #6B4E00; border-radius: 6px; padding: 0 4px; font-weight: 700; }
.draft-banner { background: #FFF1C7; color: #6B4E00; border-radius: 16px; padding: 14px 18px; font-weight: 700; font-size: 16px; margin-bottom: 28px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 16px; font-weight: 600; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero .wrap, .privacy-band { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .features, .steps { grid-template-columns: 1fr; }
  .privacy-band { padding: 32px 24px; }
  .lead { max-width: none; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .nav { gap: 14px; }
  .nav a { font-size: 15px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
