:root {
  color-scheme: light;
  --bg: #f8f7f2;
  --fg: #1d2520;
  --muted: #5c6961;
  --line: #d8ded7;
  --panel: #ffffff;
  --accent: #09764a;
  --accent-strong: #075f3d;
  --soft: #eef6f1;
  --focus: #2457c5;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
}

body {
  min-height: 100vh;
  margin: 0;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}

button,
a.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

a.button.secondary {
  background: var(--panel);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--line);
}

button:hover,
a.button:hover {
  background: var(--accent-strong);
}

a.button.secondary:hover {
  background: var(--soft);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.page {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 24px;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.language-switcher a[aria-current="true"] {
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
}

.hero,
.content {
  padding: clamp(48px, 9vw, 104px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-weight: 800;
}

h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 7vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: 0;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.lead {
  max-width: 680px;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
}

.note {
  max-width: 560px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.98rem;
}

.phone {
  width: min(100%, 360px);
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  background: #151d18;
  box-shadow: 0 24px 80px rgba(18, 31, 24, 0.18);
}

.phone-screen {
  overflow: hidden;
  border-radius: 20px;
  background: #fdfdf9;
}

.phone-header {
  padding: 18px 18px 10px;
  color: var(--fg);
  font-weight: 800;
}

.scan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 18px 18px;
}

.scan-grid span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.scan-grid span:nth-child(2),
.scan-grid span:nth-child(5),
.scan-grid span:nth-child(9) {
  background: #dff0e7;
  border-color: #9bcdb7;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.feature-list li {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  color: var(--fg);
  font-weight: 650;
  line-height: 1.35;
}

.content {
  max-width: 760px;
}

.policy-meta {
  margin: 0 0 30px;
  color: var(--fg);
  font-size: 0.96rem;
  font-weight: 700;
}

.policy-section + .policy-section {
  margin-top: 28px;
}

.policy-section h2 {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

.store-panel {
  margin: 30px 0;
  border: 1px solid #c6dfd2;
  border-radius: 18px;
  padding: clamp(20px, 4vw, 30px);
  background:
    radial-gradient(circle at top right, rgba(9, 118, 74, 0.14), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f1f8f4 100%);
  box-shadow: 0 18px 60px rgba(18, 31, 24, 0.08);
}

.store-panel h2 {
  max-width: 620px;
  margin-bottom: 12px;
}

.store-kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.store-actions {
  margin-top: 22px;
}

.store-link[data-primary-store="true"] {
  order: -1;
}

html[data-store-platform="ios"] [data-store-link="android"],
html[data-store-platform="android"] [data-store-link="ios"] {
  display: none;
}

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

.benefit-list li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--panel);
}

.benefit-list strong,
.benefit-list span {
  display: block;
}

.benefit-list strong {
  margin-bottom: 6px;
  color: var(--fg);
  line-height: 1.25;
}

.benefit-list span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.link-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
}

.link-label {
  margin: 0 0 8px;
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 800;
}

.current-link {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
}

.copy-status {
  min-height: 1.4em;
  margin-top: 10px;
  color: var(--accent-strong);
  font-size: 0.94rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 6px;
}

.footer p {
  max-width: 640px;
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .page {
    padding: 18px;
  }

  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switcher {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .phone {
    width: min(100%, 320px);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }
}
