/* NineWatt website: the app's own dark palette (lib/ui/theme.dart). No external fonts. */
:root {
  --bg: #000000;
  --bg-soft: #0b0b0e;
  --card: #1c1c1e;
  --card-raised: #2c2c2e;
  --line: #38383a;
  --ink: #ffffff;
  --soft: rgb(235 235 245 / 0.62);
  --faint: rgb(235 235 245 / 0.36);
  --blue: #0a84ff;
  --green: #30d158;
  --mint: #63e6e2;
  --teal: #40cbe0;
  --orange: #ff9f0a;
  --yellow: #ffd60a;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
  --text: 720px;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, summary:focus-visible, .button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: var(--text); }
.soft { color: var(--soft); }
.kicker { font: 600 12px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); margin: 0 0 16px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--soft); max-width: 36em; }

/* ── Top bar ── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgb(0 0 0 / 0.72);
  -webkit-backdrop-filter: saturate(1.8) blur(16px); backdrop-filter: saturate(1.8) blur(16px);
  border-bottom: 1px solid rgb(56 56 58 / 0.6);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--soft); text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--card); }
@media (max-width: 560px) { .nav .wide { display: none; } }

/* ── Buttons ── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px;
  border-radius: 14px; background: var(--ink); color: #000; font-weight: 650; text-decoration: none;
}
.button svg { width: 20px; height: 20px; }
.button small { display: block; font-size: 11px; font-weight: 500; opacity: 0.7; line-height: 1.1; }
.button span { line-height: 1.15; }
.button.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.button:hover { filter: brightness(0.92); }
.fine { font-size: 14px; color: var(--faint); }

/* ── Hero ── */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto 30%; height: 640px; pointer-events: none;
  background: radial-gradient(closest-side, rgb(10 132 255 / 0.30), transparent 70%),
              radial-gradient(closest-side at 70% 60%, rgb(99 230 226 / 0.18), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 44px; } }

/* ── The phone (an illustration made of HTML) ── */
.phone {
  justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 18.5; padding: 12px;
  border-radius: 46px; background: linear-gradient(160deg, #3a3a3c, #121214);
  box-shadow: 0 0 0 1px #48484a inset, 0 40px 90px rgb(10 132 255 / 0.18), 0 20px 50px rgb(0 0 0 / 0.6);
}
.screen {
  height: 100%; border-radius: 36px; background: #000; padding: 34px 14px 14px;
  display: flex; flex-direction: column; gap: 10px; overflow: hidden; position: relative;
}
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: #111; border-radius: 20px; }
.screen-title { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--soft); }
.screen-title b { color: var(--ink); font-size: 17px; }
.live { color: var(--green); font: 600 11px var(--mono); letter-spacing: 0.08em; }
.gauge { position: relative; background: var(--card); border-radius: 16px; padding: 12px; display: flex; align-items: center; gap: 12px; }
.gauge svg { width: 92px; height: 92px; flex: none; transform: rotate(-90deg); }
.gauge .track { stroke: var(--card-raised); }
.gauge .fill { stroke: url(#socGradient); stroke-linecap: round; }
.gauge-value { position: absolute; left: 12px; width: 92px; top: 50%; transform: translateY(-50%); text-align: center; }
.gauge-value b { display: block; font: 700 24px/1 var(--sans); }
.gauge-value span { font-size: 10px; color: var(--soft); letter-spacing: 0.08em; }
.gauge-side { font-size: 12px; color: var(--soft); line-height: 1.5; }
.gauge-side b { color: var(--ink); font: 600 15px var(--mono); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--card); border-radius: 14px; padding: 9px 11px; }
.tile span { display: block; font-size: 10.5px; color: var(--soft); }
.tile b { font: 600 16px/1.3 var(--mono); }
.tile .up { color: var(--green); }
.cells { background: var(--card); border-radius: 14px; padding: 10px; display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.cells i { aspect-ratio: 1; border-radius: 2px; background: #1f6f5c; }
.cells i.a { background: #2a9d7c; }
.cells i.b { background: #3fc39a; }
.cells i.c { background: #63e6e2; }
.cells i.d { background: #ffd60a; }
.caption { font-size: 12px; color: var(--faint); text-align: center; margin-top: 12px; }

/* ── Sections ── */
section { padding: 72px 0; }
.band { background: var(--bg-soft); border-top: 1px solid #1c1c1e; border-bottom: 1px solid #1c1c1e; }
.head { max-width: 40em; margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid #2a2a2c; border-radius: var(--radius); padding: 22px; }
.card p { color: var(--soft); margin: 0; font-size: 15.5px; }
.icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-blue { background: rgb(10 132 255 / 0.16); color: var(--blue); }
.i-green { background: rgb(48 209 88 / 0.16); color: var(--green); }
.i-mint { background: rgb(99 230 226 / 0.14); color: var(--mint); }
.i-orange { background: rgb(255 159 10 / 0.16); color: var(--orange); }
.tag { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 3px; }
.tag.pro { background: rgb(10 132 255 / 0.18); color: var(--blue); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid #2a2a2c; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--soft); margin: 0; font-size: 15.5px; }
.note { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: rgb(48 209 88 / 0.08); border: 1px solid rgb(48 209 88 / 0.25); color: var(--soft); font-size: 15.5px; }
.note b { color: var(--ink); }

/* ── Pro ── */
.pro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .pro { grid-template-columns: 1fr; } }
.price-card {
  border-radius: 24px; padding: 28px; border: 1px solid rgb(10 132 255 / 0.4);
  background: linear-gradient(160deg, rgb(10 132 255 / 0.16), rgb(99 230 226 / 0.05) 60%), var(--card);
}
.price { font: 800 3rem/1 var(--sans); letter-spacing: -0.03em; margin: 8px 0 4px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--soft); letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--soft); }
.checks li b { color: var(--ink); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgb(48 209 88 / 0.2); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ── Questions ── */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 14px; border: 1px solid #2a2a2c; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--soft); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; color: var(--soft); }
.faq details > div p:last-child { margin: 0; }

/* ── Text pages (privacy, terms, support) ── */
.doc { padding: 56px 0 72px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2.2em; }
.doc h3 { margin-top: 1.6em; }
.doc p, .doc li { color: var(--soft); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }
.doc .updated { font: 500 13px var(--mono); color: var(--faint); }
.doc .summary { background: var(--card); border: 1px solid #2a2a2c; border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.doc .summary p:last-child, .doc .summary ul:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--soft); }
.doc th { color: var(--ink); font-weight: 600; }
.caps { text-transform: uppercase; font-size: 14px; letter-spacing: 0.01em; }

/* ── Footer ── */
.foot { border-top: 1px solid #1c1c1e; padding: 36px 0 48px; color: var(--faint); font-size: 14px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot p { margin: 14px 0 0; max-width: 60em; }

/* Store badges before launch: shown, but not links. */
.button.soon { cursor: default; opacity: 0.6; }

/* Plain-language summary box at the top of a legal page. */
.callout { border: 1px solid var(--line, rgba(255,255,255,0.15)); border-left: 4px solid var(--blue); border-radius: 12px; padding: 4px 18px; margin: 20px 0 28px; }
