:root {
  --green: #0b6b49;
  --green-dark: #064b35;
  --green-soft: #dceee5;
  --ink: #102019;
  --muted: #5d6b64;
  --paper: #f4f5f0;
  --warm: #eee7d8;
  --white: #ffffff;
  --line: rgba(16, 32, 25, 0.14);
  --focus: #f0c868;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  padding-top: max(10px, env(safe-area-inset-top));
  color: var(--white);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 9px;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(44px, 1fr));
  min-height: 44px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(6, 75, 53, 0.74);
}

.language-switch button {
  min-width: 44px;
  min-height: 36px;
  padding: 0 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--green-dark);
  background: var(--white);
}

.hero {
  position: relative;
  height: min(880px, 92svh);
  min-height: 720px;
  overflow: hidden;
  color: var(--white);
  background: var(--green);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: max(104px, calc(env(safe-area-inset-top) + 90px));
  text-align: center;
}

.app-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 21px;
  box-shadow: 0 18px 38px rgba(3, 45, 31, 0.24);
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: #d8f0e4;
}

.hero h1 {
  margin: 0;
  font-size: 52px;
  font-weight: 820;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lead {
  margin: 14px auto 0;
  font-size: 24px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-detail {
  max-width: 590px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.45;
}

.store-links {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  margin-top: 20px;
  gap: 12px;
}

.store-link {
  display: grid;
  place-items: center;
  min-width: 176px;
  min-height: 54px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.store-link:hover {
  transform: translateY(-2px);
}

.store-link:active {
  transform: translateY(0);
  opacity: 0.82;
}

.store-link-apple img {
  width: 179px;
  height: 60px;
}

.store-link-google {
  width: 194px;
  overflow: hidden;
}

.store-link-google img {
  width: 194px;
  height: 75px;
  object-fit: contain;
}

.store-note {
  margin: -2px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.3;
}

.product-stage {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: min(820px, 100%);
  height: 342px;
  margin: 0 auto;
  pointer-events: none;
}

.device {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 244px;
  margin: 0;
  overflow: hidden;
  border: 7px solid #13231d;
  border-bottom: 0;
  border-radius: 29px 29px 0 0;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(1, 33, 22, 0.34);
  transform-origin: center bottom;
}

.device img {
  width: 100%;
  height: auto;
}

.device-profile {
  z-index: 1;
  margin-left: -250px;
  transform: rotate(-4deg) translateY(36px);
  opacity: 0.88;
}

.device-home {
  z-index: 2;
  width: 265px;
  margin-left: 10px;
  transform: rotate(3deg);
}

.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.benefits {
  padding: 82px 0 88px;
  background: var(--paper);
}

.section-kicker {
  color: var(--green);
}

.benefits h2,
.final-download h2 {
  max-width: 700px;
  margin: 0;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
  gap: 34px;
}

.benefit-item {
  padding-top: 20px;
  border-top: 2px solid var(--green);
}

.benefit-number {
  display: block;
  margin-bottom: 28px;
  color: var(--green);
  font-size: 14px;
  font-weight: 820;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.benefit-item h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.benefit-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.final-download {
  padding: 76px 0 80px;
  color: var(--ink);
  background: var(--warm);
}

.final-download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 18px;
}

.final-download h2 {
  text-align: center;
}

.final-download p {
  max-width: 560px;
  margin: 14px auto 0;
  color: #5b5a52;
  font-size: 17px;
  line-height: 1.5;
}

.store-links-final {
  margin-top: 22px;
}

.footer {
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}

.footer nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 680;
}

@media (max-width: 760px) {
  .topbar,
  .section-shell {
    width: calc(100% - 28px);
  }

  .topbar {
    min-height: 64px;
  }

  .brand span {
    font-size: 15px;
  }

  .hero {
    height: 92svh;
    min-height: 735px;
  }

  .hero-copy {
    width: calc(100% - 28px);
    padding-top: max(86px, calc(env(safe-area-inset-top) + 74px));
  }

  .app-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 11px;
    border-radius: 18px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-lead {
    margin-top: 10px;
    font-size: 20px;
  }

  .hero-detail {
    max-width: 430px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
  }

  .store-links {
    min-height: 60px;
    margin-top: 14px;
    gap: 3px;
  }

  .store-link {
    min-width: 146px;
    min-height: 48px;
  }

  .store-link-apple img {
    width: 151px;
    height: auto;
  }

  .store-link-google {
    width: 164px;
  }

  .store-link-google img {
    width: 164px;
    height: auto;
  }

  .store-note {
    margin-top: 0;
  }

  .product-stage {
    width: 420px;
    max-width: 100%;
    height: 285px;
  }

  .device {
    top: 15px;
    width: 190px;
    border-width: 6px;
    border-radius: 24px 24px 0 0;
  }

  .device-profile {
    margin-left: -190px;
    transform: rotate(-4deg) translateY(36px);
  }

  .device-home {
    width: 210px;
    margin-left: -3px;
  }

  .benefits {
    padding: 60px 0 64px;
  }

  .benefits h2,
  .final-download h2 {
    font-size: 30px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
    gap: 30px;
  }

  .benefit-number {
    margin-bottom: 18px;
  }

  .final-download {
    padding: 62px 0 64px;
  }

  .store-links-final {
    margin-top: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer nav {
    flex-wrap: wrap;
    gap: 4px 18px;
  }
}

@media (max-width: 370px) {
  .brand span {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-detail {
    font-size: 13px;
  }

  .store-links {
    gap: 0;
  }

  .store-link {
    min-width: 138px;
  }

  .store-link-apple img {
    width: 143px;
  }

  .store-link-google,
  .store-link-google img {
    width: 154px;
  }
}

@media (max-height: 720px) and (max-width: 760px) {
  .hero {
    height: 92svh;
    min-height: 640px;
  }

  .hero-copy {
    padding-top: max(76px, calc(env(safe-area-inset-top) + 68px));
  }

  .app-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 7px;
    border-radius: 14px;
  }

  .eyebrow {
    margin-bottom: 5px;
  }

  .hero h1 {
    font-size: 35px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-detail {
    max-width: 400px;
    font-size: 13px;
  }

  .store-links {
    margin-top: 9px;
  }

  .store-note {
    display: none;
  }

  .product-stage {
    height: 205px;
  }

  .device {
    top: 0;
    width: 160px;
  }

  .device-profile {
    margin-left: -160px;
  }

  .device-home {
    width: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .store-link {
    transition: none;
  }
}
