/* vikke.co marketing page (VIK-212). Vikke look: lavender #6c5ce7 on linen. Headings in Newsreader (a soft serif), text
   and the chat bubbles in Nunito, like the app. The hero is a family conversation; the neon artwork is kept for the
   closing waitlist band only. Self-hosted fonts, no third-party requests. */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --lavender: #6c5ce7;
  --lavender-ink: #5a4bd1;
  --lavender-wash: #efecff;
  --linen: #f8f7fb;
  --ink: #1a1828;
  --body: #2a2438;
  --muted: #5e5a6e;
  --hairline: #e6e3f0;
  --night: #1a1430;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--linen);
  color: var(--body);
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--lavender);
}
img { max-width: 100%; }
a { color: var(--lavender-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: #4535b8; }
:focus-visible { outline: 3px solid #b9adff; outline-offset: 3px; border-radius: 6px; }
::selection { background: #d9d3ff; color: var(--ink); }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: "Newsreader", Georgia, serif; font-weight: 400; letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }

.wrap { max-width: 1200px; margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 10px 14px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  padding: 16px 28px;
  border-radius: 999px;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--lavender); color: #fff; box-shadow: 0 10px 24px rgba(40, 30, 90, 0.22); }
.btn-primary:hover { background: var(--lavender-ink); color: #fff; }
.btn-quiet { border: 1.5px solid #cfc8f5; color: var(--lavender-ink); padding: 14.5px 26px; background: #fff; }
.btn-quiet:hover { border-color: var(--lavender); color: var(--lavender-ink); }
.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 15px 26px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header + hero: light and calm, the family photo leads */
.hero { padding: 0 24px 104px; background: linear-gradient(180deg, #f3f0fc 0%, var(--linen) 100%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-name { font-size: 22px; font-weight: 900; letter-spacing: -0.3px; }
.beta {
  font-size: 12px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--lavender-ink); background: var(--lavender-wash); border-radius: 999px; padding: 3px 9px;
}
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; padding: 12px 14px; }
.nav-links a:hover { color: var(--lavender-ink); text-decoration: underline; }
.nav-links .btn { font-size: 16px; padding: 10.5px 20px; }
.nav-links .btn:hover { text-decoration: none; }

.hero-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; max-width: 880px; margin: 0 auto; padding-top: 48px; }
h1 { margin: 0; font-size: clamp(46px, 6.2vw, 84px); line-height: 1.02; color: var(--ink); }
.lede { margin: 0; font-size: 21px; line-height: 1.55; font-weight: 500; color: var(--muted); max-width: 32em; }
.hero-center .btn-row { justify-content: center; padding-top: 4px; }
.hero-note { margin: 0; font-size: 15px; font-weight: 600; color: var(--muted); }

/* The hero picture is a conversation, drawn like the app's bubbles (Nunito, no avatars) */
.thread { max-width: 720px; margin: 64px auto 0; display: flex; flex-direction: column; gap: 12px; font-family: "Nunito", system-ui, sans-serif; }
.msg { align-self: flex-start; max-width: 82%; background: #fff; border-radius: 22px 22px 22px 6px; padding: 14px 18px; box-shadow: 0 12px 34px rgba(40, 30, 90, 0.10); text-align: left; }
.msg p { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--body); }
.msg .msg-name { margin-bottom: 2px; font-size: 13px; font-weight: 800; color: var(--lavender-ink); }
.msg-own { align-self: flex-end; background: var(--lavender); border-radius: 22px 22px 6px 22px; box-shadow: 0 12px 34px rgba(40, 30, 90, 0.18); }
.msg-own p { color: #fff; font-weight: 700; }
.msg-photo { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.msg-photo .msg-name, .msg-photo p { margin: 0 10px; }
.msg-photo .msg-name { margin-top: 6px; }
/* A second bubble from the same sender sits close under the first, with a squared-off top corner on its side. */
.msg-own.msg-follow { margin-top: -6px; border-radius: 22px 6px 6px 22px; }
.msg-photo p:last-child { margin-bottom: 6px; }
/* A reaction sits on the bottom edge of the bubble it belongs to, as in the app. */
.reaction { align-self: flex-start; margin: -18px 0 0 16px; padding: 3px 10px; font-size: 15px; line-height: 1.3; background: #fff; border: 1px solid #d9d3ff; border-radius: 999px; box-shadow: 0 4px 12px rgba(40, 30, 90, 0.10); position: relative; }
.msg-photo img { display: block; width: 280px; max-width: 100%; height: auto; aspect-ratio: 28 / 17; object-position: 50% 35%; object-fit: cover; border-radius: 16px; }

/* Phone frames: the screenshot sits snug in a thin bezel */
.phone { background: #121018; padding: 10px; }
.phone img { display: block; width: 100%; height: auto; object-fit: cover; object-position: top; }
.phone-full { width: 340px; max-width: 100%; border-radius: 50px; box-shadow: 0 30px 70px rgba(40, 30, 90, 0.25); }
.phone-full img { aspect-ratio: 1206 / 2622; border-radius: 40px; }

/* Sections */
.section { padding: 96px 24px; }
.section-white { background: #fff; border-top: 1px solid #ece9f4; border-bottom: 1px solid #ece9f4; }
.intro { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
h2 { margin: 0; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; color: var(--ink); }
.sub { margin: 0; font-size: 19px; line-height: 1.6; font-weight: 500; color: var(--muted); }

/* One promise, said big, with the reasons underneath */
.promise-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.promise-title { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; }
.promise-body { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.promises { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.promises li { padding: 18px 0; border-top: 1px solid var(--hairline); font-size: 17px; line-height: 1.6; font-weight: 500; color: var(--muted); }
.promises li:last-child { border-bottom: 1px solid var(--hairline); }
.promises strong { display: block; font-size: 19px; font-weight: 800; color: var(--ink); margin-bottom: 2px; }

.features { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.features-shot { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.features-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--body); }
.tick { flex-shrink: 0; margin-top: 2px; color: var(--lavender); }
.aside { margin: 0; font-size: 15px; font-weight: 700; color: var(--muted); }

.circle-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; align-items: start; }
.circle-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.circle-list li { font-size: 17px; line-height: 1.6; font-weight: 500; color: var(--muted); }
.circle-list strong { display: block; font-size: 19px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }

.section-soon { padding: 0 24px 96px; }
.soon-box { background: var(--lavender-wash); border-radius: 28px; padding: 36px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px 64px; align-items: center; }
.soon-box h2 { font-size: 30px; line-height: 1.15; }
.soon-box p { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 500; color: #4c4860; }
.soon-box strong { color: var(--ink); }

/* Closing band: the one place the neon artwork appears */
.neon {
  color: #fff;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(18, 14, 36, 0.72) 0%, rgba(18, 14, 36, 0.4) 70%, rgba(18, 14, 36, 0.25) 100%),
    url("/img/neon.jpg");
  background-size: cover;
  background-position: center;
}
.release { padding: 96px 24px; }
.release .wrap { max-width: 760px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.release h2 { color: #fff; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
.release p { margin: 0; font-size: 19px; line-height: 1.6; font-weight: 500; color: #ece9ff; }
.release .btn-row { justify-content: center; padding-top: 8px; }
.release .btn-primary { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.release .release-note { font-size: 14px; font-weight: 600; color: #d9d3ff; }

.footer { padding: 40px 24px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--muted); }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-inline: -10px; }
.footer nav a { font-size: 15px; font-weight: 700; padding: 12px 10px; }

/* Page not found (404.html): the neon fills the screen */
.notfound { min-height: 100vh; display: flex; flex-direction: column; padding: 0 24px; }
.notfound > .wrap { flex: 1; width: 100%; display: flex; flex-direction: column; }
.notfound .brand, .notfound .brand:hover { color: #fff; }
.notfound .beta { color: #fff; background: rgba(255, 255, 255, 0.16); }
.notfound-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 24px; max-width: 640px; padding: 48px 0 96px; }
.notfound h1 { color: #fff; }
.notfound .lede { color: #ece9ff; }

/* Scroll moment (VIK-212): the promise stays pinned while the family conversation scrolls up over it; the headline
   recedes as the messages arrive, then the next section takes over. CSS only (the CSP allows no scripts); browsers
   without scroll-driven animations still get the pinned headline. Off for reduced motion and very short screens. */
@media (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  .hero-center { position: sticky; top: 40px; z-index: 0; }
  .thread { position: relative; z-index: 1; margin-top: 96px; }
  @media (max-width: 600px) {
    .hero-center { top: 16px; }
    .thread { margin-top: 56px; }
  }
  @supports (animation-timeline: scroll()) {
    .hero-center {
      animation: hero-recede linear both;
      animation-timeline: scroll(root);
      animation-range: 0 60vh;
    }
    .thread > * {
      animation: msg-arrive linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 90%;
    }
    .thread > .msg-own { animation-name: msg-arrive-own; }
  }
}
@keyframes hero-recede {
  to { opacity: 0.28; transform: scale(0.96); filter: blur(2px); }
}
@keyframes msg-arrive {
  from { opacity: 0; transform: translate(-16px, 28px); }
}
@keyframes msg-arrive-own {
  from { opacity: 0; transform: translate(16px, 28px); }
}

@media (max-width: 900px) {
  .promise-grid, .circle-grid, .soon-box { grid-template-columns: minmax(0, 1fr); }
  .promise-grid, .circle-grid { gap: 32px; }
}

@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-bottom: 72px; }
  .lede { font-size: 19px; }
  .btn-row .btn { flex: 1 1 auto; text-align: center; }
  .section, .release { padding-top: 72px; padding-bottom: 72px; }
  .circle-list { grid-template-columns: minmax(0, 1fr); }
  .soon-box { padding: 28px; }
  .phone-full { width: 300px; }
  .hero-center { padding-top: 24px; }
  .thread { margin-top: 44px; }
  .msg { max-width: 92%; }
  .msg p { font-size: 16px; }
  .release.neon { background-image: linear-gradient(180deg, rgba(18, 14, 36, 0.72), rgba(18, 14, 36, 0.72)), url("/img/neon.jpg"); }
}
