/* Layout: lavender page, split hero with a phone, alternating photo tiles carrying app-style cards, one deep violet band for lost mode. */
:root {
  --bg: #F4F2FF;
  --surface: #FFFFFF;
  --ink: #1E1640;
  --muted: #5E5880;
  --line: #E2DCFF;
  --accent: #6C4DFF;
  --accent-soft: #E9E4FF;
  --on-accent: #FFFFFF;
  --sun: #FFC83D;
  --band: #2A1C6E;
  --on-band: #F1EEFF;
  --band-muted: #C3B9F5;
  --warn-bg: #FFF1D6; --warn: #8A5A00;
  --bad-bg: #FFE1DC; --bad: #A02A17;
  --ok: #1F8A5B;
  --shadow: 0 18px 40px -18px rgba(44, 28, 120, .35);
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 28px; --r-md: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120E24; --surface: #1D1838; --ink: #F1EEFF; --muted: #A9A2CC; --line: #2F2856;
    --accent: #8F78FF; --accent-soft: #2A2257; --band: #241A5C; --on-band: #F1EEFF; --band-muted: #B9AEF0;
    --warn-bg: #3A2C0E; --warn: #FFCF70; --bad-bg: #3D1A15; --bad: #FF9B88; --ok: #5FD39C;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #120E24; --surface: #1D1838; --ink: #F1EEFF; --muted: #A9A2CC; --line: #2F2856;
  --accent: #8F78FF; --accent-soft: #2A2257; --band: #241A5C; --on-band: #F1EEFF; --band-muted: #B9AEF0;
  --warn-bg: #3A2C0E; --warn: #FFCF70; --bad-bg: #3D1A15; --bad: #FF9B88; --ok: #5FD39C;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, video, canvas { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0; font-weight: 900; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 12px; }

.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.fine { font-size: .9rem; color: var(--muted); }
.center { text-align: center; }
.note { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--sun); padding-left: 12px; }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--on-accent); font-weight: 800; text-decoration: none; border-radius: 999px; padding: 14px 26px; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .95rem; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; letter-spacing: .06em; }
.brand img { border-radius: 10px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
.hero { padding-block: 56px 32px; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); text-decoration: none; border-radius: 14px; padding: 10px 20px 10px 16px; font-weight: 800; font-size: 1.2rem; line-height: 1.1; }
.store svg { width: 28px; height: 28px; }
.store small { display: block; font-size: .7rem; font-weight: 600; opacity: .8; }
.link-arrow { font-weight: 800; text-decoration: none; }
.link-arrow::after { content: " →"; }

.hero-visual { position: relative; justify-self: center; width: min(340px, 100%); }
.phone { position: relative; aspect-ratio: 9 / 18.5; max-width: 100%; border-radius: 46px; overflow: hidden; border: 10px solid var(--ink); box-shadow: var(--shadow); background: #A5CAB9; }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone-ui { position: absolute; inset: 0 0 auto; padding: 34px 22px; color: #fff; background: linear-gradient(rgba(20, 12, 50, .45), transparent); }
.phone-hello { font-size: .85rem; font-weight: 700; opacity: .9; }
.phone-name { font-size: 1.5rem; font-weight: 900; }
.float { position: absolute; display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r-md); padding: 10px 16px 10px 10px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.3; animation: bob 6s ease-in-out infinite; }
.float b { display: block; }
.float span { color: var(--muted); font-size: .82rem; }
.float.f1 { left: -64px; top: 46%; }
.float.f2 { right: -48px; bottom: 12%; animation-delay: -3s; }
.tick { font-style: normal; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; font-size: .8rem; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.record-strip { list-style: none; margin: 56px 0 0; padding: 18px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; background: var(--surface); border-radius: var(--r-lg); }
.record-strip li { display: grid; justify-items: center; gap: 6px; font-weight: 800; font-size: .9rem; text-align: center; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { width: min(300px, 78%); }
  .float.f1 { left: -22%; } .float.f2 { right: -22%; }
  .record-strip { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
}
@media (max-width: 480px) { .float { font-size: .8rem; padding: 8px 12px 8px 8px; } .float img { width: 30px; height: 30px; } .float.f1 { left: -14%; } .float.f2 { right: -14%; } }

/* Demo */
.demo { padding-block: 72px 8px; }
.demo-in { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; max-width: 960px; }
.phone.screen { width: 300px; aspect-ratio: 384 / 832; background: var(--bg); }
.phone.screen video { object-fit: contain; }
@media (max-width: 760px) { .demo-in { grid-template-columns: 1fr; justify-items: center; gap: 32px; } .phone.screen { width: min(280px, 80vw); } }

/* Features */
.features { padding-block: 72px; }
.section-head { display: grid; gap: 12px; text-align: center; justify-items: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .sub { color: var(--muted); font-size: 1.1rem; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 36px; }
.feature.flip .media { order: 2; }
.copy { display: grid; gap: 16px; min-width: 0; align-content: start; }
.copy p { color: var(--muted); font-size: 1.08rem; max-width: 32em; }
.copy .ico { width: 64px; height: 64px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%236C4DFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

.media { position: relative; border-radius: var(--r-lg); background: var(--tile); aspect-ratio: 1 / 1; max-width: 100%; }
.media video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
.ui-card { position: absolute; right: -20px; bottom: -24px; width: min(300px, 82%); background: var(--surface); color: var(--ink); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow); font-size: .88rem; display: grid; gap: 8px; }
.feature.flip .ui-card { right: auto; left: -20px; }
.ui-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.ui-row span { color: var(--muted); }
.ui-row.head { border: 0; padding: 0; }
.ui-row.head b { font-size: 1.1rem; }
.pill { font-style: normal; font-weight: 800; font-size: .78rem; padding: 3px 10px; border-radius: 999px; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.ui-title { font-weight: 900; font-size: 1rem; }
.ui-item { display: grid; grid-template-columns: 48px 1fr 22px; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--bg); }
.ui-item .time { font-weight: 800; color: var(--accent); }
.ui-item i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); font-style: normal; display: grid; place-items: center; font-size: .7rem; }
.ui-item.done span:nth-child(2) { text-decoration: line-through; color: var(--muted); }
.ui-item.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.chart svg { width: 100%; height: auto; }
.chart .area { fill: var(--accent-soft); stroke: none; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .end { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.ui-file { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 12px; padding: 8px 10px; font-weight: 800; }
.ui-file small { display: block; font-weight: 600; color: var(--muted); }
.chat p { padding: 10px 14px; border-radius: 16px; max-width: 88%; }
.chat .me { justify-self: end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.chat .bot { background: var(--bg); border-bottom-left-radius: 4px; }
.person { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.person small { display: block; font-weight: 600; color: var(--muted); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 900; }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 48px; }
  .feature.flip .media { order: 0; }
  .media { width: min(460px, 100%); justify-self: center; }
  .ui-card, .feature.flip .ui-card { right: 12px; left: auto; bottom: -28px; width: min(270px, 76%); font-size: .82rem; }
}

/* Lost mode */
.lost { background: var(--band); color: var(--on-band); padding-block: 88px; }
.lost-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.lost .eyebrow { color: var(--sun); }
.lost .copy p { color: var(--band-muted); }
.ticks.light li::before { background-color: rgba(255, 255, 255, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23FFC83D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tag-scene { display: grid; gap: 22px; justify-items: center; min-width: 0; }
.tag { position: relative; display: flex; align-items: center; gap: 16px; background: #FFFFFF; color: #1E1640; border-radius: 26px; padding: 18px 22px 18px 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); transform: rotate(-4deg); max-width: 100%; }
.tag::before { content: ""; position: absolute; top: -14px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; border: 5px solid var(--sun); background: var(--band); }
.tag canvas { width: 110px; height: 110px; border-radius: 10px; image-rendering: pixelated; }
.tag-text { display: grid; gap: 4px; min-width: 0; }
.tag-text b { font-size: 1.4rem; font-weight: 900; color: #6C4DFF; }
.tag-text span { font-size: .78rem; color: #5E5880; overflow-wrap: anywhere; }
.found { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); color: var(--ink); border-radius: var(--r-md); padding: 16px; max-width: 380px; width: 100%; font-size: .92rem; line-height: 1.4; }
.found-photo img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.found b { display: block; font-size: 1.05rem; }
.found span { display: block; color: var(--muted); margin: 4px 0 10px; }
.found em { font-style: normal; display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 800; padding: 6px 14px; border-radius: 999px; }
@media (max-width: 860px) { .lost-in { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { padding-block: 88px 56px; }
.cur { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.cur button { font: inherit; font-weight: 800; font-size: .85rem; border: 0; background: none; color: var(--muted); padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.cur button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 24px; }
.plan { position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 8px; }
.plan.best { border-color: var(--accent); }
.badge { position: absolute; top: -14px; right: 22px; background: var(--sun); color: #3A2600; font-weight: 900; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.15rem; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 2px; font-weight: 900; }
.price .num { font-size: 3rem; letter-spacing: -.03em; line-height: 1; }
.price .sym { font-size: 1.5rem; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 700; margin-left: 6px; }
.plan-sub { color: var(--muted); }
.included { list-style: none; padding: 0; margin: 32px auto 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.included li { background: var(--accent-soft); color: var(--ink); font-weight: 800; font-size: .9rem; padding: 6px 14px; border-radius: 999px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* Trust */
.trust { padding-block: 32px 64px; }
.small-h { font-size: 1.4rem; text-align: center; margin-bottom: 24px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 28px; }
.trust-grid b { display: block; font-size: 1.05rem; font-weight: 900; margin-bottom: 4px; }
.trust-grid p { color: var(--muted); font-size: .98rem; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; gap: 18px; } }

/* FAQ */
.faq { padding-block: 40px 80px; }
.faq h2 { margin-bottom: 20px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 1.1rem; padding: 18px 40px 18px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 18px; max-width: 40em; }

/* Final */
.final { padding-block: 0 80px; }
.final-in { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; background: var(--surface); border-radius: var(--r-lg); padding-block: 32px; }
.final video { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; background: #4799AE; }
.final-in > div { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.final p { color: var(--muted); }
@media (max-width: 680px) { .final-in { grid-template-columns: 1fr; justify-items: center; text-align: center; } .final-in > div { justify-items: center; } .final video { width: 160px; height: 160px; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: .92rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot nav a { color: var(--muted); font-weight: 700; text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { margin-left: auto; }

/* Legal pages */
.doc { padding-block: 48px 80px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.4rem; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--muted); max-width: 42em; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; }
.doc strong { color: var(--ink); }
.doc .tbl { overflow-x: auto; margin-top: 12px; }
.doc table { border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.doc th { color: var(--ink); font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .btn { transition: none; }
}

/* Languages */
.langs { padding-block: 24px 56px; }
.lang-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.lang-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: grid; gap: 8px; align-content: start; }
.lang-grid b { font-size: 1.1rem; font-weight: 900; color: var(--accent); }
.lang-grid span { color: var(--muted); font-size: .95rem; line-height: 1.45; }
@media (max-width: 980px) { .lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lang-grid { grid-template-columns: 1fr; } }

/* Social links */
.social { display: flex; gap: 10px; }
.social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); background: var(--accent-soft); transition: color .15s, background .15s; }
.social a:hover { color: var(--on-accent); background: var(--accent); }
.social svg { width: 18px; height: 18px; }
.social-lg a { width: 44px; height: 44px; }
.social-lg svg { width: 22px; height: 22px; }
.follow { display: grid; gap: 8px; justify-items: inherit; margin-top: 6px; }
.follow > span { font-size: .9rem; font-weight: 700; color: var(--muted); }
