:root {
  --cream: #FBF8F2;
  --brown: #5B3A29;
  --ink: #1E1410;
  --lilac: #DDD3F3;
  --lilac-soft: #ECE6F8;
  --purple: #7E6BB5;
  --pink: #F7DFE5;
  --rose: #C2607A;
  --sage: #E4EFD9;
  --muted: #8A6A55;
  --dot: #E3D9EE;

  --sans: 'M PLUS Rounded 1c', system-ui, sans-serif;
  --serif: 'Instrument Serif', serif;
  --mono: 'DotGothic16', monospace;
  --line: 1.5px solid var(--brown);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--cream);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  font-family: var(--sans);
  color: var(--brown);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brown); }
a:hover { color: var(--purple); }
h1, h2, h3, p { margin: 0; }
img { display: block; }

.page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.serif-accent { font-family: var(--serif); font-style: italic; font-weight: 400; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; color: var(--muted); }
.mono { font-family: var(--mono); }
.h2 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 700; line-height: 1.1; text-wrap: balance; }
.lede { font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.section-head { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Logo ---------- */
.logo { position: relative; display: block; width: 120px; height: 64px; }
.logo svg { position: absolute; inset: 0; }
.logo-word {
  position: absolute; left: 0; right: 0; top: 8px; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 39px; line-height: 1; color: var(--brown);
}
.logo--sm { width: 100px; height: 54px; }
.logo--sm .logo-word { top: 6px; font-size: 33px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10; width: 100%;
  background: rgba(251, 248, 242, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: var(--line);
}
.site-header__inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-header__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav .nav-cta {
  background: var(--brown); color: var(--cream); padding: 8px 16px; border-radius: 99px; font-weight: 700;
}
.nav-cta {
  background: var(--brown); color: var(--cream); padding: 8px 16px; border-radius: 99px;
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.nav .nav-cta:hover, .nav-cta:hover { background: var(--purple); color: var(--cream); }
.site-header__actions { display: none; align-items: center; gap: 10px; }
.menu-btn {
  all: unset; box-sizing: border-box; cursor: pointer;
  width: 40px; height: 40px; border: var(--line); border-radius: 12px; background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--brown); transition: transform .2s, opacity .2s; }
.menu-btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .site-header__inner { padding: 8px 16px; gap: 0; flex-wrap: wrap; }
  .logo { width: 96px; height: 52px; }
  .logo svg { width: 100%; height: 100%; }
  .logo-word { top: 6px; font-size: 32px; }
  .site-header__actions { display: flex; }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 12px; font-size: 17px; font-weight: 700;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-top: 1.5px dashed var(--lilac); }
  .nav a:first-child { border-top: 0; }
  .nav .nav-cta--desktop { display: none; }
}

/* ---------- Main ---------- */
main {
  width: 100%; max-width: 1120px; padding: 0 24px 96px;
  display: flex; flex-direction: column; gap: 120px;
}
section[id] { scroll-margin-top: 90px; }

/* ---------- Download button ---------- */
.store-btn {
  display: inline-flex; flex-direction: column; gap: 2px;
  background: var(--ink); color: var(--cream); text-decoration: none;
  padding: 12px 26px; border-radius: 14px; border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--purple);
  font-size: 22px; font-weight: 700; line-height: 1;
  transition: transform .15s, box-shadow .15s;
}
.store-btn:hover { color: var(--cream); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--purple); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; margin-top: 32px;
  border: var(--line); border-radius: 36px;
  background: var(--lilac);
  background-image:
    radial-gradient(circle at 85% 20%, var(--pink) 0, rgba(247, 223, 229, 0) 45%),
    radial-gradient(circle at 10% 95%, var(--cream) 0, rgba(251, 248, 242, 0) 40%);
  box-shadow: 8px 8px 0 var(--brown);
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px; align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.pill {
  align-self: flex-start; font-family: var(--mono); font-size: 13px; letter-spacing: .16em;
  border: var(--line); border-radius: 99px; padding: 5px 14px; background: var(--cream);
}
.hero h1 { font-weight: 700; font-size: clamp(44px, 7vw, 80px); line-height: 1; letter-spacing: -.01em; text-wrap: balance; }
.hero h1 .serif-accent { color: var(--purple); }
.hero__lede { font-size: 19px; line-height: 1.6; max-width: 30em; text-wrap: pretty; }
.hero__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__cta .mono { font-size: 13px; letter-spacing: .1em; }
.hero__visual { position: relative; display: flex; justify-content: center; padding: 24px 0; }
.hero__stamp { position: absolute; top: 0; right: 4%; width: 150px; height: 150px; transform: rotate(12deg); opacity: .9; z-index: 1; }
.hero__phone {
  width: 300px; height: 620px; max-width: 100%; border-radius: 48px; border: 2px solid var(--brown);
  background: var(--ink); padding: 12px; box-shadow: 12px 12px 0 var(--brown); transform: rotate(-3deg);
}

/* ---------- Image slots ---------- */
.shot {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: var(--lilac-soft);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--rounded { border-radius: 38px; }
.shot--phone { border-radius: 30px; }
.shot__placeholder {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  padding: 24px; text-align: center; font-family: var(--mono); font-size: 13px; letter-spacing: .08em;
  color: var(--muted); border: 1.5px dashed var(--purple); border-radius: inherit;
}
.shot.is-empty img { display: none; }
.shot.is-empty .shot__placeholder { display: flex; }

/* ---------- Steps ---------- */
.stack { display: flex; flex-direction: column; gap: 36px; }
.grid { display: grid; gap: 20px; }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.step { border: var(--line); border-radius: 18px; background: var(--cream); overflow: hidden; display: flex; flex-direction: column; }
.step__num { padding: 10px 14px; border-bottom: var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; }
.step__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-size: 22px; font-weight: 700; }
.step p { font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.bg-lilac-soft { background: var(--lilac-soft); }
.bg-pink { background: var(--pink); }
.bg-sage { background: var(--sage); }
.bg-cream { background: var(--cream); }
.bg-lilac { background: var(--lilac); }

/* ---------- Features ---------- */
.grid--features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.feature { border: var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.feature .mono { font-size: 13px; letter-spacing: .16em; }
.feature h3 { font-size: 28px; font-weight: 700; line-height: 1.15; }

/* ---------- Privacy ---------- */
.privacy {
  border: var(--line); border-radius: 28px; background: var(--brown); color: var(--cream);
  padding: clamp(32px, 6vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; align-items: center;
}
.privacy__copy { display: flex; flex-direction: column; gap: 16px; }
.privacy .eyebrow { color: var(--lilac); }
.privacy .serif-accent { color: var(--pink); }
.promises { display: flex; flex-direction: column; gap: 12px; }
.promise { display: flex; gap: 14px; align-items: baseline; padding: 16px 18px; border: 1.5px dashed var(--lilac); border-radius: 14px; font-size: 16px; line-height: 1.5; }
.promise .mono { color: var(--lilac); }

/* ---------- Phone mockups ---------- */
.phones { display: flex; gap: 24px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.phone {
  flex: none; width: 240px; height: 500px; border-radius: 38px; border: 2px solid var(--brown);
  background: var(--ink); padding: 9px; scroll-snap-align: start; box-shadow: 6px 6px 0 var(--lilac);
}
.phone__screen { width: 100%; height: 100%; border-radius: 30px; background: var(--cream); overflow: hidden; display: flex; flex-direction: column; }
.phone__status { display: flex; justify-content: space-between; padding: 12px 18px 6px; font-size: 10px; font-weight: 700; }
.phone__island { width: 60px; height: 16px; border-radius: 99px; background: var(--ink); }
.phone__title { padding: 6px 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.phone__body { flex: 1; padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.phone__tabs {
  display: flex; justify-content: space-around; padding: 8px 6px 12px;
  border-top: var(--line); background: var(--lilac-soft); font-size: 8px; font-weight: 700;
}
.card { border: var(--line); border-radius: 12px; background: var(--cream); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.card__title { font-size: 13px; font-weight: 700; }
.card__meta { font-size: 10px; color: var(--muted); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; border: var(--line); flex: none;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.avatars { display: flex; gap: 6px; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: var(--line); border-radius: 12px; background: var(--cream); }
.person > div { display: flex; flex-direction: column; }
.map { height: 120px; border: var(--line); border-radius: 12px; background: var(--sage); position: relative; overflow: hidden; }
.pin { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--purple); border: 2px solid var(--cream); }
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stamp {
  aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed currentColor; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
}
.c-purple { color: var(--purple); }
.c-brown { color: var(--brown); }
.c-rose { color: var(--rose); }
.chips { display: flex; gap: 6px; font-size: 10px; font-weight: 700; }
.chip { padding: 4px 8px; border-radius: 99px; border: var(--line); }
.chip--on { background: var(--brown); color: var(--cream); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; grid-column: span 2; min-width: 0; }
@media (max-width: 720px) { .faq__list { grid-column: auto; } }
.faq-item { border: var(--line); border-radius: 16px; background: var(--cream); overflow: hidden; }
.faq-item button {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-size: 17px; font-weight: 700;
}
.faq-item button:hover { background: var(--lilac-soft); }
.faq-item button:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
.faq-item__icon { font-family: var(--mono); font-size: 20px; flex: none; }
.faq-item__answer { padding: 0 20px 20px; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.faq-item__answer[hidden] { display: none; }

/* ---------- Download ---------- */
.download {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
  padding: clamp(40px, 6vw, 72px) 24px;
  border: var(--line); border-radius: 36px; background: var(--pink);
  background-image: radial-gradient(circle at 15% 15%, var(--lilac) 0, rgba(221, 211, 243, 0) 45%);
  box-shadow: 8px 8px 0 var(--brown);
}
.download h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1.05; text-wrap: balance; }
.download p { font-size: 18px; line-height: 1.6; text-wrap: pretty; }

/* ---------- Footer ---------- */
.site-footer { width: 100%; border-top: var(--line); background: var(--cream); }
.site-footer__inner {
  max-width: 1120px; margin: 0 auto; padding: 28px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px;
}
.site-footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .mono { font-size: 12px; letter-spacing: .12em; color: var(--muted); }

/* ---------- Legal pages ---------- */
.legal {
  margin-top: 32px; border: var(--line); border-radius: 28px; background: var(--cream);
  box-shadow: 8px 8px 0 var(--lilac); padding: clamp(28px, 5vw, 56px);
  max-width: 760px; width: 100%; align-self: center;
}
.legal__head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1.5px dashed var(--brown); }
.legal__head h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 700; line-height: 1.05; }
.legal__head h1 .serif-accent { color: var(--purple); }
.legal__date { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.legal h2 { font-size: 24px; font-weight: 700; line-height: 1.2; margin: 40px 0 12px; scroll-margin-top: 90px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal li::marker { color: var(--purple); }
.legal a { text-decoration-color: var(--purple); text-underline-offset: 3px; }
.legal__summary { margin-top: 28px; border: var(--line); border-radius: 18px; background: var(--lilac); padding: 22px 24px; }
.legal__summary h2 { margin-top: 0; }
