/* OmniViz Solar site: the app's own palette (lib/theme/app_theme.dart) */
:root {
  --bg0: #0D1B2A; --bg1: #182233; --bg2: #1E2B3C; --bg3: #243245;
  --navy: #08223C;
  --accent: #10A660; --accent-l: #3DBF7F;
  --text: #D8E8F0; --text2: #8BAABB; --muted: #6B7F92;
  --border: rgba(255,255,255,.08);
  --sun: #FFD700; --batt: #00DD88; --cyan: #00C0FF; --load: #FA822A; --red: #FF6B6B;
  --radius: 16px;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg0); color: var(--text); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-l); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(13,27,42,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { color: var(--sun); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a.on { color: #fff; }
.nav .cta { color: #04130B; background: var(--batt); padding: 8px 16px; border-radius: 999px; font-weight: 700; }
.nav .cta:hover { color: #04130B; filter: brightness(1.08); }
@media (max-width: 760px) { .nav > a:not(.cta) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-main { background: linear-gradient(135deg, var(--batt), var(--accent)); color: #04130B; box-shadow: 0 8px 30px rgba(0,221,136,.25); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: var(--sun); color: var(--sun); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 80px 0 60px;
  background:
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(255,215,0,.18), transparent 70%),
    radial-gradient(ellipse 45% 55% at 10% 90%, rgba(0,192,255,.16), transparent 70%),
    radial-gradient(ellipse 40% 50% at 60% 100%, rgba(0,221,136,.14), transparent 70%),
    var(--bg0); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--batt); box-shadow: 0 0 12px var(--batt); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: -.025em; color: #fff; margin: 16px 0 18px; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--sun), var(--load)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--text2); max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--border); color: var(--text); }
.pill b { color: var(--batt); }
.phone { justify-self: center; width: min(320px, 80vw); border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #2a3a50, #0f1825); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06), 0 0 90px rgba(0,221,136,.18); }
.phone img { border-radius: 26px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 48px; } }

/* Sections */
section.block { padding: 84px 0; }
section.alt { background: linear-gradient(180deg, var(--bg0), #101f30 50%, var(--bg0)); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.15; color: #fff; letter-spacing: -.02em; margin: 10px 0 12px; }
.section-head p { color: var(--text2); margin: 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-l); }

/* Store badges (official artwork). Until the app is public they say "Coming soon" and lead to the tester page;
   at launch, link each badge to its store page and drop the .soon class. */
.stores { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.stores .label { width: 100%; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.stores a { display: block; line-height: 0; transition: transform .15s; }
.stores a:hover { transform: translateY(-2px); }
.stores img.apple { height: 44px; width: auto; }
.stores img.google { height: 64px; width: auto; margin: -10px -8px; }
.stores.soon img { opacity: .9; }
.band .stores { justify-content: center; }

/* Feature cards: each with its app energy colour */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c, var(--accent)) 55%, transparent); }
.card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c, var(--accent)); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { color: #fff; font-size: 1.08rem; margin: 0 0 6px; }
.card p { color: var(--text2); font-size: .95rem; margin: 0; }
.c-sun { --c: var(--sun); } .c-batt { --c: var(--batt); } .c-cyan { --c: var(--cyan); } .c-load { --c: var(--load); } .c-red { --c: var(--red); } .c-acc { --c: var(--accent-l); }

/* Screenshots */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 22px; scroll-snap-type: x mandatory; }
.shots figure { flex: 0 0 220px; margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.shots figcaption { text-align: center; color: var(--text2); font-size: 13px; margin-top: 10px; }

/* Promise strip */
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.promise div { background: var(--bg2); border-radius: 14px; padding: 18px; border-left: 4px solid var(--c, var(--batt)); }
.promise b { display: block; color: #fff; font-size: 1.05rem; }
.promise span { color: var(--text2); font-size: .92rem; }

/* Two columns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.panel h3 { color: #fff; margin: 0 0 12px; font-size: 1.2rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 8px 0 8px 30px; position: relative; border-top: 1px solid var(--border); }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2.5px solid var(--batt); border-bottom: 2.5px solid var(--batt); transform: rotate(-45deg); }
.price { font-size: 2.6rem; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1; }
.price small { font-size: 1rem; color: var(--text2); font-weight: 500; }

/* Call to action band */
.band { border-radius: 24px; padding: 44px 36px; text-align: center;
  background: radial-gradient(ellipse 70% 120% at 0% 0%, rgba(0,221,136,.25), transparent 60%),
              radial-gradient(ellipse 70% 120% at 100% 100%, rgba(255,215,0,.22), transparent 60%), var(--bg2);
  border: 1px solid var(--border); }
.band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0 0 10px; }
.band p { color: var(--text2); margin: 0 auto 24px; max-width: 600px; }

/* Article pages (guide, FAQ) */
.article { max-width: 780px; margin: 0 auto; padding: 56px 20px 80px; }
.article h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
.article h2 { color: #fff; font-size: 1.5rem; margin: 44px 0 12px; letter-spacing: -.01em; }
.article h3 { color: #fff; font-size: 1.12rem; margin: 26px 0 8px; }
.article p, .article li { color: var(--text); }
.note { background: color-mix(in srgb, var(--load) 10%, var(--bg1)); border: 1px solid color-mix(in srgb, var(--load) 40%, transparent); border-radius: 12px; padding: 14px 18px; margin: 20px 0; }
.note.ok { background: color-mix(in srgb, var(--batt) 9%, var(--bg1)); border-color: color-mix(in srgb, var(--batt) 40%, transparent); }
table.vals { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
table.vals th, table.vals td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.vals th { color: var(--text2); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
table.vals td.v { color: var(--batt); font-weight: 700; white-space: nowrap; }
table.vals td.d { color: var(--muted); white-space: nowrap; }
.article details { background: var(--bg1); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; margin: 12px 0; }
.article details[open] { border-color: color-mix(in srgb, var(--accent-l) 45%, transparent); }
.article summary { cursor: pointer; font-weight: 600; color: #fff; padding: 14px 0; list-style: none; }
.article summary::-webkit-details-marker { display: none; }
.article summary::after { content: "+"; float: right; color: var(--accent-l); font-size: 1.3rem; line-height: 1; }
.article details[open] summary::after { content: "–"; }
.article details p { margin: 0 0 16px; color: var(--text2); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer a { color: var(--text2); text-decoration: none; }
footer a:hover { color: #fff; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Language menu (filled in by build.py) */
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.langs summary::-webkit-details-marker { display: none; }
.langs[open] summary, .langs summary:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.langs > div { position: absolute; right: 0; top: calc(100% + 8px); background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 6px; display: grid; min-width: 170px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.langs > div a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--text); font-size: 14px; text-decoration: none; }
.langs > div a:hover { background: var(--bg3); }
.langs > div a.on { color: var(--batt); font-weight: 700; }
[dir="rtl"] .langs > div { right: auto; left: 0; }
@media (max-width: 760px) { .nav .langs { display: block; } }

/* Feature cards on the home page are links to the feature pages */
a.card { display: block; color: inherit; text-decoration: none; }
a.card .more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--c, var(--accent-l)); }
a.card:hover .more { text-decoration: underline; }

/* Feature pages */
.feature { max-width: 1060px; margin: 0 auto; padding: 56px 20px 40px; }
.feature .intro { display: block; max-width: 760px; }
.feature .intro .screens { justify-content: flex-start; margin-top: 32px; }
.feature .intro + .body { margin-top: 8px; }
.feature .intro .ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); margin-bottom: 14px; }
.feature .intro .ico svg { width: 28px; height: 28px; }
.feature h1 { margin-top: 6px; }
.feature h2 { color: #fff; font-size: 1.45rem; margin: 48px 0 12px; letter-spacing: -.01em; }
.feature .body { max-width: 760px; }
.feature .body p, .feature .body li { color: var(--text); }
.feature .body li { margin: 6px 0; }
.feature .body strong { color: #fff; }
.screens { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin: 28px 0 8px; }
.screens figure { margin: 0; width: 250px; }
.screens img { border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.screens figcaption { text-align: center; color: var(--text2); font-size: 13px; margin-top: 10px; }
.feat-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 56px; padding-top: 24px; }
.feat-nav a { color: var(--text2); text-decoration: none; font-weight: 600; }
.feat-nav a:hover { color: #fff; }
.feat-all { margin-top: 20px; text-align: center; }
