:root {
  --bg: #f2eee3;
  --card: #fffcf4;
  --text: #1c1811;
  --muted: #524a3d;
  --green: #1f5a3a;
  --on-green: #fffcf4;
  --teal: #106a73;
  --accent: #96480a;
  --red: #b3261e;
  --line: #d8cfbb;
  --topo: 31, 90, 58;
  color-scheme: light;
}
:root.offline {
  --bg: #0b1220;
  --card: #141d2e;
  --text: #f2eee3;
  --muted: #b9c0cd;
  --green: #8fd6a8;
  --on-green: #0b1220;
  --teal: #6fc6cf;
  --accent: #ffb561;
  --line: #2b374d;
  --topo: 143, 214, 168;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    18px/1.55 ui-rounded,
    "SF Pro Rounded",
    system-ui,
    sans-serif;
  transition:
    background-color 0.6s,
    color 0.6s;
  overflow-x: clip;
}
#topo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9;
  background: var(--card);
  padding: 0.5rem 1rem;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}
.bar {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-block: 1rem;
}
.brand,
.bar-end,
.actions,
footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.brand {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}
.btn,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 2px solid var(--green);
  border-radius: 99px;
  background: var(--green);
  color: var(--on-green);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn.ghost,
.chip {
  background: transparent;
  color: var(--green);
}
.small,
.chip {
  min-height: 44px;
  padding: 0 1rem;
  font-size: 0.9rem;
}
h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.8rem);
}
h1 em {
  display: block;
  font-style: normal;
  color: var(--green);
}
h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}
h3 {
  font-size: 1.6rem;
}
.lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 34ch;
}
.fine,
.note {
  font-size: 0.9rem;
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100svh - 90px);
  padding-block: 1rem 4rem;
}
.signal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.bars i {
  width: 5px;
  background: var(--green);
  border-radius: 2px;
  height: 25%;
  transition: 0.4s;
}
.bars i:nth-child(2) {
  height: 50%;
  transition-delay: 0.08s;
}
.bars i:nth-child(3) {
  height: 75%;
  transition-delay: 0.16s;
}
.bars i:nth-child(4) {
  height: 100%;
  transition-delay: 0.24s;
}
.offline .bars i {
  background: var(--line);
}
.cut {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-block: 1.5rem 0.25rem;
  padding: 0.7rem 1.4rem 0.7rem 0.8rem;
  border: 2px dashed var(--accent);
  border-radius: 99px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.knob {
  flex: none;
  width: 56px;
  height: 32px;
  border-radius: 99px;
  background: var(--line);
  position: relative;
}
.knob::after {
  content: "";
  position: absolute;
  inset: 4px auto 4px 4px;
  width: 24px;
  border-radius: 50%;
  background: var(--accent);
  transition: translate 0.3s;
}
.note {
  min-height: 3em;
  margin-top: 0.25rem;
}
.stage {
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.phone {
  width: min(320px, 80vw);
  padding: 10px;
  border-radius: 48px;
  background: #16130e;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.55);
  transform: rotateY(var(--ry, -10deg)) rotateX(var(--rx, 4deg));
  transition: transform 0.2s ease-out;
}
.cut.on .knob::after {
  translate: 24px;
}
.offline .phone {
  box-shadow: 0 0 90px -10px rgb(143 214 168 / 0.45);
}
.badge {
  display: inline-flex;
}
.badge img {
  height: 48px;
  width: auto;
}
footer small {
  flex-basis: 100%;
  text-align: center;
  color: var(--muted);
}
img {
  max-width: 100%;
  height: auto;
}
.phone img,
.step img {
  display: block;
  border-radius: 38px;
}
.tour {
  padding-block: 4rem;
}
.step {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: center;
  padding-block: 3rem;
  border-top: 1px solid var(--line);
}
.step:nth-of-type(even) {
  grid-template-columns: 300px 1fr;
}
.step:nth-of-type(even) img {
  order: -1;
}
.step p {
  color: var(--muted);
  max-width: 42ch;
}
.step img {
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.5);
}
.play,
.cards ul li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.play {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.play .field {
  font-weight: 700;
  margin-block: 1.25rem;
}
input[type="range"] {
  width: 100%;
  min-height: 44px;
  accent-color: var(--teal);
}
.tank {
  position: relative;
  min-height: 240px;
  border: 3px solid var(--teal);
  border-radius: 24px 24px 44px 44px;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
}
.water {
  position: absolute;
  inset: auto 0 0;
  background: color-mix(in srgb, var(--teal) 30%, transparent);
  border-top: 4px solid var(--teal);
  transition: height 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.tank p {
  position: relative;
}
.tank strong {
  display: block;
  font-size: 4rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.play > .fine {
  grid-column: 1 / -1;
  margin: 0;
}
.sos {
  margin-top: 6rem;
  padding-block: 5rem;
  background: #1a0e0c;
  color: #fff6f0;
  background-image: radial-gradient(
    circle 320px at var(--x, 70%) var(--y, 30%),
    #5a241c,
    transparent
  );
}
.sos-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  padding: 1rem 1.2rem;
  border-radius: 22px;
  margin-bottom: 1.5rem;
  animation: pulse 2s 2;
}
@keyframes pulse {
  from {
    box-shadow: 0 0 0 0 rgb(230 70 60 / 0.7);
  }
  to {
    box-shadow: 0 0 0 26px rgb(230 70 60 / 0);
  }
}
.sos li {
  margin-block: 0.75rem;
  max-width: 60ch;
}
.warn {
  border-left: 4px solid #ffb561;
  padding-left: 1rem;
  max-width: 62ch;
}
.cards {
  padding-block: 6rem 2rem;
}
.cards ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.cards li {
  padding: 1.5rem;
}
.final {
  text-align: center;
  padding-block: 5rem;
}
.final .actions {
  justify-content: center;
}
footer {
  justify-content: center;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
footer a {
  color: inherit;
  padding-block: 0.7rem;
}
@media (max-width: 800px) {
  .hero,
  .play,
  .step,
  .step:nth-of-type(even) {
    grid-template-columns: 1fr;
  }
  .step {
    gap: 2rem;
  }
  .step img,
  .step:nth-of-type(even) img {
    order: 0;
    width: min(280px, 100%);
    margin-inline: auto;
  }
  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
