/* Layout: one 1120px column; hero = copy left + live "screen" demo right; sections alternate
   text and a small visual. One green accent (the app's own), warm-tinted neutrals. */
:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --soft: #f3f4f0;
  --fg: #1d2420;
  --muted: #5e6862;
  --line: #e4e7e2;
  --accent: #1f9466;
  --accent-ink: #ffffff;
  --accent-soft: #e5f3ec;
  --screen: #eef1ec;
  --shadow: 0 24px 60px rgba(20, 40, 30, .14), 0 2px 6px rgba(20, 40, 30, .06);
  --font-display: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 18px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131715; --surface: #1b201d; --soft: #202622; --fg: #e8ece9; --muted: #9aa59e; --line: #2c332f;
    --accent: #3cc28c; --accent-ink: #0e1a14; --accent-soft: #1b3127; --screen: #222925;
    --shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131715; --surface: #1b201d; --soft: #202622; --fg: #e8ece9; --muted: #9aa59e; --line: #2c332f;
  --accent: #3cc28c; --accent-ink: #0e1a14; --accent-soft: #1b3127; --screen: #222925;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 800; }
p { margin: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: .86em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 21px/1 var(--font-display); }
.brand .logo { width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; }
.brand .logo svg { width: 30px; height: 30px; }
.brand b { color: var(--accent); font-weight: 900; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--fg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font: 700 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--fg)); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 30px; font-size: 17px; border-radius: 14px; }

/* ---------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; padding-block: 64px 88px; }
.badge {
  display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 30em; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; }
.platforms a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 15px; color: var(--muted); font-weight: 500; }
.platforms a:hover { color: var(--fg); }
.platforms svg { width: 17px; height: 17px; }
.fineprint { font-size: 13px; color: var(--muted); }
.fineprint a { color: var(--muted); }

/* the live demo: a laptop-ish screen with the real pet card popping up in its corner */
.screen {
  position: relative; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden;
  background: var(--screen); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.screen-bar { display: flex; gap: 7px; align-items: center; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.screen-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.screen-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.doc { padding: 22px 26px; display: flex; flex-direction: column; gap: 11px; }
.doc .row { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--muted) 18%, transparent); }
.doc .row.h { height: 16px; width: 46%; background: color-mix(in srgb, var(--muted) 30%, transparent); margin-bottom: 6px; }
.doc .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.doc .grid div { height: 26px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.screen .dim { position: absolute; inset: 0; background: rgba(10, 18, 14, .32); opacity: 0; transition: opacity .4s; pointer-events: none; }
.screen.on .dim { opacity: 1; }

.pet-card {
  --c-bg: #fff; --c-fg: #1f2328; --c-muted: #6b7280; --c-line: #e7e9ec; --c-accent: #22a06b;
  position: absolute; right: 4%; bottom: 5%; width: min(250px, 48%); z-index: 2;
  transform: translateY(calc(100% + 140px)); transition: transform .3s ease-in;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--c-fg);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pet-card { --c-bg: #1e2228; --c-fg: #e8eaed; --c-muted: #9aa1ab; --c-line: #30353d; } }
:root[data-theme="dark"] .pet-card { --c-bg: #1e2228; --c-fg: #e8eaed; --c-muted: #9aa1ab; --c-line: #30353d; }
.screen.on .pet-card { transform: none; transition: transform .75s cubic-bezier(.34, 1.56, .64, 1); }
.pet-card .pet { position: absolute; left: 50%; top: -78px; width: 100px; height: 100px; margin-left: -50px; z-index: 2; }
.pet-card .pet-inner { width: 100%; height: 100%; transform-origin: 50% 95%; }
.screen.on .pet-card .pet { animation: hop .55s .6s ease-out both; }
.screen.on .pet-card .pet-inner { animation: gaze 3.4s 1.2s ease-in-out infinite; }
.pet-card.done .pet { animation: cheer .9s ease-out both !important; }
.pet-card.done .pet-inner { animation: none !important; }
.pet-card svg { display: block; width: 100%; height: 100%; }
.pet-card .pet svg { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .14)); }
.ep-eyes { transform-box: fill-box; transform-origin: center; animation: blink 3.8s infinite; }
.ep-look { animation: look 3.4s ease-in-out infinite; }
.pet-card .card {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 16px; padding: 30px 14px 12px;
  text-align: center; box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
}
.pet-card .who { font-size: 10.5px; color: var(--c-muted); }
.pet-card .msg { font-size: 12.5px; font-weight: 600; line-height: 1.4; margin: 2px 0 10px; min-height: 2.8em; text-wrap: balance; }
.pet-card .timer { position: relative; width: 56px; height: 56px; margin: 0 auto 8px; }
.pet-card .timer svg { transform: rotate(-90deg); }
.pet-card .timer circle { fill: none; stroke-width: 6; }
.pet-card .track { stroke: var(--c-line); }
.pet-card .ring { stroke: var(--c-accent); stroke-linecap: round; stroke-dasharray: 201.06; stroke-dashoffset: 0; }
.pet-card .num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.pet-card .actions { display: flex; gap: 6px; }
.pet-card button {
  flex: 1; padding: 7px 0; border-radius: 8px; border: 1px solid var(--c-line); background: transparent;
  color: var(--c-fg); font: 600 11px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; cursor: pointer;
}
.pet-card button:hover { background: color-mix(in srgb, var(--c-fg) 6%, transparent); }

/* ---------- sections */
section { padding-block: 88px; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 44px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.section-head p { font-size: 18px; color: var(--muted); }

/* 20-20-20 */
.rule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.rule > div { padding: 30px 28px; display: flex; flex-direction: column; gap: 6px; }
.rule > div + div { border-left: 1px solid var(--line); }
.rule .big { font: 900 64px/1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.rule .big small { font-size: 22px; font-weight: 800; margin-left: 6px; color: var(--fg); }
.rule .what { font-weight: 600; }
.rule .why { color: var(--muted); font-size: 15px; }
.source { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* animals */
.animals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.animal { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.animal .face { width: 72px; height: 72px; flex: none; }
.animal .face svg { width: 100%; height: 100%; display: block; }
.animal div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.animal q { color: var(--muted); font-size: 14px; line-height: 1.5; quotes: "“" "”"; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); font-size: 15.5px; }

/* platforms grid */
.os-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.os-more { margin-top: 18px; color: var(--muted); font-size: 15px; }
.os-more a { color: var(--accent); font-weight: 600; }
.os { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, transform .15s; }
.os:hover { border-color: var(--accent); transform: translateY(-2px); }
.os svg { width: 30px; height: 30px; }
.os .req { color: var(--muted); font-size: 14px; }
.os .file { margin-top: auto; padding-top: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231f9466' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.perm { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.perm div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; font-size: 15px; }
.perm div + div { border-top: 1px solid var(--line); }
.perm span:last-child { font-weight: 600; color: var(--muted); }
.perm .no { color: var(--accent) !important; }

/* faq */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 2px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--font-body); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 20px; color: var(--muted); max-width: 65ch; }

/* changelog */
.release { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); max-width: 820px; }
.release .ver { font: 900 26px/1.1 var(--font-display); }
.release time { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.release ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

/* cta */
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta .faces { display: flex; gap: 4px; }
.cta .faces span { width: 54px; height: 54px; display: block; }
.cta .faces svg { width: 100%; height: 100%; }

/* ---------- download page */
.dl-head { padding-block: 64px 32px; display: flex; flex-direction: column; gap: 14px; max-width: 700px; }
.dl-list { display: flex; flex-direction: column; gap: 18px; padding-bottom: 88px; }
.dl { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 90px; }
.dl.me { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dl-main { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.dl-main svg.os-ico { width: 34px; height: 34px; }
.dl-main .req { color: var(--muted); font-size: 14.5px; }
.dl-main .file { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.dl-main .btn { margin-top: 6px; }
.dl ol, .dl-more ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.dl ol li, .dl-more ol li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.dl ol li::before, .dl-more ol li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.note { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 14px; }
.dl-more { border: 1px dashed var(--line); border-radius: var(--radius); scroll-margin-top: 90px; }
.dl-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-size: 15px; }
.dl-more summary::-webkit-details-marker { display: none; }
.dl-more summary svg { width: 22px; height: 22px; flex: none; }
.dl-more summary::after { content: "+"; margin-left: auto; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.dl-more[open] summary::after { transform: rotate(45deg); }
.dl-more-body { padding: 0 20px 20px 54px; }
.dl-more-body a { color: var(--accent); font-weight: 600; }
.dl-more.me { border-style: solid; border-color: var(--accent); }
@media (max-width: 640px) { .dl-more-body { padding-left: 20px; } }
.dl.flash, .dl-more.flash { animation: flash 1.4s ease-out 1; }
@keyframes flash {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  100% { box-shadow: 0 0 0 16px transparent; }
}
kbd, .key { display: inline-block; padding: 0 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--soft); font: 600 13.5px/1.7 var(--font-body); color: var(--fg); white-space: nowrap; }

/* ---------- footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 10px; font-size: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* ---------- motion */
@keyframes hop { 0%, 100% { transform: none; } 45% { transform: translateY(-14px); } }
@keyframes cheer { 0%, 50%, 100% { transform: none; } 22% { transform: translateY(-16px) rotate(-6deg); } 72% { transform: translateY(-10px) rotate(6deg); } }
@keyframes gaze { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes look { 0%, 100% { transform: translateX(-2.5px); } 50% { transform: translateX(2.5px); } }
@keyframes blink { 0%, 93%, 100% { transform: none; } 96% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ---------- responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 40px 64px; }
  .animals, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .privacy { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  section { padding-block: 64px; }
  .rule { grid-template-columns: minmax(0, 1fr); }
  .rule > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .animals, .features, .os-grid { grid-template-columns: minmax(0, 1fr); }
  .release, .dl { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dl { padding: 22px; }
  .screen { aspect-ratio: auto; height: 380px; }
  .pet-card { width: min(250px, 72%); }
  .pet-card .pet { width: 80px; height: 80px; top: -62px; margin-left: -40px; }
  .pet-card .card { padding-top: 24px; }
}
