/* Public pages: the home page and the Download page. System fonts only (the site's security rules allow nothing external). */

:root {
    --bg: #ffffff;
    --bg-alt: #f3f6fb;
    --card: #ffffff;
    --text: #0f1b2d;
    --muted: #55637a;
    --border: #dfe5ee;
    --accent: #0067c0;
    --accent-2: #2dc5a2;
    --accent-text: #ffffff;
    --hero-from: #e8f1fc;
    --hero-to: #f7fbff;
    --dark: #0b1f3a;
    --ok: #12805c;
    --no: #b3402f;
    --shadow: 0 10px 30px rgba(15, 27, 45, .08);
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d141e;
        --bg-alt: #121b28;
        --card: #162131;
        --text: #e9eef6;
        --muted: #9fb0c6;
        --border: #263449;
        --accent: #5cb6ff;
        --accent-2: #3fd9b4;
        --accent-text: #04233b;
        --hero-from: #10253f;
        --hero-to: #0d141e;
        --dark: #0a1626;
        --ok: #4fd1a0;
        --no: #ff8b79;
        --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body.landing {
    margin: 0; background: var(--bg); color: var(--text);
    font: 16px/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.landing a { color: var(--accent); }
:where(.landing h1, .landing h2, .landing h3) { line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -.01em; }
.landing h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 750; }
.landing h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; text-align: center; }
.landing h3 { font-size: 1.1rem; font-weight: 650; }
:where(.landing p) { margin: 0 0 1rem; }   /* zero specificity: any class below may set its own margin */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.3rem; border-radius: 10px; border: 1px solid transparent;
    font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.2;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
a.btn, a.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 6px 16px rgba(0, 103, 192, .25); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.light { background: #fff; color: #0b1f3a; }
.btn.small { padding: .5rem .95rem; font-size: .92rem; }
.btn.big { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn.disabled { background: var(--bg-alt); color: var(--muted); border-color: var(--border); cursor: default; }
.btn.disabled:hover { transform: none; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 750; font-size: 1.15rem; color: var(--text) !important; text-decoration: none; }
.logo-mark { width: 26px; height: 26px; background: url(icons/logo-mark.png) center / contain no-repeat; }
.nav-links { display: flex; gap: 1.3rem; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; gap: .5rem; align-items: center; }
@media (max-width: 900px) { .nav-links { display: none; } .nav-actions { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .8rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0 1.25rem; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; color: var(--muted); font-size: .96rem; }
.hero-points .icon { color: var(--ok); margin-right: .3rem; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; } }

/* hero picture: a PC and a phone joined by a moving dotted line (built from plain boxes) */
.hero-art { display: flex; align-items: center; justify-content: center; gap: 0; padding: 1rem 0; }
.device { flex: none; }
.pc { width: 250px; }
.pc-screen { background: var(--dark); border-radius: 12px 12px 4px 4px; padding: 8px; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .06); }
.pc-bar { display: flex; gap: 5px; padding: 2px 4px 7px; }
.pc-bar i { width: 7px; height: 7px; border-radius: 50%; background: #ffffff33; }
.pc-body { display: grid; grid-template-columns: 54px 1fr; gap: 8px; background: #0f2a4d; border-radius: 6px; padding: 8px; min-height: 130px; }
.pc-side { display: grid; align-content: start; gap: 6px; }
.pc-side b { height: 9px; border-radius: 4px; background: #ffffff2a; }
.pc-side b:first-child { background: var(--accent-2); }
.pc-files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pc-files span { aspect-ratio: 1; border-radius: 6px; background: #ffffff1f; }
.pc-stand { width: 58px; height: 12px; margin: 0 auto; background: linear-gradient(#314560, #223048); border-radius: 0 0 6px 6px; }
.link-line { display: flex; gap: 7px; padding: 0 12px; }
.link-line span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); opacity: .25; animation: pulse 1.6s infinite; }
.link-line span:nth-child(2) { animation-delay: .25s; }
.link-line span:nth-child(3) { animation-delay: .5s; }
@keyframes pulse { 0%, 100% { opacity: .2; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .link-line span { animation: none; opacity: .7; } html { scroll-behavior: auto; } .btn { transition: none; } }
.phone { width: 128px; background: #111c2e; border-radius: 22px; padding: 10px 8px 14px; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .08); }
.phone-notch { width: 34px; height: 5px; border-radius: 3px; background: #ffffff25; margin: 0 auto 8px; }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.phone-grid span { aspect-ratio: 1; border-radius: 4px; }
.phone-pill { width: 52px; height: 5px; border-radius: 3px; background: #ffffff3d; margin: 10px auto 0; }
.t1 { background: linear-gradient(135deg, #5cb6ff, #2f6fdd); } .t2 { background: linear-gradient(135deg, #ffd27a, #f2994a); }
.t3 { background: linear-gradient(135deg, #7be0b5, #1b9c78); } .t4 { background: linear-gradient(135deg, #f78fb3, #c44569); }
.t5 { background: linear-gradient(135deg, #b8a1ff, #6c4cd8); } .t6 { background: linear-gradient(135deg, #8de1ff, #3a9fd6); }
.t7 { background: linear-gradient(135deg, #ffb19a, #e0603a); } .t8 { background: linear-gradient(135deg, #a8e87a, #5da02f); }
.t9 { background: linear-gradient(135deg, #ffe08a, #d9a516); }
.pc-files .f1 { background: linear-gradient(135deg, #5cb6ff, #2f6fdd); } .pc-files .f2 { background: linear-gradient(135deg, #ffd27a, #f2994a); }
.pc-files .f3 { background: linear-gradient(135deg, #7be0b5, #1b9c78); } .pc-files .f4 { background: linear-gradient(135deg, #f78fb3, #c44569); }
.pc-files .f5 { background: linear-gradient(135deg, #b8a1ff, #6c4cd8); } .pc-files .f6 { background: linear-gradient(135deg, #8de1ff, #3a9fd6); }
@media (max-width: 480px) { .pc { width: 168px; } .phone { width: 96px; } .link-line { padding: 0 8px; gap: 5px; } .link-line span { width: 6px; height: 6px; } }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section.alt { background: var(--bg-alt); }
.section.tight { padding-top: 0; }
.section-lead { text-align: center; color: var(--muted); max-width: 40rem; margin: 0 auto 2.2rem; }
.band { background: var(--dark); color: #e9eef6; padding: 2.2rem 0; }
.band h3 { color: #fff; }
.band p { color: #b8c6da; margin: 0; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 800px) { .trio { grid-template-columns: 1fr; gap: 1.3rem; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid3 { grid-template-columns: 1fr; } }
.feature { transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.ico { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; margin-bottom: .9rem;
       background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.ico .icon { width: 24px; height: 24px; }

/* ---------- how it works ---------- */
.steps { list-style: none; margin: 2.2rem 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding-top: .2rem; }
.steps p { color: var(--muted); }
.num { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; font-weight: 750;
       background: var(--accent); color: var(--accent-text); margin-bottom: .8rem; }
.diagram { max-width: 820px; margin: 2.5rem auto 0; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; }
.d-site { text-align: center; margin: 0 auto 1.1rem; padding: .7rem 1rem; border: 1px dashed var(--border); border-radius: 12px; max-width: 320px; }
.d-site strong, .d-site span { display: block; }
.d-site span { color: var(--muted); font-size: .88rem; }
.d-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.d-node { text-align: center; padding: 1rem 1.3rem; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.d-node .icon { display: block; margin: 0 auto .3rem; width: 28px; height: 28px; color: var(--accent); }
.d-link { text-align: center; position: relative; color: var(--muted); font-size: .88rem; }
.d-link::before { content: ""; display: block; height: 2px; margin: 0 0 .5rem; background: repeating-linear-gradient(90deg, var(--accent-2) 0 8px, transparent 8px 14px); }
@media (max-width: 560px) { .d-row { grid-template-columns: 1fr; } .d-link::before { width: 2px; height: 26px; margin: 0 auto .5rem; background: repeating-linear-gradient(180deg, var(--accent-2) 0 8px, transparent 8px 14px); } }

/* ---------- comparison ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { font-size: .9rem; color: var(--muted); background: var(--bg-alt); }
.compare thead th.us { color: var(--accent); }
.compare tbody th { font-weight: 600; width: 32%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td.us { background: color-mix(in srgb, var(--accent) 6%, transparent); font-weight: 560; }
.compare .icon { margin-right: .3rem; }
.compare td .icon[viewBox] { color: var(--ok); }
.honest { margin-top: 1.4rem; padding: 1rem 1.2rem; border-left: 4px solid var(--accent-2); background: var(--bg-alt); border-radius: 0 12px 12px 0; color: var(--muted); }
.honest strong { color: var(--text); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan h3 { font-size: 1.25rem; }
.plan-price { margin: .2rem 0 .6rem; }
.plan-price strong { font-size: 2.2rem; letter-spacing: -.02em; }
.plan-price span { color: var(--muted); }
.plan-list { list-style: none; padding: 0; margin: .6rem 0 1.4rem; display: grid; gap: .55rem; flex: 1; align-content: start; }
.plan-text { min-height: 3.2em; } /* two lines, so the feature lists of the three plans start at the same height */
.plan-list li { display: flex; gap: .55rem; align-items: flex-start; }
.plan-list li.on .icon { color: var(--ok); }
.plan-list li.off { color: var(--muted); }
.plan-list li.off .icon { color: var(--no); opacity: .8; }
.small-note { margin-top: 1.4rem; }

/* ---------- download blocks ---------- */
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 820px; margin: 0 auto; }
@media (max-width: 640px) { .downloads { grid-template-columns: 1fr; } }
.dl { text-align: center; }
.dl .ico { margin-left: auto; margin-right: auto; }
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; }
@media (max-width: 900px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card h2 { text-align: left; font-size: 1.4rem; margin-bottom: .2rem; }
.dl-card h3 { margin-top: 1.4rem; font-size: 1rem; }
.dl-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.dl-head .ico { margin: 0; }
.dl-version { margin-bottom: .8rem; }
.notes { color: var(--muted); }
.install { padding-left: 1.2rem; color: var(--muted); }
.install li { margin-bottom: .4rem; }
.install strong { color: var(--text); }
.verify, .older { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: .8rem; }
.verify summary, .older summary { cursor: pointer; font-weight: 600; }
.hash { word-break: break-all; font-size: .8rem; background: var(--bg-alt); padding: .6rem .8rem; border-radius: 8px; }
.older ul { margin: .6rem 0 0; padding-left: 1.1rem; }
.coming { padding: 1rem 1.2rem; background: var(--bg-alt); border-radius: 12px; }
.page-head { padding-bottom: 2rem; }
.page-head h1 { text-align: center; }
.page-head .lead { margin-left: auto; margin-right: auto; }

/* ---------- faq ---------- */
details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0 1.1rem; margin-bottom: .7rem; }
details summary { cursor: pointer; font-weight: 650; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 1rem; margin: 0; }
.section.alt details { background: var(--bg); }
.landing .section h2 + details, .landing h2 + details { margin-top: 1.6rem; }

/* ---------- final call and footer ---------- */
.final { background: linear-gradient(135deg, #0b1f3a, #0f4c81); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.final h2 { color: #fff; }
.final p { color: #cfe0f4; margin-bottom: 1.5rem; }
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 2.2rem 0 1.2rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-start; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }
.legal { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }

/* ---------- legal pages (Privacy Policy, Terms) ---------- */
.legal-text { font-size: 1rem; }
.legal-text h2 { text-align: left; font-size: 1.3rem; margin: 2.2rem 0 .6rem; scroll-margin-top: 80px; }
.legal-text ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal-text li { margin-bottom: .55rem; }
.legal-text p, .legal-text li { color: var(--text); }
.legal-text .summary { background: var(--bg-alt); border-left: 4px solid var(--accent-2); border-radius: 0 12px 12px 0; padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: .15rem 1.5rem; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: 12px; background: var(--card); margin-bottom: 1rem; }
.toc a { text-decoration: none; padding: .2rem 0; font-size: .95rem; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 560px) { .toc { grid-template-columns: 1fr; } }
.todo { background: #fff3b0; color: #5c4400; padding: 0 .35rem; border-radius: 4px; font-weight: 600; }
.page-head .eyebrow.center { text-align: center; }

/* ---------- country picker above the plans ---------- */
.country-pick { display: grid; justify-items: center; gap: .6rem; width: min(100%, 26rem); margin: 0 auto 2.4rem; padding: 1.2rem 1.4rem 1.1rem;
    background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); text-align: center; }
.country-pick label { font-weight: 650; font-size: .95rem; }
.country-pick .pick-row { display: grid; gap: .7rem; width: 100%; justify-items: center; }
.country-pick .pick-row > .btn { min-width: 12rem; }
.country-pick .pick-note { margin: .1rem 0 0; line-height: 1.4; }
/* without JavaScript: the plain select, full width */
.country-pick select { font: inherit; width: 100%; padding: .65rem .85rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); text-align: center; }

/* the nicer dropdown (select.js) */
.cs { position: relative; width: 100%; text-align: left; }
.cs-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cs-button { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; font: inherit; font-weight: 600; color: var(--text);
    padding: .7rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.cs-button:hover { border-color: var(--accent); }
.cs-button:focus-visible, .cs.is-open .cs-button { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 103, 192, .25); }
.cs-label { flex: 1; text-align: center; padding-left: 1.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-chevron { flex: none; width: .55rem; height: .55rem; margin-right: .2rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.cs.is-open .cs-chevron { transform: rotate(-135deg) translate(-2px, -2px); }
.cs-panel { position: absolute; left: 0; right: 0; top: calc(100% + .4rem); z-index: 30; padding: .5rem; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.cs-panel[hidden] { display: none; }
.cs-search { width: 100%; font: inherit; padding: .55rem .75rem; margin-bottom: .4rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.cs-search:focus { outline: none; border-color: var(--accent); }
.cs-list { max-height: 15rem; overflow-y: auto; display: grid; gap: 2px; }
.cs-option { padding: .5rem .75rem; border-radius: 8px; cursor: pointer; }
.cs-option.is-active { background: var(--bg-alt); }
.cs-option[aria-selected="true"] { color: var(--accent); font-weight: 650; }
.cs-option[aria-selected="true"]::after { content: "\2713"; float: right; }

/* ---- motion (see landing.js) ---- */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 1000; transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2)); pointer-events: none; }
.hero-art, .hero-art .device, .feature .ico, .btn.primary { will-change: transform; }
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }

/* ---- stronger motion (see landing.js) ---- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; opacity: 0; }
.orb.o1 { width: 420px; height: 420px; left: -120px; top: -80px; background: var(--accent); opacity: .30; }
.orb.o2 { width: 360px; height: 360px; right: 6%; top: 30%; background: var(--accent-2); opacity: .22; }
.orb.o3 { width: 300px; height: 300px; left: 38%; bottom: -140px; background: #8b5cf6; opacity: .20; }
.cursor-glow { position: fixed; left: 0; top: 0; width: 460px; height: 460px; border-radius: 50%; pointer-events: none; z-index: 5; opacity: .5;
    background: radial-gradient(circle, rgba(45, 197, 162, .16), rgba(0, 103, 192, .08) 45%, transparent 70%); }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .03em .14em; margin: -.06em -.03em -.14em; }
.word-inner { display: inline-block; will-change: transform; }
.ico { position: relative; }
.ripple { position: absolute; inset: 0; border-radius: 12px; border: 2px solid var(--accent); pointer-events: none; }
.d-link { position: relative; }
/* the dot rides the dashed line (the 2px ::before at the top of .d-link), not the middle of the link box, which includes the caption */
.data-dot { position: absolute; top: 1px; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent-2);
    box-shadow: 0 0 14px 4px rgba(45, 197, 162, .6); pointer-events: none; opacity: 0; animation: dot-across 1.8s ease-in-out 2s infinite; }
@keyframes dot-across { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 100% { left: 100%; opacity: 1; } }
@keyframes dot-down { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 100% { top: 26px; opacity: 1; } }
@media (max-width: 560px) { .data-dot { top: 0; left: 50%; animation-name: dot-down; } }
@media (prefers-reduced-motion: reduce) { .data-dot { animation: none; opacity: 1; left: 50%; top: 1px; } }
@media (prefers-reduced-motion: reduce) { .orb, .cursor-glow { display: none; } }
.motion .btn { transition: box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease; }
.motion .btn:hover, .motion .feature:hover { transform: none; }
.motion .feature { transition: box-shadow .15s ease; }


/* ---- proof strip, technology, comparisons ---- */
.proof { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; padding-top: 1.3rem; padding-bottom: 1.3rem; }
.proof-grid div { display: flex; flex-direction: column; gap: .15rem; }
.proof-grid strong { font-size: 1.05rem; color: var(--accent); }
.proof-grid span { font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .proof-grid { grid-template-columns: 1fr; } }

.tech-more { margin-top: 1.6rem; }
.tech-more ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); }
.tech-more li { margin-bottom: .6rem; }
.tech-more li strong { color: var(--text); }

.compare-title { margin: 2rem 0 .8rem; font-size: 1.1rem; }
.compare-title:first-of-type { margin-top: 0; }
.compare.wide { min-width: 860px; }
.compare.wide tbody th { width: 20%; }
.compare.wide td { font-size: .93rem; }
.compare-note { margin-top: .9rem; }

.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.6rem; }
@media (max-width: 700px) { .two { grid-template-columns: 1fr; } }
.fit .card h3 { margin-bottom: .6rem; }
ul.plain { list-style: none; padding: 0; margin: 0; color: var(--muted); }
ul.plain li { padding: .35rem 0 .35rem 1.1rem; position: relative; }
ul.plain li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---- Help and support (help.php) ---- */
.help-search-box { margin: 1.4rem auto 0; max-width: 560px; text-align: left; }
.help-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.help-search { width: 100%; box-sizing: border-box; padding: .9rem 1.1rem; font-size: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); }
.help-search:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.help-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.2rem; }
.help-chip { padding: .4rem .85rem; border: 1px solid var(--border); border-radius: 999px; font-size: .9rem; color: var(--muted); text-decoration: none; background: var(--card); }
.help-chip:hover { color: var(--text); border-color: var(--accent); }
.help-section { margin-top: 2.2rem; scroll-margin-top: 5rem; }
.help-section[hidden] { display: none; }
.help-section h2 { margin-bottom: 1rem; font-size: 1.35rem; }
.help-answer { padding-bottom: .4rem; }
.help-answer p { padding-bottom: .8rem; }
.help-steps { color: var(--muted); margin: 0 0 1rem; padding-left: 1.3rem; }
.help-steps li { margin-bottom: .55rem; padding-left: .2rem; }
.help-note { margin: 0 0 1rem; padding: .8rem 1rem; }
.help-contact { margin-top: 2.6rem; }
.help-contact h2 { margin-top: 0; }
.help-contact p { color: var(--muted); }
.help-contact code { background: var(--bg-alt); padding: .1rem .35rem; border-radius: 6px; color: var(--text); }
.help-more { margin-top: 1.4rem; }

/* notched phones (the page extends under the notch; keep content clear of it) */
.nav { padding-top: env(safe-area-inset-top); }
.wrap { padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right)); }

/* phone menu (after the FAQ rules above so it can undo their look) */
details.menu { display: none; position: relative; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; }
.menu summary { padding: 0; list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--text); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after, .menu[open] summary::after { content: none; }
.menu summary .icon { width: 1.6rem; height: 1.6rem; }
.menu[open] summary { background: var(--bg-alt); }
.menu-panel { position: absolute; right: 0; top: calc(100% + .5rem); width: min(280px, calc(100vw - 2.5rem)); display: grid; padding: .5rem;
              background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.menu-panel a { padding: .8rem .9rem; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.menu-panel a:active, .menu-panel a:hover { background: var(--bg-alt); color: var(--accent); }
@media (max-width: 900px) { details.menu { display: block; } .nav-inner { gap: .75rem; } }
@media (max-width: 480px) { .nav-actions .btn.ghost { display: none; } .nav-inner { min-height: 58px; } }

/* small phones: long words (permission names, addresses) wrap instead of pushing the page wider; the hero picture shrinks to fit */
.landing main, .landing section { overflow-wrap: anywhere; }
.hero-grid > * { min-width: 0; }
@media (max-width: 360px) { .pc { width: 138px; } .phone { width: 80px; } .link-line { padding: 0 4px; gap: 4px; } .hero-art { max-width: 100%; } }
.dl-head .ico { flex: none; }

/* ---- home page with photos ---- */
.hero-photo { position: relative; margin: 0; }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 24px 60px rgba(15, 27, 45, .22); aspect-ratio: 4 / 3; object-fit: cover; }
.photo-chip { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: 999px;
    background: rgba(255, 255, 255, .94); color: #0f1b2d; font-weight: 650; font-size: .9rem; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.photo-chip .icon { color: var(--ok); }
@media (max-width: 880px) { .hero-photo { order: -1; } .hero-photo img { aspect-ratio: 3 / 2; border-radius: 18px; } }
@media (max-width: 480px) { .photo-chip { left: .6rem; bottom: .6rem; font-size: .82rem; } }

.story { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(2.2rem, 5vw, 3.8rem); }
.story.flip .story-photo { order: 2; }
.story-photo { display: block; width: 100%; height: auto; border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.story-text h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.story-text p { color: var(--muted); font-size: 1.05rem; }
.story-text .ico { margin-bottom: .8rem; }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; gap: 1.1rem; } .story.flip .story-photo { order: 0; } }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 960px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }

.final.photo { background-image: linear-gradient(135deg, rgba(11, 31, 58, .82), rgba(15, 76, 129, .72)), url(photos/sunset.jpg); background-size: cover; background-position: center 60%; }
.final .btn.big { padding: 1rem 2rem; }

/* the Under the hood page */
.page-head.section { padding-bottom: 1.5rem; }

/* ---- the Drive section on the home page ---- */
.drive-points { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 1.05rem; }
.drive-points li { display: flex; gap: .9rem; align-items: flex-start; }
.drive-points .ico { flex: none; margin: 0; width: 42px; height: 42px; }
.drive-points strong { display: block; font-size: 1.02rem; }
.drive-points li span:not(.ico) { color: var(--muted); font-size: .97rem; }
.drive-cta { margin: 2.2rem 0 0; }

/* Developers page */
.dev-code-box { margin: .8rem 0 1.2rem; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-alt); }
.dev-code-label { padding: .35rem .8rem; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--border); }
.dev-code { margin: 0; padding: .9rem 1rem; overflow-x: auto; font: .85rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); white-space: pre; }
.dev-table { width: 100%; border-collapse: collapse; margin: .8rem 0 1.2rem; font-size: .92rem; }
.dev-table th, .dev-table td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--border); }
.dev-table th { color: var(--muted); font-weight: 600; }
.dev-table code, .help-answer code, .help p code, .help li code { background: var(--bg-alt); padding: .1rem .35rem; border-radius: 6px; font-size: .88em; }
@media (max-width: 640px) { .dev-table { display: block; overflow-x: auto; } }

/* Footer in groups */
.foot-inner { align-items: flex-start; }
.site-footer nav.foot-col { flex-direction: column; flex-wrap: nowrap; gap: .45rem; min-width: 9rem; }
.site-footer nav.foot-col strong { color: var(--text); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .2rem; }
@media (max-width: 640px) { .site-footer nav.foot-col { min-width: 40%; } }

/* The technical hub */
.tech-grid .card p:last-child { margin-top: 1rem; }
.tech-list + .muted { margin-top: 1.4rem; }
.tech-list { margin: 1rem 0 0; padding-left: 1.2rem; display: grid; gap: .8rem; }
.tech-list li { line-height: 1.55; }

/* Pricing: the country choice is one quiet row, not a big box */
.country-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .8rem; width: auto; max-width: none; margin: 0 auto 2rem; padding: 0;
                background: none; border: 0; box-shadow: none; }
.country-pick label { margin: 0; color: var(--muted); font-weight: 600; }
.country-pick .pick-row { display: flex; align-items: center; gap: .6rem; width: auto; }
.country-pick select { width: auto; min-width: 14rem; text-align: left; padding: .5rem .8rem; }
.country-pick .pick-row > .btn { min-width: 0; }
.country-pick .pick-note { flex-basis: 100%; text-align: center; margin: 0; }
.plan-text { min-height: 3.2rem; }

/* Download: the order, and the card for this device */
.dl-step { margin: 0 0 .8rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.dl-card { position: relative; }
.dl-card.dl-recommended { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 32px rgba(0, 0, 0, .18); }
.dl-badge { position: absolute; top: -.8rem; right: 1.2rem; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--accent); color: var(--accent-text); }


/* Features page: a phone-shaped screenshot or video beside each feature, steps under the text */
.feat-jump { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.4rem; }
.feat-jump a { padding: .35rem .9rem; border: 1px solid rgba(128, 128, 128, .35); border-radius: 999px; text-decoration: none; font-size: .95rem; }
.feat-frame { justify-self: center; width: min(100%, 300px); }
.feat-media { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow); background: #000; }
.story.feat.no-media { grid-template-columns: 1fr; max-width: 40rem; margin-left: auto; margin-right: auto; }
.feat-steps { margin: 1rem 0 0; padding-left: 1.3rem; color: var(--muted); }
.feat-steps li { margin: .25rem 0; }
@media (max-width: 760px) { .story.feat { grid-template-columns: 1fr; } .story.feat.flip .feat-frame { order: 0; } }
