/* ============================================================
   EasyLaunchPad — minimal two-column landing
   Palette: Concrete #EAEAE8 · Off-White #F6F6F5 · Ink #333333
            Safety Orange #F2542D (primary actions only)
   ============================================================ */

:root {
  --bg: #eaeae8;
  --surface: #f6f6f5;
  --ink: #333333;
  --ink-soft: #6b6b68;
  --ink-faint: #9a9a96;
  --line: #d8d8d4;
  --line-strong: #c4c4c0;
  --orange: #f2542d;
  --orange-deep: #d9431f;
  --code-bg: #23262b;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(40, 40, 38, 0.05), 0 8px 24px rgba(40, 40, 38, 0.06);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange); color: #fff; }

/* ---------- header ---------- */
.site-header {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 26px 28px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14.5px;
}
.brand-mark { width: 22px; height: 22px; color: var(--ink); }

/* ---------- hero: two columns ---------- */
.hero {
  flex: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 28px 40px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.hero-copy .sub {
  margin: 18px 0 30px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 44ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.micro { margin-top: 22px; font-size: 12px; color: var(--ink-faint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  padding: 13px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn-primary s { opacity: 0.65; font-weight: 400; }
.btn-primary b { font-weight: 700; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-soft); }
.btn-big { font-size: 15px; padding: 15px 26px; }

/* ---------- screenshot ---------- */
.hero-shot {
  background: var(--code-bg);
  border-radius: 10px;
  border: 1px solid #3a3d44;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- redeem button (green) ---------- */
.btn-redeem { background: #1f9d55; color: #ffffff; border-color: #1f9d55; width: 100%; }
.btn-redeem:hover { background: #22863f; border-color: #22863f; }

/* ---------- fake payment theater ---------- */
.modal-center { text-align: center; }
.modal-center .modal-sub { margin-bottom: 20px; }
.modal-center .btn { width: 100%; }
.modal-center .btn + .btn { margin-top: 12px; }
.btn-pay-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f0a08c;
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-pay-disabled svg {
  width: 14px;
  height: 14px;
  flex: none;
  opacity: 0.9;
}
.pay-error-icon {
  width: 56px;
  height: 56px;
  margin: 2px auto 16px;
  border-radius: 50%;
  background: #fdeceb;
  border: 1.5px solid #e74c3c;
  color: #e74c3c;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.pay-error-icon svg { width: 28px; height: 28px; }
@keyframes pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.btn.is-loading { opacity: 0.85; cursor: wait; pointer-events: none; }
.btn .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.site-footer {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px 26px;
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* ---------- modal ---------- */
.modal-backdrop[hidden] { display: none; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(40, 40, 38, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(40, 40, 38, 0.25);
  width: 100%;
  max-width: 440px;
  padding: 30px 30px 24px;
  animation: rise 0.18s ease-out;
}
@keyframes rise {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink-faint);
  cursor: pointer;
  line-height: 1;
  padding: 6px;
}
.modal-close:hover { color: var(--ink); }
.modal h3 { font-family: var(--sans); font-size: 19px; font-weight: 700; }
.modal-sub { margin: 8px 0 20px; font-size: 13px; color: var(--ink-soft); }
#code-input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 16px;
  outline: none;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#code-input::placeholder { color: var(--ink-faint); letter-spacing: 0.18em; }
#code-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 84, 45, 0.15); }
#redeem-form .btn { width: 100%; margin-top: 12px; }
.modal.shake { animation: shake 0.4s; }
@keyframes shake {
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.status {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-align: center;
  min-height: 1.4em;
}
.status.ok { color: #1a7f37; }
.status.err { color: var(--orange-deep); }
.cursor { display: inline-block; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.modal-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.modal-foot a { color: var(--orange-deep); }
.modal-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

.grant { color: #1a7f37; font-size: 13.5px; font-weight: 700; margin-bottom: 18px; text-align: center; }
.grant + .btn { width: 100%; }
.dl-note { margin-top: 16px; font-size: 12px; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; }
  .hero-shot { order: -1; }
}
