/* Cropster Brand Colors */
:root {
  --cropster-green: #80B947;
  --ebony-clay: #272D39;
  --athens-gray: #F1F2F4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background: linear-gradient(135deg, var(--cropster-green) 0%, var(--athens-gray) 100%);
  color: var(--ebony-clay);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  background: #fff;
  padding: 2em 1.5em 2.5em 1.5em;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(39,45,57,0.08);
  max-width: 480px;
  width: 90%;
  margin: 2em auto 0 auto;
  text-align: center;
}

.section-divider {
  border: none;
  border-top: 2px solid var(--athens-gray);
  margin: 1.5em 0 2em 0;
}

h1 {
  margin: 0;
  font-size: 1.5em;
  color: var(--ebony-clay);
}

.header {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.5em;
}

.header h1 {
  margin: 0;
  text-align: left;
}

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--athens-gray);
  border: 2px solid var(--cropster-green);
}

.subtitle {
  margin: 0 0 2em;
  color: var(--ebony-clay);
  opacity: 0.8;
  font-size: 1em;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-list li {
  margin-bottom: 1em;
  opacity: 0;
}

.download-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 1.2em;
  background: var(--athens-gray);
  color: var(--ebony-clay);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 500;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 1px 4px rgba(39,45,57,0.04);
  border: 2px solid transparent;
  will-change: transform;
}

.download-link:hover, .download-link:focus {
  background: #fff;
  border-color: var(--cropster-green);
  box-shadow: 0 2px 8px rgba(128,185,71,0.10);
  color: var(--ebony-clay);
  transform: scale(1.025);
  z-index: 1;
}

.platform {
  color: var(--ebony-clay);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.icon {
  display: none;
}

.action {
  color: #fff;
  background: var(--cropster-green);
  border-radius: 6px;
  padding: 0.3em 1em;
  font-size: 0.95em;
  font-weight: 600;
  margin-left: 1em;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.appstore {
  background: #272D39;
}
.playstore {
  background: #34A853;
}

.download-link:hover .action, .download-link:focus .action {
  background: var(--ebony-clay);
  color: #fff;
}

#download-message {
  color: #c0392b;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 4px solid var(--athens-gray);
  border-top: 4px solid var(--cropster-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0.5em auto 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.footer {
  margin-top: auto;
  padding: 1em 0 0.5em 0;
  color: var(--ebony-clay);
  font-size: 0.95em;
  text-align: center;
  opacity: 0.7;
  width: 100vw;
  background: transparent;
}

@media (max-width: 600px) {
  .container {
    padding: 1em 0.5em 1.5em 0.5em;
    max-width: 98vw;
  }
  .header {
    flex-direction: column;
    gap: 0.5em;
  }
  .download-link {
    font-size: 1em;
    padding: 0.8em 0.7em;
  }
  .logo {
    width: 40px;
    height: 40px;
  }
}
