@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0a0c0e;
  --surface: #14171a;
  --surface-raised: #1b1f23;
  --border: #2c3136;
  --text: #f2efe9;
  --text-muted: #8b9096;
  --accent-rec: #e63946;
  --accent-rec-dim: #7a1f26;
  --accent-gold: #d9a441;
  --focus-ring: #e6394680;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(230, 57, 70, 0.08), transparent);
}

a { color: inherit; }

.display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- layout ---------- */

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 64px;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-rec);
  box-shadow: 0 0 0 3px var(--accent-rec-dim);
}

.nav-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

main { flex: 1; }

/* ---------- eyebrow / rec label ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-rec);
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-rec);
  animation: pulse 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow .dot { animation: none; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

h1 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.subhead {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 40px;
  max-width: 44ch;
}

/* ---------- viewfinder bracket frame (signature element) ---------- */

.viewfinder {
  position: relative;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.viewfinder::before,
.viewfinder::after,
.viewfinder .corner-tl,
.viewfinder .corner-br {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent-rec);
}

.viewfinder::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
}
.viewfinder::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
}
.viewfinder .corner-tl {
  top: -1px; right: -1px;
  border-left: none; border-bottom: none;
}
.viewfinder .corner-br {
  bottom: -1px; left: -1px;
  border-right: none; border-top: none;
}

.viewfinder-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-name {
  font-size: 22px;
  margin: 0 0 20px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
}

.price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 30px;
  font-weight: 600;
}

.price-period {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 3px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-rec);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent-rec);
  color: #fff;
}
.btn-primary:hover { background: #ef4b53; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  background: var(--accent-rec-dim);
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent-gold); }

/* ---------- feature list ---------- */

.features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.features .check {
  color: var(--accent-gold);
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- footer link ---------- */

.footer-link {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-link a { color: var(--accent-gold); text-decoration: none; }
.footer-link a:hover { text-decoration: underline; }

/* ---------- key display (success page) ---------- */

.key-readout {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-align: center;
  margin: 20px 0 24px;
  color: var(--accent-gold);
  word-break: break-all;
}

.key-actions {
  display: flex;
  gap: 12px;
}

.status-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
  text-align: center;
}

.error-box {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid var(--accent-rec-dim);
  border-radius: 3px;
  padding: 16px;
  font-size: 14px;
  color: var(--text);
  margin-top: 20px;
}

/* ---------- form (premium upgrade key entry) ---------- */

.field-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  margin-bottom: 20px;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent-rec);
}

.field-input::placeholder {
  color: #565b60;
}
