:root {
  color-scheme: light;
  --forest: #1e4d45;
  --sage: #a6b89c;
  --sand: #e7d9c1;
  --ivory: #faf6f0;
  --slate: #647385;
  --ink: #203431;
  --paper: #fffaf4;
  --card: rgba(255, 250, 244, .96);
  --button-text: #faf6f0;
  --hero-overlay-start: rgba(250, 246, 240, .96);
  --hero-overlay-end: rgba(250, 246, 240, .84);
  --section-alt: #f3eadc;
  --line: #ded3c1;
  --green-soft: #e5ecdc;
  --sand-soft: #f2e8d8;
  --red-soft: #f3d8d0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ivory);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  min-height: 100vh;
}

.download-page {
  min-height: 100vh;
  background:
    linear-gradient(120deg, var(--hero-overlay-start), var(--hero-overlay-end)),
    url("./assets/tavando_loading_page_light.png") center / cover;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 440px);
  gap: 52px;
  align-items: center;
  padding: 56px clamp(22px, 6vw, 86px) 34px;
  background:
    linear-gradient(120deg, var(--hero-overlay-start), var(--hero-overlay-end)),
    url("./assets/tavando_loading_page_light.png") center / cover;
}

.logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.eyebrow {
  margin: 18px 0 10px;
  color: var(--forest);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(44px, 8vw, 88px);
  line-height: .98;
  letter-spacing: 0;
  color: var(--forest);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--forest);
}

h3 {
  color: var(--ink);
}

.lead {
  max-width: 650px;
  margin-top: 22px;
  color: var(--slate);
  font-size: 21px;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.primary,
.secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.primary {
  color: var(--button-text);
  background: var(--forest);
}

.secondary {
  color: var(--forest);
  border: 1px solid var(--forest);
  background: rgba(250, 246, 240, .72);
}

.full {
  width: 100%;
}

.note {
  margin-top: 14px;
  color: var(--slate);
}

.phone-preview {
  min-height: 680px;
  padding: 22px;
  border: 1px solid rgba(30, 77, 69, .22);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(30, 77, 69, .18);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  color: var(--forest);
  margin-bottom: 22px;
}

.phone-top span {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: var(--sand);
}

.summary-card,
.document-card,
.task-card,
.download-box,
article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 14px 36px rgba(30, 77, 69, .1);
}

.summary-card {
  padding: 22px;
}

.summary-card p,
.document-card p,
.task-card p,
.download-box p,
article p {
  color: var(--slate);
  line-height: 1.55;
}

.summary-card h2 {
  margin: 6px 0 18px;
  font-size: 30px;
}

.dose {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  margin-top: 10px;
  border-radius: 8px;
  background: var(--sand-soft);
  font-weight: 800;
}

.dose span {
  color: var(--slate);
  font-weight: 600;
}

.dose.done {
  background: var(--green-soft);
}

.document-card,
.task-card {
  padding: 20px;
  margin-top: 16px;
}

.section {
  padding: 72px clamp(22px, 6vw, 86px);
}

.section-heading {
  max-width: 790px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

article {
  padding: 22px;
}

article span {
  color: var(--forest);
  font-weight: 900;
}

article h3 {
  margin: 18px 0 10px;
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  padding: 72px clamp(22px, 6vw, 86px);
  background: #f4ecdf;
  background: var(--section-alt);
}

ol {
  margin: 24px 0 0;
  padding-left: 22px;
  color: var(--slate);
  line-height: 1.9;
  font-size: 18px;
}

.download-box {
  padding: 24px;
}

.download-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px clamp(22px, 6vw, 86px);
}

.download-hero h1 {
  max-width: 820px;
}

.download-panel {
  width: min(100%, 440px);
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 18px 48px rgba(30, 77, 69, .12);
}

.download-panel h2 {
  font-size: 30px;
}

.download-panel p {
  margin: 10px 0 20px;
  color: var(--slate);
  line-height: 1.55;
}

.download-panel .is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.back-link {
  width: fit-content;
  margin-bottom: 28px;
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.download-box p {
  margin: 10px 0 20px;
}

.checksum {
  display: block;
  margin-top: 14px;
  color: var(--forest);
  text-align: center;
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ivory: #08110f;
    --paper: #101a18;
    --card: #15221f;
    --hero-overlay-start: rgba(8, 17, 15, .96);
    --hero-overlay-end: rgba(8, 17, 15, .86);
    --section-alt: #0d1715;
    --ink: #faf6f0;
    --line: #31423e;
    --slate: #c6d0c2;
    --forest: #a6b89c;
    --button-text: #08110f;
    --sand: #647385;
    --green-soft: #23332e;
    --sand-soft: #332d24;
    --red-soft: #4a2520;
  }

  .hero {
    background:
      linear-gradient(120deg, var(--hero-overlay-start), var(--hero-overlay-end)),
      url("./assets/tavando_loading_page_dark.png") center / cover;
  }

  .download-page {
    background:
      linear-gradient(120deg, var(--hero-overlay-start), var(--hero-overlay-end)),
      url("./assets/tavando_loading_page_dark.png") center / cover;
  }

  .secondary {
    background: rgba(8, 17, 15, .6);
  }

  .phone-preview,
  .summary-card,
  .document-card,
  .task-card,
  .download-box,
  .download-panel,
  article {
    box-shadow: 0 18px 48px rgba(0, 0, 0, .32);
  }

  .install {
    background: var(--section-alt);
  }
}

@media (max-width: 900px) {
  .hero,
  .install {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    min-height: auto;
  }

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