@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("fonts/Nunito-400.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("fonts/Nunito-700.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("fonts/Nunito-800.ttf") format("truetype"); }

:root {
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --surface-2: #EEF1FA;
  --text: #171A26;
  --muted: #555B73;
  --brand: #4C6EF5;
  --brand-strong: #3B5BDB;
  --brand-ink: #FFFFFF;
  --brand-soft: #E5EAFE;
  --line: #E0E4EF;
  --code: #EBEEF7;
  --calendar: #1C7ED6;
  --quests: #F59F00;
  --meals: #E8590C;
  --groceries: #2F9E44;
  --projects: #7048E8;
  --pink: #D6336C;
  --shadow: 0 1px 2px rgba(23, 26, 38, .06), 0 12px 32px rgba(23, 26, 38, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101219;
    --surface: #181B25;
    --surface-2: #1F2330;
    --text: #ECEEF6;
    --muted: #A6ABC2;
    --brand: #7E95FA;
    --brand-strong: #9AACFB;
    --brand-ink: #0D1022;
    --brand-soft: #232A47;
    --line: #2A2F3E;
    --code: #141720;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-weight: 800; font-size: clamp(38px, 6.4vw, 64px); }
h2 { font-weight: 800; font-size: clamp(28px, 4.4vw, 40px); margin-bottom: 10px; }
h3 { font-weight: 800; font-size: 19px; margin-bottom: 6px; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav .btn { color: var(--brand-ink); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: var(--brand-ink); font-weight: 800; text-decoration: none; padding: 13px 24px; border-radius: 999px; border: 0; font-size: 17px; font-family: inherit; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--brand-strong); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 9px 18px; font-size: 15px; }
.btn.ghost { background: var(--brand-soft); color: var(--brand); }
.btn.ghost:hover { background: color-mix(in srgb, var(--brand-soft) 80%, var(--brand)); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* hero */
.hero { padding: 48px 0 24px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 22px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.hero h1 { max-width: 15ch; margin: 0 auto 18px; }
.hero .lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 40rem; margin: 0 auto 28px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.facts { margin-top: 18px; font-size: 15px; color: var(--muted); font-weight: 700; }
.showcase { position: relative; margin: 48px auto 0; max-width: 1000px; padding-bottom: 40px; }
.screen { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #101219; }
.screen.wall { border: 10px solid #1E2130; border-radius: 22px; }
.phone { position: absolute; right: -8px; bottom: 0; width: 23%; min-width: 120px; border: 7px solid #1E2130; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: #101219; }
@media (max-width: 720px) { .phone { width: 34%; right: -4px; } .showcase { padding-bottom: 28px; } }

/* sections */
section { padding: 64px 0; scroll-margin-top: 64px; }
.intro { color: var(--muted); max-width: 44rem; margin-bottom: 30px; font-size: 18px; }
.center { text-align: center; }
.center .intro { margin-left: auto; margin-right: auto; }

/* features */
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.feature p { color: var(--muted); }
.chip { width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; color: #fff; }
.chip svg { width: 24px; height: 24px; }

/* split rows */
.split { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr 1fr; } .split.flip > :first-child { order: 2; } }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234C6EF5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.ticks strong { color: var(--text); }

/* phones row */
.phones { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; margin: 0 auto; }
.phones figure { margin: 0; }
.phones .shot { border: 6px solid #1E2130; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: #101219; }
.phones figcaption { text-align: center; color: var(--muted); font-size: 15px; font-weight: 700; margin-top: 12px; }
@media (max-width: 640px) {
  .phones { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .phones figure { scroll-snap-align: center; }
}

/* privacy band */
.band { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px 22px; }
@media (min-width: 720px) { .band { padding: 48px; } }
.pillars { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 8px; }
.pillars p { color: var(--muted); }

/* google */
.scopes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.scope { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 14px; padding: 18px; }
.scope p { color: var(--muted); font-size: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-top: 16px; }
.panel ul { margin: 8px 0 0; padding-left: 22px; color: var(--muted); }
.panel li { margin-bottom: 6px; }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace; font-size: 14px; }
code { background: var(--code); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* downloads */
.downloads { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.dl .os { display: flex; align-items: center; gap: 12px; }
.dl .os svg { width: 30px; height: 30px; color: var(--brand); flex: none; }
.dl p { color: var(--muted); font-size: 16px; }
.dl .btn { align-self: flex-start; }
.dl .more { font-size: 15px; }
.cmd { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: var(--code); overflow: hidden; }
.cmd pre { margin: 0; padding: 12px; overflow-x: auto; white-space: pre; flex: 1; min-width: 0; }
.cmd button { border: 0; border-left: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-family: inherit; font-weight: 800; font-size: 14px; padding: 0 14px; cursor: pointer; }
.note { font-size: 15px; color: var(--muted); }
.soon { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* legal pages */
.doc { max-width: 780px; margin: 0 auto; padding: 24px 0 56px; }
.doc main { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px; }
@media (min-width: 720px) { .doc main { padding: 40px 48px; } }
.doc h1 { font-size: clamp(32px, 5.5vw, 44px); margin-bottom: 6px; }
.doc h2 { font-size: 23px; margin: 34px 0 8px; }
.doc h3 { font-size: 18px; margin: 20px 0 4px; }
.doc p, .doc li { line-height: 1.65; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 22px !important; }
.summary { background: var(--brand-soft); border-radius: 18px; padding: 16px 20px; }
.summary ul { margin: 6px 0 0; }
.callout { border-left: 4px solid var(--brand); padding: 4px 0 4px 14px; }

/* simple look: one accent colour */
.chip { background: var(--brand-soft); color: var(--brand); }
.hero h1 { max-width: 18ch; font-size: clamp(36px, 5.6vw, 58px); }
.phones { margin-top: 56px; }
.feature { padding: 24px; }
.feature h3 { font-size: 18px; }
.pillars { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.band h2 { margin-bottom: 18px; }
h1, h2 { text-wrap: balance; }
.hero .lead { text-wrap: balance; }
.intro.center { margin-left: auto; margin-right: auto; }
.dl .btn { margin-top: auto; }
.dl .cmd { margin-top: auto; }

/* app stores (coming soon) */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.store { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); min-width: 240px; }
.store svg { width: 26px; height: 26px; flex: none; }
.store .label { display: block; font-weight: 800; color: var(--text); font-size: 16px; line-height: 1.2; }
.store .when { display: block; font-size: 14px; }
