:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --ink: #1b1c1e;
  --muted: #62666d;
  --primary: #176b5b;
  --primary-dark: #104c41;
  --accent: #d85f31;
  --line: #e4e1d8;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

.hero {
  min-height: 86vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
}

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

.release-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.release-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 700;
}

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

.secondary {
  border: 1px solid var(--line);
  background: white;
}

.phone {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  justify-self: center;
  border: 10px solid #202124;
  border-radius: 34px;
  background: #fbfaf6;
  box-shadow: 0 24px 60px rgba(27, 28, 30, 0.18);
  padding: 22px;
}

.phone-bar {
  width: 74px;
  height: 6px;
  border-radius: 6px;
  background: #202124;
  margin: 0 auto 28px;
}

.app-title {
  font-size: 30px;
  font-weight: 700;
}

.app-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.app-version {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
}

.app-subtitle {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  margin-top: 4px;
}

.app-header-preview {
  background: var(--primary);
  color: white;
  border-radius: 22px;
  padding: 18px 18px;
  margin-bottom: 16px;
}

.preview-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin: 10px 0 7px;
}

.select-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.select-row span,
.text-box,
.result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.select-row span {
  padding: 11px 10px;
  color: var(--muted);
  font-size: 14px;
}

.text-box {
  min-height: 90px;
  padding: 14px;
  font-size: 20px;
}

.button {
  margin: 14px 0;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 14px;
  font-weight: 700;
  border-radius: 16px;
}

.result {
  min-height: 86px;
  padding: 14px;
  background: var(--soft-accent);
  border-color: #f2d2c1;
  font-size: 22px;
}

.downloads {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.downloads-page {
  max-width: 760px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 32px 24px;
}

.download-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px;
}

.status-line {
  background: var(--soft-primary);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  margin: 10px 0 12px;
}

h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

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

.file-list a {
  display: grid;
  gap: 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.file-list span {
  color: var(--muted);
}

@media (max-width: 800px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  h1 {
    font-size: 48px;
  }

  .lead {
    font-size: 18px;
  }

  .phone {
    max-width: 320px;
  }

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

  .download-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 32px;
  }
}
