:root {
  --color-bg: #f3faf5;
  --color-surface: #ffffff;
  --color-surface-soft: #e7f5ec;
  --color-surface-strong: #d4eddd;
  --color-ink: #14231c;
  --color-muted: #5a6d62;
  --color-primary: #087a4e;
  --color-primary-dark: #045f3c;
  --color-accent: #d89b2b;
  --color-border: #d6e8dc;
  --shadow-soft: 0 18px 50px rgba(8, 122, 78, 0.14);
  --shadow-card: 0 14px 32px rgba(20, 35, 28, 0.08);
  --radius: 18px;
  --radius-small: 12px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(216, 155, 43, 0.12), transparent 280px),
    linear-gradient(180deg, #eaf7ef 0%, #f7fbf8 500px),
    var(--color-bg);
  color: var(--color-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.site-header {
  align-items: center;
  background: rgba(247, 251, 248, 0.94);
  border: 1px solid rgba(214, 232, 220, 0.9);
  border-radius: 0 0 var(--radius) var(--radius);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--color-ink);
  display: inline-flex;
  font-weight: 850;
  gap: 10px;
  letter-spacing: 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--color-ink);
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(8, 122, 78, 0.16);
  flex: 0 0 40px;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero,
.section,
.site-footer,
.legal-hero,
.legal-content {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max-width);
  padding-left: 24px;
  padding-right: 24px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: calc(100vh - 82px);
  padding-bottom: 68px;
  padding-top: 70px;
}

.hero-copy {
  max-width: 760px;
}

.hero-logo {
  height: auto;
  margin-bottom: 26px;
  max-width: min(360px, 88vw);
}

.eyebrow {
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.75rem, 7.4vw, 5.4rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.06rem;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-subtitle,
.section-heading p,
.availability-copy p,
.text-panel p,
.legal-hero p {
  color: var(--color-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.store-availability {
  margin-top: 24px;
}

.store-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.store-badge:hover,
.store-badge:focus-visible {
  text-decoration: none;
}

.store-badge img {
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(20, 35, 28, 0.1);
  height: 58px;
  object-fit: contain;
  width: auto;
}

.store-badge.is-disabled {
  cursor: default;
  pointer-events: none;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
}

.button:hover,
.button:focus-visible {
  text-decoration: none;
}

.button-primary {
  background: var(--color-primary);
  box-shadow: 0 12px 28px rgba(8, 122, 78, 0.2);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-primary-dark);
  color: #ffffff;
}

.button-secondary {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.hero-carousel {
  align-items: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.carousel-phone {
  max-width: 340px;
  width: min(100%, 340px);
}

.carousel-viewport {
  border-radius: 24px;
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-slide {
  border-radius: 24px;
  height: 100%;
  inset: 0;
  object-fit: contain;
  object-position: center top;
  opacity: 0;
  position: absolute;
  transform: translateX(10px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
  width: 100%;
}

.carousel-slide.is-active {
  opacity: 1;
  position: relative;
  transform: translateX(0);
}

.carousel-dots {
  display: flex;
  gap: 9px;
  justify-content: center;
}

.carousel-dot {
  background: rgba(8, 122, 78, 0.2);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 10px;
  padding: 0;
  transition:
    background 220ms ease,
    width 220ms ease;
  width: 10px;
}

.carousel-dot.is-active {
  background: var(--color-primary);
  width: 28px;
}

.carousel-dot:focus-visible {
  outline: 3px solid rgba(8, 122, 78, 0.28);
  outline-offset: 3px;
}

.section {
  padding-bottom: 76px;
  padding-top: 76px;
}

.section-heading {
  max-width: 760px;
}

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

.workflow-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.workflow-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-height: 230px;
  padding: 24px;
}

.workflow-card p {
  color: var(--color-muted);
  margin-bottom: 0;
}

.card-icon {
  align-items: center;
  background: var(--color-surface-soft);
  border: 1px solid rgba(8, 122, 78, 0.14);
  border-radius: 14px;
  color: var(--color-primary);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 18px;
  width: 44px;
}

.card-icon svg {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 24px;
}

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

.benefit-intro {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  text-align: center;
}

.benefit-intro p {
  color: var(--color-muted);
  font-size: 1.1rem;
}

.star-line {
  color: var(--color-accent);
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  line-height: 1;
  margin: 8px 0 18px;
}

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

.benefit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  min-height: 214px;
  padding: 24px;
}

.benefit-card h3 {
  margin-bottom: 10px;
}

.benefit-card p {
  color: var(--color-muted);
  margin-bottom: 0;
}

.benefit-card-icon {
  background: #fbf6ea;
  border-color: rgba(216, 155, 43, 0.24);
  color: var(--color-accent);
}

.screen-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.screen-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px;
}

.screen-card h3 {
  margin-top: 18px;
}

.screen-card p {
  color: var(--color-muted);
  margin-bottom: 0;
}

.phone-frame {
  align-items: center;
  aspect-ratio: 9 / 18.4;
  background: linear-gradient(180deg, #ffffff 0%, #f3faf5 100%);
  border: 2px solid #123426;
  border-radius: 34px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 16px 34px rgba(20, 35, 28, 0.14);
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 24px 8px 10px;
  position: relative;
}

.phone-frame::before {
  background: rgba(18, 52, 38, 0.18);
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 50%;
  position: absolute;
  top: 11px;
  transform: translateX(-50%);
  width: 42px;
  z-index: 2;
}

.phone-frame::after {
  background: rgba(18, 52, 38, 0.22);
  border-radius: 999px;
  content: "";
  height: 6px;
  position: absolute;
  right: calc(50% - 36px);
  top: 10px;
  width: 6px;
  z-index: 2;
}

.screenshot-button {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 0;
  width: 100%;
}

.screenshot-button:focus-visible {
  border-radius: 24px;
  outline: 3px solid rgba(8, 122, 78, 0.35);
  outline-offset: 3px;
}

.screenshot-button img {
  border-radius: 24px;
  box-shadow: 0 8px 18px rgba(20, 35, 28, 0.08);
  height: 100%;
  object-fit: contain;
  object-position: center top;
  width: 100%;
}

.lightbox {
  align-items: center;
  background: rgba(6, 20, 14, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  max-height: 92vh;
  max-width: 92vw;
  position: relative;
}

.lightbox-content figure {
  margin: 0;
}

.lightbox-image {
  background: var(--color-surface);
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  height: auto;
  max-height: 88vh;
  max-width: 92vw;
  object-fit: contain;
  width: auto;
}

.lightbox-caption {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 750;
  margin-top: 12px;
  text-align: center;
}

.lightbox-close {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid rgba(214, 232, 220, 0.9);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  color: var(--color-ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.7rem;
  font-weight: 600;
  height: 44px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: -14px;
  top: -14px;
  width: 44px;
  z-index: 2;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--color-primary);
  color: #ffffff;
  outline: none;
}

.split-section {
  align-items: start;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.text-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

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

.availability {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(8, 122, 78, 0.1), rgba(216, 155, 43, 0.12)),
    var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 76px;
  padding-bottom: 34px;
  padding-top: 34px;
}

.availability .store-badges {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.availability .store-badge img {
  height: 64px;
}

.availability-copy {
  max-width: 760px;
}

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

.site-footer {
  align-items: start;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 34px;
  padding-top: 34px;
}

.site-footer strong {
  color: var(--color-ink);
}

.site-footer p {
  margin-bottom: 0;
}

.footer-copy {
  color: #728278;
  font-size: 0.88rem;
  margin-top: 6px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: flex-end;
}

.legal-main {
  padding-bottom: 64px;
}

.legal-hero {
  padding-bottom: 28px;
  padding-top: 58px;
}

.legal-hero h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  max-width: 860px;
}

.legal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding-bottom: 36px;
  padding-top: 36px;
}

.legal-content h2 {
  font-size: 1.45rem;
  margin-bottom: 12px;
  margin-top: 34px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 24px;
}

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

.legal-content ul {
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 6px;
}

.contact-box {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  margin-top: 24px;
  padding: 18px;
}

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

.legal-document-meta {
  border-top: 1px solid var(--color-border);
  color: #728278;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 28px 0 0;
  padding-top: 16px;
}

.legal-document-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1020px) {
  .workflow-grid,
  .benefit-grid,
  .screen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 52px;
  }

  .hero-carousel {
    max-width: 620px;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .availability,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .availability .store-badges {
    justify-content: flex-start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    position: static;
  }

  .site-nav {
    gap: 12px 16px;
    justify-content: flex-start;
  }

  .hero,
  .section,
  .site-footer,
  .legal-hero,
  .legal-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    gap: 34px;
    padding-bottom: 44px;
    padding-top: 36px;
  }

  .hero-logo {
    margin-bottom: 22px;
    max-width: 300px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .store-badges {
    align-items: center;
    flex-direction: row;
  }

  .store-badge img,
  .availability .store-badge img {
    height: 52px;
  }

  .text-panel {
    padding: 20px;
  }

  .carousel-phone {
    max-width: 300px;
  }

  .workflow-grid,
  .benefit-grid,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  .workflow-card,
  .benefit-card {
    min-height: 0;
  }

  .phone-frame {
    margin-left: auto;
    margin-right: auto;
    max-width: 280px;
    width: 100%;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-image {
    border-radius: 22px;
    max-height: 84vh;
    max-width: 92vw;
  }

  .lightbox-close {
    right: -6px;
    top: -12px;
  }

  .section {
    padding-bottom: 50px;
    padding-top: 50px;
  }

  .availability {
    margin-bottom: 50px;
  }

  .legal-document-meta {
    font-size: 0.84rem;
  }
}

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

  .carousel-slide,
  .carousel-dot {
    transition: none;
  }
}
