/* AirPunch Landing — minimal, dark, hochwertig */

:root {
  --bg: #0f1115;
  --bg-card: #161922;
  --bg-input: #1f2330;
  --text: #f0f2f5;
  --text-dim: #8b95a8;
  --accent: #ff4a3d;
  --accent-hover: #ff5c50;
  --border: #2a2f3d;
  --success: #2ecc71;
  --error: #ff6464;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

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

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  line-height: 1.55;
}

main.card {
  max-width: 480px;
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  margin-top: auto;
  margin-bottom: auto;
}

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

.logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 74, 61, 0.6);
}

.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.lede {
  color: var(--text-dim);
  margin-bottom: 28px;
  font-size: 15px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

input[type="email"]:focus {
  border-color: var(--accent);
  background: #232838;
}

input[type="email"]::placeholder {
  color: #5d6675;
}

button {
  position: relative;
  width: 100%;
  padding: 14px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover:not(:disabled) {
  background: var(--accent-hover);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}

button.loading .btn-spinner {
  display: inline-block;
}

button.loading .btn-label {
  opacity: 0.7;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  display: none;
}

.status.show {
  display: block;
}

.status.success {
  background: rgba(46, 204, 113, 0.12);
  color: var(--success);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.status.error {
  background: rgba(255, 100, 100, 0.12);
  color: var(--error);
  border: 1px solid rgba(255, 100, 100, 0.3);
}

.how-it-works {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.how-it-works summary {
  cursor: pointer;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.how-it-works summary::-webkit-details-marker {
  display: none;
}

.how-it-works summary::before {
  content: "▸";
  font-size: 12px;
  transition: transform 0.15s;
}

.how-it-works[open] summary::before {
  transform: rotate(90deg);
}

.how-it-works ol {
  margin-top: 16px;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 14px;
}

.how-it-works ol li {
  margin-bottom: 8px;
}

.fine-print {
  margin-top: 16px;
  font-size: 12px;
  color: #6a7283;
  line-height: 1.5;
}

footer {
  margin-top: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-dim);
}

footer a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

@media (max-width: 540px) {
  main.card {
    padding: 32px 24px;
  }
  h1 {
    font-size: 24px;
  }
}
