:root {
  --color-primary: #ea580c;
  --color-primary-hover: #c2410c;
  --color-foreground: #1a1a1a;
  --color-muted: #7c2d12;
  --color-card: #ffffff;
  --color-surface-from: #fef9c3;
  --color-surface-via: #ffedd5;
  --color-surface-to: #fef3c7;
  --color-background: #fde8d7;
  --header-height: 68px;
  --sticky-bar-height: 76px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(124, 45, 18, 0.14);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  color: var(--color-foreground);
  background:
    linear-gradient(
      180deg,
      var(--color-surface-from) 0%,
      var(--color-surface-via) 42%,
      var(--color-background) 100%
    );
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 30;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
  padding: 10px 20px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: rgba(254, 249, 195, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(234, 88, 12, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.brand img {
  width: 36px;
  height: 36px;
}

.header-stores.store-row {
  display: none;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

html[data-platform='android'] .store-btn-play {
  order: -1;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 6px 14px 6px 10px;
  border-radius: 18px;
  background: linear-gradient(
    165deg,
    #fffbeb 0%,
    #fef9c3 42%,
    #fde68a 100%
  );
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.12);
  color: #111;
  text-decoration: none;
}

.store-badge-icon {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-badge-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.05;
}

.store-badge-kicker {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.store-badge-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.header-stores .store-btn {
  min-height: 40px;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.1);
}

.header-stores .store-badge-icon {
  width: 20px;
  height: 20px;
}

.header-stores .store-badge-kicker {
  font-size: 0.5rem;
}

.header-stores .store-badge-name {
  font-size: 0.85rem;
}

.hero,
.features,
.footer-cta,
.site-footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 36px;
  padding: 36px 0 24px;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--color-primary);
}

.hero-copy p {
  margin: 0 0 22px;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--color-muted);
}

.hero-copy .store-row {
  gap: 8px;
}

.hero-phones,
.feature-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: visible;
  padding: 12px 0 40px;
}

.hero-phones figure,
.feature-media figure {
  flex: 0 0 34%;
  min-width: 0;
  margin: 0 0 0 -3%;
  filter: drop-shadow(0 20px 60px rgba(199, 90, 0, 0.2));
}

.hero-phones figure:first-child,
.feature-media figure:first-child {
  margin-left: 0;
}

.hero-phones figure:nth-child(1) {
  transform: rotate(-2deg) translateY(10px);
  z-index: 1;
}

.hero-phones figure:nth-child(2) {
  z-index: 3;
}

.hero-phones figure:nth-child(3) {
  transform: rotate(2deg) translateY(10px);
  z-index: 2;
}

.feature-media figure {
  flex-basis: 46%;
  margin-left: -6%;
}

.feature-media figure:first-child {
  transform: rotate(-3deg) translateY(8px);
  z-index: 1;
}

.feature-media figure:last-child {
  transform: rotate(3deg) translateY(8px);
  z-index: 2;
}

.feature-media:has(figure:nth-child(3)) figure {
  flex-basis: 34%;
  margin-left: -3%;
}

.feature-media:has(figure:nth-child(3)) figure:first-child {
  transform: rotate(-2deg) translateY(10px);
  z-index: 1;
}

.feature-media:has(figure:nth-child(3)) figure:nth-child(2) {
  transform: none;
  z-index: 3;
}

.feature-media:has(figure:nth-child(3)) figure:last-child {
  transform: rotate(2deg) translateY(10px);
  z-index: 2;
}

.phone {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  border-radius: 16px;
  overflow: hidden;
  background: #fff7ed;
}

.features {
  display: grid;
  gap: 8px;
  padding: 8px 0 48px;
}

.feature {
  display: grid;
  gap: 28px;
  padding: 40px 0 48px;
  border-top: 1px solid rgba(234, 88, 12, 0.1);
}

.feature:first-child {
  border-top: none;
}

.feature-copy {
  max-width: 26rem;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--color-primary);
}

.feature p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.footer-cta {
  text-align: center;
  padding: 12px 0 32px;
}

.footer-cta h2 {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: -0.04em;
}

.footer-cta p {
  margin: 0 0 20px;
  color: var(--color-muted);
}

.footer-cta .store-row {
  justify-content: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 calc(28px + var(--sticky-bar-height) + env(safe-area-inset-bottom));
  color: var(--color-muted);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a {
  font-weight: 600;
}

.sticky-download {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(254, 249, 195, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(234, 88, 12, 0.1);
}

.sticky-download .store-btn {
  flex: 1 1 140px;
  max-width: 220px;
  min-height: 48px;
  padding: 6px 12px;
}

html[data-in-app-browser] .header-stores.store-row {
  display: none;
}

html[data-in-app-browser] .sticky-download {
  display: flex;
}

@media (min-width: 800px) {
  html:not([data-in-app-browser]) .header-stores.store-row {
    display: flex;
  }

  html:not([data-in-app-browser]) .sticky-download {
    display: none;
  }

  html:not([data-in-app-browser]) .site-footer {
    padding-bottom: 36px;
  }

  html:not([data-in-app-browser]) .hero {
    grid-template-columns: minmax(260px, 0.7fr) 1.4fr;
    align-items: center;
    padding-top: 56px;
  }

  html:not([data-in-app-browser]) .hero-phones {
    padding: 8px 0 20px;
  }

  html:not([data-in-app-browser]) .phone {
    border-radius: 36px;
  }

  html:not([data-in-app-browser]) .feature {
    grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
    align-items: center;
    gap: 40px;
    padding: 56px 0 64px;
  }

  html:not([data-in-app-browser]) .feature:nth-child(even) {
    grid-template-columns: 1.15fr minmax(260px, 0.85fr);
  }

  html:not([data-in-app-browser]) .feature:nth-child(even) .feature-copy {
    order: 2;
  }

  html:not([data-in-app-browser]) .feature-media {
    padding: 8px 0 24px;
  }
}
