/* wattlensi landing page. Colours from assets/brand of the app. */
@font-face { font-family: Sora; font-weight: 400; font-display: swap; src: url(fonts/sora-400.woff2) format('woff2'); }
@font-face { font-family: Sora; font-weight: 600; font-display: swap; src: url(fonts/sora-600.woff2) format('woff2'); }
@font-face { font-family: Sora; font-weight: 700; font-display: swap; src: url(fonts/sora-700.woff2) format('woff2'); }
/* Common system fonts, scaled to the width of Sora: the page does not jump when Sora arrives. */
@font-face { font-family: 'Sora Fallback'; font-weight: 400; size-adjust: 113.5%; src: local('Arial'), local('Helvetica'), local('Liberation Sans'), local('Roboto'); }
@font-face { font-family: 'Sora Fallback'; font-weight: 600 700; size-adjust: 108%; src: local('Arial Bold'), local('Helvetica Bold'), local('Liberation Sans Bold'), local('Roboto Bold'); }

:root, .th-l {
  --bg: #f6f4f0; --card: #fff; --ink: #1e2126; --muted: #5a6068; --line: #e2dcd2; --soft: #efebe4; --chip: #cfc7ba;
  --on-ink: #fff; --accent: #e06a1b; --accent-text: #b4500f; --on-accent: #1e2126; --base: #2f6690; --good: #2e7d4f;
  --hot: #b3261e; --stamp: #c8211a; --ht-text: #8a5d00; --stage: #efebe4; --inner: #f6f4f0; --pre: #1e2126;
  --heat0: #e7e1d7; --heat1: #2f6690; --heat2: #a9c4da; --heat3: #ddd6cb; --heat4: #f2b88f; --heat5: #e06a1b;
  color: var(--ink);
}
[data-theme='dark'], .th-d {
  --bg: #191c20; --card: #24282e; --ink: #f3f1ec; --muted: #aeb3ba; --line: #3a4048; --soft: #2e333a; --chip: #4a5059;
  --on-ink: #191c20; --accent: #f2873a; --accent-text: #f2873a; --on-accent: #191c20; --base: #8dbbdd; --good: #6cc68f;
  --hot: #f28b82; --stamp: #ff5a4f; --ht-text: #e8b955; --stage: #24282e; --inner: #2e333a; --pre: #0f1114;
  --heat0: #2e333a; --heat1: #8dbbdd; --heat2: #35546e; --heat3: #3f454d; --heat4: #8c4a1f; --heat5: #f2873a;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Sora, 'Sora Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
a { color: inherit; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1360px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.muted { color: var(--muted); }
.mark { display: block; flex: none; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; }
.top-right { display: flex; align-items: center; gap: 14px; }
.lang { min-width: 32px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; text-decoration: none; }
.icon-btn { width: 44px; height: 44px; border: 0; padding: 0; background: none; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn { min-height: 52px; display: inline-flex; align-items: center; padding: 0 24px; border-radius: 10px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn.line { border: 1px solid var(--chip); color: var(--ink); }
.btn.line:hover { border-color: var(--ink); color: var(--ink); }
.btn.solid { background: var(--ink); color: var(--on-ink); }
.btn.solid:hover { color: var(--on-ink); opacity: .86; }
.btn.stamped { position: relative; cursor: default; }
.btn.stamped:hover { opacity: 1; }
.stamp { position: absolute; top: -10px; right: -6px; transform: rotate(6deg); padding: 2px 6px; border: 2px solid var(--stamp); border-radius: 5px; background: var(--bg); color: var(--stamp); font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }

h1, .rotor p { font-size: clamp(32px, min(10vw, 5.6vw + 20px), 84px); line-height: 1.04; font-weight: 600; letter-spacing: -.04em; margin-bottom: 32px; }
/* The titles lie on top of each other, so the longest sets the height. */
.rotor { display: grid; }
.rotor > * { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; text-wrap: balance; }
.rotor > .on { opacity: 1; transform: none; }
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(32px, 4vw, 48px); }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-row p { flex: 1 1 420px; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); }

.stage { position: relative; height: 700px; overflow: hidden; background: var(--stage); }
.browser { position: absolute; top: 56px; left: max(16px, calc(50% - 680px)); }
.phone-box { position: absolute; top: 72px; right: calc(50% - 600px); width: 285px; height: 605px; }

h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.12; font-weight: 600; letter-spacing: -.03em; }
.lead { font-size: 18px; color: var(--muted); }
.section { padding-block: clamp(48px, 7vw, 96px); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px; }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; margin-top: 28px; }
.benefits h3, .points h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.benefits p, .points p { font-size: 15px; color: var(--muted); }

.features { background: var(--card); }
.features h2 { margin-bottom: 16px; }
.features .lead { max-width: 40em; margin-bottom: 56px; }
.slides { margin-bottom: 64px; }
.slides-box { display: grid; border-radius: 20px; overflow: hidden; background: var(--bg); }
.slide { grid-area: 1 / 1; min-width: 0; padding: clamp(20px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px clamp(24px, 4vw, 56px); opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.slide.on { opacity: 1; visibility: visible; }
.slide-text { flex: 1 1 260px; min-width: 0; }
.slide-text .kicker { font-size: 14px; font-weight: 600; color: var(--accent-text); margin-bottom: 10px; }
.slide-text h3 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.slide-text p:not(.kicker) { font-size: 15px; color: var(--muted); }
.slide-text ul { list-style: none; margin-top: 14px; }
.slide-text li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.panel { flex: 2 1 min(440px, 100%); min-width: 0; min-height: 500px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.dots { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.dots button { width: 38px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dots span { display: block; width: 10px; height: 10px; border-radius: 5px; background: var(--chip); transition: width .3s ease, background .3s ease; }
.dots button[aria-current='true'] span { width: 24px; background: var(--accent); }

/* App views */
.app { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; color: var(--ink); }
.app p { margin: 0; }
.app svg { display: block; }
.app svg.fluid { width: 100%; height: auto; overflow: visible; }
.c { background: var(--card); border-radius: 16px; padding: 14px 16px; }
.c.big { padding: 18px; }
.c.big > svg.fluid { margin-top: 10px; }
.datebar { background: var(--card); border-radius: 12px; height: 42px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex: none; }
.l { display: block; font-size: 12px; color: var(--muted); }
.v { display: block; font-size: 22px; font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 4px; background: var(--good); }
.power { display: flex; align-items: baseline; gap: 6px; }
.power b { font-size: clamp(52px, 6vw, 76px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.power em { font-size: 24px; font-weight: 600; font-style: normal; }
.sub { font-size: 14px; color: var(--muted); }
.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; font-size: 13px; color: var(--muted); }
.seg span { padding: 7px 10px; border-radius: 8px; flex: 1; text-align: center; }
.seg .on { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.chips span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--chip); }
.chips .on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chips .vs { border: 0; padding: 0; font-weight: 400; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.track { display: block; height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; margin: 4px 0; }
.track i { display: block; height: 8px; background: var(--accent); }
.t { font-size: 12px; fill: var(--muted); }
.t.e { text-anchor: end; }
.t.m { text-anchor: middle; }
.s-line { stroke: var(--line); }
.s-chip { stroke: var(--chip); }
.s-base { stroke: var(--base); stroke-width: 1.25; stroke-dasharray: 4 4; }
.f-accent { fill: var(--accent); }
.f-chip { fill: var(--chip); }
.area { fill: var(--accent); fill-opacity: .18; }
.curve { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.dash { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.dot { fill: var(--accent); stroke: var(--ink); stroke-width: 1.5; }
.ghost { fill: none; stroke: var(--accent); stroke-width: 1.25; stroke-dasharray: 4 3; }

/* Phone: drawn at 460 × 976 and scaled, always in the other theme than the page */
.phone { position: absolute; left: 0; top: 0; width: 460px; height: 976px; transform: scale(.62); transform-origin: 0 0; }
.phone-shell { position: absolute; inset: 0; border-radius: 78px; background: #0b0c0e; box-shadow: inset 0 0 0 2px #4a4f57, 0 36px 80px rgba(0, 0, 0, .3); }
.phone-key { position: absolute; width: 3px; background: #3b3f46; }
.phone-screen { position: absolute; left: 10px; top: 10px; width: 440px; height: 956px; border-radius: 68px; overflow: hidden; background: var(--bg); }
.phone-view { position: absolute; inset: 0 0 auto 0; height: 862px; padding: 59px 16px 0; overflow: hidden; opacity: 0; transition: opacity .35s ease; }
.phone-view.on { opacity: 1; }
/* A view longer than the screen scrolls down once while shown. */
.phone-scroll { padding-bottom: 16px; }
.phone-view.on .phone-scroll { transition: transform 4s ease-in-out 1.5s; }
.phone-head { padding: 18px 4px 12px; }
.phone-head small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.phone-head b { display: block; font-size: 28px; letter-spacing: -.02em; }
.stack > * + * { margin-top: 12px; }
.phase { display: grid; grid-template-columns: 28px minmax(0, 1fr) 64px; align-items: center; gap: 10px; font-size: 13px; margin-top: 10px; }
.phase b { font-weight: 600; }
.phase span { display: block; height: 10px; border-radius: 5px; background: var(--soft); overflow: hidden; }
.phase span i { display: block; height: 10px; border-radius: 5px; background: var(--chip); transition: width .3s ease; }
.phase span i.hot { background: var(--hot); }
.phase em { font-style: normal; text-align: right; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 94px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 4px 34px; background: var(--card); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 500; color: var(--muted); }
.tab.on { color: var(--ink); font-weight: 700; }
.tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.island { position: absolute; left: 157px; top: 11px; width: 126px; height: 37px; border-radius: 19px; background: #000; }
.homebar { position: absolute; left: 153px; bottom: 9px; width: 134px; height: 5px; border-radius: 3px; background: var(--ink); }

/* Browser */
.win { width: 1180px; height: 780px; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: var(--bg); box-shadow: 0 0 0 1px var(--chip), 0 30px 70px rgba(30, 33, 38, .22); }
.win-bar { height: 44px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.win-bar i { width: 12px; height: 12px; border-radius: 6px; background: var(--chip); }
.win-bar span { margin-left: 14px; flex: 0 1 420px; height: 26px; border-radius: 8px; background: var(--card); display: flex; align-items: center; padding: 0 12px; font-size: 12px; color: var(--muted); }
.win-body { flex: 1; min-height: 0; display: flex; }
.side { width: 220px; flex: none; padding: 22px 14px; border-right: 1px solid var(--line); }
.side-brand { display: flex; align-items: center; gap: 8px; padding: 0 6px 22px; font-family: Sora, system-ui, sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); }
.side-item.on { background: var(--soft); color: var(--ink); font-weight: 600; }
.side-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.win-main { flex: 1; min-width: 0; padding: 26px 32px; display: flex; flex-direction: column; gap: 12px; }
.win-main > b { font-size: 32px; letter-spacing: -.02em; margin-bottom: 6px; }
.win-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* Report and notifications */
.heat svg { display: block; width: 100%; height: auto; overflow: visible; cursor: pointer; }
.heat text { font-size: 9px; fill: var(--muted); }
.phone .heat svg { cursor: default; }
.heat .sel { stroke: var(--ink); stroke-width: 1.5; }
.bill div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.bill div:first-child { border-top: 0; }
.bill small { display: block; font-size: 12px; color: var(--muted); }
.bill .sum { font-size: 17px; font-weight: 700; }
.pdf { flex: none; padding: 7px 12px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; }
.send { flex: none; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--chip); font-size: 13px; font-weight: 600; }
.bill .acts { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; }
.msg { padding: 14px 16px; border-radius: 14px; background: var(--card); }
.msg div { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.msg b { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; }
.msg p { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.msg u { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--accent-text); }
.hatch-bg { fill: var(--accent); opacity: .35; }
.hatch-line { stroke: var(--accent); stroke-width: 3; }
.heat-legend { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.heat-legend i { width: 14px; height: 10px; border-radius: 2px; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.month-grid small { text-align: center; font-size: 11px; color: var(--muted); }
.day-cell { height: 42px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; line-height: 1.2; }
.day-cell small { font-size: 10px; color: inherit; }

.list-title { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; margin-bottom: 28px; }
.list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 32px; }
.list b { font-weight: 600; }
.list h4 { font-size: 15px; font-weight: 600; color: var(--accent-text); margin-bottom: 10px; }
.list ul { list-style: none; }
.list li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 40px; }
.steps > div { background: var(--card); border-radius: 16px; padding: 24px; }
.steps b { display: block; font-size: 15px; color: var(--accent-text); margin-bottom: 8px; }
.steps h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--muted); }
.steps p a, details p a { color: var(--accent-text); }
pre { margin: 16px 0 12px; padding: 18px 20px; border-radius: 12px; background: var(--pre); border: 1px solid var(--line); white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; color: #f3f1ec; }
pre span { color: #f2873a; }
.note { font-size: 14px; color: var(--muted); }

.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; color: var(--accent-text); font-size: 24px; line-height: 1; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 8px; font-size: 15px; color: var(--muted); }

footer .wrap { padding-block: 32px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 13px; color: var(--muted); }
footer .wrap > div { flex: 1 1 420px; }
.foot-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
footer nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 20px; font-size: 14px; color: var(--ink); }
footer nav a { text-decoration: none; }

.legal { max-width: 44em; padding-block: clamp(32px, 6vw, 72px); }
.legal h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 8px; }
.legal h2 { font-size: 20px; font-weight: 600; margin: 32px 0 8px; }
.legal p { font-size: 16px; color: var(--muted); }
.legal a { color: var(--accent-text); }

@media (max-width: 1280px) { .phone-box { right: 24px; } }
@media (max-width: 860px) {
  header.top { flex-wrap: wrap; gap: 8px 24px; }
  .nav { order: 3; width: 100%; gap: clamp(12px, 4vw, 28px); }
  .nav a { padding-block: 8px; }
  .stage { height: 690px; }
  .browser { left: 16px; }
  .phone-box { right: auto; left: calc(50% - 142px); top: 48px; }
}
/* Four title lines reserved on phones: the wrap can change when Sora arrives. */
@media (max-width: 520px) { .rotor { min-height: calc(4.16 * clamp(32px, min(10vw, 5.6vw + 20px), 84px) + 32px); } }
@media (max-width: 460px) { .brand span { display: none; } .top-right { gap: 6px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
