/* BT Battery Notifier — site
 *
 * Palette, type scale and the gauge geometry all come from the app itself
 * (ui/Theme.kt and widget/GaugeRenderer.kt), so the page and the product read as
 * one thing. The gauge is the app's own instrument; it is also this page's
 * signature element.
 */

:root {
    --surface: #0b0e12;
    --card: #151a21;
    --card-edge: #212933;
    --deep: #194b74;
    --primary: #2e7fa8;
    --light: #59b2cf;
    --charge: #2ecc71;
    --warn: #f5a623;
    --muted: #8a93a0;
    --paper: #e6edf3;

    --display: "Archivo", system-ui, sans-serif;
    --body: "Inter Tight", system-ui, sans-serif;
    --mono: "Martian Mono", ui-monospace, monospace;

    --gutter: clamp(20px, 5vw, 64px);
    --measure: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--surface);
    color: var(--paper);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    width: 100%;
    max-width: var(--measure);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

a { color: var(--light); }

h1, h2, h3 {
    font-family: var(--display);
    font-variation-settings: "wdth" 112;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0;
}

h1 { font-size: clamp(36px, 5.6vw, 64px); text-wrap: balance; }
h2 { font-size: clamp(28px, 4.4vw, 46px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); letter-spacing: -0.01em; }

p { margin: 0; }

/* The eyebrow is a readout, not decoration: it names the thing being measured. */
.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------------------------------------------------------------- top bar */

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 14, 18, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--card-edge);
}

.top .wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 66px;
}

.mark {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--display);
    font-variation-settings: "wdth" 108;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: var(--paper);
    text-decoration: none;
}

.mark img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.top nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.top nav a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
}

.top nav a:hover { color: var(--paper); }

.lang {
    display: flex;
    border: 1px solid var(--card-edge);
    border-radius: 999px;
    overflow: hidden;
}

.lang button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 6px 11px;
    cursor: pointer;
}

.lang button[aria-pressed="true"] {
    background: var(--primary);
    color: #fff;
}

/* ---------------------------------------------------------------- hero */

.hero {
    padding-block: clamp(56px, 9vw, 104px) clamp(48px, 7vw, 88px);
    background:
        radial-gradient(900px 460px at 78% -8%, rgba(46, 127, 168, 0.30), transparent 68%),
        radial-gradient(620px 380px at 6% 8%, rgba(25, 75, 116, 0.30), transparent 70%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: clamp(32px, 5vw, 68px);
    align-items: center;
}

.hero h1 { margin-block: 16px 20px; }

.hero h1 .off { color: var(--warn); }

.lede {
    font-size: clamp(17px, 1.6vw, 20px);
    color: #b9c6d2;
    max-width: 32em;
}

/* ---------------------------------------------------------------- gauges */

.gauges {
    background: var(--card);
    border: 1px solid var(--card-edge);
    border-radius: 26px;
    padding: 26px 18px 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.gauge { text-align: center; }

.gauge svg { width: 100%; height: auto; display: block; }

.gauge .arc {
    fill: none;
    stroke-width: 9;
    stroke-linecap: round;
}

.gauge .track { stroke: #33373d; }

.gauge .level {
    stroke: var(--charge);
    transition: stroke 600ms ease;
}

.gauge.low .level { stroke: var(--warn); }

.gauge .pct {
    font-family: var(--display);
    font-variation-settings: "wdth" 100;
    font-weight: 700;
    font-size: clamp(20px, 2.6vw, 27px);
    margin-top: 2px;
}

.gauge.low .pct { color: var(--warn); }

.gauge .who {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The alert is the punchline of the hero: the case is what actually dies. */
.alert {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    background: var(--card);
    border: 1px solid var(--card-edge);
    border-left: 3px solid var(--warn);
    border-radius: 16px;
    padding: 13px 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.alert.show { opacity: 1; transform: none; }

.alert strong { font-size: 15px; font-weight: 600; }

.alert span { display: block; font-size: 13px; color: var(--muted); }

.alert .dot {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 10px;
    background: rgba(245, 166, 35, 0.15);
    display: grid;
    place-items: center;
    color: var(--warn);
    font-family: var(--mono);
    font-size: 11px;
}

/* ---------------------------------------------------------------- buttons */

.gets {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.get {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid var(--card-edge);
    background: var(--card);
    color: var(--paper);
    transition: border-color 180ms ease, transform 180ms ease;
}

.get:hover { border-color: var(--light); transform: translateY(-2px); }

.get.primary {
    background: linear-gradient(135deg, var(--deep), var(--primary));
    border-color: transparent;
}

.get small {
    display: block;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.get.primary small { color: rgba(255, 255, 255, 0.72); }

.get b { font-size: 15px; font-weight: 600; }

.get[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
}

/* ---------------------------------------------------------------- sections */

section { padding-block: clamp(56px, 8vw, 104px); }

section + section { border-top: 1px solid var(--card-edge); }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
}

.split.flip .shot { order: -1; }

.head-note { margin-block: 14px 22px; color: #b9c6d2; max-width: 34em; }

/* The widget is wider than it is tall; the phone-shaped max-width would starve it. */
.shot img.wide { max-width: 520px; border-radius: 18px; }

.shot img {
    width: 100%;
    max-width: 330px;
    border-radius: 22px;
    border: 1px solid var(--card-edge);
    display: block;
    margin-inline: auto;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

/* Rows echo the app's own device cards: name left, reading right. */
.rows { display: grid; gap: 10px; margin-top: 8px; }

.row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--card-edge);
    border-radius: 14px;
    padding: 15px 18px;
}

.row b { font-weight: 600; font-size: 15px; }

.row p { color: var(--muted); font-size: 14px; }

.row .val {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--light);
    white-space: nowrap;
}

/* ---------------------------------------------------------------- privacy */

.privacy-claim {
    font-family: var(--display);
    font-variation-settings: "wdth" 112;
    font-weight: 700;
    font-size: clamp(26px, 3.8vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 16em;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.chip {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--muted);
    border: 1px solid var(--card-edge);
    border-radius: 999px;
    padding: 8px 14px;
}

/* ---------------------------------------------------------------- footer */

footer {
    border-top: 1px solid var(--card-edge);
    padding-block: 40px 56px;
    color: var(--muted);
    font-size: 14px;
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }

footer a { color: var(--muted); text-decoration: none; }

footer a:hover { color: var(--paper); }

footer .spacer { margin-left: auto; }

/* ---------------------------------------------------------------- policy pages */

.doc { padding-block: clamp(40px, 6vw, 76px); max-width: 760px; }

.doc h1 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 10px; }

.doc h2 {
    font-size: clamp(19px, 2.2vw, 24px);
    margin-top: 40px;
    margin-bottom: 12px;
}

.doc p, .doc li { color: #c3cedb; }

.doc ul { padding-left: 20px; }

.doc li { margin-bottom: 8px; }

.doc .stamp { color: var(--muted); font-size: 14px; font-family: var(--mono); }

.doc .other { margin-top: 6px; margin-bottom: 26px; font-size: 14px; }

/* Support pages break each answer out under its own heading, which needs a
   third level the privacy pages never asked for. */
.doc h3 {
    font-size: 17px;
    margin-top: 28px;
    margin-bottom: 8px;
    color: var(--paper);
}

.doc code {
    font-family: var(--mono);
    font-size: 0.86em;
    color: var(--light);
}

/* The contact card sits above the FAQ so the email is the first thing found —
   which is the whole point of a support page. */
.contact {
    margin-top: 32px;
    padding: 22px 24px;
    background: var(--card);
    border: 1px solid var(--card-edge);
    border-radius: 14px;
}

.contact-label {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted) !important;
}

.doc .contact-mail {
    font-family: var(--display);
    font-size: clamp(19px, 2.6vw, 26px);
    margin-top: 6px;
    word-break: break-word;
}

.doc .contact-note { font-size: 14px; margin-top: 8px; color: var(--muted) !important; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
    .hero-grid, .split { grid-template-columns: 1fr; }
    .split.flip .shot { order: 0; }
    .top nav a { display: none; }
}

@media (max-width: 460px) {
    .gauges { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
}

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
