:root {
  color-scheme: light;
  --paper: #f8f8ee;
  --white: #fffff7;
  --ink: #192c24;
  --muted: #4c5d52;
  --green: #294d3b;
  --lime: #def18b;
  --lime-soft: #eff6d4;
  --line: #d8ded0;
  --header-height: 74px;
  --display: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--body); }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #4b6f17; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: .98; }
h2 { font-size: clamp(3.25rem, 6vw, 6rem); letter-spacing: -.035em; }
.container { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 124px); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 16px; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  background: rgb(248 248 238 / 89%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: background .2s, box-shadow .2s;
}
.site-header.is-scrolled { background: var(--paper); box-shadow: 0 5px 24px rgb(25 44 36 / 8%); }
.nav-shell { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.05rem; font-weight: 800; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand img { width: 38px; border-radius: 11px; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 37px); }
.site-nav > a:not(.button) { font-size: .92rem; font-weight: 650; text-decoration: none; }
.site-nav > a:not(.button):hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: .95rem;
  font-weight: 750;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.button:hover { background: var(--green); border-color: var(--green); }
.button--nav { padding-inline: 16px; min-height: 42px; font-size: .85rem; }
.button--lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.button--lime:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.arrow { font-size: 1.1em; }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: .95rem; font-weight: 750; text-underline-offset: 5px; }
.text-link:hover { text-decoration-thickness: 2px; }

.hero { padding-block: calc(var(--header-height) + clamp(32px, 6vw, 80px)) clamp(48px, 7vw, 96px); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--green); font-size: .77rem; font-weight: 760; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #66813d; }
h1 { margin-block: 24px 22px; font-size: clamp(4.3rem, 8vw, 8.3rem); letter-spacing: -.047em; }
h1 em { display: block; color: var(--green); font-weight: 400; }
.hero-copy > p { max-width: 42ch; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.16rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 30px; }

.hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 544px;
  padding: 37px 18px;
  border: 1px solid #d7e3ae;
  border-radius: 48% 48% 24px 24px / 36% 36% 24px 24px;
  background: radial-gradient(ellipse at 55% 30%, #faffd8, transparent 60%), #e3efb7;
}
.hero-stage::before, .hero-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 140%;
  height: 47%;
  border: 1px solid #7c975a;
  border-radius: 50%;
  transform: rotate(-28deg);
}
.hero-stage::after { transform: rotate(28deg); }
.phone {
  width: min(55%, 246px);
  padding: 7px;
  border: 2px solid #54715a;
  border-radius: 30px;
  background: #151e1a;
  box-shadow: 22px 32px 55px rgb(37 63 38 / 34%);
  transform: rotate(7deg);
}
.phone img { width: 100%; border-radius: 21px; }

.feature-section { border-block: 1px solid var(--line); background: var(--lime-soft); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px 58px; align-items: end; margin-bottom: 42px; }
.section-head > p { max-width: 37ch; color: var(--muted); }
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}
.feature { min-height: 164px; padding: 26px; background: var(--white); }
.feature h3, .step h3 { margin-bottom: 8px; font-size: 1.19rem; letter-spacing: -.03em; }
.feature p, .step p { max-width: 34ch; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.step { padding-top: 22px; border-top: 1px solid var(--line); }
.step span { display: grid; width: 36px; height: 36px; place-items: center; margin-bottom: 16px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: .87rem; font-weight: 800; }
.launcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 54px;
  align-items: center;
  padding: clamp(34px, 6vw, 80px);
  border-radius: 24px;
  color: var(--white);
  background: var(--green);
}
.launcher h2 { max-width: 12ch; }
.launcher p { max-width: 51ch; color: var(--white); }
.launcher p + p { margin-top: 12px; }
.launcher strong { color: var(--lime); font-weight: 750; }

.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 16px; }
.gallery-wide { grid-column: 1 / -1; }
.gallery-item {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(10px, 1.5vw, 22px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #edf0e2;
  text-decoration: none;
}
.gallery figure:nth-child(3n+2) .gallery-item { background: #eff4d9; }
.gallery figure:nth-child(3n) .gallery-item { background: #e3eee5; }
.gallery-item img { width: 100%; border-radius: 9px; box-shadow: 0 12px 28px rgb(25 44 36 / 15%); transition: transform .22s; }
.gallery-wide .gallery-item { padding: clamp(14px, 4vw, 42px); background: #e3eee5; }
.gallery-wide img { max-width: 808px; }
.gallery-item:hover img { transform: scale(1.025); }
.expand {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.1rem;
}
.gallery figcaption { padding: 8px 2px 0; font-weight: 700; }

.lightbox {
  position: fixed;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  padding: 58px 14px 14px;
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
}
.lightbox::backdrop { background: rgb(12 22 17 / 83%); }
.lightbox img { width: auto; max-width: 100%; max-height: min(76dvh, 850px); margin-inline: auto; object-fit: contain; }
.lightbox-close { position: absolute; top: 10px; right: 14px; min-height: 38px; padding: 4px 13px; border: 1px solid var(--white); border-radius: 100px; background: transparent; color: var(--white); }
.lightbox-close:focus-visible, .download a:focus-visible { outline-color: var(--lime); }

.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px 44px; padding-block: 30px 40px; border-top: 1px solid var(--line); }
.privacy h2 { font-size: clamp(2.4rem, 4.4vw, 4rem); }
.privacy p { max-width: 61ch; color: var(--muted); }
.privacy .text-link { margin-top: 10px; }
.download { padding-block: clamp(52px, 8vw, 100px); background: var(--ink); color: var(--white); }
.download-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.download h2 { max-width: 14ch; }
.footer { padding-block: 42px 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 28px; }
.footer h2 { margin-bottom: 8px; font: 800 1rem/1.5 var(--body); letter-spacing: 0; }
.footer p, .footer address { color: var(--muted); }
.footer address { font-style: normal; }
.footer a { overflow-wrap: anywhere; text-underline-offset: 3px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.footer-end { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal-ready [data-reveal].is-visible, .reveal-ready [data-reveal]:focus-within { opacity: 1; transform: none; }

@media (max-width: 1010px) {
  .container { width: min(1240px, calc(100% - 64px)); }
  .hero-layout { gap: 32px; }
  .hero-stage { min-height: 420px; }
  .phone { width: min(57%, 204px); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --header-height: 66px; }
  .container { width: calc(100% - 40px); }
  .nav-shell { flex-wrap: wrap; gap: 0 12px; padding-block: 10px; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: .89rem; font-weight: 750; }
  .site-nav { width: 100%; padding-block: 12px 6px; flex-wrap: wrap; gap: 12px 18px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  html:not(.js) { --header-height: 124px; }
  .hero-layout, .section-head, .launcher, .privacy { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { min-height: 0; padding-block: 36px; }
  .phone { width: min(53%, 219px); }
  .section-head { margin-bottom: 28px; }
  .features, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { min-height: 0; padding: 20px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 400px) {
  .container { width: calc(100% - 32px); }
  h1 { font-size: 3.9rem; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .gallery { gap: 20px 12px; }
  .gallery-item { padding: 10px; }
  .expand { right: 6px; bottom: 6px; }
}

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