:root {
  --green-900: #13544e;
  --green-700: #4f7d73;
  --green-600: #507d73;
  --green-500: #a9bfbc;
  --green-300: #d0dddc;
  --green-100: #ffffff;
  --light-green-900: #5dbc50;
  --light-green-700: #82c878;
  --light-green-600: #a2d697;
  --light-green-500: #c2e0bc;
  --light-green-300: #e3f3e1;
  --light-green-100: #ffffff;
  --grey-900: #171717;
  --grey-700: #4a4a49;
  --grey-600: #777776;
  --grey-500: #a8a8a8;
  --grey-300: #d1d1d1;
  --grey-100: #ffffff;
  --color-primary: #13544e;
  --color-primary-dark: #00403b;
  --color-primary-deep: #002724;
  --color-primary-soft: #d0dddc;
  --color-accent: #5dbc50;
  --color-accent-soft: #e3f3e1;
  --color-ink: #171717;
  --color-muted: #4a4a49;
  --color-border: #d1d1d1;
  --color-surface: #f8faf8;
  --color-white: #ffffff;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-max: 1040px;
  --container-narrow: 760px;
  --container-padding: 24px;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-white);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary-dark);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

body:has(.hero) .site-header {
  display: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 800;
}

.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand__name {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--color-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-primary-dark);
}

.hero {
  min-height: 92vh;
  padding: 28px 0 76px;
  overflow: hidden;
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(93, 188, 80, 0.18) 0%, rgba(93, 188, 80, 0) 32%),
    linear-gradient(160deg, var(--color-primary-deep) 0%, var(--color-primary) 52%, var(--color-primary-dark) 100%);
}

.hero__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 58px;
}

.brand--hero {
  color: var(--color-white);
}

.brand--hero .brand__icon {
  width: 44px;
  height: 44px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.hero-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  text-decoration: none;
}

.hero-nav-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  align-items: center;
  gap: 44px;
}

.hero__content {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--color-accent-soft);
}

.hero__title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero__subtitle {
  margin: 20px 0 0;
  max-width: 620px;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero__intro {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
}

.hero__intro p {
  margin: 0 0 12px;
}

.hero__intro p:last-child {
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.button--primary {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 620px;
  perspective: 1200px;
}

.phone {
  position: absolute;
  width: 330px;
  border: 10px solid var(--color-primary-deep);
  border-radius: 36px;
  background: var(--color-primary-deep);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.phone--front {
  z-index: 2;
  top: 0;
  right: 112px;
  transform: rotate(-4deg);
}

.phone--back {
  z-index: 1;
  top: 74px;
  right: -18px;
  opacity: 0.9;
  transform: rotate(9deg) scale(0.92);
}

.phone__top {
  width: 80px;
  height: 6px;
  margin: 8px auto 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}

.phone__screen {
  min-height: 548px;
  padding: 14px;
  border-radius: 24px;
  background: var(--color-surface);
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px 14px;
  color: var(--color-ink);
  font-weight: 900;
  font-size: 1.25rem;
}

.app-bar button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.35rem;
  line-height: 1;
}

.app-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--green-300);
}

.app-tabs__item {
  padding: 7px 8px;
  border-radius: 9px;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.app-tabs__item--active {
  color: var(--color-primary-dark);
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(23, 23, 23, 0.08);
}

.task-list {
  display: flex;
  flex-direction: column;
}

.task-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 13px;
  padding: 13px;
  margin-bottom: 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(23, 23, 23, 0.08);
}

.task-card__image {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: var(--radius);
  border: 1px solid var(--green-300);
  background: var(--color-surface);
}

.task-card__image::before,
.task-card__image::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
}

.task-card__image--garden::before {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(19, 84, 78, 0.48);
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 18px;
  transform: translate(-50%, -44%) rotate(-18deg);
}

.task-card__image--garden::after {
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: rgba(19, 84, 78, 0.42);
  box-shadow: 0 10px 0 rgba(19, 84, 78, 0.26);
  transform: translate(-50%, 10px);
}

.task-card__image--shopping {
  background: var(--light-green-300);
}

.task-card__image--shopping::before {
  width: 34px;
  height: 26px;
  border: 3px solid rgba(19, 84, 78, 0.36);
  border-radius: 5px 5px 9px 9px;
  transform: translate(-50%, -34%);
}

.task-card__image--shopping::after {
  width: 22px;
  height: 12px;
  border: 3px solid rgba(19, 84, 78, 0.28);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  transform: translate(-50%, -28px);
}

.task-card__image--moving {
  background: var(--green-300);
}

.task-card__image--moving::before {
  width: 36px;
  height: 30px;
  border: 3px solid rgba(74, 74, 73, 0.34);
  border-radius: 6px;
  transform: translate(-50%, -50%);
}

.task-card__image--moving::after {
  width: 3px;
  height: 30px;
  background: rgba(74, 74, 73, 0.28);
  box-shadow: 11px -9px 0 -1px rgba(74, 74, 73, 0.2);
  transform: translate(-50%, -50%) rotate(90deg);
}

.task-card__body {
  min-width: 0;
}

.task-card h3 {
  margin: 0 0 6px;
  color: var(--color-ink);
  font-size: 0.96rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-card__budget {
  margin: 0 0 6px;
  color: var(--color-accent);
  font-weight: 800;
}

.task-card__state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--grey-500);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 800;
}

.task-card__state--assigned {
  background: var(--color-primary);
}

.task-card__tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.task-card__tags span {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.68rem;
  line-height: 1.2;
}

.map-preview {
  position: relative;
  min-height: 500px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(19, 84, 78, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(19, 84, 78, 0.11) 1px, transparent 1px),
    var(--light-green-300);
  background-size: 42px 42px;
}

.map-preview::before,
.map-preview::after {
  content: "";
  position: absolute;
  inset: 64px 24px auto;
  height: 160px;
  border: 8px solid rgba(19, 84, 78, 0.22);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 80px 0 0;
}

.map-preview::after {
  inset: auto 34px 84px 42px;
  height: 170px;
  border: 8px solid rgba(93, 188, 80, 0.22);
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 80px;
}

.map-pin {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 8px solid var(--color-white);
  border-radius: 50% 50% 50% 0;
  background: var(--color-primary);
  box-shadow: 0 12px 24px rgba(23, 23, 23, 0.16);
  transform: rotate(-45deg);
}

.map-pin--one {
  top: 96px;
  left: 62px;
}

.map-pin--two {
  top: 228px;
  right: 70px;
  background: var(--color-accent);
}

.map-pin--three {
  bottom: 92px;
  left: 104px;
}

.section-title {
  margin: 0 0 28px;
  font-size: 2rem;
  line-height: 1.15;
}

.how {
  padding: 72px 0;
  background: var(--color-white);
}

.how__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.how__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.how__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-primary-dark);
  font-weight: 800;
}

.how__item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.how__item p {
  margin: 0;
  color: var(--color-muted);
}

.faq {
  padding: 72px 0;
  background: var(--color-surface);
}

.faq .container {
  max-width: var(--container-narrow);
}

.faq__item {
  border-top: 1px solid var(--color-border);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: var(--color-primary);
  mask: url("/icons/chevron-down.svg") center / contain no-repeat;
  transition: transform 0.18s ease;
}

.faq__item[open] .faq__question::after {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 0 18px;
  color: var(--color-muted);
}

.faq__answer p {
  margin: 0 0 10px;
}

.page {
  padding: 56px 0 76px;
}

.page .container {
  max-width: var(--container-narrow);
}

.page__header {
  margin-bottom: 32px;
}

.page__header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.page__content h2 {
  margin-top: 34px;
  font-size: 1.45rem;
}

.page__content p,
.page__content li {
  color: var(--color-muted);
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--color-muted);
}

@media (max-width: 860px) {
  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    min-height: auto;
    padding: 28px 0 56px;
  }

  .hero__nav {
    margin-bottom: 44px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    min-width: 0;
  }

  .hero__visual {
    min-height: 620px;
  }

  .phone--front {
    right: auto;
    left: 32px;
  }

  .phone--back {
    right: 18px;
  }

  .how__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  :root {
    --container-padding: 18px;
  }

  .hero__nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .hero-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(352px, calc(100vw - (var(--container-padding) * 2)));
    border-radius: 18px;
  }

  .hero-nav-links a {
    text-align: center;
  }

  .hero-nav-links a:last-child {
    grid-column: 1 / -1;
  }

  .hero__title {
    font-size: clamp(2.9rem, 16vw, 4rem);
  }

  .hero__content,
  .hero__subtitle,
  .hero__intro {
    width: min(352px, calc(100vw - (var(--container-padding) * 2)));
    max-width: min(352px, calc(100vw - (var(--container-padding) * 2)));
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero__visual {
    min-height: 600px;
    margin: 0 -18px;
    overflow: hidden;
  }

  .phone {
    width: 304px;
    border-width: 8px;
  }

  .phone__screen {
    min-height: 520px;
    padding: 12px;
  }

  .phone--front {
    left: 14px;
    transform: rotate(-3deg);
  }

  .phone--back {
    top: 88px;
    right: -84px;
    opacity: 0.72;
  }

  .task-card {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 11px;
    padding: 11px;
  }

  .task-card__image {
    width: 74px;
    height: 74px;
  }

}
