/* =========================================================
   Dear Future — single-page marketing site
   Palette and typography mirror the Ionic app so the brand
   reads as one continuous voice.
   ========================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 700;
  font-display: optional;
  src: url('assets/fonts/caveat-latin.woff2') format('woff2');
}

:root {
  /* Brand */
  --primary: #6c63ff;
  --primary-2: #7b73ff;
  --primary-3: #9e8bff;
  --primary-soft: #f0edff;
  --accent: #f5c1c4;
  --accent-2: #ffd9c2;

  /* Surface */
  --bg: #faf9ff;
  --surface: #ffffff;
  --surface-2: #f7f6fc;

  /* Ink */
  --ink: #1c1a2b;
  --ink-2: #3a374f;
  --muted: #6f6c80;

  /* Functional */
  --success: #67c6a3;
  --warm: #f5c76b;

  /* Effects */
  --shadow-sm: 0 4px 16px -8px rgba(82, 71, 161, 0.18);
  --shadow-md: 0 12px 32px -16px rgba(82, 71, 161, 0.28);
  --shadow-lg: 0 30px 60px -30px rgba(82, 71, 161, 0.35);
  --ring: 0 0 0 4px rgba(108, 99, 255, 0.22);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1140px;

  --gradient-brand: linear-gradient(135deg, #6c63ff 0%, #7b73ff 45%, #9e8bff 100%);
  --gradient-hero: radial-gradient(1200px 800px at 80% -10%, #efeaff 0%, transparent 60%),
                   radial-gradient(900px 700px at -10% 30%, #ffe7ec 0%, transparent 65%),
                   linear-gradient(180deg, #fdfcff 0%, #f6f1ff 100%);
  --gradient-sky: linear-gradient(180deg, #efeaff 0%, #ffe7ec 100%);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'SF Pro Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--ink-2); }

/* ---------- Layout helpers ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--alt { background: var(--surface-2); }
.section__head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section__lede { color: var(--muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: .35rem .9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.script {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-style: italic;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.script--lg { font-size: 2.2rem; line-height: 1.2; color: var(--primary); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; z-index: 1000; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { box-shadow: var(--shadow-lg); }

.btn--ghost {
  background: rgba(255,255,255,.7);
  color: var(--primary);
  border-color: var(--primary);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: #fff; }

.btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(250, 249, 255, .72);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled {
  background: rgba(255,255,255,.86);
  border-bottom-color: rgba(28,26,43,.06);
  box-shadow: 0 4px 30px -20px rgba(82,71,161,.18);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand__name { font-size: 1.05rem; letter-spacing: -0.01em; }

.nav__links {
  display: flex; gap: 1.6rem;
}
.nav__links a {
  color: var(--ink-2); font-weight: 500; font-size: .96rem;
  text-decoration: none;
}
.nav__links a:hover { color: var(--primary); text-decoration: none; }

@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  background: var(--gradient-hero);
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .55;
  animation: float 16s ease-in-out infinite;
}
.blob--1 { width: 380px; height: 380px; left: -80px; top: -100px; background: #d8d2ff; }
.blob--2 { width: 320px; height: 320px; right: -60px; top: 100px; background: #ffd3da; animation-delay: -4s; }
.blob--3 { width: 460px; height: 460px; left: 35%; bottom: -200px; background: #efe7ff; animation-delay: -8s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -28px) scale(1.05); }
}
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 80% 70%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(2px 2px at 30% 80%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1.5px 1.5px at 50% 50%, rgba(255,255,255,.5), transparent 60%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__cta { justify-content: center; }
  .hero__meta { justify-content: center; }
}

.hero__content h1 {
  display: flex; align-items: baseline; gap: .35em; flex-wrap: wrap;
  margin-bottom: .3rem;
  font-family: 'Caveat', cursive;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: .95;
}
.hero__content .eyebrow {
  letter-spacing: .06em;
  text-transform: none;
}
@media (max-width: 920px) {
  .hero__content h1 { justify-content: center; }
}
.hero__content h1 .script {
  font-size: 1em;
  font-weight: 500;
  color: var(--primary-3);
}
.hero__title {
  font-weight: 500;
  color: var(--ink);
}

.hero__tagline {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.75rem, 2.7vw, 2.15rem);
  font-weight: 500;
  color: var(--ink);
  margin: .4rem 0 1.25rem;
}

.hero__lede {
  max-width: 36ch;
  font-size: 1.1rem;
  color: var(--ink-2);
}
@media (max-width: 920px) { .hero__lede { margin-inline: auto; } }

.hero__cta {
  display: flex; gap: .8rem; flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero__meta {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.hero__meta li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__meta span { color: var(--primary); }

/* Hero art: a centred "letter" with two memos floating around it */
.hero__art {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
}
.card-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 480px;
}

/* Visual card styling — applied to .memo elements inside the slots and to .memo--1 (the focal). */
.memo {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(28,26,43,.04);
}
.memo--mini {
  padding: .7rem .9rem;
  border-radius: 18px;
}

.memo__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem;
  margin-bottom: .45rem;
}
.memo__age {
  font-size: .72rem; font-weight: 700;
  color: var(--primary); background: var(--primary-soft);
  padding: .15rem .55rem;
  border-radius: var(--radius-pill);
  letter-spacing: .02em;
  white-space: nowrap;
}
.memo__date {
  font-size: .72rem; font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.memo__title { margin-top: 0;     font-weight: 700; color: var(--ink); font-size: .98rem; line-height: 1.3; }
.memo__body  { margin-top: .25rem; color: var(--ink-2); font-size: .88rem; line-height: 1.4; }
.memo__media { margin-top: .7rem;  display: flex; gap: .35rem; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .76rem; font-weight: 600;
  padding: .22rem .6rem; border-radius: var(--radius-pill);
}
.chip svg { width: 12px; height: 12px; flex-shrink: 0; }
.chip--photo { background: var(--primary-soft); color: var(--primary); }
.chip--video { background: #fff3df;             color: #a4751a; }
.chip--voice { background: #ffe7ec;             color: #c5546a; }

/* Mini memos stack age + date vertically so the card stays narrow. */
.memo--mini .memo__meta {
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  margin-bottom: .4rem;
}
.memo--mini .memo__age   { font-size: .64rem; padding: .08rem .45rem; }
.memo--mini .memo__date  { font-size: .66rem; }
.memo--mini .memo__title { font-size: .85rem; line-height: 1.25; }
.memo--mini .memo__media { margin-top: .45rem; gap: .3rem; }
.memo--mini .chip        { font-size: .68rem; padding: .15rem .45rem; gap: .25rem; }
.memo--mini .chip svg    { width: 10px; height: 10px; }

/* Centred focal card: the envelope + "A letter, waiting" */
.memo--1 {
  position: absolute;
  top: 50%; left: 50%;
  width: 240px;
  --tx: -50%;
  --ty: -50%;
  --rot: 0deg;
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
  animation: memoFloat 9s ease-in-out infinite;
  animation-delay: -1s;
  /* Sits above any z-index the carousel can ever bump a slot to. */
  z-index: 999999;
  background: var(--gradient-sky);
  text-align: center;
  padding: 1.7rem 1.3rem 1.4rem;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.memo--1 .memo__envelope { display: flex; justify-content: center; margin-bottom: .6rem; }
.memo--1 .memo__envelope img {
  width: 104px; height: 104px;
  border-radius: 24px;
  box-shadow: 0 18px 40px -18px rgba(108, 99, 255, .55);
}
.memo--1 .memo__sub {
  font-family: 'Caveat', cursive;
  color: var(--ink-2);
  font-size: 1.5rem;
  line-height: 1.1;
}

/* Slot wrappers — positioned, rotated, gently floating. Content swaps inside. */
.memo-slot {
  position: absolute;
  --tx: 0px;
  --ty: 0px;
  --rot: 0deg;
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
  animation: memoFloat 8s ease-in-out infinite;
  will-change: transform;
}

/* Full-size slot positions (8 total — 4 active at any time) */
.memo-slot--2  { top: 2%;     right: -6%;  width: 215px; --rot:  4deg; z-index: 3; animation-delay: -3s;   animation-duration: 8s; }
.memo-slot--3  { bottom: 3%;  left:  -6%;  width: 235px; --rot: -4deg; z-index: 3; animation-delay: -5.5s; animation-duration: 9s; }
.memo-slot--4  { top: 6%;     left:  -4%;  width: 195px; --rot: -5deg; z-index: 3; animation-delay: -2s;   animation-duration: 8.5s; }
.memo-slot--5  { bottom: 6%;  right: -2%;  width: 215px; --rot:  5deg; z-index: 3; animation-delay: -4.5s; animation-duration: 9.5s; }
.memo-slot--8  { top: -2%;    right: 24%;  width: 195px; --rot: -3deg; z-index: 3; animation-delay: -1.5s; animation-duration: 8.8s; }
.memo-slot--9  { bottom: -2%; left:  26%;  width: 205px; --rot:  3deg; z-index: 3; animation-delay: -4s;   animation-duration: 9.3s; }
.memo-slot--10 { top: 40%;    left: -14%;  width: 200px; --rot: -8deg; z-index: 3; animation-delay: -2.5s; animation-duration: 9.8s; }
.memo-slot--11 { top: 42%;    right:-14%;  width: 200px; --rot:  8deg; z-index: 3; animation-delay: -6s;   animation-duration: 8.2s; }

/* Mini slot positions (4 total — 2 active at any time) */
.memo-slot--6  { top: 60%;    left: -16%;  width: 130px; --rot:-10deg; z-index: 2; animation-delay: -6.5s; animation-duration: 10s; }
.memo-slot--7  { top: 18%;    right:-16%;  width: 145px; --rot:  9deg; z-index: 2; animation-delay: -7.5s; animation-duration: 10.5s; }
.memo-slot--12 { top: 18%;    left: -14%;  width: 135px; --rot: -8deg; z-index: 2; animation-delay: -3.5s; animation-duration: 10.2s; }
.memo-slot--13 { top: 62%;    right:-14%;  width: 140px; --rot:  7deg; z-index: 2; animation-delay: -5s;   animation-duration: 9.6s; }

/* Inner wrapper holds the in/out scale + opacity animation, kept on a
   separate transform layer so it never fights with the parent's float.
   `both` fill-mode means the 0% keyframe is applied before paint, so a
   newly-populated slot is invisible from the very first frame. */
.memo-inner {
  display: block;
  width: 100%;
  transform-origin: center;
}
.memo-inner:empty { display: none; }
.memo-inner.is-leaving  { animation: memoPopOut .42s ease-in                       both; }
.memo-inner.is-entering { animation: memoPopIn  .55s cubic-bezier(.2, .9, .3, 1.2) both; }

@keyframes memoFloat {
  0%, 100% { transform: translate(var(--tx), var(--ty))               rotate(var(--rot)); }
  50%      { transform: translate(var(--tx), calc(var(--ty) - 10px))  rotate(var(--rot)); }
}
@keyframes memoPopOut {
  0%   { opacity: 1; transform: scale(1)   translateY(0); }
  100% { opacity: 0; transform: scale(.82) translateY(6px); }
}
@keyframes memoPopIn {
  0%   { opacity: 0; transform: scale(.82) translateY(8px); }
  60%  { opacity: 1; transform: scale(1.04) translateY(-2px); }
  100% { opacity: 1; transform: scale(1)    translateY(0); }
}

@media (max-width: 920px) {
  .hero__art { min-height: 520px; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .hero__art { min-height: 460px; padding: 10px; }
  .card-stack { height: 440px; max-width: 380px; }
  .memo--1 { width: 220px; padding: 1.4rem 1.1rem 1.2rem; }
  .memo--1 .memo__envelope img { width: 88px; height: 88px; border-radius: 20px; }
  .memo--1 .memo__sub { font-size: 1.3rem; }
  .memo-slot--2  { width: 175px; right: -4%; }
  .memo-slot--3  { width: 195px; left:  -4%; }
  .memo-slot--4  { width: 165px; left:  -2%; }
  .memo-slot--5  { width: 180px; right: -2%; }
  .memo-slot--8  { width: 165px; right: 18%; }
  .memo-slot--9  { width: 175px; left:  18%; }
  .memo-slot--10 { width: 170px; left:  -6%; }
  .memo-slot--11 { width: 170px; right: -6%; }
  .memo-slot--6  { width: 110px; left:  -8%; }
  .memo-slot--7  { width: 120px; right: -8%; }
  .memo-slot--12 { width: 115px; left:  -6%; }
  .memo-slot--13 { width: 115px; right: -6%; }
}

/* ---------- Story ---------- */
.story {
  background: var(--surface);
  padding: clamp(4.5rem, 7vw, 5.5rem) 0;
}
.story__inner { max-width: 800px; margin: 0 auto; text-align: center; }
.story__quote { margin-bottom: 1.35rem; }
.story__quote .script--lg {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--ink);
}
.story__body  {
  max-width: 780px;
  margin-inline: auto;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.55;
  color: #5b5875;
}
.story__body + .story__body { margin-top: 1.25rem; }

/* ---------- How steps ---------- */
.how-steps {
  background: #f3f0fb;
  padding: clamp(5rem, 9vw, 7.5rem) 0 clamp(5.5rem, 9vw, 7.2rem);
}
.how-steps__inner { max-width: 1000px; }
.how-steps__head {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.how-steps__eyebrow {
  background: #fff;
  box-shadow: 0 1px 0 rgba(28, 26, 43, .05);
  letter-spacing: .04em;
  text-transform: none;
}
.how-steps__head h2 {
  margin: .35rem 0 .6rem;
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.how-steps__head p {
  margin: 0;
  color: #5b5875;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}
.how-steps__list {
  list-style: none;
  padding: 0;
  margin: clamp(4.4rem, 8vw, 5.8rem) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  position: relative;
}
.how-steps__list::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 39px;
  height: 2px;
  background: #b9aaff;
}
.how-step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.how-step__icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.65rem;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 18px 44px -22px rgba(82, 71, 161, .34);
}
.how-step__icon svg {
  width: 30px;
  height: 30px;
}
.how-step h3 {
  margin: 0 0 .45rem;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--ink);
}
.how-step p {
  max-width: 285px;
  margin: 0 auto;
  color: #5b5875;
  font-size: 1rem;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .how-steps__list {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    margin-top: 3.2rem;
  }
  .how-steps__list::before {
    left: 50%;
    right: auto;
    top: 20px;
    bottom: 20px;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }
  .how-step {
    background: #f3f0fb;
  }
}

/* ---------- Privacy ---------- */
.privacy {
  background: var(--surface);
  padding-top: clamp(5.5rem, 9vw, 7.2rem);
  padding-bottom: clamp(5.5rem, 9vw, 7.2rem);
}
.privacy__inner {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(520px, 1.25fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}
.privacy__copy .eyebrow {
  letter-spacing: .04em;
  text-transform: none;
}
.privacy__copy h2 {
  max-width: 470px;
  margin-top: .55rem;
  margin-bottom: 1.35rem;
  font-size: clamp(2.65rem, 5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.privacy__copy p {
  max-width: 500px;
  color: #5b5875;
  font-size: clamp(1.08rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}
.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1rem;
  min-height: 38px;
  padding: .45rem 1rem;
  border: 1px solid rgba(108, 99, 255, .12);
  border-radius: 999px;
  background: #f4f0ff;
  color: var(--primary);
  font-weight: 500;
  font-size: .95rem;
}
.privacy-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67c6a3;
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, 1fr));
  gap: 1rem;
}
.privacy-card {
  min-height: 180px;
  padding: 1.55rem;
  border: 1px solid rgba(108, 99, 255, .18);
  border-radius: 14px;
  background: #fff;
}
.privacy-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: #f2edff;
  color: var(--primary);
}
.privacy-card__icon svg {
  width: 22px;
  height: 22px;
}
.privacy-card h3 {
  margin: 0 0 .55rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.privacy-card p {
  margin: 0;
  color: #5b5875;
  font-size: .95rem;
  line-height: 1.55;
}
@media (max-width: 920px) {
  .privacy__inner {
    grid-template-columns: 1fr;
  }
  .privacy__copy h2,
  .privacy__copy p {
    max-width: none;
  }
}
@media (max-width: 560px) {
  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- What's inside ---------- */
.inside {
  background: var(--surface);
  padding: clamp(5.5rem, 9vw, 7.8rem) 0 clamp(5.5rem, 9vw, 7.6rem);
  overflow: hidden;
}
.inside__inner { max-width: 1050px; }
.inside__head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.inside__eyebrow {
  letter-spacing: .04em;
  text-transform: none;
}
.inside__head h2 {
  margin: .55rem 0 .8rem;
  font-size: clamp(2.35rem, 5vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}
.inside__head p {
  margin: 0;
  color: #5b5875;
  font-size: clamp(1.05rem, 1.55vw, 1.18rem);
}
.inside__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  gap: clamp(3rem, 8vw, 6rem);
  align-items: center;
  margin-top: clamp(4rem, 7vw, 5.4rem);
}
.inside__control {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.inside__tabs {
  display: grid;
  gap: 2.25rem;
}
.inside-tab {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 86px;
  padding: 1.15rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #faf8ff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.inside-tab__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(108, 99, 255, .12);
}
.inside-tab__icon svg { width: 23px; height: 23px; }
.inside-tab strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}
.inside-tab em {
  display: block;
  margin-top: .2rem;
  color: #5b5875;
  font-style: normal;
  font-size: .95rem;
}
#inside-capture:focus-visible ~ .inside__tabs .inside-tab--capture,
#inside-story:focus-visible ~ .inside__tabs .inside-tab--story,
#inside-share:focus-visible ~ .inside__tabs .inside-tab--share {
  outline: none;
  box-shadow: var(--ring);
}
#inside-capture:checked ~ .inside__tabs .inside-tab--capture,
#inside-story:checked ~ .inside__tabs .inside-tab--story,
#inside-share:checked ~ .inside__tabs .inside-tab--share {
  background: #fff;
  border-color: #cfc7ff;
  box-shadow: 0 22px 52px -34px rgba(82, 71, 161, .44);
}
#inside-capture:checked ~ .inside__tabs .inside-tab--capture .inside-tab__icon,
#inside-story:checked ~ .inside__tabs .inside-tab--story .inside-tab__icon,
#inside-share:checked ~ .inside__tabs .inside-tab--share .inside-tab__icon {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: none;
}
.inside__stage {
  min-height: 380px;
  position: relative;
}
.inside-panel {
  display: none;
  min-height: 380px;
}
#inside-capture:checked ~ .inside__stage .inside-panel--capture,
#inside-story:checked ~ .inside__stage .inside-panel--story,
#inside-share:checked ~ .inside__stage .inside-panel--share {
  display: block;
}
.capture-art,
.timeline-art,
.wifi-art {
  position: relative;
  min-height: 300px;
}
.media-card,
.note-card,
.voice-card,
.draft-pill,
.child-pill,
.memory-card,
.wifi-art,
.inside-chips span {
  border: 1px solid rgba(108, 99, 255, .18);
  background: #fff;
  box-shadow: 0 22px 55px -36px rgba(82, 71, 161, .55);
}
.media-card {
  position: absolute;
  width: 130px;
  height: 158px;
  border-radius: 14px;
}
.media-card--photo {
  left: 80px;
  top: 34px;
  background: linear-gradient(135deg, #fff4dc, #e7d8ff 82%);
}
.media-card--video {
  right: 64px;
  top: 28px;
  background: linear-gradient(160deg, #8a61f3, #bda8ff);
}
.media-card span {
  position: absolute;
  width: 70px;
  height: 70px;
  left: 20px;
  top: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
}
.media-card small {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: rgba(255,255,255,.9);
  font-size: .72rem;
}
.note-card {
  position: absolute;
  left: 170px;
  top: 84px;
  width: 260px;
  padding: 1.45rem 1.55rem;
  border-radius: 14px;
  z-index: 2;
}
.note-card small,
.note-card em {
  display: block;
  color: #8a86a2;
  font-size: .72rem;
  font-style: normal;
}
.note-card b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: .35rem;
  border-radius: 50%;
  background: #ede8ff;
  color: var(--primary);
}
.note-card p {
  font-family: 'Caveat', cursive;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.25;
  margin: .55rem 0 .85rem;
}
.note-card span {
  display: block;
  height: 7px;
  margin-bottom: .8rem;
  background: #e8e2fb;
}
.voice-card {
  position: absolute;
  left: 98px;
  top: 260px;
  width: 210px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 0 1rem;
  border-radius: 14px;
}
.voice-card b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
}
.voice-card b svg {
  width: 18px;
  height: 18px;
}
.voice-card__wave {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
}
.voice-card__wave i {
  display: block;
  width: 5px;
  height: var(--h);
  border-radius: 999px;
  background: #c5b7ff;
}
.voice-card small { color: #7b7894; font-size: .72rem; }
.draft-pill {
  position: absolute;
  right: 72px;
  top: 252px;
  padding: .45rem .7rem;
  border-radius: 999px;
  color: #5b5875;
  font-size: .74rem;
}
.timeline-art { max-width: 520px; margin-inline: auto; }
.child-pill {
  position: absolute;
  left: 258px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .9rem;
  border-radius: 14px;
}
.child-pill b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #efe6ff;
  color: var(--primary);
}
.child-pill span { font-weight: 700; font-size: .92rem; }
.child-pill small { display: block; color: #8a86a2; font-weight: 500; }
.timeline-line {
  position: absolute;
  left: 305px;
  top: 86px;
  width: 1px;
  height: 220px;
  background: #d8d0ff;
}
.timeline-line span {
  position: absolute;
  left: 18px;
  color: #8a86a2;
}
.timeline-line span:nth-child(1) { top: -8px; }
.timeline-line span:nth-child(2) { top: 78px; }
.timeline-line span:nth-child(3) { top: 162px; }
.timeline-line span::before {
  content: "";
  position: absolute;
  left: -25px;
  top: .42em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background: #fff;
}
.memory-card {
  position: absolute;
  width: 145px;
  padding: .8rem .85rem;
  border-radius: 10px;
  font-size: .74rem;
}
.memory-card small {
  color: #d75ba2;
  font-weight: 700;
}
.memory-card strong {
  display: block;
  color: var(--ink);
  margin-top: .2rem;
}
.memory-card em {
  display: block;
  color: #8a86a2;
  font-style: normal;
  margin-top: .15rem;
}
.memory-card--one { left: 90px; top: 108px; }
.memory-card--two { left: 90px; top: 215px; }
.memory-card--three { right: 4px; top: 172px; }
.wifi-art {
  max-width: 420px;
  min-height: 240px;
  margin: 30px auto 46px;
  border-radius: 28px;
  box-shadow: none;
}
.wifi-tag,
.cloud-tag {
  position: absolute;
  top: -13px;
  padding: .18rem .8rem;
  border: 1px solid rgba(108, 99, 255, .22);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .06em;
}
.wifi-tag { left: 50%; transform: translateX(-50%); }
.cloud-tag {
  right: -8px;
  top: -36px;
  color: #8a86a2;
  letter-spacing: 0;
}
.family-node {
  position: absolute;
  text-align: center;
  color: #5b5875;
  font-size: .72rem;
}
.family-node b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: .35rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(108, 99, 255, .14);
  color: var(--primary);
}
.family-node--mum { left: 55px; top: 36px; }
.family-node--dad { right: 55px; top: 32px; }
.family-node--child { left: 50%; bottom: 18px; transform: translateX(-50%); }
.wifi-core {
  position: absolute;
  left: 50%;
  top: 74px;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 18px 34px -18px rgba(108, 99, 255, .7);
}
.wifi-core svg { width: 28px; height: 28px; }
.inside-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin-top: 1.1rem;
}
.inside-chips span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 32px;
  padding: .4rem .85rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: .82rem;
  box-shadow: 0 8px 18px -14px rgba(82, 71, 161, .5);
}
.inside-chips svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
  flex: 0 0 auto;
}
@media (max-width: 920px) {
  .inside__body {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .inside__tabs {
    grid-template-columns: repeat(3, 1fr);
    gap: .85rem;
  }
  .inside-tab {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 1rem;
  }
}
@media (max-width: 680px) {
  .inside__tabs { grid-template-columns: 1fr; }
  .inside__stage,
  .inside-panel,
  .capture-art,
  .timeline-art,
  .wifi-art { min-height: auto; }
  .capture-art,
  .timeline-art {
    display: grid;
    gap: .9rem;
  }
  .media-card,
  .note-card,
  .voice-card,
  .draft-pill,
  .child-pill,
  .memory-card {
    position: static;
    width: auto;
  }
  .media-card { height: 120px; }
  .timeline-line { display: none; }
  .memory-card--three { margin-left: 0; }
  .wifi-art { min-height: 240px; }
}

/* ---------- Showcase (phone screenshots) ---------- */
.showcase {
  background: #f3f0fb;
  overflow: hidden;
  padding-top: clamp(5.5rem, 9vw, 7.6rem);
  padding-bottom: clamp(4rem, 7vw, 5.8rem);
}
.showcase .section__head {
  max-width: 760px;
  margin-bottom: clamp(4rem, 7vw, 5.5rem);
}
.showcase .eyebrow {
  background: #fff;
  letter-spacing: .04em;
  text-transform: none;
}
.showcase .section__head h2 {
  margin-top: .55rem;
  margin-bottom: .8rem;
  font-size: clamp(2.45rem, 5vw, 3.35rem);
  line-height: 1.08;
}
.showcase .section__lede {
  max-width: 720px;
  margin: 0 auto;
  color: #5b5875;
  font-size: clamp(1.05rem, 1.55vw, 1.18rem);
}
.phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 0;
  align-items: end;
  max-width: 590px;
  margin: 0 auto;
  position: relative;
  filter: drop-shadow(0 24px 60px rgba(108, 99, 255, .18));
}
@media (max-width: 760px) {
  .phones {
    grid-template-columns: 1fr;
    max-width: 340px;
    gap: 2.2rem;
    filter: none;
  }
}

.phone {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.phone__frame {
  position: relative;
  width: 100%;
  max-width: 310px;
  padding: 8px;
  background: #111729;
  border-radius: 40px;
  box-shadow:
    0 26px 70px -36px rgba(28, 26, 43, .42),
    0 0 0 1px rgba(17, 23, 41, .1);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.phone__frame::before {
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 82px; height: 24px;
  background: #111729;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}
.phone__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  background: var(--surface);
}

.phone--left {
  z-index: 1;
  transform: translateX(40px);
}
.phone--right {
  z-index: 2;
  transform: translateX(-40px) translateY(44px);
}
.phone--left  .phone__frame { transform: rotate(0deg); }
.phone--right .phone__frame {
  max-width: 300px;
  transform: rotate(0deg);
}
.phone:hover .phone__frame  { transform: translateY(-4px); }

.phone figcaption {
  margin-top: 2rem;
  max-width: 280px;
}
.phone figcaption strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .35rem;
  letter-spacing: -0.01em;
}
.phone figcaption span {
  display: block;
  color: #5b5875;
  font-size: .94rem;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .phone--left,
  .phone--right {
    transform: none;
  }
  .phone--right .phone__frame,
  .phone__frame {
    max-width: 300px;
  }
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(28,26,43,.04);
  transition: box-shadow .25s ease;
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-weight: 700; color: var(--primary); font-size: 1.4rem;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__inner { max-width: 640px; margin: 0 auto; }
.cta p { color: var(--ink-2); font-size: 1.1rem; }

.stores {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin: 1.8rem 0 .5rem;
}
.store {
  display: inline-flex; align-items: center; gap: .8rem;
  background: var(--ink);
  color: #fff;
  padding: .8rem 1.3rem;
  border-radius: 14px;
  text-decoration: none;
  min-width: 180px;
  transition: transform .15s ease, opacity .15s ease;
}
.store:hover { transform: translateY(-2px); text-decoration: none; opacity: .92; }
.store svg { width: 28px; height: 28px; }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store small { font-size: .72rem; opacity: .8; font-weight: 500; }
.store strong { font-size: 1.05rem; font-weight: 700; }

/* ---------- Sub-page hero + long-form prose (e.g. privacy) ---------- */
.page-hero {
  background: var(--gradient-hero);
  padding: clamp(4rem, 9vw, 6rem) 0 clamp(2rem, 5vw, 3rem);
  text-align: center;
  isolation: isolate;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: .4rem;
}
.page-hero__sub {
  color: var(--muted);
  font-size: .98rem;
  margin: 0;
}

.container--narrow { max-width: 720px; }

.prose { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.prose h2 {
  font-size: 1.35rem;
  margin: 2.6rem 0 .7rem;
  letter-spacing: -0.01em;
}
.prose > .container--narrow > h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 1.8rem 0 .5rem; }
.prose p {
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 1.02rem;
  margin: 0 0 1em;
}
.prose ul {
  margin: 0 0 1.4rem 1.4rem;
  padding: 0;
  color: var(--ink-2);
  line-height: 1.7;
}
.prose ul li { margin-bottom: .55rem; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { text-decoration-thickness: 2px; }

.callout {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 0 0 2.8rem;
}
.callout h2 {
  margin: 0 0 .5rem;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.callout p {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
}

.prose__back {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(28,26,43,.08);
}

/* ---------- Footer ---------- */
.footer {
  padding: 2.4rem 0;
  background: var(--ink);
  color: rgba(255,255,255,.78);
}
.footer p { color: inherit; }
.footer a { color: rgba(255,255,255,.78); }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
}
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
}
.footer__brand {
  display: inline-flex; align-items: center; gap: .8rem;
}
.footer__brand img { border-radius: 8px; }
.footer__brand strong { display: block; color: #fff; font-size: 1rem; }
.footer__brand span { font-family: 'Caveat', cursive; font-size: 1rem; opacity: .8; }
.footer__links {
  display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap;
}
.footer__links a { font-size: .94rem; }
.footer__legal { margin: 0; font-size: .88rem; opacity: .8; text-align: right; }
@media (max-width: 760px) { .footer__legal { text-align: center; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }
}
