:root {
  --bg: #ffeed0;
  --bg-card: #fffcf8;
  --border: #f4e0bb;
  --text: #40434d;
  --text-muted: #6f7380;
  --accent: #fcbc19;
  --accent-dark: #e6a800;
  --link: #9a2c4f;
  --font-display: "Luckiest Guy", cursive;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --content-max: 640px;
  --about-max: 720px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(64, 67, 77, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: none;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 24px;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.top-nav .brand {
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.top-nav .brand:hover {
  color: var(--text);
}

.top-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
}

.top-nav-links a:hover {
  color: var(--link);
}

.top-nav-links a[aria-current="page"] {
  font-weight: 600;
  color: var(--link);
}

main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 48px);
}

.hero,
.about,
.legal,
.section-divider {
  width: 100%;
  max-width: var(--about-max);
  margin-inline: auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 40px 0 48px;
}

.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: var(--shadow), 0 8px 24px rgba(64, 67, 77, 0.12);
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.hero .tagline {
  margin: 0 0 24px;
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: var(--text-muted);
}

.hero .lead {
  margin: 0 0 32px;
  font-size: 1.0625rem;
  max-width: 36em;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 24px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg-card);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, transform 0.15s ease;
}

.store-button:hover {
  background: #2d3038;
  color: var(--bg-card);
  transform: translateY(-1px);
}

.store-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.trust-line {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-phones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 48px 0;
  overflow: visible;
}

.phone-mockup {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 220px;
}

.hero-phones .phone-mockup:first-child {
  transform: translateY(-24px) rotate(-6deg);
  z-index: 1;
}

.hero-phones .phone-mockup:last-child {
  transform: translateY(24px) rotate(6deg);
  margin-left: -80px;
  z-index: 2;
}

.phone-mockup .phone-screen {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 15%;
  padding: 8px;
  box-sizing: border-box;
}

.phone-mockup .phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.phone-mockup .phone-frame-img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 25px 50px -12px rgba(0, 0, 0, 0.15));
}

@media (min-width: 640px) {
  .phone-mockup {
    width: 260px;
  }
}

@media (min-width: 768px) {
  .phone-mockup {
    width: 280px;
  }
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 8px auto;
  padding: 0;
}

.section-divider__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-divider__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.about {
  padding: 0 0 64px;
}

.about>section {
  padding: 32px 0;
}

.about .kicker {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.about h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.about p {
  margin: 0 0 12px;
}

.about ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

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

.closing-tagline {
  margin: 16px 0 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-align: center;
}

.site-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
}

@media (max-width: 600px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
  }

  main {
    padding-inline: 20px;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .phone-mockup {
    width: 140px;
  }

  .hero-phones .phone-mockup:last-child {
    margin-left: -50px;
  }

  .section-divider {
    gap: 12px;
  }

  .section-divider__icon {
    width: 44px;
    height: 44px;
  }

  .about {
    padding-bottom: 48px;
  }

  .about>section {
    padding: 24px 0;
  }

  .store-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .store-button {
    width: 100%;
  }

  .site-footer {
    padding: 20px;
  }

  .legal {
    padding: 32px 0 48px;
  }
}

/* Legal pages (Privacy, Terms, Support) */
.legal {
  padding: 40px 0 64px;
}

.legal h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.legal .updated {
  margin: 0 0 28px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal .lead {
  margin: 0 0 20px;
  font-size: 1.0625rem;
}

.legal section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.legal h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.legal p {
  margin: 0 0 12px;
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

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

.legal .table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal th,
.legal td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.legal tr:last-child th,
.legal tr:last-child td {
  border-bottom: none;
}

.legal th {
  font-weight: 600;
  background: rgba(252, 188, 25, 0.12);
}

.legal .table-wrap th:first-child {
  width: 38%;
}

.legal .closing-tagline {
  margin-top: 40px;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-align: center;
}