/* 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;
}
/* Wordmark only: Geist Mono Bold subset to the letters of "vikke" (OFL, fonts/OFL-GeistMono.txt). */
@font-face {
  font-family: "Geist Mono Wordmark";
  src: url("/fonts/geist-mono-wordmark.woff2") format("woff2");
  font-weight: 700;
  font-display: block;
}
@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; }
/* Logo lockup (Figma "Vikke · Website", Logo lockup 5:61): dark icon + Geist Mono wordmark with a cursor block, then Beta. */
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.logo { display: flex; align-items: center; gap: 8.5px; }
.logo img { display: block; width: 36px; height: 36px; }
.wordmark {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-family: "Geist Mono Wordmark", ui-monospace, monospace; font-weight: 700;
  font-size: 30.3px; line-height: 1; letter-spacing: -0.04em;
}
.cursor { width: 15.2px; height: 19.4px; background: var(--lavender); }
/* The cursor blinks like a Terminal prompt: hard on/off, about 0.53s each. Four blinks on arrival, then it rests solid
   (WCAG 2.2.2: no unprompted blinking past 5s); it blinks again while the logo is hovered or focused. */
@media (prefers-reduced-motion: no-preference) {
  .cursor { animation: cursor-blink 1.06s steps(1, jump-end) 4; }
  .brand:hover .cursor, .brand:focus-visible .cursor { animation-iteration-count: infinite; }
}
@keyframes cursor-blink { 50% { opacity: 0; } }
.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; display: flex; margin: -18px 0 0 16px; position: relative; }
.reaction-pill { display: block; 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); }
.reaction-heart { display: inline-block; }

/* Reaction confetti: the "Like button" transition from transitions.dev (MIT), adapted. Eight dots spray out of the heart
   as the pill pops on. Each dot's vector, size and timing is set here because the CSP blocks inline styles. */
.reaction {
  --like-color: #f40051;
  --like-pop: 350ms;
  --like-pop-ease: cubic-bezier(0.34, 1.96, 0.64, 1);
  --like-particle-dur: 600ms;
  --like-particle-dist: 36px;
  --like-particle-size: 3.5px;
}
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; color: var(--like-color); }
.burst i {
  position: absolute;
  left: calc(var(--like-particle-size) * var(--psize, 1) / -2);
  top: calc(var(--like-particle-size) * var(--psize, 1) / -2);
  width: calc(var(--like-particle-size) * var(--psize, 1));
  height: calc(var(--like-particle-size) * var(--psize, 1));
  border-radius: 50%; background: currentColor; opacity: 0;
}
.burst i:nth-child(1) { --px: 0px;                                     --py: calc(var(--like-particle-dist) * -1.05); --psize: 1.2; }
.burst i:nth-child(2) { --px: calc(var(--like-particle-dist) * 0.8);   --py: calc(var(--like-particle-dist) * -0.8);  --pdelay: 30ms; }
.burst i:nth-child(3) { --px: calc(var(--like-particle-dist) * 1.15);  --py: 0px;  --psize: 1.3; --pdur: 660ms; }
.burst i:nth-child(4) { --px: calc(var(--like-particle-dist) * 0.75);  --py: calc(var(--like-particle-dist) * 0.75);  --pdelay: 20ms; --p-end-scale: 0.4; }
.burst i:nth-child(5) { --px: 0px;                                     --py: calc(var(--like-particle-dist) * 0.9);   --psize: 0.9; --pdur: 560ms; }
.burst i:nth-child(6) { --px: calc(var(--like-particle-dist) * -0.8);  --py: calc(var(--like-particle-dist) * 0.8);   --psize: 1.2; --pdelay: 40ms; }
.burst i:nth-child(7) { --px: calc(var(--like-particle-dist) * -1.1);  --py: 0px;  --pdur: 640ms; }
.burst i:nth-child(8) { --px: calc(var(--like-particle-dist) * -0.75); --py: calc(var(--like-particle-dist) * -0.8);  --psize: 1.3; --pdelay: 15ms; --p-end-scale: 0.4; }
.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 band artwork (Figma "Vikke · Website", Availability 7:164 / 8:245): light trails, wide on desktop and a tall
   wallpaper crop on phones, under the same dark wash. The 404 page keeps neon.jpg. */
.release.neon {
  background-image:
    linear-gradient(180deg, rgba(18, 14, 36, 0.55) 0%, rgba(18, 14, 36, 0.35) 45%, rgba(18, 14, 36, 0.75) 100%),
    url("/img/light-trails-wide.jpg");
}
.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 { display: block; width: 28px; height: 28px; }
.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; 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; }
  }
}
/* reaction.js arms the reaction (hidden) and fires it when Grandma's bubble reaches the middle of the screen. */
@media (prefers-reduced-motion: no-preference) {
  .reaction.is-armed .reaction-pill { opacity: 0; transform: scale(0.3); }
  .reaction.is-reacted .reaction-pill { animation: react-pill-in 420ms var(--like-pop-ease) both; }
  .reaction.is-reacted .reaction-heart { animation: t-like-pop var(--like-pop) var(--like-pop-ease) 140ms both; }
  .reaction.is-reacted .burst i { animation: t-like-burst var(--pdur, var(--like-particle-dur)) ease-out calc(140ms + var(--pdelay, 0ms)) both; }
}
@keyframes react-pill-in {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes t-like-pop { 0% { transform: scale(1); } 30% { transform: scale(0.82); } 100% { transform: scale(1); } }
@keyframes t-like-burst {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
  20%  { opacity: 1; transform: translate(calc(var(--px) * 0.25), calc(var(--py) * 0.25)) scale(1); }
  100% { opacity: 0; transform: translate(var(--px), var(--py)) scale(var(--p-end-scale, 0.6)); }
}
@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.55) 0%, rgba(18, 14, 36, 0.35) 45%, rgba(18, 14, 36, 0.75) 100%),
      url("/img/light-trails-wallpaper.jpg");
  }
}
