:root {
  --bg: #F7F3EA;
  --bg-tint: #EFEADD;
  --surface: #FFFFFF;
  --ink: #20231F;
  --ink-muted: #5A5F57;
  --leaf: #477A5A;
  --leaf-strong: #3B6A4D;
  --on-leaf: #FFFFFF;
  --apricot: #F2A56F;
  --mint: #B8D8C0;
  --mint-light: #DDEEE2;
  --apricot-light: #FADECD;
  --lilac-light: #E8E4EE;
  --lavender: #6E58A8;
  --lavender-bg: #ECE6F7;
  --line: #E3DED1;
  --phone: #20231F;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow: 0 1px 2px rgba(32, 35, 31, .05), 0 8px 24px rgba(32, 35, 31, .06);
  --font: "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111713;
    --bg-tint: #161E18;
    --surface: #1A211C;
    --ink: #E8ECE8;
    --ink-muted: #B9C2BB;
    --leaf: #B1E8D2;
    --leaf-strong: #C8F0E0;
    --on-leaf: #0E3A2C;
    --mint-light: #1E3328;
    --apricot-light: #3A2A20;
    --lilac-light: #27232F;
    --lavender: #D0BCFF;
    --lavender-bg: #2E2742;
    --line: #2C3830;
    --phone: #000000;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--leaf); text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 40px); }

.muted { color: var(--ink-muted); }
.small { font-size: .85rem; }
.icon { flex: none; }

.eyebrow {
  color: var(--leaf);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  margin-bottom: .6em;
}

.lead { font-size: 1.2rem; color: var(--ink-muted); max-width: 34em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--on-leaf);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--leaf-strong); transform: translateY(-1px); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn--soft { background: var(--mint-light); color: var(--leaf); }
.btn--soft:hover { background: var(--mint); color: #20231F; }
.btn--light { background: var(--surface); color: var(--leaf); }
.btn--light:hover { background: var(--bg); }

.link { font-weight: 600; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
}
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--leaf); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.topbar__nav { display: flex; gap: 28px; margin-left: auto; }
.topbar__nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.topbar__nav a:hover { color: var(--leaf); }
.topbar__actions { display: flex; align-items: center; gap: 14px; margin-left: 12px; }
.doc .topbar__actions, .download .topbar__actions, .notfound .topbar__actions { margin-left: auto; }
.lang { color: var(--ink-muted); font-size: .92rem; font-weight: 500; text-decoration: none; }
.lang:hover { color: var(--leaf); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 88px; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 11em; }
.hero__note { display: flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: .95rem; margin-top: 18px; }
.hero__note .icon { color: var(--leaf); }
.hero__visual { position: relative; display: flex; justify-content: center; }

.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob--mint { width: 620px; height: 620px; background: var(--mint-light); top: -260px; right: -180px; }
.blob--apricot { width: 360px; height: 360px; background: var(--apricot-light); bottom: -200px; left: -160px; }
.blob--lilac { width: 300px; height: 300px; background: var(--lilac-light); bottom: -40px; left: -10px; }

.phone {
  position: relative;
  background: var(--phone);
  border-radius: var(--radius-xl);
  padding: 9px;
  box-shadow: var(--shadow);
  margin: 0;
}
.phone img { border-radius: 28px; width: 100%; }
.phone--hero { width: min(320px, 78vw); transform: rotate(2deg); }

.hero__buddy { position: absolute; animation: bob 4s ease-in-out infinite; }
.hero__buddy--pelime { width: 132px; left: calc(50% - 250px); top: 46%; }
.hero__buddy--goti { width: 88px; right: calc(50% - 215px); top: 6%; animation-delay: -2s; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.stores img { height: 52px; width: auto; }

.soon { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.soon__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  margin: 0;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px dashed var(--mint);
  font-weight: 600;
}
.soon__pill .icon { color: var(--leaf); }

/* Offline band */
.offline { background: var(--leaf); color: var(--on-leaf); }
.offline__inner { display: flex; align-items: center; gap: 24px; padding: 36px 0; }
.offline h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .25em; }
.offline p { margin: 0; opacity: .92; max-width: 46em; }
.offline__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--on-leaf) 16%, transparent);
}

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 640px; margin-bottom: 48px; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; }
.feature p { color: var(--ink-muted); margin: 0; }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 18px; color: #20231F; }
.feature__icon--1, .feature__icon--4 { background: var(--mint); }
.feature__icon--2, .feature__icon--5 { background: #FADECD; }
.feature__icon--3, .feature__icon--6 { background: #E1DAF0; }

.screens { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.screens figure { margin: 0; }
.screens figcaption { text-align: center; font-weight: 600; margin-top: 16px; }

.mascots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.mascot { text-align: center; }
.mascot__art {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  transition: transform .25s;
}
.mascot__art img { width: 72%; }
.mascot:hover .mascot__art { transform: translateY(-6px) rotate(-3deg); }
.mascot--pelime .mascot__art { background: var(--mint-light); }
.mascot--goti .mascot__art { background: #DCEBF6; }
.mascot--lunel .mascot__art { background: var(--lilac-light); }
.mascot--solei .mascot__art { background: #FBEBCB; }
.mascot--nubi .mascot__art { background: var(--apricot-light); }
.mascot--nopi .mascot__art { background: var(--mint-light); }
@media (prefers-color-scheme: dark) {
  .mascot--goti .mascot__art { background: #1C2A35; }
  .mascot--solei .mascot__art { background: #33291A; }
}
.mascot h3 { margin-bottom: 2px; }
.mascot p { color: var(--ink-muted); font-size: .92rem; margin-bottom: 10px; }
.mascots__plans { text-align: center; margin-top: 36px; color: var(--ink-muted); }

.chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.chip--free { background: var(--mint-light); color: var(--leaf); }
.chip--premium { background: var(--lavender-bg); color: var(--lavender); }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; }
.plan { padding: 32px; position: relative; overflow: hidden; }
.plan h3 { font-size: 1.4rem; margin-bottom: 4px; }
.plan__price { font-size: 1.1rem; color: var(--ink-muted); margin-bottom: 22px; }
.plan--premium { outline: 2px solid var(--leaf); }
.plan__note { color: var(--ink-muted); font-size: .9rem; margin: 16px 0 0; }
.plan__buddies { display: flex; gap: 6px; margin-top: 22px; }
.plan__buddies img { width: 48px; height: 48px; object-fit: contain; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--leaf); margin-top: 3px; }

.privacy { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.privacy__art { width: 220px; }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--leaf); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--ink-muted); }

.closing { padding: 96px 0; text-align: center; background: var(--mint-light); }
.closing__inner { display: flex; flex-direction: column; align-items: center; }
.closing__buddies { display: flex; justify-content: center; gap: 4px; margin-bottom: 28px; }
.closing__buddies img { width: 72px; height: 72px; object-fit: contain; }
.closing__buddies img:nth-child(odd) { animation: bob 4s ease-in-out infinite; }
.closing__buddies img:nth-child(even) { animation: bob 4s ease-in-out -2s infinite; }
.closing h2 { max-width: 16em; }
.closing p { color: var(--ink-muted); font-size: 1.15rem; }
.closing .soon, .closing .stores { justify-content: center; }

/* Footer */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 32px; }
.footer h2 { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--leaf); }
.footer__brand .brand { color: var(--leaf); margin-bottom: 12px; }
.footer__brand p { margin: 0 0 4px; }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-muted); }
.footer__legal p { margin: 0 0 6px; }

/* Legal documents */
.prose { padding: 56px 0 80px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .4em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-tint); }
.prose li { margin-bottom: .4em; }

/* Download and 404 */
.download__inner, .notfound__inner { padding: 72px 0 96px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.download__inner > img, .notfound__inner img { width: 140px; margin: 0 auto 20px; }
.download .stores, .download .soon { justify-content: center; margin-bottom: 24px; }
.routine { padding: 36px; text-align: left; width: 100%; }
.routine__habits { padding-left: 1.2em; }

/* Responsive */
@media (max-width: 960px) {
  .topbar__nav { display: none; }
  .topbar__actions { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .hero__visual { margin-top: 24px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(4, 64%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: -20px; padding-inline: 20px; }
  .screens li { scroll-snap-align: center; }
  .mascots { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap, .wrap--narrow { width: calc(100% - 32px); }
  .topbar__inner { gap: 12px; min-height: 60px; }
  .brand span { font-size: 1.05rem; }
  .brand, .btn, .lang { white-space: nowrap; }
  .topbar__actions .btn--soft { display: none; }
  .hero { padding: 32px 0 64px; }
  .lead { font-size: 1.08rem; }
  .hero__buddy--pelime { width: 96px; left: 0; top: 52%; }
  .hero__buddy--goti { width: 64px; right: 4px; }
  .offline__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section, .closing { padding: 72px 0; }
  .section__head { margin-bottom: 32px; }
  .features { grid-template-columns: 1fr; }
  .screens { grid-template-columns: repeat(4, 72%); margin-inline: -16px; padding-inline: 16px; }
  .mascots { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; }
  .privacy__art { width: 140px; order: -1; }
  .closing__buddies img { width: 48px; height: 48px; }
  .footer__grid { grid-template-columns: 1fr; }
  .soon__pill { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
