:root {
  color-scheme: light dark;
  --bg: #f3f6f5;
  --surface: #ffffff;
  --text: #101713;
  --muted: #66736d;
  --border: #dfe8e3;
  --signal: #0ea372;
  --signal-2: #087f5b;
  --danger: #c4323b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080d0b;
    --surface: #111814;
    --text: #edf6f1;
    --muted: #98a79f;
    --border: #26332d;
    --danger: #ff7b83;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(760px 480px at 100% -10%, rgba(14, 163, 114, .18), transparent 62%),
    radial-gradient(620px 420px at -10% 110%, rgba(8, 127, 91, .12), transparent 65%),
    var(--bg);
}

button, input { font: inherit; }

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 470px);
  padding: clamp(28px, 6vw, 46px);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 34px 90px -36px rgba(0, 0, 0, .55);
}

.chooser { width: min(100%, 720px); }

.mark {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(145deg, #16c98c, #087f5b);
  font-weight: 900;
  letter-spacing: -.06em;
  box-shadow: 0 14px 30px -12px rgba(14, 163, 114, .75);
}

.eyebrow {
  margin: 22px 0 6px;
  color: var(--signal);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.lead { color: var(--muted); margin: 10px 0 26px; }

label {
  display: block;
  margin-bottom: 7px;
  font-size: .82rem;
  font-weight: 700;
}

input {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
}

input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(14, 163, 114, .14);
}

button {
  cursor: pointer;
  border: 0;
}

form button {
  width: 100%;
  margin-top: 12px;
  padding: 13px 18px;
  color: white;
  background: linear-gradient(180deg, var(--signal), var(--signal-2));
  border-radius: 11px;
  font-weight: 800;
}

button:disabled { opacity: .55; cursor: wait; }

.error {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: .82rem;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.top .eyebrow { margin-top: 0; }

.ghost {
  padding: 9px 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.product {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 116px;
  padding: 18px;
  text-align: left;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.product:hover {
  transform: translateY(-2px);
  border-color: var(--signal);
  box-shadow: 0 16px 34px -24px rgba(14, 163, 114, .75);
}

.product-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 13px;
  background: linear-gradient(145deg, #16c98c, #087f5b);
  font-weight: 900;
}

.zap .product-icon { background: linear-gradient(145deg, #36c16e, #12853e); }
.product strong, .product small { display: block; }
.product strong { font-size: 1rem; letter-spacing: .02em; }
.product small { margin-top: 4px; color: var(--muted); line-height: 1.35; }
.arrow { color: var(--signal); font-size: 1.4rem; }

.loading { text-align: center; }
.loading .mark { margin: 0 auto 20px; }
.loading p { color: var(--muted); }
.spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border: 3px solid var(--border);
  border-top-color: var(--signal);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

[hidden] { display: none !important; }

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

@media (max-width: 620px) {
  .products { grid-template-columns: 1fr; }
  .top { align-items: center; }
}
