/* CDiag — cdiag.app. Quiet, minimal, lots of room. System fonts only (no tracking, no downloads). */
:root {
  --bg: #fbfbfd; --bg2: #f2f3f6; --card: #ffffff; --fg: #1d1d1f; --muted: #6e6e73; --line: rgba(0,0,0,.08);
  --accent: #2563eb; --accent-2: #1d4ed8; --accent-soft: #e6eeff; --good: #15803d; --nav: rgba(251,251,253,.72);
  --shadow: 0 40px 80px -30px rgba(15,23,42,.35);
  --radius: 28px; --maxw: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --bg2: #0d0f13; --card: #15171c; --fg: #f5f5f7; --muted: #a1a1a6; --line: rgba(255,255,255,.1);
    --accent: #6d9eff; --accent-2: #4f8bff; --accent-soft: #14213d; --good: #4ade80; --nav: rgba(0,0,0,.66);
    --shadow: 0 40px 90px -30px rgba(0,0,0,.9);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- nav ---------------------------------------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 62%, transparent);
       backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
       border-bottom: 1px solid color-mix(in srgb, var(--fg) 6%, transparent); }
.nav .wrap { display: flex; align-items: center; height: 46px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--fg); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav .links { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 12.5px; line-height: 1; }
.nav .links a { color: var(--fg); opacity: .72; transition: opacity .2s; }
.nav .links a:hover { opacity: 1; text-decoration: none; }
.nav .acct-ico { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -4px; }
.nav .acct-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 500; line-height: 1;
        background: var(--accent); color: #fff !important; opacity: 1 !important; }
.pill:hover { background: var(--accent-2); text-decoration: none; }
@media (max-width: 720px) { .nav .links { gap: 16px; } .nav .links a:not(.pill):not(.acct-ico) { display: none; } }

/* ---- type --------------------------------------------------------------------------------------------------- */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--accent); margin: 0 0 10px; letter-spacing: -.01em; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
h1 { font-size: clamp(48px, 8.4vw, 96px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; margin: 0; }
h2 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; margin: 0 0 18px; }
h3 { font-size: 21px; letter-spacing: -.015em; margin: 14px 0 6px; font-weight: 600; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--muted); letter-spacing: -.01em; margin: 0; max-width: 640px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- buttons ------------------------------------------------------------------------------------------------ */
.cta { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; border-radius: 999px;
       padding: 14px 26px; font-size: 17px; font-weight: 500; transition: background .2s, transform .2s; }
.btn:hover { background: var(--accent-2); text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
.link { font-size: 17px; }
.link::after { content: " ›"; }
.fine { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ---- Android robot ---------------------------------------------------------------------------------------- */
:root { --droid: #12a05c; --droid-bg: rgba(61,220,132,.16); }
@media (prefers-color-scheme: dark) { :root { --droid: #3ddc84; --droid-bg: rgba(61,220,132,.14); } }
.droid { height: 16px; width: auto; aspect-ratio: 3 / 2; flex: none; stroke: none; }
.btn .droid { height: 18px; }
.pill .droid { height: 12px; }
.android { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; margin-right: 10px; border-radius: 999px;
           background: var(--droid-bg); color: var(--droid); font-weight: 600; font-size: 13px; vertical-align: middle; }
.android .droid { height: 13px; }
.download .android { margin: 0 0 14px; font-size: 14px; }
.droid-ico { background: var(--droid-bg); }
.droid-ico .droid { height: 22px; color: var(--droid); }

/* ---- phone -------------------------------------------------------------------------------------------------- */
.phone { --w: 300px; position: relative; width: var(--w); flex: none; padding: calc(var(--w) * .028);
         border-radius: calc(var(--w) * .135); background: linear-gradient(145deg, #2a2c31, #0c0d0f);
         box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255,255,255,.08); }
.phone picture { display: block; }
.phone img { width: 100%; height: auto; aspect-ratio: 1080 / 2460; object-fit: cover; border-radius: calc(var(--w) * .11); background: #111; }
.phone::after { /* punch-hole camera */
  content: ""; position: absolute; top: calc(var(--w) * .052); left: 50%; width: calc(var(--w) * .036); aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; background: #050506; box-shadow: inset 0 0 0 1.5px #1b1c20; }
.phone::before { /* side buttons */
  content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 13%; border-radius: 0 3px 3px 0;
  background: #1f2024; box-shadow: 0 calc(var(--w) * .2) 0 #1f2024; }
.phone.sm { --w: 250px; }
.phone.lg { --w: 330px; }
@media (max-width: 720px) { .phone { --w: 250px; } .phone.sm { --w: 200px; } .phone.lg { --w: 270px; } }

/* ---- hero --------------------------------------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; padding: 48px 0 140px; overflow: hidden; }

/* ---- feature sections --------------------------------------------------------------------------------------- */
section { padding: 120px 0; }
.feature { padding: 150px 0 180px; }
.alt { background: var(--bg2); }
.feature .wrap { display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: center; }
.feature.flip .wrap { grid-template-columns: auto 1fr; }
.feature.flip .text { order: 2; }
.feature .phones { display: flex; gap: 28px; justify-content: center; }
.points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.points li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; 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='%232563eb' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.points b { color: var(--fg); font-weight: 600; }
@media (max-width: 860px) {
  section { padding: 84px 0; }
  .feature { padding: 96px 0 120px; }
  .feature .wrap, .feature.flip .wrap { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .feature.flip .text { order: 0; }
  .feature .lead { margin: 0 auto; }
  .points { justify-items: center; }
}

/* ---- light / dark pair -------------------------------------------------------------------------------------- */
.pair { display: flex; gap: 40px; justify-content: center; margin-top: 64px; flex-wrap: wrap; }
.pair figure { margin: 0; text-align: center; }
.pair figcaption { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* ---- cards / grids ------------------------------------------------------------------------------------------ */
.grid { display: grid; gap: 20px; margin-top: 56px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 30px 28px; text-align: left; border: 1px solid var(--line); }
.alt .card { border-color: transparent; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; }
.ico svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 72px; text-align: center; }
.stats b { display: block; font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.03em; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }

/* ---- steps -------------------------------------------------------------------------------------------------- */
.steps { counter-reset: s; }
.steps .card { position: relative; }
.steps .card h3::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 14px; margin-right: 10px; vertical-align: 2px; }

/* ---- FAQ ---------------------------------------------------------------------------------------------------- */
.faq { max-width: 760px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 19px; font-weight: 600; letter-spacing: -.01em; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 300; font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* ---- download ----------------------------------------------------------------------------------------------- */
.download { text-align: center; }
.download .big { width: 120px; height: 120px; border-radius: 28px; margin: 0 auto 28px; box-shadow: 0 24px 50px -18px rgba(37,99,235,.65); }
.download .meta { margin-top: 14px; color: var(--muted); font-size: 15px; }
.download .btn { font-size: 19px; padding: 17px 34px; }
.install { max-width: 680px; margin: 40px auto 0; text-align: left; }
.install ol { color: var(--muted); padding-left: 20px; margin: 10px 0 0; }
.install li { margin: 6px 0; }

/* ---- changelog ---------------------------------------------------------------------------------------------- */
.log { max-width: 760px; margin: 0 auto; }
.release { padding: 44px 0; border-bottom: 1px solid var(--line); }
.release:last-child { border-bottom: 0; }
.release header { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.release h2 { font-size: 34px; margin: 0; }
.release time { color: var(--muted); }
.release .tag { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.release h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 26px 0 8px; }
.release ul { margin: 0; padding-left: 20px; }
.release li { margin: 8px 0; }

/* ---- footer ------------------------------------------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 52px; font-size: 12px; color: var(--muted); }
footer .wrap { display: grid; gap: 12px; }
footer .row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
footer .brand { font-size: 15px; }
footer .brand img { width: 22px; height: 22px; border-radius: 6px; }
footer a { color: var(--muted); }

/* ---- reveal on scroll --------------------------------------------------------------------------------------- */
/* Hidden only when JS runs (html.js), so the page never stays blank without it. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---- adapters (own drawings, not product photos) ------------------------------------------------------------ */
:root { --hw-body: #2b2f37; --hw-face: #1b1e24; --hw-pin: #c9a55a; --hw-led: #34d399; --hw-cable: #3a3f49; --hw-stripe: rgba(255,255,255,.12);
        --hw-badge: var(--accent); --hw-sym: #fff; --hw-shadow: rgba(15,23,42,.12); }
@media (prefers-color-scheme: dark) { :root { --hw-body: #3a3f4a; --hw-face: #23262e; --hw-cable: #4a505c; --hw-shadow: rgba(0,0,0,.5); } }
.hw-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .hw-grid { grid-template-columns: repeat(2, 1fr); } }
/* product photos: all cut out to the same canvas (720x600), shown on one soft stage so they read as a set */
.hw-media { aspect-ratio: 6 / 5; border-radius: 16px; overflow: hidden; margin-bottom: 18px;
  background: radial-gradient(120% 95% at 50% 28%, #ffffff 0%, #eef0f4 100%); }
.hw-media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hw-card:hover .hw-media img { transform: scale(1.04) translateY(-4px); }
.hw-card .hw-text { padding: 0 8px; }
@media (prefers-color-scheme: dark) { .hw-media { background: radial-gradient(120% 95% at 50% 28%, #2a2e37 0%, #15171c 100%); } }
@media (max-width: 560px) { .hw-grid { grid-template-columns: 1fr; } }
.hw-card { padding: 14px 14px 24px; display: flex; flex-direction: column; }
.hw-svg { width: 100%; height: auto; max-height: 150px; margin-bottom: 14px; }
.hw-body { fill: var(--hw-body); } .hw-face { fill: var(--hw-face); } .hw-pin { fill: var(--hw-pin); } .hw-led { fill: var(--hw-led); }
.hw-stripe { fill: var(--hw-stripe); } .hw-shadow { fill: var(--hw-shadow); } .hw-badge { fill: var(--hw-badge); }
.hw-cable { fill: none; stroke: var(--hw-cable); stroke-width: 7; stroke-linecap: round; }
.hw-vmark { fill: none; stroke: var(--hw-led); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.hw-glow { fill: var(--hw-led); opacity: .75; }
.hw-plug { fill: var(--hw-cable); } .hw-plugtip { fill: #9aa3b2; }
.hw-sym { fill: none; stroke: var(--hw-sym); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; } .hw-symfill { fill: var(--hw-sym); }
.hw-tag { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--accent-soft); color: var(--accent); }
.hw-tag.ok { background: rgba(21,128,61,.12); color: var(--good); }
.hw-text h3 { margin: 10px 0 2px; }
.hw-conn { font-size: 13px !important; color: var(--fg) !important; font-weight: 500; margin: 0 0 8px !important; }
.hw-foot { max-width: 720px; margin: 28px auto 0; }

/* ---- hero background: drifting aurora + live "signal" waves (site.js) ------------------------------------------- */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; filter: blur(70px); opacity: .42;
          will-change: transform; transform: translate3d(var(--px, 0), var(--py, 0), 0); }
.aurora.a1 { left: -18vmax; top: -22vmax; background: radial-gradient(circle at 40% 40%, #4f8bff 0%, rgba(79,139,255,0) 65%);
             animation: drift1 22s ease-in-out infinite alternate; }
.aurora.a2 { right: -20vmax; top: -10vmax; background: radial-gradient(circle at 60% 40%, #22d3ee 0%, rgba(34,211,238,0) 62%);
             animation: drift2 26s ease-in-out infinite alternate; opacity: .30; }
.aurora.a3 { left: 18vmax; top: 18vmax; background: radial-gradient(circle at 50% 50%, #8b5cf6 0%, rgba(139,92,246,0) 60%);
             animation: drift3 30s ease-in-out infinite alternate; opacity: .26; }
@media (prefers-color-scheme: dark) { .aurora { opacity: .55; } .aurora.a2 { opacity: .38; } .aurora.a3 { opacity: .36; } }
@keyframes drift1 { 0% { translate: 0 0; scale: 1; } 50% { translate: 9vmax 6vmax; scale: 1.15; } 100% { translate: 3vmax 14vmax; scale: .92; } }
@keyframes drift2 { 0% { translate: 0 0; scale: 1.05; } 50% { translate: -10vmax 10vmax; scale: .9; } 100% { translate: -4vmax 2vmax; scale: 1.12; } }
@keyframes drift3 { 0% { translate: 0 0; scale: .95; } 50% { translate: 8vmax -8vmax; scale: 1.1; } 100% { translate: -9vmax -3vmax; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .aurora { animation: none; } }


/* ---- hero: WebGL mesh behind, staged intro (site.js) ------------------------------------------------------- */
#hero-mesh { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.hero.gl #hero-mesh { opacity: 1; }
.hero.gl .aurora { display: none; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--bg2) 92%); }   /* melts into the next (alt) section */

.intro, .hero-title .ln { opacity: 0; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0ms); }
.hero-title .ln { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.98); filter: blur(12px); } to { opacity: 1; transform: none; filter: blur(0); } }

@media (prefers-reduced-motion: reduce) { .intro, .hero-title .ln { opacity: 1; animation: none; filter: none; transform: none; } }

/* ---- hero v3: a live demo of the app on the left, the four steps it walks through on the right (site.js) ------- */
.hero-grid { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "demo copy" "demo steps";
  column-gap: 72px; row-gap: 34px; align-items: start; }
.hero-copy { grid-area: copy; align-self: end; }

.demo-col { grid-area: demo; position: relative; display: flex; justify-content: center; }
.hero .app { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 21px; margin-bottom: 18px; }
.hero .app img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 10px 30px -10px rgba(37,99,235,.6); }
.hero .lead { margin: 22px 0 0; max-width: 520px; }
.hero .cta { justify-content: flex-start; }
.hero-title { font-size: clamp(44px, 6vw, 80px); }

/* steps: one line of four chapters (bar + short label); the active one fills while its scene plays, the ones before
   stay full; one caption line below says what the active step does. */
.steps-wrap { grid-area: steps; max-width: 520px; }
.hero-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hero-steps button { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: block; padding: 6px 0 4px; }
.hero-steps button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.st-bar { display: block; height: 3px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--fg) 14%, transparent); }
.st-bar span { display: block; height: 100%; width: 0; background: var(--fg); border-radius: 3px; }
.hero-steps li.done .st-bar span { width: 100%; }
.hero-steps li.on .st-bar span { animation: stfill var(--dur, 5s) linear forwards; background: var(--accent); }
.hero-steps.still li.on .st-bar span { animation: none; width: 100%; }
.st-l { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted);
  white-space: nowrap; transition: color .3s; }
.st-n { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .7; }
.hero-steps button:hover .st-l { color: var(--fg); }
.hero-steps li.on .st-l { color: var(--fg); }
.step-cap { margin: 14px 0 0; font-size: 15px; color: var(--muted); min-height: 1.5em; transition: opacity .25s; }
.step-cap b { color: var(--fg); font-weight: 600; margin-right: 4px; }
.step-cap.swap { opacity: 0; }
@keyframes stfill { to { width: 100%; } }

/* the phone and the light behind it */
.phone.demo { --w: clamp(250px, calc((100svh - 170px) * .44), 330px); }
.demo-halo { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: conic-gradient(from 0deg, #4f8bff, #22d3ee, #8b5cf6, #3b82f6, #10b981, #4f8bff); filter: blur(90px); opacity: .28;
  animation: spin 22s linear infinite; pointer-events: none; }
@media (prefers-color-scheme: dark) { .demo-halo { opacity: .5; } }
@keyframes spin { to { transform: rotate(360deg); } }
.demo { opacity: 0; animation: demoIn 1.3s cubic-bezier(.16,.84,.24,1) .35s forwards; }
@keyframes demoIn { from { opacity: 0; transform: translateY(60px) rotate(-2deg); } to { opacity: 1; transform: none; } }

/* ---- the screen: all sizes in cqw (1% of the screen width) so it scales with the phone ---- */
.scr { --s-bg:#f3f4f8; --s-card:#fff; --s-fg:#1b1c1f; --s-mut:#6b6f78; --s-pri:#1f5be0; --s-on:#fff; --s-pri-soft:#e4ecff;
  --s-ok:#15803d; --s-ok-bg:#dcf5e3; --s-bad:#c62828; --s-bad-bg:#fde2e1; --s-line:rgba(0,0,0,.06);
  container-type: inline-size; position: relative; overflow: hidden; aspect-ratio: 1080 / 2460;
  border-radius: calc(var(--w) * .11); background: var(--s-bg); color: var(--s-fg);
  font-family: Roboto, -apple-system, "Segoe UI", sans-serif; font-size: 4cqw; line-height: 1.3; text-align: left; }
@media (prefers-color-scheme: dark) {
  .scr { --s-bg:#0f1115; --s-card:#1b1e25; --s-fg:#eef0f4; --s-mut:#9aa0ab; --s-pri:#a8c2ff; --s-on:#0d1b3d; --s-pri-soft:#1d2a4a;
    --s-ok:#6fdc8c; --s-ok-bg:#163223; --s-bad:#ff8a80; --s-bad-bg:#3a1c1c; --s-line:rgba(255,255,255,.06); }
}
.scr svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-sb { display: flex; justify-content: space-between; padding: 3cqw 6cqw 0; font-size: 3.3cqw; font-weight: 500; }
.d-sbi { display: flex; gap: 1cqw; align-items: center; } .d-sbi i { width: 2.6cqw; height: 2.6cqw; border-radius: .6cqw; background: currentColor; opacity: .85; }
.d-sc { position: absolute; inset: 9cqw 0 0; padding: 0 4cqw; opacity: 0; visibility: hidden; transform: translateX(6%);
  transition: opacity .45s, transform .55s cubic-bezier(.2,.8,.2,1), visibility 0s .55s; }
.demo[data-scene="connect"] .s-connect, .demo[data-scene="find"] .s-find, .demo[data-scene="check"] .s-check, .demo[data-scene="live"] .s-live {
  opacity: 1; visibility: visible; transform: none; transition: opacity .45s .1s, transform .55s .1s cubic-bezier(.2,.8,.2,1); }
.d-top { display: flex; align-items: center; gap: 3cqw; padding: 3cqw 1cqw 4cqw; }
.d-brand { font-size: 7cqw; font-weight: 700; letter-spacing: -.02em; flex: 1; }
.d-back { font-size: 8cqw; line-height: 1; color: var(--s-fg); }
.d-tt b { display: block; font-size: 5.2cqw; } .d-tt i, .d-rt i { display: block; font-style: normal; color: var(--s-mut); font-size: 3.2cqw; }
.d-card { background: var(--s-card); border-radius: 4.5cqw; padding: 3.6cqw; display: flex; align-items: center; gap: 3cqw; margin-bottom: 2.6cqw; position: relative; }
.d-rt { flex: 1; min-width: 0; } .d-rt b { display: block; font-size: 4cqw; font-weight: 600; }
.d-ic { width: 10cqw; height: 10cqw; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 5cqw;
  background: var(--s-pri-soft); color: var(--s-pri); }
.d-ic.pri { background: var(--s-pri); color: var(--s-on); }
.d-btn { display: flex; justify-content: center; align-items: center; gap: 2cqw; background: var(--s-pri); color: var(--s-on);
  border-radius: 5cqw; padding: 3.8cqw; font-weight: 600; font-size: 4.2cqw; transition: transform .15s, filter .15s; }
.d-btn.press, .d-card.press { transform: scale(.96); filter: brightness(1.12); }
.d-spin { width: 5cqw; height: 5cqw; border-radius: 50%; border: .9cqw solid color-mix(in srgb, var(--s-pri) 25%, transparent);
  border-top-color: var(--s-pri); animation: dspin .8s linear infinite; display: inline-block; flex: none; }
@keyframes dspin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70%, 100% { box-shadow: 0 0 0 2.4cqw rgba(34,197,94,0); } }

/* connect */
.d-pill { position: relative; display: inline-flex; align-items: center; gap: 1.6cqw; padding: 1.4cqw 3cqw; border-radius: 99px;
  background: var(--s-card); font-size: 3.1cqw; color: var(--s-mut); }
.d-pill i { width: 2cqw; height: 2cqw; border-radius: 50%; background: var(--s-mut); transition: background .3s; }
.d-pill .t1, .d-pill .t2, .d-cap .c1, .d-cap .c2 { display: none; }
.s-connect.p1 .d-pill .t0, .s-connect.p2 .d-pill .t0, .s-connect.p2 .d-pill .t1 { display: none; }
.s-connect.p1 .d-pill .t1, .s-connect.p2 .d-pill .t2 { display: inline; }
.s-connect.p1 .d-pill i { background: #f59e0b; } .s-connect.p2 .d-pill i { background: #22c55e; }
.s-connect.p2 .d-pill { color: var(--s-ok); }
.d-hero { display: grid; justify-items: center; gap: 6cqw; padding: 14cqw 0 12cqw; }
.d-veh .d-ic { font-weight: 700; font-size: 4.6cqw; background: color-mix(in srgb, var(--s-mut) 18%, transparent); color: var(--s-mut); }
.d-veh { opacity: .7; }
.s-connect.p2 .d-veh { opacity: 1; }
.d-plug { position: relative; width: 30cqw; height: 30cqw; border-radius: 50%; display: grid; place-items: center; font-size: 13cqw;
  background: var(--s-pri-soft); color: var(--s-pri); transition: background .4s, color .4s; }
.d-plug svg { position: relative; z-index: 1; transition: transform .6s cubic-bezier(.3,1.6,.5,1); transform: translateY(-14%); }
.s-connect.p1 .d-plug svg, .s-connect.p2 .d-plug svg { transform: none; }
.s-connect.p2 .d-plug { background: var(--s-ok-bg); color: var(--s-ok); }
.d-ring { position: absolute; inset: 0; border-radius: 50%; border: .6cqw solid var(--s-pri); opacity: 0; }
.s-connect.p1 .d-ring { animation: ring 1.4s ease-out infinite; } .s-connect.p1 .d-ring.r2 { animation-delay: .7s; }
@keyframes ring { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
.d-cap { font-size: 4.6cqw; font-weight: 600; text-align: center; }
.s-connect.p1 .d-cap .c0, .s-connect.p2 .d-cap .c0, .s-connect.p2 .d-cap .c1 { display: none; }
.s-connect.p1 .d-cap .c1, .s-connect.p2 .d-cap .c2 { display: inline; }
.s-connect.p2 .d-cap { color: var(--s-ok); }

/* find */
.d-auto { background: var(--s-pri-soft); overflow: hidden; }
.d-tap { position: absolute; left: 50%; top: 50%; width: 10cqw; height: 10cqw; margin: -5cqw; border-radius: 50%;
  background: var(--s-pri); opacity: 0; }
.s-find.p1 .d-tap { animation: tap .6s ease-out; }
@keyframes tap { from { opacity: .35; transform: scale(.3); } to { opacity: 0; transform: scale(9); } }
.d-reading { display: flex; align-items: center; gap: 2.6cqw; padding: 1cqw 3cqw 4cqw; color: var(--s-mut); font-size: 3.6cqw;
  opacity: 0; transition: opacity .3s; }
.s-find.p2 .d-reading, .s-find.p3 .d-reading { opacity: 1; }
.d-list { opacity: .55; }
.d-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 3cqw 5cqw 7cqw; border-radius: 7cqw 7cqw 0 0; background: var(--s-card);
  box-shadow: 0 -8cqw 20cqw rgba(0,0,0,.25); display: grid; justify-items: center; gap: 3cqw; transform: translateY(105%);
  transition: transform .6s cubic-bezier(.2,.9,.25,1); }
.s-find.p3 .d-sheet { transform: none; }
.d-sheet .d-card { width: 100%; background: var(--s-bg); margin: 0; }
.d-grab { width: 10cqw; height: 1.2cqw; border-radius: 1cqw; background: var(--s-mut); opacity: .4; }
.d-h { font-size: 5.6cqw; }
.d-big { width: 13cqw; height: 13cqw; border-radius: 50%; display: grid; place-items: center; font-size: 7cqw; }
.d-big.ok { background: #22c55e; color: #fff; } .d-big.bad { background: var(--s-bad-bg); color: var(--s-bad); }
.d-big.run { background: var(--s-pri-soft); }
.d-big.ok svg { stroke-width: 3; }
.d-vin { font-size: 3cqw; color: var(--s-mut); min-height: 1.3em; font-variant-numeric: tabular-nums; }
.d-sheet .d-btn { width: 100%; }

/* check */
.d-sum { flex-direction: column; text-align: center; gap: 1.4cqw; padding: 5cqw 3cqw; }
.d-sum b { font-size: 5.2cqw; } .d-sum i { font-style: normal; color: var(--s-mut); font-size: 3.3cqw; }
.d-sum .d-big.bad, .d-sum .d-big.ok, .d-sum .h-bad, .d-sum .h-ok { display: none; }
.s-check.bad .d-sum .d-big.run, .s-check.bad .d-sum .h-run, .s-check.ok .d-sum .d-big.run, .s-check.ok .d-sum .h-run { display: none; }
.s-check.bad:not(.ok) .d-sum .d-big.bad, .s-check.bad:not(.ok) .d-sum .h-bad { display: grid; }
.s-check.bad:not(.ok) .d-sum i.h-bad { display: block; }
.s-check.ok .d-sum .d-big.ok { display: grid; } .s-check.ok .d-sum b.h-ok, .s-check.ok .d-sum i.h-ok { display: block; }
.s-check.bad.ok .d-sum .d-big.bad, .s-check.bad.ok .d-sum .h-bad { display: none; }
.d-big { animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: scale(.4); } to { transform: none; } }
.d-rows { flex-direction: column; align-items: stretch; gap: 0; padding: 1.5cqw 3cqw; }
.d-row { display: flex; align-items: center; gap: 2.6cqw; padding: 2.1cqw 0; }
.d-row + .d-row { border-top: 1px solid var(--s-line); }
.d-row .d-ic { width: 8.4cqw; height: 8.4cqw; font-size: 4.2cqw; }
.d-row .d-rt b { font-size: 3.7cqw; } .d-row .d-rt i { font-size: 2.9cqw; }
.d-st { flex: none; min-width: 16cqw; display: flex; justify-content: flex-end; }
.d-st > * { display: none; } .d-row.run .d-spin { display: inline-block; }
.d-ok, .d-bad { align-items: center; gap: .8cqw; padding: .8cqw 2.2cqw; border-radius: 99px; font-size: 3cqw; font-weight: 600; }
.d-ok { background: var(--s-ok-bg); color: var(--s-ok); } .d-bad { background: var(--s-bad-bg); color: var(--s-bad); }
.d-row.ok .d-ok, .d-row.bad .d-bad { display: inline-flex; animation: pop .4s cubic-bezier(.3,1.6,.5,1); }
.d-prob { flex-direction: column; align-items: flex-start; gap: 1cqw; max-height: 0; padding-block: 0; margin: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s, padding .5s, margin .5s, opacity .4s; }
.d-prob b { font-size: 3.8cqw; } .d-prob i { font-style: normal; color: var(--s-mut); font-size: 3.2cqw; }
.d-chip { background: var(--s-bad-bg); color: var(--s-bad); border-radius: 99px; padding: .6cqw 2.2cqw; font-size: 2.9cqw; font-weight: 600; }
.s-check.bad:not(.ok) .d-prob { max-height: 40cqw; padding-block: 3.4cqw; margin-bottom: 2.6cqw; opacity: 1; }
.d-clear { position: absolute; left: 4cqw; right: 4cqw; bottom: 7cqw; opacity: 0; transform: translateY(30%); transition: opacity .35s, transform .35s; }
.s-check.bad:not(.ok) .d-clear { opacity: 1; transform: none; }

/* live */
.d-live { display: flex; align-items: center; gap: 1.8cqw; color: var(--s-ok); font-weight: 600; font-size: 3.4cqw; padding: 0 1cqw 3cqw; }
.d-live i { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: #22c55e; animation: ping 2s ease-out infinite; }
.d-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqw; }
.d-tile { background: var(--s-card); border-radius: 4cqw; padding: 3cqw; min-height: 30cqw; display: flex; flex-direction: column; }
.d-tile i { font-style: normal; color: var(--s-mut); font-size: 3cqw; }
.d-tile b { font-size: 6.2cqw; font-weight: 700; margin: 1cqw 0 auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-tile small { font-size: 3cqw; color: var(--s-mut); font-weight: 500; }
.d-tile svg { width: 100%; height: 11cqw; overflow: visible; }
.d-tile polyline { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.d-tile[data-k="rpm"] polyline { stroke: #60a5fa; } .d-tile[data-k="thr"] polyline { stroke: #f5b83d; }
.d-tile[data-k="bat"] polyline { stroke: #a78bfa; } .d-tile[data-k="tmp"] polyline { stroke: #2dd4bf; }
.d-tile[data-k="iat"] polyline { stroke: #f472b6; } .d-tile[data-k="adv"] polyline { stroke: #4ade80; }
.d-stop { position: absolute; left: 4cqw; right: 4cqw; bottom: 7cqw; background: #ef4444; color: #fff; }

/* a finger tap marker */
.d-finger { position: absolute; width: 11cqw; height: 11cqw; margin: -5.5cqw; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.55); box-shadow: 0 0 0 .6cqw rgba(0,0,0,.12); opacity: 0; transform: scale(1.4);
  transition: left .5s cubic-bezier(.3,.8,.3,1), top .5s cubic-bezier(.3,.8,.3,1), opacity .25s, transform .25s; z-index: 5; }
.d-finger.on { opacity: .9; transform: scale(1); } .d-finger.down { transform: scale(.8); }

/* reduced motion: no autoplay; the steps switch the screen */
@media (prefers-reduced-motion: reduce) { .demo, .demo-halo { animation: none; opacity: 1; } .d-sc { transition: none; } }

/* narrower screens: copy, then the phone, then the steps */
@media (max-width: 980px) {
  .hero { text-align: center; padding-bottom: 96px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "demo" "steps"; row-gap: 44px; justify-items: center; }
  .hero .lead { margin: 22px auto 0; } .hero .cta { justify-content: center; }
  .steps-wrap { width: 100%; text-align: left; }
}
@media (max-width: 720px) { .phone.demo { --w: 290px; } .demo-halo { width: 420px; height: 420px; margin: -210px 0 0 -210px; } }

/* ---- legal pages (privacy, terms, refund) ------------------------------------------------------------------- */
.legal-page { padding: 72px 0 110px; }
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); letter-spacing: -.03em; margin: 0; }
.legal .lead { margin: 16px 0 0; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.legal .toc a { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--bg2); color: var(--fg); }
.legal .toc a:hover { text-decoration: none; background: var(--accent-soft); color: var(--accent); }
.legal h2 { font-size: 24px; letter-spacing: -.02em; margin: 48px 0 10px; scroll-margin-top: 80px; }
.legal h3 { font-size: 17px; margin: 26px 0 6px; }
.legal p, .legal li { color: color-mix(in srgb, var(--fg) 86%, var(--muted)); line-height: 1.65; }
.legal ul { padding-left: 22px; } .legal li { margin: 6px 0; }
.legal .note { background: var(--bg2); border-radius: 18px; padding: 18px 20px; margin-top: 26px; }
.legal-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---- account page ------------------------------------------------------------------------------------------- */
.acct-page { padding: 72px 0 110px; }
.acct { max-width: 720px; }
.acct > div, .acct-load { display: none; }
.acct[data-state="out"] .acct-out, .acct[data-state="in"] .acct-in { display: block; }
.acct[data-state="loading"] .acct-load { display: block; color: var(--muted); }
.acct-out { text-align: center; max-width: 520px; margin: 0 auto; }
.acct-logo { width: 72px; height: 72px; border-radius: 17px; margin: 0 auto 22px; box-shadow: 0 10px 30px -10px rgba(37,99,235,.6); }
.acct h1 { font-size: clamp(34px, 4.6vw, 48px); letter-spacing: -.03em; margin: 0; }
.acct-out .lead { margin: 16px auto 30px; }
.acct-err { background: var(--accent-soft); color: var(--fg); border-radius: 14px; padding: 12px 16px; margin: 0 auto 22px; }
.gbtn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 16px; border-radius: 999px; font-weight: 600; font-size: 16px;
  background: #fff; color: #1f1f1f; border: 1px solid #dadce0; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.gbtn:hover { text-decoration: none; background: #f8f9fa; }
.gbtn svg { width: 20px; height: 20px; }
.acct-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.acct-pic { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--bg2); }
.acct-head p { margin: 4px 0 0; color: var(--muted); }
.acct .card { margin-bottom: 16px; padding: 26px 28px; }
.acct .card h2 { font-size: 26px; letter-spacing: -.02em; margin: 6px 0 6px; }
.acct .card p { margin: 6px 0; color: var(--muted); }
.acct .card .eyebrow { margin: 0; }
.acct-bar { height: 6px; border-radius: 6px; background: var(--bg2); overflow: hidden; margin-top: 14px; }
.acct-bar span { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.acct-buy .btn { margin-top: 12px; }
.acct-buy .btn[disabled] { opacity: .55; cursor: not-allowed; }
.acct-dev { list-style: none; padding: 0; margin: 10px 0 0; }
.acct-dev li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.acct-dev li:first-child { border-top: 0; }
.acct-dev span { color: var(--muted); font-size: 14px; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.btn.ghost { background: var(--bg2); color: var(--fg); box-shadow: none; }
button.btn { border: 0; font: inherit; cursor: pointer; }
button.link { background: none; border: 0; font: inherit; cursor: pointer; color: var(--accent); padding: 0; }
.link.danger { color: #dc2626; margin-left: auto; }
.link.danger::after { content: none; }


/* ---- account: help (support questions) ---------------------------------------------------------------------- */
.help-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.help-head .btn { padding: 10px 20px; font-size: 15px; }
.help-form { display: grid; gap: 14px; margin-top: 18px; }
.help-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.help-form input, .help-form textarea, .help-thread textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%; box-sizing: border-box; resize: vertical; }
.help-form input:focus, .help-form textarea:focus, .help-thread textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.help-btns { display: flex; gap: 16px; align-items: center; }
.help-err { color: #dc2626 !important; margin: 0 !important; }
.help-list { list-style: none; padding: 0; margin: 16px 0 0; }
.help-list li { border-top: 1px solid var(--line); }
.help-list button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 13px 2px; }
.help-list button:focus-visible { outline: 2px solid var(--accent); border-radius: 8px; }
.help-list b { font-weight: 600; } .help-list .new b::after { content: " •"; color: var(--accent); }
.help-list small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.help-st { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: var(--bg2); color: var(--muted); white-space: nowrap; }
.help-st.answered { background: var(--accent-soft); color: var(--accent); }
.help-thread { margin-top: 16px; display: grid; gap: 12px; }
.help-thread h3 { margin: 0; font-size: 19px; }
.help-msg { max-width: 88%; display: grid; gap: 4px; }
.help-msg.us { justify-self: start; } .help-msg.me { justify-self: end; text-align: right; }
.help-msg div { white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; padding: 11px 15px; border-radius: 16px; background: var(--bg2); line-height: 1.45; }
.help-msg.me div { background: var(--accent-soft); }
.help-msg small { color: var(--muted); font-size: 12px; }
.help-form[hidden], .help-thread[hidden], .help-list[hidden], .help-err[hidden] { display: none !important; }
.help-link { all: unset; cursor: pointer; color: var(--accent); font-size: 15px; font-weight: 500; }
.help-link:hover { text-decoration: underline; } .help-link:focus-visible { outline: 2px solid var(--accent); border-radius: 6px; }
.help-thread > .help-link { justify-self: start; }

/* ---- account: advertise ---------------------------------------------------------------------------------------- */
.promo-how { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 14px 0 0; list-style: none; counter-reset: how; font-size: 14px; color: var(--muted); }
.promo-how li { counter-increment: how; display: flex; align-items: center; gap: 7px; }
.promo-how li::before { content: counter(how); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; }
.promo-per { display: inline-flex; gap: 2px; padding: 3px; margin-top: 18px; border-radius: 999px; background: var(--bg2); }
.promo-per button { all: unset; cursor: pointer; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.promo-per button.on { background: var(--card); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.promo-plans { display: grid; gap: 8px; margin-top: 12px; }
.promo-per:not([hidden]) + .promo-plans { margin-top: 10px; }
.promo-plan { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.promo-plan:hover, .promo-plan:focus-visible, .promo-plan.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.promo-plan .pl-l { flex: 1; display: grid; gap: 1px; min-width: 0; }
.promo-plan .pl-l b { font-size: 16px; } .promo-plan .pl-l small { font-size: 13px; color: var(--muted); }
.promo-plan .pr { font-size: 18px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.promo-plan .pr small { font-size: 13px; font-weight: 500; color: var(--muted); }
.promo-plan .choose { color: var(--accent); font-size: 20px; font-weight: 600; }
.promo-form { display: grid; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.promo-form h3 { margin: 0; font-size: 20px; }
.promo-form label, .promo-colors, .promo-prev-wrap { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.promo-form small { font-weight: 400; color: var(--muted); }
.promo-form input:not([type=file]) { font: inherit; font-weight: 400; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%; box-sizing: border-box; }
.promo-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.promo-form[hidden], #promo-text[hidden], #promo-image[hidden], .promo-mine-h[hidden] { display: none !important; }
.promo-kind { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg2); width: max-content; }
.promo-kind button { font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 999px; padding: 7px 16px; background: none; color: var(--muted); cursor: pointer; }
.promo-kind button.on { background: var(--card); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
#promo-presets { display: flex; gap: 8px; flex-wrap: wrap; }
#promo-presets button { font: inherit; font-size: 13px; font-weight: 600; border: 0; border-radius: 10px; padding: 8px 12px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
#promo-presets button.on { box-shadow: 0 0 0 2px var(--accent); }
.promo-prev { border-radius: 18px; background: var(--bg2); padding: 14px; }
.promo-box { position: relative; display: grid; align-content: center; min-height: 52px; max-height: 64px; border-radius: 10px; padding: 8px 64px 8px 14px; overflow: hidden; box-sizing: border-box; }
.promo-box b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .promo-box small { font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit !important; }
.promo-box img { width: 100%; max-height: 64px; object-fit: contain; display: block; }
.promo-box.img { padding: 0; background: none; }
.promo-box .sp { position: absolute; top: 4px; right: 4px; font-size: 9px; color: #fff; background: rgba(0,0,0,.45); border-radius: 5px; padding: 0 5px; }
.promo-mine-h { margin: 26px 0 0; font-size: 18px; }
.promo-mine { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.promo-mine li { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.promo-st { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.promo-st b { font-size: 14px; } .promo-st .help-st { font-size: 12px; }
.promo-meta { font-size: 13px; color: var(--muted); }
.help-file { font-size: 13px; font-weight: 600; justify-self: inherit; }

/* ---- country picker (ads) ------------------------------------------------------------------------------------ */
.cp { display: grid; gap: 10px; font-weight: 400; }
.cp-mode { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg2, var(--bg)); width: max-content; max-width: 100%; flex-wrap: wrap; }
.cp-mode button { font: inherit; font-size: 13px; font-weight: 600; border: 0; border-radius: 999px; padding: 7px 14px; background: none; color: var(--muted); cursor: pointer; }
.cp-mode button.on { background: var(--card); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.cp-pane { display: grid; gap: 8px; position: relative; }
.cp-pane[hidden], .cp-list[hidden] { display: none !important; }
.cp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-chip { font: inherit; font-size: 13px; font-weight: 600; border: 0; border-radius: 999px; padding: 5px 11px; background: var(--accent-soft); color: var(--accent); cursor: pointer; }
.cp-chip:hover { filter: brightness(1.08); }
.cp-none { font-size: 13px; color: #d97706; }
.cp input[type=search] { font: inherit; font-size: 15px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; height: auto; }
.cp-list { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.cp-list button { all: unset; cursor: pointer; padding: 9px 12px; font-size: 14px; }
.cp-list button:hover, .cp-list button:focus-visible { background: var(--accent-soft); }
.cp-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-quick button { font: inherit; font-size: 12px; border: 1px dashed var(--line); border-radius: 999px; padding: 4px 10px; background: none; color: var(--muted); cursor: pointer; }
.cp-quick button:hover { color: var(--accent); border-color: var(--accent); }
.promo-where { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.hw-buy { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent); text-decoration: none; width: max-content; }
.hw-buy:hover { background: var(--accent); color: #fff; text-decoration: none; }
.hw-card { display: flex; flex-direction: column; }
.hw-card .hw-text { display: flex; flex-direction: column; flex: 1; }
.hw-card .hw-buy { margin-top: auto; } .hw-card .hw-text p:last-of-type { margin-bottom: 16px; }

/* phones never wider than the screen: two side by side share it on a phone */
@media (max-width: 720px) {
  .feature .phones { gap: 14px; max-width: 100%; }
  .feature .phones .phone.sm { --w: min(200px, calc((100vw - 64px) / 2)); }
  .feature .phones .phone:only-child { --w: min(250px, calc(100vw - 80px)); }
  .feature h2 { overflow-wrap: anywhere; }
}

/* The small PRO tag and the Pro card on /account (Pro is never advertised on the front page: owner) */
.pro-tag { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1;
  padding: 4px 7px 3px; border-radius: 6px; color: #fff; background: linear-gradient(135deg, #f59e0b, #ea580c); }
.pro-perks { padding-left: 20px; margin: 12px 0; display: grid; gap: 8px; color: var(--muted); }
.pro-perks b { color: var(--fg); }
.help-pro { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; }

/* PayPal checkout on /account */
.pp-pay { margin-top: 14px; display: grid; gap: 12px; }
.pp-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.pp-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.pp-box { max-width: 380px; min-height: 20px; font-size: 14px; color: var(--muted); }
.pp-box.busy { opacity: .5; pointer-events: none; }
.promo-mine .pp-box { margin-top: 10px; }
.help-link.strong { font-weight: 700; }

/* /test: join the Google Play test */
.tester-page { padding: 120px 0 90px; }
.tester { max-width: 720px; }
.tester-logo { width: 72px; height: 72px; border-radius: 18px; }
.tester h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.03em; margin: 18px 0 12px; }
.tester-tip { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--fg); }
.tester-steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.tester-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.tester-steps h3 { margin: 2px 0 6px; font-size: 19px; }
.tester-steps p { margin: 0 0 14px; color: var(--muted); }
.tester-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.tester-faq ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }

.acct-paid { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--fg); font-weight: 600; }

/* the hidden attribute always wins (.btn and other display rules used to show hidden buttons) */
[hidden] { display: none !important; }
/* CDiag Pro on /account: accept box + buy button */
.pro-buy { margin-top: 18px; display: grid; gap: 14px; justify-items: start; }
.pro-agree { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 16px; color: var(--fg); -webkit-tap-highlight-color: transparent; }
.pro-agree input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.pro-buy .btn { margin-top: 0; }

/* /account: Pro first, buy controls above the perks; compact on phones so "Buy" shows without scrolling */
.pro-price { margin: 10px 0 0; color: var(--muted); }
#pro { scroll-margin-top: 80px; }
#pro .pro-perks { margin-top: 18px; }
@media (max-width: 640px) {
  .acct-page { padding-top: 28px; }
  .acct-head { gap: 12px; margin-bottom: 16px; }
  .acct-pic { width: 44px; height: 44px; }
  .acct-in .acct-head h1 { font-size: 24px; }
  .acct-head p { font-size: 14px; margin-top: 2px; }
  #pro { padding: 22px 20px; }
  #pro h2 { font-size: 24px; line-height: 1.15; margin-top: 4px; }
}
