/* =========================================================================
   TOMCHIQAYT — dizayn tizimi
   Ranglar semantik: ko'k = yig'ilgan suv, yashil = qayta ishlatilgan / eko.
   ========================================================================= */

@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.6d36d5bdedfa.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.938c6e8019b6.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/unbounded-latin-ext-wght-normal.c07fbf1bfefa.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Unbounded Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/unbounded-latin-wght-normal.8616dc355070.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --forest: #0e3b2e;
  --forest-2: #144a3a;
  --forest-3: #1c5a47;
  --canopy: #1f6b4a;
  --leaf: #10b981;
  --leaf-soft: #dcefe0;
  --water: #0ea5e9;
  --water-deep: #0284c7;
  --water-soft: #def0f9;
  --mist: #f3f7f1;
  --paper: #ffffff;
  --ink: #10231c;
  --ink-2: #44594f;
  --ink-3: #6b7f75;
  --line: #d3e2d9;
  --line-dark: rgba(255, 255, 255, 0.16);
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warn: #8a5a00;
  --warn-soft: #fff4d6;

  --font-display: "Unbounded Variable", "Manrope Variable", system-ui, sans-serif;
  --font-body: "Manrope Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: 3.052rem;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --r-pill: 999px;
  --wrap: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --shadow-1: 0 1px 2px rgba(14, 59, 46, 0.06), 0 10px 28px -18px rgba(14, 59, 46, 0.35);
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--water);
}

/* ---------------------------------------------------------------- base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--canopy);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--forest);
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--paper);
  color: var(--forest);
  border-radius: var(--r-s);
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
}
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  --btn-bg: var(--canopy);
  color: var(--btn-fg);
}
.btn--water {
  --btn-bg: var(--water-deep);
}
.btn--water:hover {
  --btn-bg: #15658e;
}
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--forest);
}
.btn--light:hover {
  --btn-bg: var(--leaf-soft);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--forest);
  border-color: var(--line);
}
.btn--ghost:hover {
  --btn-bg: var(--paper);
  border-color: var(--canopy);
}
.btn--ghost-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost-dark:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}
.btn--danger {
  --btn-bg: transparent;
  --btn-fg: var(--danger);
  border-color: #f1c4bf;
}
.btn--danger:hover {
  --btn-bg: var(--danger-soft);
  --btn-fg: var(--danger);
}
.btn--sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.9375rem;
}
.btn--block {
  width: 100%;
}

/* ---------------------------------------------------------------- brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}
.brand:hover {
  color: inherit;
}
.brand__mark {
  width: 34px;
  height: 34px;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* =========================================================================
   LANDING
   ========================================================================= */
.site-header {
  background: var(--forest);
  color: #fff;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.site-nav__links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.975rem;
}
.site-nav__links a:hover {
  color: #fff;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

/* hero */
.hero {
  background: var(--forest);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.1rem, 1rem + 3.6vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.hero__lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero__credits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 0.5rem 2.25rem;
  margin: 2.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}
.hero__credits dt {
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.6);
}
.hero__credits dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
}

/* hero art: konditsioner → tomchi → o'lchov idishi */
.drip {
  position: relative;
  max-width: 440px;
  margin-inline: auto;
}
.drip__svg {
  width: 100%;
  height: auto;
}
.drip__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  fill: #ffffff;
  fill-opacity: 0.85;
}
.drip__drop {
  transform-box: fill-box;
  transform-origin: center;
  animation: drip-fall 3.4s cubic-bezier(0.55, 0, 0.9, 0.45) infinite;
}
@keyframes drip-fall {
  0%,
  18% {
    transform: translateY(0) scale(0.2);
    opacity: 0;
  }
  30% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  72% {
    transform: translateY(var(--fall, 118px)) scale(1, 1.12);
    opacity: 1;
  }
  78%,
  100% {
    transform: translateY(var(--fall, 118px)) scale(1.6, 0.2);
    opacity: 0;
  }
}
.drip__water {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(var(--level, 0));
  animation: jug-fill 1.8s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes jug-fill {
  from {
    transform: scaleY(0);
  }
}
.drip--l0 { --level: 0; }
.drip--l1 { --level: 0.1; }
.drip--l2 { --level: 0.2; }
.drip--l3 { --level: 0.3; }
.drip--l4 { --level: 0.4; }
.drip--l5 { --level: 0.5; }
.drip--l6 { --level: 0.6; }
.drip--l7 { --level: 0.7; }
.drip--l8 { --level: 0.8; }
.drip--l9 { --level: 0.9; }
.drip--l10 { --level: 1; }

.drip__readout {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.25rem;
}
.drip__value {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1;
  color: #9fdcf7;
}
.drip__value--text {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.2;
}
.drip__value small {
  font-size: 0.45em;
  font-weight: 500;
  margin-left: 0.3rem;
  color: rgba(255, 255, 255, 0.75);
}
.drip__caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.975rem;
}
.drip__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}
.drip__facts div {
  display: flex;
  gap: 0.35rem;
}
.drip__facts dt {
  color: rgba(255, 255, 255, 0.6);
}
.drip__facts dd {
  margin: 0;
  font-weight: 700;
}

/* sections */
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section--paper {
  background: var(--paper);
}
.section--forest {
  background: var(--forest);
  color: #fff;
}
.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.6rem);
  letter-spacing: -0.01em;
}
.h3 {
  font-weight: 800;
  font-size: var(--step-1);
  line-height: 1.3;
}
.section__intro {
  margin-top: 1rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
}
.section--forest .section__intro {
  color: rgba(255, 255, 255, 0.8);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

/* muammo */
.statement {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 1rem + 1.3vw, 1.9rem);
  line-height: 1.3;
  color: var(--water-deep);
  max-width: 24ch;
}
.drop-list {
  list-style: none;
  display: grid;
}
.drop-list li {
  position: relative;
  padding: 1.1rem 0 1.1rem 2.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--step-1);
  line-height: 1.45;
}
.drop-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.drop-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.45rem;
  width: 12px;
  height: 16px;
  background: var(--water);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  clip-path: polygon(50% 0, 100% 60%, 100% 100%, 0 100%, 0 60%);
}
.drop-list--leaf li::before {
  background: var(--leaf);
  clip-path: none;
  width: 14px;
  height: 14px;
  border-radius: 0 70% 0 70%;
}
.drop-list--compact li {
  padding-block: 0.8rem;
  font-size: 1.0625rem;
}
.drop-list--compact li::before {
  top: 1.1rem;
}

.why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.why__col {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-l);
  background: var(--mist);
}
.why__col--local {
  background: var(--leaf-soft);
}
.why__col .h3 {
  margin-bottom: 1rem;
}
.why__col p + p {
  margin-top: 0.75rem;
}

/* yechim: oqim */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: flow;
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: 27px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--water-soft), var(--water) 70%, var(--leaf));
}
.flow__step {
  position: relative;
  counter-increment: flow;
}
.flow__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--water);
  color: var(--water-deep);
}
.flow__step:last-child .flow__node {
  border-color: var(--leaf);
  color: var(--canopy);
}
.flow__node .icon {
  width: 26px;
  height: 26px;
}
.flow__title {
  margin-top: 1rem;
  font-weight: 800;
  font-size: 1.0625rem;
}
.flow__title::before {
  content: counter(flow) ". ";
  color: var(--ink-3);
  font-weight: 600;
}
.flow__text {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.uses {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-l);
  background: var(--forest);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: center;
}
.uses__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.25;
}
.uses__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.uses__list li {
  display: grid;
  gap: 0.6rem;
  font-weight: 700;
  line-height: 1.3;
}
.uses__list .icon {
  width: 30px;
  height: 30px;
  color: #8fd6a0;
}

/* platforma */
.platform {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.phone {
  width: min(100%, 300px);
  margin-inline: auto;
  padding: 12px;
  border-radius: 40px;
  background: var(--forest);
  box-shadow: var(--shadow-1);
}
.phone__screen {
  border-radius: 30px;
  background: var(--mist);
  padding: 1.25rem 1rem 1.5rem;
  min-height: 470px;
}
.phone__title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest);
}
.phone__hero {
  margin: 1rem 0;
  display: grid;
  place-items: center;
  height: 92px;
  border-radius: var(--r-m);
  background: var(--water-soft);
}
.phone__hero svg {
  width: 56px;
  height: 56px;
}
.phone__field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: var(--paper);
  font-size: 0.82rem;
  line-height: 1.3;
}
.phone__field .icon {
  color: var(--canopy);
}
.phone__field span {
  display: block;
  color: var(--ink-3);
}
.phone__save {
  margin-top: 1rem;
  padding: 0.7rem;
  border-radius: 12px;
  background: var(--forest);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.screens {
  list-style: none;
  display: grid;
  gap: 0;
}
.screens li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.screens li:last-child {
  border-bottom: 1px solid var(--line);
}
.screens__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--leaf-soft);
  color: var(--canopy);
}
.screens__icon .icon {
  width: 26px;
  height: 26px;
}
.screens__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.screens p {
  margin-top: 0.3rem;
  color: var(--ink-2);
}

/* pilot */
.pilot__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  background: var(--leaf-soft);
  color: var(--forest);
  font-weight: 700;
  font-size: 0.95rem;
}
.chip--water {
  background: var(--water-soft);
  color: var(--water-deep);
}
.goal {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-m);
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.4;
}
.map {
  width: 100%;
  height: 440px;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--water-soft);
  border: 1px solid var(--line);
}
.map--app {
  height: min(62vh, 560px);
}
.map__note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.map-pin {
  width: 34px;
  height: 42px;
}
.map-pin svg {
  width: 34px;
  height: 42px;
  filter: drop-shadow(0 3px 4px rgba(14, 59, 46, 0.35));
}
.map-popup {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.45;
  min-width: 180px;
}
.map-popup strong {
  display: block;
  font-size: 1rem;
}
.map-popup__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.map-popup__row span:first-child {
  color: var(--ink-3);
}

/* foyda */
.benefits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.benefits li {
  padding-top: 1.25rem;
  border-top: 4px solid var(--leaf);
}
.benefits li:nth-child(1) {
  border-top-color: var(--water);
}
.benefits li:nth-child(3) {
  border-top-color: var(--forest);
}
.benefits p {
  margin-top: 0.5rem;
  color: var(--ink-2);
}
.revenue {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--r-l);
  background: var(--mist);
}
.revenue__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.revenue__list li {
  padding: 1rem;
  border-radius: var(--r-m);
  background: var(--paper);
  font-weight: 700;
  line-height: 1.35;
}
.revenue__goal {
  margin-top: 1rem;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-2);
}

/* reja */
.timeline {
  list-style: none;
  display: grid;
  gap: 0;
  position: relative;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 0 0 1.75rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(7.5rem + 5px);
  top: 0.5rem;
  bottom: -0.5rem;
  width: 2px;
  background: var(--line-dark);
}
.timeline li:last-child::before {
  display: none;
}
.timeline__day {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #9fdcf7;
  white-space: nowrap;
}
.timeline__body {
  position: relative;
  padding-left: 1.5rem;
}
.timeline__body::before {
  content: "";
  position: absolute;
  left: -0.25rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--forest);
  border: 3px solid #9fdcf7;
}
.timeline li:last-child .timeline__body::before {
  border-color: #8fd6a0;
  background: #8fd6a0;
}
.timeline__title {
  font-weight: 800;
}
.timeline__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.975rem;
}
.scale-path {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.scale-path li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-m);
  background: var(--forest-2);
  font-weight: 700;
  font-size: var(--step-1);
}
.scale-path li:first-child {
  background: #8fd6a0;
  color: var(--forest);
}
.scale-path__dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid currentColor;
}
.scale-path li:first-child .scale-path__dot {
  background: currentColor;
}
.scale-path li span:last-child {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.75;
}
.scale-note {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
}

/* yakun */
.closing {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.closing__quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.15rem);
  line-height: 1.3;
  max-width: 30ch;
}
.closing__goal {
  margin-top: 1.5rem;
  max-width: 44rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
}
.author {
  padding: 1.5rem;
  border-radius: var(--r-l);
  background: var(--forest);
  color: #fff;
}
.author dt {
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.6);
}
.author dd {
  margin: 0.1rem 0 1rem;
  font-weight: 700;
}
.author dd:last-child {
  margin-bottom: 0;
}
.author__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}

.site-footer {
  padding-block: 2.5rem;
  background: var(--forest);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.site-footer a {
  color: #fff;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
}

/* =========================================================================
   AUTH — ikki ustunli kirish sahifasi (chapda foto + animatsiya)
   ========================================================================= */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: #03170f;
}
.auth__visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.auth__visual img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: auth-kenburns 26s ease-in-out infinite alternate;
}
.auth__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(500px 400px at 30% 85%, rgba(16, 185, 129, 0.35), transparent 70%),
    linear-gradient(180deg, rgba(3, 23, 15, 0.1) 30%, rgba(3, 23, 15, 0.92));
}
@keyframes auth-kenburns {
  from { transform: scale(1.04); }
  to { transform: scale(1.14) translate3d(-1.5%, 1%, 0); }
}
.auth__drop {
  position: absolute;
  left: 39.5%;
  top: 52%;
  width: 14px;
  height: 18px;
  margin-left: -7px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 35% 35%, #fff, #7dd3fc 45%, #0284c7);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.9);
  opacity: 0;
  animation: auth-drop 3.4s cubic-bezier(0.55, 0, 1, 0.45) infinite;
}
@keyframes auth-drop {
  0% { top: 51%; scale: 0.3; opacity: 0; }
  15% { top: 53%; scale: 1; opacity: 1; }
  80% { top: 72%; opacity: 1; }
  100% { top: 73%; opacity: 0; }
}
.auth__splash {
  position: absolute;
  left: 39.5%;
  top: 73%;
  width: 140px;
  height: 34px;
  margin-left: -70px;
  border-radius: 50%;
  border: 2px solid rgba(167, 243, 208, 0.8);
  opacity: 0;
  animation: auth-splash 3.4s ease-out infinite;
}
@keyframes auth-splash {
  0%, 78% { scale: 0.2; opacity: 0; }
  82% { opacity: 1; }
  100% { scale: 1.5; opacity: 0; }
}
.auth__story {
  position: absolute;
  left: clamp(1.5rem, 5vw, 4rem);
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: clamp(2rem, 7vh, 4.5rem);
  animation: auth-rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.auth__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(167, 243, 208, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.auth__eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}
.auth__slogan {
  margin-top: 1.1rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.auth__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
  list-style: none;
}
.auth__features li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 700;
}
.auth__features .icon {
  color: #34d399;
}
.auth__panel {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(52, 211, 153, 0.12), transparent 60%),
    #f3f7f1;
}
.auth__card {
  width: min(100%, 420px);
  animation: auth-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes auth-rise {
  from { opacity: 0; translate: 0 24px; }
}
.auth__brand {
  color: var(--forest);
  margin-bottom: 2.5rem;
}
.auth__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
}
.auth__lede {
  margin-top: 0.6rem;
  color: var(--ink-2);
}
.auth .field input {
  min-height: 54px;
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth .field input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}
.auth__submit {
  gap: 0.6rem;
  min-height: 54px;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b3a2b, #10b981);
  box-shadow: 0 14px 30px -14px rgba(16, 185, 129, 0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.auth__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -14px rgba(16, 185, 129, 1);
}
.auth__submit .icon {
  transition: translate 0.3s ease;
}
.auth__submit:hover .icon {
  translate: 4px 0;
}
.auth__back {
  margin-top: 1.75rem;
  font-size: 0.95rem;
}
.auth__back a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
}
.auth__back a:hover {
  color: #10b981;
}
@media (max-width: 860px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(260px, 38vh) auto;
  }
  .auth__story {
    bottom: 1.5rem;
  }
  .auth__features,
  .auth__drop,
  .auth__splash {
    display: none;
  }
  .auth__slogan {
    font-size: 1.8rem;
  }
  .auth__panel {
    place-items: start center;
    border-radius: 28px 28px 0 0;
    margin-top: -28px;
    position: relative;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth *,
  .auth *::before,
  .auth *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================================
   FORMS
   ========================================================================= */
.form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.fieldset {
  margin: 0;
  padding: 1.25rem;
  border: 0;
  border-radius: var(--r-m);
  background: var(--paper);
  display: grid;
  gap: 1rem;
}
.fieldset legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 0.25rem;
  font-weight: 800;
  font-size: 1.0625rem;
}
.fieldset__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.field label {
  font-weight: 700;
  font-size: 0.95rem;
}
.field__optional {
  font-weight: 500;
  color: var(--ink-3);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--water);
  box-shadow: 0 0 0 3px var(--water-soft);
}
.field__help {
  font-size: 0.875rem;
  color: var(--ink-3);
}
.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--danger);
}
.field__error {
  font-size: 0.9rem;
  color: var(--danger);
  font-weight: 600;
}
.form-errors {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 600;
}
.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* =========================================================================
   APP SHELL
   ========================================================================= */
.app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(90deg, var(--forest) 260px, transparent 260px);
}
.app__side {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem 1rem;
  background: var(--forest);
  color: #fff;
}
.app__side .brand {
  padding-inline: 0.75rem;
}
.app-nav {
  list-style: none;
  display: grid;
  gap: 0.25rem;
}
.app-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 46px;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
}
.app-nav a:hover {
  background: var(--forest-2);
  color: #fff;
}
.app-nav a[aria-current="page"] {
  background: var(--forest-3);
  color: #fff;
}
.app-nav a[aria-current="page"] .icon {
  color: #8fd6a0;
}
.app__side-foot {
  margin-top: auto;
  display: grid;
  gap: 0.5rem;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}
.app__main {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  padding-bottom: 4rem;
}
.app__inner {
  max-width: 1040px;
  margin-inline: auto;
}
.app-top {
  display: none;
}
.tabbar {
  display: none;
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}
.page-sub {
  margin-top: 0.35rem;
  color: var(--ink-2);
}
.logout-form {
  margin: 0;
}
.app__side-foot a {
  color: inherit;
}
.app__side-foot a:hover {
  color: #fff;
}
.form-narrow {
  max-width: 760px;
}
.js .js-hide {
  display: none;
}
.field__help ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}
.kv__hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

/* messages */
.messages {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.message {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--leaf-soft);
  color: var(--forest);
  font-weight: 600;
}
.message--warning {
  background: var(--warn-soft);
  color: var(--warn);
}
.message--error {
  background: var(--danger-soft);
  color: var(--danger);
}

/* panels & metrics */
.panel {
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border-radius: var(--r-m);
  background: var(--paper);
  box-shadow: var(--shadow-1);
}
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.panel__title {
  font-weight: 800;
  font-size: 1.0625rem;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.metric {
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-m);
  background: var(--paper);
  box-shadow: var(--shadow-1);
  border-top: 4px solid var(--line);
}
.metric--water {
  border-top-color: var(--water);
}
.metric--leaf {
  border-top-color: var(--leaf);
}
.metric--forest {
  border-top-color: var(--forest);
}
.metric__label {
  font-size: 0.9rem;
  color: var(--ink-2);
  font-weight: 600;
}
.metric__value {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.1;
}
.metric__value small {
  font-family: var(--font-body);
  font-size: 0.55em;
  font-weight: 600;
  color: var(--ink-3);
  margin-left: 0.2rem;
}
.metric__note {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}
.metric--water .metric__value {
  color: var(--water-deep);
}
.metric--leaf .metric__value {
  color: var(--canopy);
}
.progress {
  margin-top: 0.6rem;
  height: 8px;
  border-radius: 8px;
  background: var(--mist);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  border-radius: 8px;
  background: var(--forest);
  width: calc(var(--p, 0) * 1%);
}
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1rem;
  margin-block: 1rem;
}
.panel > .panel__title {
  margin-bottom: 1rem;
}
.stack {
  display: grid;
  gap: 1rem;
}
.chart-box {
  position: relative;
  height: 260px;
}
.chart-box--tall {
  height: 320px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--water);
}
.legend__swatch--leaf {
  background: var(--leaf);
}

.eco {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.eco__leaves {
  display: flex;
  flex: none;
  gap: 0.15rem;
}
.eco__leaf {
  width: 30px;
  height: 30px;
  color: var(--line);
}
.list .eco__leaf {
  width: 22px;
  height: 22px;
}
.eco__leaf--on {
  color: var(--leaf);
}
.eco__leaf path {
  fill: currentColor;
}
.eco__text {
  font-size: 0.9rem;
  color: var(--ink-2);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 700;
  font-size: 0.8rem;
}

.list {
  list-style: none;
  display: grid;
}
.list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}
.list__item:first-child {
  border-top: 0;
}
.list__main {
  flex: 1 1 12rem;
  min-width: 0;
}
.list__title {
  font-weight: 700;
}
.list__meta {
  font-size: 0.875rem;
  color: var(--ink-3);
}
.list__value {
  font-weight: 800;
  color: var(--water-deep);
  white-space: nowrap;
}
.empty {
  padding: 1.5rem;
  border-radius: var(--r-m);
  border: 2px dashed var(--line);
  text-align: center;
  color: var(--ink-2);
}
.empty p + .btn,
.empty p + p {
  margin-top: 0.75rem;
}

/* filters */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow: var(--shadow-1);
}
.segmented a {
  min-width: 72px;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0 1rem;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: none;
}
.segmented a[aria-current="true"] {
  background: var(--forest);
  color: #fff;
}
.select-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.select-form select {
  min-height: 44px;
  padding: 0.5rem 2rem 0.5rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  font: inherit;
  font-weight: 600;
  color: var(--ink);
}

/* table */
.table-wrap {
  position: relative; /* visually-hidden (absolute) elementlar ham shu yerda qirqilsin */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table th,
.table td {
  padding: 0.75rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table th {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-3);
}
.table td.num,
.table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.table .water {
  color: var(--water-deep);
  font-weight: 700;
}
.table .reuse {
  color: var(--canopy);
  font-weight: 700;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.kv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem 1rem;
  margin: 0;
}
.kv dt {
  color: var(--ink-2);
}
.kv dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}
.kv__hint {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem var(--gutter);
}
.error-page__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--water);
  line-height: 1;
}
.error-page p {
  margin: 1rem auto 1.5rem;
  max-width: 32rem;
  color: var(--ink-2);
}

/* leaflet popup tweaks */
.leaflet-container {
  font-family: var(--font-body);
}
.leaflet-popup-content-wrapper {
  border-radius: 14px;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2rem;
  }
  .flow::before {
    display: none;
  }
  .uses {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero__grid,
  .split,
  .platform,
  .closing,
  .revenue,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__art {
    max-width: 420px;
  }
  .benefits {
    grid-template-columns: minmax(0, 1fr);
  }
  .app {
    grid-template-columns: minmax(0, 1fr);
    background: none;
  }
  .app__side {
    display: none;
  }
  .app-top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
    padding: 0 var(--gutter);
    background: var(--forest);
    color: #fff;
  }
  .app-top .brand__mark {
    width: 28px;
    height: 28px;
  }
  .app-top .brand__name {
    font-size: 0.95rem;
  }
  .app__main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0.4rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
    list-style: none;
  }
  .tabbar a {
    display: grid;
    justify-items: center;
    gap: 0.15rem;
    min-height: 52px;
    padding: 0.3rem 0.2rem;
    border-radius: 12px;
    color: var(--ink-3);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
  }
  .tabbar a[aria-current="page"] {
    color: var(--forest);
  }
  .tabbar a[aria-current="page"] .icon {
    color: var(--canopy);
  }
  .tabbar .icon {
    width: 24px;
    height: 24px;
  }
  .tabbar__scan .tabbar__scan-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-top: -18px;
    border-radius: 50%;
    background: var(--forest);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(14, 59, 46, 0.6);
  }
  .tabbar__scan a[aria-current="page"] .tabbar__scan-btn {
    background: var(--water-deep);
  }
  .tabbar__scan .icon {
    color: #fff;
  }
}

@media (max-width: 760px) {
  .site-nav__links {
    display: none;
  }
  .site-nav__links.is-open {
    box-shadow: 0 18px 24px -16px rgba(0, 0, 0, 0.55);
    display: grid;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 40;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--forest);
    border-top: 1px solid var(--line-dark);
  }
  .site-nav__links.is-open a {
    display: block;
    padding: 0.85rem 0;
  }
  .site-header {
    position: relative;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav .btn {
    display: none;
  }
  .hero__credits {
    grid-template-columns: minmax(0, 1fr);
  }
  .why {
    grid-template-columns: minmax(0, 1fr);
  }
  .flow {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }
  .flow__step {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 1rem;
    padding-bottom: 1.5rem;
  }
  .flow__step::after {
    content: "";
    position: absolute;
    left: 28px;
    top: 60px;
    bottom: 0;
    width: 4px;
    background: var(--water-soft);
  }
  .flow__step:last-child::after {
    display: none;
  }
  .flow__title {
    margin-top: 0.2rem;
  }
  .flow__body {
    grid-column: 2;
    grid-row: 1;
  }
  .uses__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .revenue__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .timeline li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
    padding-left: 1.5rem;
  }
  .timeline li::before {
    left: 0.35rem;
  }
  .timeline__body {
    padding-left: 0;
  }
  .timeline__day {
    position: relative;
  }
  .timeline__day::before {
    content: "";
    position: absolute;
    left: -1.5rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--forest);
    border: 3px solid #9fdcf7;
  }
  .timeline__body::before {
    display: none;
  }
  .map {
    height: 340px;
  }
  .fieldset__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .metric__value {
    font-size: 1.35rem;
  }
}

@media (max-width: 420px) {
  .metrics {
    gap: 0.6rem;
  }
  .metric {
    padding: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .drip__drop {
    display: none;
  }
}

/* =========================================================================
   APP v2 — vizual sayqal (landing bilan bir xil palitra va motion).
   Faqat ko'rinish: joylashuv (grid/display) qoidalariga tegmaydi.
   ========================================================================= */
@keyframes app-rise {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}
@keyframes app-glow {
  50% {
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.14);
  }
}
.app {
  background: linear-gradient(90deg, #03170f 260px, transparent 260px);
}
.app__side {
  background:
    radial-gradient(380px 280px at 0% 0%, rgba(52, 211, 153, 0.2), transparent 60%),
    radial-gradient(320px 320px at 100% 100%, rgba(56, 189, 248, 0.12), transparent 60%),
    linear-gradient(180deg, #072b20, #03170f);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.app__side .brand__mark,
.app-top .brand__mark {
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}
.app-nav a {
  border-radius: 14px;
  transition: background-color 0.25s ease, color 0.25s ease, translate 0.25s ease;
}
.app-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  translate: 3px 0;
}
.app-nav a[aria-current="page"] {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.24), rgba(52, 211, 153, 0.06));
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35);
}
.app-nav a[aria-current="page"] .icon {
  color: #34d399;
}
.app__main {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(52, 211, 153, 0.1), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(56, 189, 248, 0.06), transparent 60%),
    var(--mist);
}
.page-head {
  animation: app-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.page-title {
  letter-spacing: -0.02em;
}
.panel,
.metric {
  border-radius: 22px;
  border: 1px solid #dae6dc;
  box-shadow: 0 1px 2px rgba(10, 31, 23, 0.04), 0 20px 44px -32px rgba(10, 31, 23, 0.4);
}
.panel {
  animation: app-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.metric {
  position: relative;
  overflow: hidden;
  border-top: 1px solid #dae6dc;
  transition: translate 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  animation: app-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.metric:nth-child(2) {
  animation-delay: 0.06s;
}
.metric:nth-child(3) {
  animation-delay: 0.12s;
}
.metric:nth-child(4) {
  animation-delay: 0.18s;
}
.metric:hover {
  translate: 0 -3px;
  box-shadow: 0 26px 50px -30px rgba(16, 185, 129, 0.6);
}
.metric::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  top: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--line);
}
.metric::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -22px;
  width: 92px;
  height: 92px;
  border-radius: 0 50% 50% 50%;
  rotate: 45deg;
  background: var(--forest);
  opacity: 0.06;
  transition: scale 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.metric:hover::after {
  scale: 1.15;
  opacity: 0.1;
}
.metric--water::before,
.metric--water::after {
  background: linear-gradient(135deg, #7dd3fc, #0284c7);
}
.metric--leaf::before,
.metric--leaf::after {
  background: linear-gradient(135deg, #6ee7b7, #059669);
}
.metric--forest::before,
.metric--forest::after {
  background: linear-gradient(135deg, #34d399, #0b3a2b);
}
.metric--leaf .metric__value {
  color: #047857;
}
.progress {
  background: #e3efe6;
}
.progress__bar {
  background: linear-gradient(90deg, #10b981, #0ea5e9);
  transform-origin: 0 50%;
  animation: app-bar 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
@keyframes app-bar {
  from {
    transform: scaleX(0);
  }
}
.btn {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    translate 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}
.app .btn:not(.btn--ghost):not(.btn--ghost-dark):not(.btn--danger):not(.btn--light) {
  background: linear-gradient(135deg, #0b3a2b, #10b981);
  box-shadow: 0 12px 26px -14px rgba(16, 185, 129, 0.9);
}
.app .btn--water {
  background: linear-gradient(135deg, #0284c7, #10b981) !important;
}
.app .btn:hover {
  translate: 0 -2px;
}
.list__item {
  transition: background-color 0.2s ease;
}
.list__item:hover {
  background: #f5faf6;
}
.badge {
  border-radius: 999px;
}
.segmented a[aria-current="true"] {
  background: linear-gradient(135deg, #0b3a2b, #10b981);
  color: #fff;
}
.table tbody tr {
  transition: background-color 0.2s ease;
}
.table tbody tr:hover {
  background: #f5faf6;
}
.eco__leaf--on {
  filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.35));
}
.field input,
.field select,
.field textarea {
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}
.fieldset {
  border-radius: 22px;
  border: 1px solid #dae6dc;
}
.message {
  border-radius: 16px;
  animation: app-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.map--app {
  border-radius: 22px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .app {
    background: none;
  }
  .app-top {
    background: linear-gradient(90deg, #072b20, #03170f);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .tabbar {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
  }
  .tabbar__scan-btn {
    background: linear-gradient(135deg, #34d399, #0ea5e9) !important;
    box-shadow: 0 10px 22px -8px rgba(16, 185, 129, 0.9);
  }
}
@media (prefers-reduced-motion: reduce) {
  .app *,
  .app *::before,
  .app *::after {
    animation: none !important;
    transition: none !important;
  }
}
