/*
  VOICE   calm, friendly, a little playful (the pixel pup), never pushy
  IDEA    the app's own home screen: same glass cards, same pup, same Ink violet
  PICTURE a phone showing the real app, the pup saying hi
  COLOUR  #f9f8fc ground with soft lavender / pink / mint light, Ink violet #3b2fb5 accent
  TYPE    Manrope (served with the app), four sizes
*/
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(app/fonts/manrope-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(app/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --ink: #1d1b22; --head: #36314d; --muted: #625c6e;
  --accent: #3b2fb5; --accent-ink: #2f2596; --accent-soft: #e7e4f8;
  --glass: rgba(255, 255, 255, .95); --edge: rgba(40, 30, 100, .09);
  --shadow: 0 12px 28px rgba(40, 30, 100, .13), 0 2px 6px rgba(40, 30, 100, .07);
  color-scheme: light;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0; background: #f9f8fc; color: var(--ink); overflow-x: clip;
  font: 16px/1.55 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: env(safe-area-inset-top) max(5vw, 18px) env(safe-area-inset-bottom);
  -webkit-text-size-adjust: 100%;
}
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
/* A soft white glow in the upper middle; the colour stays at the edges */
.bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 75% 50% at 50% 28%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, 0) 75%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .38; }
.b1 { width: 420px; height: 420px; background: #dcd3ff; top: -120px; left: -100px; }
.b2 { width: 380px; height: 380px; background: #ffe0eb; top: 30%; right: -140px; }
.b3 { width: 400px; height: 400px; background: #d5f4e9; bottom: -120px; left: 10%; }

a { color: var(--accent-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid rgba(59, 47, 181, .45); outline-offset: 3px; border-radius: 8px; }

.top { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 18px 0 8px; }
.logo { height: 22px; width: auto; display: block; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 0 6px 18px rgba(59, 47, 181, .3);
}
.pill.small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.pill.ghost { background: #fff; color: var(--accent-ink); border: 1.5px solid #d6d0f0; box-shadow: none; }
.pill:active { transform: scale(.98); }

.inapp {
  max-width: 1120px; margin: 8px auto 0; padding: 12px 16px; border-radius: 16px;
  background: #fff4d6; color: #6b4a00; font-size: 15px; line-height: 1.45;
}

.glass, .bubble {
  background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(125%); backdrop-filter: blur(22px) saturate(125%);
  border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px var(--edge), var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .9);
}

main { max-width: 1120px; margin: 0 auto; }

/* Hero: one column on phones (title, CTA, pup, phone), two from 860px */
.hero { display: grid; gap: 28px; padding: clamp(20px, 5vw, 56px) 0 28px; align-items: center; }
@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; }
  .hero-text { margin-top: -40px; }   /* sits a little above the phone's centre */
}
/* A label, not a button: no fill, small caps, like the group labels in the app */
.tag { display: inline-block; margin: 0; padding: 0; background: none; color: #6f68a8; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(36px, 7vw, 56px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; color: var(--head); text-wrap: balance; }
.lead { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.pup-row { display: flex; align-items: flex-end; gap: 10px; margin-top: 30px; }
#pup { width: 120px; flex: none; cursor: pointer; }
#pup svg { width: 100%; height: auto; display: block; }
.pet-hello svg { animation: hop 1.6s ease-in-out 3; transform-origin: 50% 100%; }
.pet-hop svg { animation: hop1 .6s ease-in-out 1; transform-origin: 50% 100%; }
@keyframes hop { 0%, 60%, 100% { transform: none; } 68% { transform: scale(1.06, .94); } 78% { transform: translateY(-10px) scale(.97, 1.03); } 88% { transform: scale(1.04, .96); } }
@keyframes hop1 { 0%, 100% { transform: none; } 15% { transform: scale(1.06, .94); } 45% { transform: translateY(-10px) scale(.97, 1.03); } 75% { transform: scale(1.04, .96); } }
.pet-tongue-long { display: none; }
.pet-head { transform-box: view-box; transform-origin: 78px 84px; }
.bubble { margin: 0 0 40px; padding: 12px 14px; border-radius: 20px 20px 20px 8px; font-weight: 600; font-size: 15px; line-height: 1.4; background: #fff; border: 2px solid #c9c2ea; box-shadow: 4px 4px 0 #dcd7f3; -webkit-backdrop-filter: none; backdrop-filter: none; max-width: 260px; }

/* Phone mockup with the real app */
.phone {
  justify-self: center; width: min(330px, 82vw); aspect-ratio: 390 / 800; border-radius: 46px; padding: 10px;
  background: #18151f; box-shadow: 0 30px 60px rgba(40, 30, 100, .25), 0 0 0 1px rgba(255, 255, 255, .3) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; display: block; }

/* Features: open on the background, no cards */
.features { display: grid; gap: 26px; padding: 40px 0 44px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ico svg, .key svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h2 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; color: var(--head); }
.feature p { margin: 0; color: var(--muted); }
@media (min-width: 860px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .feature { flex-direction: column; gap: 16px; }
}

/* Install: one panel. Computer: intro on the left, phone steps on the right */
.install { border-radius: 30px; padding: 28px 24px; margin: 0 0 20px; }
.install h2 { margin: 0; font-size: clamp(26px, 4.5vw, 34px); line-height: 1.1; letter-spacing: -.02em; color: var(--head); text-wrap: balance; }
.install .sub { margin: 10px 0 0; color: var(--muted); max-width: 30em; }
.desk { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--edge); }
.desk { display: flex; gap: 22px; align-items: flex-start; }
.desk[hidden] { display: none; }   /* the flex above would otherwise override hidden */
.desk h3 { margin: 0 0 6px; font-size: 19px; color: var(--head); }
.desk p { margin: 0; }
.qr { flex: none; width: 116px; height: 116px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--edge); }
.try { display: inline-flex; align-items: center; white-space: nowrap; min-height: 42px; margin-top: 14px; padding: 0 18px; border: 1.5px solid #cfc8ee; border-radius: 999px; background: #fff; color: #2f2596; font-weight: 700; font-size: 15px; text-decoration: none; }
.try:hover { border-color: #b9b0e6; }
.desk .small-print { margin-top: 8px; }
.ways { display: grid; align-content: start; margin-top: 26px; }
.way { padding: 22px 0; }
.way:first-child { padding-top: 0; }
.way + .way { border-top: 1px solid var(--edge); }
.way:last-child { padding-bottom: 0; }
.way h3 { margin: 0 0 12px; font-size: 19px; color: var(--head); }
.way.mine h3::after { content: "Your phone"; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink, #2f2596); font-size: 13px; font-weight: 700; vertical-align: 2px; }
.way ol { margin: 0; padding-left: 22px; }
.way li { margin: 0 0 10px; }
.way li:last-child { margin-bottom: 0; }
.key { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); vertical-align: -6px; margin: -4px 0; }
.key svg { width: 17px; height: 17px; }
.small-print { font-size: 14px; color: var(--muted); }
@media (min-width: 860px) {
  .install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 44px; }
  .ways { margin-top: 0; padding-left: 56px; border-left: 1px solid var(--edge); }
}

.foot { max-width: 1120px; margin: 20px auto 0; padding: 26px 0 40px; color: var(--muted); font-size: 14px; text-align: center; }
.foot p { margin: 4px 0; }
.ver { font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pet-hello svg, .pet-hop svg { animation: none; }
}

/* The pup breathes here too */
#pup .pet-breath { transform-box: view-box; transform-origin: 50% 100%; animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 45% { transform: scale(1.012, 1.028); } }
@media (prefers-reduced-motion: reduce) { #pup .pet-breath { animation: none; } }

/* Narrow screens: QR above the text, so the button keeps one line */
@media (max-width: 560px) {
  .desk { flex-direction: column; gap: 16px; }
}
/* A phone never needs the computer note, even when the browser hides what it is */
@media (max-width: 700px) and (pointer: coarse) {
  #way-desktop { display: none; }
}

/* Phones: spacing by proximity. Tight inside a group, clearly larger between groups.
   Text group: tag 12, title 12, lead 22, buttons. Then the pup 32, the phone 48, features 56, install 56. */
@media (max-width: 859px) {
  .top { padding: 16px 0 4px; }
  .inapp { margin-top: 12px; }
  .hero { gap: 48px; padding: 28px 0 0; }
  .tag { font-size: 11px; }
  h1 { font-size: clamp(34px, 9.5vw, 44px); }
  .lead { margin-top: 12px; font-size: 16px; line-height: 1.5; }
  .cta { margin-top: 22px; gap: 10px; }
  .cta .pill { flex: 1 1 0; justify-content: center; padding: 0 16px; }
  .pup-row { margin-top: 32px; gap: 12px; }
  #pup { width: 96px; }
  .bubble { margin-bottom: 26px; font-size: 14px; }
  .phone { margin: 0 auto; }
  .features { padding: 56px 0 0; gap: 28px; }
  .install { margin: 56px 0 0; }
  .foot { margin-top: 32px; }
}
