:root {
  color-scheme: light;
  --ink: #141414;
  --muted: #686c73;
  --line: #dfe2e6;
  --paper: #f8f5ef;
  --surface: #ffffff;
  --accent: #176f5a;
  --accent-dark: #0f4f43;
  --warm: #d9834f;
  --cool: #416b8f;
  --shadow: 0 20px 50px rgba(30, 35, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(248, 245, 239, 0.92);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: calc(100vh - 73px);
  padding: clamp(40px, 8vw, 92px) clamp(18px, 5vw, 72px) clamp(48px, 7vw, 88px);
}

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

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: #3f454b;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button,
.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button {
  padding: 12px 18px;
}

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

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

.phone-demo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.demo-panel {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border: 10px solid #222;
  border-radius: 28px;
  background: #111;
  box-shadow: var(--shadow);
}

.demo-panel.after {
  transform: translateY(34px);
}

.demo-panel span {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 10px;
  color: white;
  background: rgba(0, 0, 0, 0.52);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.demo-panel img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.section {
  padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article {
  min-height: 220px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-grid p,
.split-section p,
.download-band p {
  color: var(--muted);
  margin-bottom: 0;
}

.split-section,
.download-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
}

.split-section {
  background: #ffffff;
}

.download-band {
  background: #e8efe8;
}

.store-link {
  flex-direction: column;
  align-items: flex-start;
  min-width: 188px;
  padding: 12px 16px;
  color: #fff;
  background: #171717;
}

.store-link span {
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.75);
}

.store-link strong {
  font-size: 20px;
  line-height: 1.15;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  font-size: 14px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 750;
}

.policy-shell {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(38px, 6vw, 70px) 0 80px;
}

.policy-intro {
  margin-bottom: 28px;
}

.policy-intro h1 {
  font-size: clamp(36px, 7vw, 68px);
}

.policy-intro p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.language-switcher button {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.language-switcher button[aria-pressed="true"] {
  color: #fff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.policy-content {
  display: none;
  padding: clamp(24px, 5vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(30, 35, 45, 0.06);
}

.policy-content.is-active {
  display: block;
}

.policy-content h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.policy-content h3 {
  margin-top: 28px;
}

.policy-content p {
  color: #4d5359;
}

.policy-content a {
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .split-section,
  .download-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .phone-demo {
    max-width: 560px;
  }

  .demo-panel,
  .demo-panel img {
    min-height: 300px;
  }

  .demo-panel.after {
    transform: translateY(22px);
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .download-actions,
  .store-link,
  .button {
    width: 100%;
  }

  .phone-demo {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .demo-panel {
    min-height: 230px;
    border-width: 6px;
    border-radius: 20px;
  }

  .demo-panel img {
    min-height: 230px;
  }

  .site-footer {
    flex-direction: column;
  }
}
