:root {
  --background: #f6f5f5;
  --text: #22201f;
  --muted: #7d7b7a;
  --line: #d3cfcd;
  --accent: #d2342d;
  --accent-dark: #ac241f;
  --android: #34a853;
  --content-width: 1448px;
  --font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  display: flex;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-family);
}

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

.download-page {
  width: min(calc(100% - 48px), var(--content-width));
  margin: auto;
  padding: 48px 0;
}

.page-header {
  padding: 0 0 50px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.067em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 100%;
  margin-bottom: 14px;
  font-size: clamp(44px, 4.15vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.header-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.header-copy {
  min-width: 0;
  padding-top: 2px;
}

.app-icon {
  width: 128px;
  height: 128px;
  flex: 0 0 auto;
  border-radius: 28px;
  object-fit: cover;
}

.intro {
  max-width: none;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 1.55;
}

.download-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.download-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 42px 38px 36px 0;
}

.download-card + .download-card {
  border-left: 1px solid var(--line);
  padding-right: 0;
  padding-left: 38px;
}

.artwork {
  display: flex;
  height: 336px;
  align-items: center;
  margin-bottom: 14px;
}

.artwork--device img {
  width: 640px;
  height: 336px;
  object-fit: contain;
  object-position: left center;
}

.android-tablet {
  position: relative;
  display: flex;
  width: min(432px, 100%);
  height: auto;
  aspect-ratio: 1.45;
  align-items: center;
  justify-content: center;
  border: 6px solid #3f3d3c;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgb(34 32 31 / 12%);
}

.android-tablet::after {
  position: absolute;
  bottom: 8px;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #aaa6a4;
  content: "";
}

.android-tablet img {
  width: min(176px, 46%);
  height: auto;
}

.device-label {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 0;
  color: #6c6866;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.069em;
  line-height: 1.3;
  text-transform: uppercase;
}

.device-label::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.download-card--android .device-label::before {
  background: var(--android);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 2.35vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.device-description {
  min-height: 60px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
}

.download-button {
  display: flex;
  min-height: 64px;
  align-items: center;
  margin-top: auto;
  padding: 17px 24px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgb(34 32 31 / 10%);
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, color 160ms ease;
}

.download-button:focus-visible {
  outline: 3px solid #1d6ed8;
  outline-offset: 3px;
}

.download-button--primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.download-button--primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.download-button--secondary {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.download-button--secondary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.page-footer {
  padding-top: 27px;
  text-align: center;
}

.page-footer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .download-page {
    width: min(calc(100% - 32px), var(--content-width));
    padding-top: 28px;
  }

  .page-header {
    padding-bottom: 36px;
  }

  .eyebrow {
    font-size: 17px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 52px);
    letter-spacing: -0.035em;
  }

  .header-layout {
    gap: 22px;
  }

  .app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

  .intro {
    font-size: 19px;
  }

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

  .download-card {
    padding: 36px 0;
  }

  .download-card + .download-card {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 36px 0;
  }

  .artwork {
    height: 250px;
  }

  .artwork--device img {
    width: 480px;
    height: 250px;
  }

  .android-tablet {
    width: min(360px, 100%);
    height: auto;
    border-width: 5px;
    border-radius: 16px;
  }

  .device-description {
    min-height: 0;
  }

  .download-button {
    width: 100%;
  }

  .page-footer p {
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  .header-layout {
    flex-direction: column;
    gap: 18px;
  }

  .header-copy {
    padding-top: 0;
  }

  .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }
}

/* Keep the complete download action visible on landscape tablets and desktop screens. */
@media (min-width: 768px) and (min-height: 600px) and (max-height: 1100px) and (orientation: landscape) {
  .download-page {
    width: min(calc(100% - 48px), var(--content-width));
    padding: 32px 0;
  }

  .page-header {
    padding-bottom: 32px;
  }

  .header-layout {
    flex-direction: row;
    gap: 22px;
  }

  .header-copy {
    padding-top: 2px;
  }

  .app-icon {
    width: 112px;
    height: 112px;
    border-radius: 24px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 18px;
  }

  h1 {
    margin-bottom: 10px;
    font-size: clamp(38px, 3.75vw, 48px);
    letter-spacing: -0.035em;
  }

  .intro {
    font-size: 20px;
    line-height: 1.4;
  }

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

  .download-card {
    padding: 28px 38px 28px 0;
  }

  .download-card + .download-card {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 28px 0 28px 32px;
  }

  .artwork {
    height: 200px;
    margin-bottom: 12px;
  }

  .artwork--device img {
    width: 400px;
    height: 200px;
  }

  .android-tablet {
    width: min(290px, 100%);
    height: auto;
    border-width: 5px;
    border-radius: 16px;
  }

  .android-tablet img {
    width: min(118px, 46%);
  }

  .device-label {
    margin-bottom: 18px;
    font-size: 12px;
  }

  h2 {
    margin-bottom: 10px;
    font-size: clamp(27px, 2.35vw, 32px);
  }

  .device-description {
    min-height: 51px;
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 1.4;
  }

  .download-button {
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
    font-size: 18px;
  }

  .page-footer {
    padding-top: 18px;
  }

  .page-footer p {
    font-size: 15px;
    line-height: 1.35;
  }
}

/* Compact treatment for shorter Android tablets and desktop displays. */
@media (min-width: 768px) and (min-height: 600px) and (max-height: 700px) and (orientation: landscape) {
  .download-page {
    padding: 16px 0;
  }

  .page-header {
    padding-bottom: 16px;
  }

  .header-layout {
    gap: 16px;
  }

  .app-icon {
    width: 76px;
    height: 76px;
    border-radius: 17px;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 14px;
  }

  h1 {
    margin-bottom: 6px;
    font-size: clamp(30px, 3.5vw, 38px);
    line-height: 1.02;
  }

  .intro {
    font-size: 16px;
    line-height: 1.3;
  }

  .download-card {
    padding: 16px 24px 16px 0;
  }

  .download-card + .download-card {
    padding: 16px 0 16px 24px;
  }

  .artwork {
    height: 130px;
    margin-bottom: 8px;
  }

  .artwork--device img {
    width: 320px;
    height: 130px;
  }

  .android-tablet {
    width: min(190px, 100%);
    border-width: 4px;
    border-radius: 12px;
  }

  .android-tablet img {
    width: min(78px, 46%);
  }

  .android-tablet::after {
    bottom: 5px;
    width: 30px;
    height: 3px;
  }

  .device-label {
    margin-bottom: 10px;
    font-size: 10px;
  }

  h2 {
    margin-bottom: 6px;
    font-size: clamp(21px, 2.3vw, 26px);
  }

  .device-description {
    min-height: 37px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.3;
  }

  .download-button {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 15px;
  }

  .page-footer {
    padding-top: 10px;
  }

  .page-footer p {
    font-size: 12px;
    line-height: 1.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-button {
    transition: none;
  }
}

