/* Sherpa download page.
   Palette lifted from the app itself, so the site and the thing you install
   look like they came from the same place. */

:root {
  --bg:      #14181D;
  --bg-2:    #1C222A;
  --edge:    rgba(255, 255, 255, 0.09);
  --ink:     #E7ECF1;
  --ink-dim: #93A0AE;
  --signal:  #F0973C;
  --good:    #4FBF8B;
  --danger:  #E4788C;
  --display: "Fraunces", Georgia, serif;
  --body:    "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  /* A single warm pool of light behind the goat, so the page has a centre. */
  background-image:
    radial-gradient(1100px 520px at 50% -8%, rgba(240, 151, 60, 0.13), transparent 65%);
  background-repeat: no-repeat;
  min-height: 100vh;
}

main {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* ---------------- hero ---------------- */

.hero {
  text-align: center;
  padding: 72px 0 40px;
}

.goat {
  font-size: 76px;
  line-height: 1;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55));
}

.hero h1 {
  font: 700 clamp(46px, 9vw, 78px)/1 var(--display);
  letter-spacing: -0.02em;
  margin: 14px 0 0;
}

.tag {
  color: var(--ink-dim);
  font-size: clamp(16px, 2.4vw, 19px);
  margin-top: 16px;
  text-wrap: balance;
}

/* ---------------- the gate ---------------- */

.card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--edge);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}

.card h2 {
  font: 600 22px/1.3 var(--display);
  letter-spacing: -0.01em;
}

.sub {
  color: var(--ink-dim);
  font-size: 14.5px;
  margin-top: 6px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

#key {
  width: 100%;
  padding: 15px 17px;
  border: 1px solid var(--edge);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: 500 18px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#key::placeholder { color: #5E6975; letter-spacing: 0.1em; }
#key:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(240, 151, 60, 0.16);
}

#go {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border: 0;
  border-radius: 11px;
  background: var(--signal);
  color: #171004;
  font: 600 16px var(--body);
  cursor: pointer;
  transition: background 0.14s ease, transform 0.14s ease;
}
#go:hover:not(:disabled) { background: #FFAD5C; transform: translateY(-1px); }
#go:disabled { opacity: 0.6; cursor: default; transform: none; }

.btn-spin {
  width: 15px; height: 15px;
  border: 2px solid rgba(23, 16, 4, 0.3);
  border-top-color: #171004;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn-spin { animation-duration: 2s; } }

.msg {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  border-left: 3px solid var(--danger);
  background: rgba(228, 120, 140, 0.1);
  color: #FFC9D3;
}
.msg.good {
  border-left-color: var(--good);
  background: rgba(79, 191, 139, 0.1);
  color: #B8EBD2;
}

.fine {
  margin-top: 18px;
  color: #6F7B88;
  font-size: 13px;
  text-align: center;
}
.fine a { color: var(--signal); }

/* ---------------- after a good key ---------------- */

.card.ok { border-color: rgba(79, 191, 139, 0.35); }

.steps {
  margin: 20px 0 0 20px;
  color: var(--ink-dim);
  font-size: 15px;
}
.steps li { margin-bottom: 10px; padding-left: 4px; }
.steps b { color: var(--ink); }

/* ---------------- what it does ---------------- */

.what { margin-top: 76px; }

.what h2 {
  font: 600 13px var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px 34px;
  margin-top: 30px;
}
.grid h3 { font: 600 16.5px var(--body); margin-bottom: 5px; }
.grid p { color: var(--ink-dim); font-size: 14.5px; }

footer {
  margin-top: 76px;
  padding-top: 26px;
  border-top: 1px solid var(--edge);
  text-align: center;
  color: #5E6975;
  font-size: 13px;
}

@media (max-width: 560px) {
  .hero { padding: 48px 0 32px; }
  .card { padding: 24px; }
}
