/* Shared by the umbrella home, the AI Ladder landing page and the thank-you page.
   The prompt library has its own stylesheet — same tokens, different needs. */

:root {
  --bg: #0a0a0c;
  --surface: #141418;
  --surface-2: #1c1c22;
  --line: #26262e;
  --text: #f4f5f8;
  --muted: #8d8f9b;
  --accent: #96aaff;
  --accent-ink: #06060a;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 660px;
  margin: 0 auto;
  padding: 40px 20px calc(72px + env(safe-area-inset-bottom, 0px));
  padding-top: calc(40px + env(safe-area-inset-top, 0px));
}

a { color: var(--accent); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.brand img { border-radius: 7px; display: block; }

h1 {
  margin: 36px 0 14px;
  font-size: clamp(30px, 7vw, 44px); line-height: 1.12;
  letter-spacing: -0.03em; font-weight: 600;
}
h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }

.lede { margin: 0 0 28px; color: var(--muted); font-size: 19px; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }

.card {
  padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.card + .card { margin-top: 14px; }

a.card { display: block; color: var(--text); text-decoration: none; }
a.card:hover { border-color: var(--accent); }

.card.soon { opacity: .55; }
.tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px;
  font-size: 12px; letter-spacing: .03em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; vertical-align: 2px;
}

.btn {
  display: inline-block; padding: 14px 26px;
  font: inherit; font-size: 16px; font-weight: 500; text-decoration: none;
  color: var(--accent-ink); background: var(--accent);
  border: 0; border-radius: var(--radius); cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.big { display: block; width: 100%; text-align: center; padding: 18px 26px; font-size: 17px; }

.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.stats li {
  padding: 7px 14px; font-size: 14.5px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.stats strong { color: var(--text); font-weight: 600; }

.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 0 0 10px 26px; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* Our own subscribe form — posts to the Worker, which talks to beehiiv server-side.
   Replaced beehiiv's embed, which their bot protection kept blocking. */
.subform { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

.subform input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  padding: 14px 16px;
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-appearance: none; appearance: none;
}
.subform input[type="email"]::placeholder { color: var(--muted); }
.subform input[type="email"]:focus { outline: none; border-color: var(--accent); }

.subform button { flex: 0 0 auto; }
.subform button:disabled { opacity: .6; cursor: default; }

.subform-msg { flex: 1 0 100%; margin: 2px 0 0; font-size: 14.5px; min-height: 1.2em; }
.subform-msg[data-kind="error"] { color: #ff9a9a; }
.subform-msg[data-kind="ok"] { color: var(--accent); }

.disclosure { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.socials { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 18px; }
.socials a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.socials a:hover { color: var(--accent); text-decoration: underline; }
.foot p { margin: 0; color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
