/* Rescaly brand tokens: docs/brand/ux-language.md and docs/brand/typography.md */
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --canvas: #faf9f6; --surface: #ffffff; --tint: #f0f0ec;
  --line: #e5e3dd; --line-strong: #d8d9dd;
  --ink: #17202c; --muted: #606773;
  --brand: #4f46e5; --brand-strong: #4338ca; --brand-tint: #eef2ff; --deep: #1e1b4b;
  --ok: #047857; --ok-tint: #ecfdf5; --err: #b91c1c; --err-tint: #fef2f2;
  --font-sans: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);
  --ease-travel: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--canvas); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
header, main, footer { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header { display: flex; align-items: center; gap: 10px; padding-top: 28px; }
header img { width: 32px; height: 32px; }
header span { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.015em; color: var(--deep); }
main { flex: 1; display: grid; align-content: center; padding-top: 56px; padding-bottom: 56px; }
main > * { animation: enter .5s var(--ease-travel) both; }
main > :nth-child(2) { animation-delay: .05s; }
main > :nth-child(3) { animation-delay: .1s; }
main > :nth-child(4) { animation-delay: .15s; }
main > :nth-child(5) { animation-delay: .2s; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.eyebrow {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.12; letter-spacing: -0.025em;
  margin: 14px 0 18px; max-width: 16ch; text-wrap: balance;
}
.lead { color: var(--muted); font-size: 18px; max-width: 62ch; margin: 0 0 24px; text-wrap: pretty; }
.features { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 36px; }
.features li {
  padding: 6px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--deep);
  font-size: 14px; font-weight: 500;
}
.card { max-width: 540px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; margin: 0 0 6px; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
form { display: flex; gap: 10px; flex-wrap: wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
input[type="email"] {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: 16px; padding: 11px 14px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
input[type="email"]:focus-visible { outline: 3px solid var(--brand-tint); border-color: var(--brand); }
button {
  flex: 0 0 auto; font: inherit; font-size: 14px; font-weight: 600; padding: 12px 20px;
  border: 0; border-radius: 10px; background: var(--brand); color: #fff; cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}
button:hover { background: var(--brand-strong); }
button:active { transform: scale(.98); }
button:focus-visible { outline: 3px solid var(--brand-tint); outline-offset: 2px; }
button:disabled { opacity: .6; cursor: wait; }
.trap { position: absolute; left: -9999px; }
.msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; display: none; }
.msg.ok { display: block; background: var(--ok-tint); color: var(--ok); }
.msg.err { display: block; background: var(--err-tint); color: var(--err); }
.card .note { font-size: 12px; margin: 12px 0 0; }
footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
footer a { color: var(--brand); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  main > * { animation: none; }
  button { transition: none; }
  button:active { transform: none; }
}
