/* Pahibalo - shared styles */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Layout: a sticky header, then rounded navy panels (hero, how it works, sign-up) alternating
   with light sections (alerts timeline, coverage, questions chat). Every section pairs its copy
   with white sample cards, slightly tilted, that straighten on hover.
   Color: neutral white and soft gray in light mode, deep navy in dark mode; navy panels;
   yellow for one highlighted word and the main buttons on navy; sky blue only for water. */
:root {
  /* Logo colors and sample cards (same in both themes) */
  --navy: #15224a;
  --navy-deep: #0e1838;
  --sky: #2e9bf0;
  --sun: #ffc21a;
  --sun-hover: #ffcf47;
  --card: #ffffff;
  --card-text: #15224a;
  --card-muted: #5f6880;
  --card-line: #e8ebf1;
  --card-chip: #f1f3f7;

  /* Theme: light */
  --bg: #ffffff;
  --soft: #f5f6f8;
  --surface: #ffffff;
  --chip: #eef0f4;
  --text: #15224a;
  --muted: #5b6275;
  --line: #e3e6ec;
  --link: #1a5fa8;
  --link-hover: #15224a;
  --primary: #15224a;
  --primary-hover: #24356b;
  --on-primary: #ffffff;
  --focus: #1a5fa8;
  --header-bg: rgba(255, 255, 255, 0.86);
  --panel: #eef6fe;
  --panel-text: #15224a;
  --panel-muted: #4a5878;
  --panel-strong: #15224a;
  --panel-line: rgba(46, 155, 240, 0.25);
  --glow: rgba(46, 155, 240, 0.12);
  --panel-dot: rgba(255, 194, 26, 0.25);
  --icon-bg: #15224a;
  --icon-fg: #ffc21a;
  --hl-color: #1d86da;
  --hl-bg: none;
  --top-toggle-bg: #ffffff;
  --top-toggle-line: rgba(21, 34, 74, 0.14);
  --panel-btn-bg: #15224a;
  --panel-btn-fg: #ffffff;
  --panel-btn-hover: #24356b;
  --footer: #ffffff;
  --footer-text: #5b6275;
  --footer-strong: #15224a;
  --footer-line: #e3e6ec;
  --shadow: 0 24px 50px -28px rgba(21, 34, 74, 0.35);
  --shadow-card: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  --shadow-btn: 0 12px 22px -12px rgba(21, 34, 74, 0.6);
  --power-glow: #ffe9a6;
  --power-icon-bg: #15224a;
  --power-icon-fg: #ffc21a;
  --water-glow: #d3e8fb;
  --sent-bg: #e3f1fd;
  --sent-fg: #0f5a99;
  --off-bg: #fde4e4;
  --off-fg: #a12727;

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a3a;
    --soft: #13214a;
    --surface: #1a2a5a;
    --chip: #22356d;
    --text: #f2f5fc;
    --muted: #b3bedb;
    --line: #2a3c74;
    --link: #8ccbff;
    --link-hover: #ffffff;
    --primary: #ffc21a;
    --primary-hover: #ffcf47;
    --on-primary: #15224a;
    --focus: #ffc21a;
    --header-bg: rgba(15, 26, 58, 0.86);
    --panel: #1d3170;
    --panel-text: #ffffff;
    --panel-muted: #c8d2ec;
    --panel-strong: #ffffff;
    --panel-line: rgba(255, 255, 255, 0.14);
    --glow: rgba(46, 155, 240, 0.3);
    --panel-dot: rgba(255, 255, 255, 0.06);
    --icon-bg: rgba(255, 255, 255, 0.08);
    --icon-fg: #ffc21a;
    --hl-color: #ffc21a;
    --hl-bg: none;
    --top-toggle-bg: rgba(255, 255, 255, 0.08);
    --top-toggle-line: rgba(255, 255, 255, 0.24);
    --panel-btn-bg: #ffc21a;
    --panel-btn-fg: #15224a;
    --panel-btn-hover: #ffcf47;
    --footer: #0a1330;
    --footer-text: #c3cde9;
    --footer-strong: #ffffff;
    --footer-line: rgba(255, 255, 255, 0.14);
    --shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7);
    --shadow-btn: 0 12px 22px -12px rgba(0, 0, 0, 0.7);
    --power-glow: rgba(255, 255, 255, 0.06);
    --power-icon-bg: #ffc21a;
    --power-icon-fg: #15224a;
    --water-glow: rgba(46, 155, 240, 0.28);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1a3a;
  --soft: #13214a;
  --surface: #1a2a5a;
  --chip: #22356d;
  --text: #f2f5fc;
  --muted: #b3bedb;
  --line: #2a3c74;
  --link: #8ccbff;
  --link-hover: #ffffff;
  --primary: #ffc21a;
  --primary-hover: #ffcf47;
  --on-primary: #15224a;
  --focus: #ffc21a;
  --header-bg: rgba(15, 26, 58, 0.86);
  --panel: #1d3170;
  --panel-text: #ffffff;
  --panel-muted: #c8d2ec;
  --panel-strong: #ffffff;
  --panel-line: rgba(255, 255, 255, 0.14);
  --glow: rgba(46, 155, 240, 0.3);
  --panel-dot: rgba(255, 255, 255, 0.06);
  --icon-bg: rgba(255, 255, 255, 0.08);
  --icon-fg: #ffc21a;
  --hl-color: #ffc21a;
  --hl-bg: none;
  --top-toggle-bg: rgba(255, 255, 255, 0.08);
  --top-toggle-line: rgba(255, 255, 255, 0.24);
  --panel-btn-bg: #ffc21a;
  --panel-btn-fg: #15224a;
  --panel-btn-hover: #ffcf47;
  --footer: #0a1330;
  --footer-text: #c3cde9;
  --footer-strong: #ffffff;
  --footer-line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7);
  --shadow-btn: 0 12px 22px -12px rgba(0, 0, 0, 0.7);
  --power-glow: rgba(255, 255, 255, 0.06);
  --power-icon-bg: #ffc21a;
  --power-icon-fg: #15224a;
  --water-glow: rgba(46, 155, 240, 0.28);
  color-scheme: dark;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  text-wrap: balance;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 24px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  background: var(--sun);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus {
  top: 16px;
}

/* Links: one hover style everywhere (color shift plus an underline that grows in) */
a {
  color: var(--link);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: color 0.2s ease, background-size 0.25s var(--ease);
}
a:hover {
  color: var(--link-hover);
  background-size: 100% 2px;
}
p a,
.legal-body li a {
  background-size: 100% 1px;
}
p a:hover,
.legal-body li a:hover {
  background-size: 100% 2px;
}
a.btn,
a.brand,
a.skip,
.footer-brand a {
  background-image: none;
}

/* Theme-dependent visibility (logos and toggle icons) */
.logo-dark,
.i-sun {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light,
  :root:not([data-theme="light"]) .i-moon {
    display: none !important;
  }
  :root:not([data-theme="light"]) .logo-dark,
  :root:not([data-theme="light"]) .i-sun {
    display: block !important;
  }
}
:root[data-theme="dark"] .logo-light,
:root[data-theme="dark"] .i-moon {
  display: none !important;
}
:root[data-theme="dark"] .logo-dark,
:root[data-theme="dark"] .i-sun {
  display: block !important;
}

/* Buttons: one hover style everywhere (lift, shadow, deeper color) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
  box-shadow: var(--shadow-btn);
}
.btn-sun {
  background: var(--sun);
  color: var(--navy);
}
.btn-sun:hover {
  background: var(--sun-hover);
  color: var(--navy);
  box-shadow: 0 12px 22px -12px rgba(0, 0, 0, 0.6);
}
.btn-sm {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 15px;
  border-radius: 10px;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}
.arrow-link::after {
  content: "\2192";
  transition: transform 0.2s var(--ease);
}
.arrow-link:hover::after {
  transform: translateX(4px);
}

/* Sticky header */
.site-header {
  --progress: 0;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand img {
  height: 36px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav > a:not(.btn) {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.site-nav > a:not(.btn):hover {
  color: var(--link);
}
.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
}
.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--text);
  box-shadow: var(--shadow-btn);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.site-header {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-top {
  background: var(--panel);
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header.is-top .site-nav > a:not(.btn) {
  color: var(--panel-strong);
}
.site-header.is-top .site-nav > a:not(.btn):hover {
  color: var(--link);
}
.site-header.is-top .theme-toggle {
  background: var(--top-toggle-bg);
  border-color: var(--top-toggle-line);
  color: var(--panel-strong);
}
.site-header.is-top .btn-primary,
.panel .btn-sun {
  background: var(--panel-btn-bg);
  color: var(--panel-btn-fg);
}
.site-header.is-top .btn-primary:hover,
.panel .btn-sun:hover {
  background: var(--panel-btn-hover);
  color: var(--panel-btn-fg);
}

/* Feature panel (hero, how it works, sign-up): soft gray in light mode, navy in dark mode */
.panel {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  color: var(--panel-text);
  border-radius: 32px;
}
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.panel::before {
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -250px;
  background: var(--glow);
}
.panel::after {
  width: 200px;
  height: 200px;
  right: 4%;
  top: 40px;
  background: var(--panel-dot);
}
.ask-card::after {
  display: none;
}
.panel > * {
  position: relative;
  z-index: 1;
}
.panel-full {
  border-radius: 0;
}
.hl {
  color: var(--hl-color);
  background: var(--hl-bg);
}
.panel .section-sub,
.panel p {
  color: var(--panel-muted);
}
.panel .arrow-link,
.panel a:not(.btn) {
  color: var(--panel-strong);
}

/* White sample cards: tilted, straighten on hover */
.tilt {
  transform: rotate(var(--tilt, 1.5deg));
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.tilt:hover,
.tilt-host:hover .tilt {
  transform: rotate(0deg) translateY(-4px);
}
.mock {
  background: var(--card);
  color: var(--card-text);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  font-size: 14px;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--card-chip);
  font-size: 12px;
  font-weight: 700;
  color: var(--card-muted);
}
.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d3d8e2;
}
.mock-bar span {
  margin-left: auto;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  align-self: center;
  width: 100%;
  padding-block: 32px 40px;
}
.hero-facts {
  list-style: none;
  margin: 0;
  padding: 24px 0 32px;
  border-top: 1px solid var(--panel-line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.hero-facts li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--panel-muted);
}
.hero-facts b {
  display: block;
  font-size: 15px;
  color: var(--panel-strong);
  margin-bottom: 2px;
}
.fact-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--icon-bg);
  color: var(--icon-fg);
}
.fact-icon svg {
  width: 20px;
  height: 20px;
}
.hero-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}
.launch-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--panel-line);
  font-size: 14px;
  font-weight: 500;
}
.launch-line::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sun);
  animation: beacon 2.4s ease-out infinite;
}
.launch-line b {
  color: var(--panel-strong);
}
.hero h1 {
  font-size: clamp(40px, min(5.4vw, 7.4vh), 74px);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.hero .lead {
  font-size: 19px;
  max-width: 31em;
}
.hero .lead strong {
  color: var(--panel-strong);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 4px;
}
.hero-note {
  font-size: 14px;
}

/* Sample schedule */
.board-stage {
  position: relative;
  padding-top: 64px;
}
.board {
  --tilt: 1.5deg;
}
.board ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.board li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-line);
}
.board li:last-child {
  border-bottom: 0;
}
.date {
  display: grid;
  justify-items: center;
  line-height: 1.1;
  padding: 7px 0;
  border-radius: 10px;
  background: var(--card-chip);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--card-muted);
}
.date b {
  font-size: 21px;
  letter-spacing: 0;
  color: var(--card-text);
}
.what {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}
.type i {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: none;
}
.type i svg {
  width: 12px;
  height: 12px;
}
.type-power i {
  background: var(--sun);
}
.type-water i {
  background: var(--sky);
}
.what .place {
  font-size: 15px;
  font-weight: 700;
}
.what .time {
  font-size: 13px;
  color: var(--card-muted);
  font-variant-numeric: tabular-nums;
}
.state {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 6px;
}
.state-sent {
  background: var(--sent-bg);
  color: var(--sent-fg);
}
.state-set {
  background: var(--card-chip);
  color: var(--card-muted);
}
.state-off {
  background: var(--off-bg);
  color: var(--off-fg);
}
li.is-cancelled .place,
li.is-cancelled .time {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: var(--card-muted);
}
.mock-foot {
  padding: 11px 18px;
  font-size: 12px;
  color: var(--card-muted);
  background: var(--card-chip);
}
.ping {
  --tilt: -2deg;
  position: absolute;
  top: 0;
  left: -24px;
  right: 20%;
  z-index: 2;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--card);
  color: var(--card-text);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  line-height: 1.4;
}
.ping img,
.note img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}
.ping b,
.note b {
  display: block;
  font-size: 14px;
}
.ping small {
  float: right;
  color: var(--card-muted);
  font-size: 12px;
}

/* Sections */
.section {
  padding-block: 96px;
}
.section-soft {
  background: var(--soft);
}
.section-line {
  border-top: 1px solid var(--line);
}
.section-title {
  font-size: clamp(30px, 3.8vw, 46px);
  letter-spacing: -0.025em;
  max-width: 18em;
}
.section-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  max-width: 36em;
}
.sample-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--muted);
  border-radius: 6px;
  padding: 1px 8px;
}

/* One brownout, three alerts: summary card on the left, vertical timeline on the right */
.alerts {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
.alerts-intro {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 24px;
  justify-items: start;
}
.event {
  --tilt: -1.5deg;
  width: 100%;
  max-width: 380px;
}
.event-body {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
}
.event-body .date {
  padding: 9px 0;
}
.event-body .date b {
  font-size: 24px;
}
.event-body .place {
  display: block;
  font-size: 17px;
  font-weight: 700;
}
.event-body .time {
  display: block;
  color: var(--card-muted);
}
.steps-v {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.steps-v::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--line);
  transform-origin: center top;
}
.steps-v li {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 0 0 48px 64px;
}
.steps-v li:last-child {
  padding-bottom: 0;
}
.steps-v .dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sun);
  border: 7px solid var(--bg);
  box-shadow: 0 0 0 2px var(--sun);
}
.steps-v li.change .dot {
  background: var(--sky);
  box-shadow: 0 0 0 2px var(--sky);
}
.steps-v .when {
  font-size: 14px;
  font-weight: 700;
  color: var(--link);
  line-height: 32px;
}
.steps-v h3 {
  font-size: 22px;
}
.steps-v p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 36em;
}
.note {
  --tilt: 1deg;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  max-width: 440px;
  border-radius: 16px;
  background: var(--card);
  color: var(--card-text);
  box-shadow: var(--shadow);
  border: 1px solid var(--card-line);
  font-size: 14px;
  line-height: 1.45;
}
.steps-v li:nth-child(2) .note {
  --tilt: -1deg;
}
.note small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--card-muted);
}

/* How it works (navy panel with three sample cards) */
.how {
  padding-block: 104px;
}
.how-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px 48px;
}
.how-head .section-title {
  max-width: 14em;
}
.how-head .section-sub {
  margin-top: 0;
  max-width: 24em;
}
.how-grid {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  counter-reset: step;
}
.how-grid > li {
  counter-increment: step;
  display: grid;
  gap: 14px;
  align-content: start;
}
.how-grid .mock {
  margin-bottom: 14px;
  min-height: 176px;
}
.how-grid > li:nth-child(1) .mock {
  --tilt: -2deg;
}
.how-grid > li:nth-child(2) .mock {
  --tilt: 1.5deg;
}
.how-grid > li:nth-child(3) .mock {
  --tilt: -1deg;
}
.how-grid h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
}
.how-grid h3::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--sun);
  color: var(--navy);
  font-size: 16px;
  display: grid;
  place-items: center;
  flex: none;
}
.mini {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.mini-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--card-line);
  color: var(--card-muted);
}
.mini-search svg {
  width: 16px;
  height: 16px;
}
.mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mini-chips span {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card-chip);
}
.mini-chips span.on {
  background: var(--navy);
  color: #ffffff;
}
.mini-doc {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--card-muted);
}
.mini-doc b {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--card-text);
}
.mini-doc .line {
  height: 8px;
  border-radius: 4px;
  background: var(--card-chip);
}
.mini-doc .match {
  justify-self: start;
  padding: 3px 9px;
  border-radius: 6px;
  background: #fff3c4;
  color: #7a5900;
  font-weight: 700;
}
.mini .note {
  box-shadow: none;
  transform: none;
  padding: 10px 12px;
  grid-template-columns: 32px minmax(0, 1fr);
  font-size: 13px;
}
.mini .note img {
  width: 32px;
  height: 32px;
}

/* Power and water */
.cover-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.cover-item {
  position: relative;
  overflow: hidden;
  padding: 40px 40px 0;
  border-radius: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
  align-content: start;
}
.cover-item::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -110px;
  bottom: -150px;
  border-radius: 50%;
}
.cover-item.power::before {
  background: var(--power-glow);
}
.cover-item.water::before {
  background: var(--water-glow);
}
.cover-item > * {
  position: relative;
}
.cover-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.cover-icon svg {
  width: 28px;
  height: 28px;
}
.power .cover-icon {
  background: var(--power-icon-bg);
}
.power .cover-icon path {
  fill: var(--power-icon-fg);
  stroke: var(--power-icon-fg);
}
.water .cover-icon {
  background: var(--sky);
}
.cover-item h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
}
.cover-item p {
  color: var(--muted);
  max-width: 26em;
}
.tags {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.cover-item .mock {
  margin: 20px 0 -24px;
  max-width: 400px;
}
.cover-item.power .mock {
  --tilt: -2deg;
}
.cover-item.water .mock {
  --tilt: 2deg;
  justify-self: end;
}
.cover-item .board li {
  padding-bottom: 38px;
}
.free {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  color: var(--muted);
}
.free svg {
  width: 34px;
  height: 34px;
  flex: none;
}
.free strong {
  color: var(--text);
}

/* Questions: heading and contact card beside a chat window */
.qa {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.qa-side {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 28px;
}
.ask-card {
  padding: 28px;
  border-radius: 24px;
  display: grid;
  gap: 10px;
  justify-items: start;
}
.ask-card img {
  width: 44px;
  height: 44px;
}
.ask-card h3 {
  font-size: 20px;
}
.ask-card p {
  font-size: 15px;
}
.ask-card .btn {
  margin-top: 8px;
}
.chat {
  --tilt: 1deg;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-line);
}
.chat-head img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.chat-head b {
  display: block;
  font-size: 15px;
}
.chat-head small {
  color: var(--card-muted);
  font-size: 12px;
}
.chat-body {
  padding: 20px;
  display: grid;
  gap: 10px;
  background: #fafbfc;
}
.q,
.a {
  max-width: 82%;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
}
.q {
  justify-self: end;
  margin-top: 10px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
  border-radius: 18px 18px 4px 18px;
}
.q:first-child {
  margin-top: 0;
}
.a {
  justify-self: start;
  background: #ffffff;
  border: 1px solid var(--card-line);
  color: var(--card-text);
  border-radius: 18px 18px 18px 4px;
}
.a a {
  color: #1a5fa8;
}

/* Sign-up */
.signup-panel {
  padding-block: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
.signup-panel h2 {
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -0.03em;
}
.signup-panel > div > p {
  margin-top: 14px;
  font-size: 18px;
  max-width: 30em;
}
.signup-panel .btn {
  margin-top: 28px;
}
.mail {
  --tilt: 1.5deg;
}
.mail-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--card-line);
}
.mail-row span {
  color: var(--card-muted);
}
.mail-row b {
  overflow-wrap: anywhere;
}
.mail-body {
  padding: 16px 18px 22px;
  line-height: 1.6;
  color: #3b4767;
}

/* Footer */
.site-footer {
  background: var(--footer);
  border-top: 1px solid var(--footer-line);
  color: var(--footer-text);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-block: 64px 48px;
}
.footer-brand img {
  height: 36px;
  width: auto;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 24em;
}
.footer-brand b {
  color: var(--footer-strong);
}
.footer-col h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--footer-strong);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-footer a {
  color: var(--footer-text);
}
.site-footer a:hover {
  color: var(--footer-strong);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--footer-line);
  font-size: 13px;
}
.footer-bottom p {
  max-width: 62em;
}

/* Privacy page */
.page-head .wrap {
  padding-block: 56px 64px;
  display: grid;
  gap: 10px;
}
.page-head h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
}
.legal-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding-block: 56px 0;
}
.toc {
  position: sticky;
  top: 104px;
  font-size: 14px;
}
.toc strong {
  display: block;
  font-size: 15px;
  margin-bottom: 12px;
}
.toc ol {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 10px;
}
.toc a {
  color: var(--muted);
}
.toc a:hover {
  color: var(--text);
}
.legal-body {
  max-width: 720px;
  display: grid;
  gap: 16px;
}
.legal-body h2 {
  margin-top: 32px;
  font-size: 26px;
  letter-spacing: -0.015em;
}
.legal-body h3 {
  margin-top: 8px;
  font-size: 18px;
}
.legal-body ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.callout {
  padding: 22px 26px;
  border-radius: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
th {
  background: var(--soft);
  font-size: 14px;
}

/* Motion: hero entrance on load */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(30px) rotate(6deg);
  }
  to {
    opacity: 1;
    transform: rotate(var(--tilt, 0deg));
  }
}
@keyframes drop-in {
  0% {
    opacity: 0;
    transform: translateY(-28px) rotate(-6deg);
  }
  70% {
    opacity: 1;
    transform: translateY(4px) rotate(var(--tilt, 0deg));
  }
  100% {
    opacity: 1;
    transform: rotate(var(--tilt, 0deg));
  }
}
@keyframes beacon {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 194, 26, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(255, 194, 26, 0);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(18px, -14px);
  }
}
.hero::before {
  animation: float 9s ease-in-out infinite;
}
.hero::after {
  animation: float 11s ease-in-out infinite reverse;
}
.hero-copy > * {
  animation: fade-up 0.7s var(--ease) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}
.hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}
.hero .board {
  animation: card-in 0.9s var(--ease) 0.25s backwards;
}
.hero .board li {
  animation: fade-up 0.6s var(--ease) both;
}
.hero .board li:nth-child(1) {
  animation-delay: 0.55s;
}
.hero .board li:nth-child(2) {
  animation-delay: 0.65s;
}
.hero .board li:nth-child(3) {
  animation-delay: 0.75s;
}
.hero .ping {
  animation: drop-in 0.8s var(--ease) 1.05s backwards;
}
.hero-facts li {
  animation: fade-up 0.6s var(--ease) both;
}
.hero-facts li:nth-child(1) {
  animation-delay: 0.45s;
}
.hero-facts li:nth-child(2) {
  animation-delay: 0.55s;
}
.hero-facts li:nth-child(3) {
  animation-delay: 0.65s;
}
.hero-facts li:nth-child(4) {
  animation-delay: 0.75s;
}

/* Motion: sections reveal on scroll (only when site.js is running) */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}
.js .steps-v::before {
  transform: scaleY(0);
  transition: transform 1.4s var(--ease) 0.2s;
}
.js .steps-v.is-visible::before {
  transform: scaleY(1);
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid,
  .signup-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .signup-panel {
    padding-block: 72px;
  }
  .board-stage {
    max-width: 520px;
  }
  .ping {
    left: 12px;
    right: 12px;
  }
  .alerts,
  .qa {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .alerts-intro,
  .qa-side {
    position: static;
  }
  .how {
    padding-block: 80px;
  }
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
    gap: 40px;
  }
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .toc {
    position: static;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding-inline: 16px;
  }
  .nav-extra {
    display: none;
  }
  .site-nav {
    gap: 14px;
  }
  .brand img {
    height: 32px;
  }
  .section {
    padding-block: 64px;
  }
  .hero-grid {
    padding-block: 24px 40px;
  }
  .hero-facts {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px 16px;
  }
  .hero-facts li {
    flex-direction: column;
    gap: 10px;
  }
  .how {
    padding-block: 64px;
  }
  .signup-panel {
    padding-block: 56px;
  }
  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cover-item {
    padding: 28px 22px 0;
  }
  .steps-v li {
    padding-left: 52px;
  }
  .board li {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 12px 14px;
  }
  .board li .state {
    grid-column: 2;
    justify-self: start;
  }
  .q,
  .a {
    max-width: 92%;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] {
    opacity: 1;
    translate: 0 0;
  }
  .js .steps-v::before {
    transform: none;
  }
}

/* Motion: extra details */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 100%;
  background: var(--sun);
  transform-origin: left center;
  transform: scaleX(var(--progress));
}
@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(46, 155, 240, 0);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(46, 155, 240, 0.18);
  }
}
@keyframes ring {
  0%,
  100% {
    rotate: 0deg;
  }
  20% {
    rotate: 16deg;
  }
  40% {
    rotate: -14deg;
  }
  60% {
    rotate: 8deg;
  }
  80% {
    rotate: -4deg;
  }
}
@keyframes pop {
  0% {
    scale: 0;
  }
  70% {
    scale: 1.2;
  }
  100% {
    scale: 1;
  }
}
@keyframes pulse-sun {
  0% {
    box-shadow: 0 0 0 2px var(--sun), 0 0 0 2px rgba(255, 194, 26, 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 2px var(--sun), 0 0 0 14px rgba(255, 194, 26, 0);
  }
}
@keyframes pulse-sky {
  0% {
    box-shadow: 0 0 0 2px var(--sky), 0 0 0 2px rgba(46, 155, 240, 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 2px var(--sky), 0 0 0 14px rgba(46, 155, 240, 0);
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.board-stage {
  animation: bob 7s ease-in-out 2s infinite;
}
.state-sent {
  animation: glow 2.6s ease-in-out 1.6s infinite;
}
.btn:hover svg {
  transform-origin: 50% 10%;
  animation: ring 0.7s ease;
}
.fact-icon {
  transition: transform 0.25s var(--ease), background-color 0.25s ease;
}
.hero-facts li:hover .fact-icon {
  transform: translateY(-3px);
  background: rgba(255, 194, 26, 0.16);
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -3px;
  background: #1a5fa8;
  animation: blink 1s steps(1) infinite;
}

/* Timeline dots pop in, then pulse */
.js .steps-v li .dot {
  scale: 0;
}
.js .steps-v li.is-visible .dot {
  scale: 1;
  animation: pop 0.5s var(--ease) var(--delay, 0s) backwards, pulse-sun 2.4s ease-out 1.5s infinite;
}
.js .steps-v li.change.is-visible .dot {
  animation: pop 0.5s var(--ease) var(--delay, 0s) backwards, pulse-sky 2.4s ease-out 1.5s infinite;
}

/* Sample cards swing into place */
.js .how-grid > li .mock,
.js .cover-item .mock,
.js .event {
  transition: transform 0.35s var(--ease), rotate 0.9s var(--ease), scale 0.9s var(--ease), translate 0.9s var(--ease);
  transition-delay: 0s, calc(var(--delay, 0s) + 0.15s), calc(var(--delay, 0s) + 0.15s), calc(var(--delay, 0s) + 0.15s);
}
.js .how-grid > li:not(.is-visible) .mock {
  rotate: 8deg;
  scale: 0.9;
}
.js .cover-item:not(.is-visible) .mock {
  translate: 0 70px;
  rotate: 6deg;
}
.js .alerts-intro:not(.is-visible) .event {
  rotate: -8deg;
  scale: 0.92;
}

/* Chat window keeps its reveal and hover transitions */
.js .chat {
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease), transform 0.35s var(--ease);
  transition-delay: var(--delay, 0s), var(--delay, 0s), 0s;
}

/* Chat messages appear one by one */
.js .chat .chat-body > * {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.45s var(--ease), translate 0.45s var(--ease);
}
.js .chat.is-visible .chat-body > * {
  opacity: 1;
  translate: 0 0;
}
.js .chat.is-visible .chat-body > :nth-child(1) {
  transition-delay: 0.35s;
}
.js .chat.is-visible .chat-body > :nth-child(2) {
  transition-delay: 0.47s;
}
.js .chat.is-visible .chat-body > :nth-child(3) {
  transition-delay: 0.59s;
}
.js .chat.is-visible .chat-body > :nth-child(4) {
  transition-delay: 0.71s;
}
.js .chat.is-visible .chat-body > :nth-child(5) {
  transition-delay: 0.83s;
}
.js .chat.is-visible .chat-body > :nth-child(6) {
  transition-delay: 0.95s;
}
.js .chat.is-visible .chat-body > :nth-child(7) {
  transition-delay: 1.07s;
}
.js .chat.is-visible .chat-body > :nth-child(8) {
  transition-delay: 1.19s;
}
.js .chat.is-visible .chat-body > :nth-child(9) {
  transition-delay: 1.31s;
}
.js .chat.is-visible .chat-body > :nth-child(10) {
  transition-delay: 1.43s;
}
.js .chat.is-visible .chat-body > :nth-child(11) {
  transition-delay: 1.55s;
}
.js .chat.is-visible .chat-body > :nth-child(12) {
  transition-delay: 1.67s;
}

@media (max-width: 760px) {
  .panel::after {
    width: 120px;
    height: 120px;
    top: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header::after {
    display: none;
  }
  .js .steps-v li .dot,
  .js .chat .chat-body > * {
    scale: 1;
    opacity: 1;
    translate: 0 0;
  }
}
