/* trypragma.xyz/alpha, on base.css's tokens: white paper, ink type, and orange
   only on the one button that claims a spot. */

[hidden] { display: none !important; }

.al-page { background: var(--paper); }

/* ── the hero, and the claim beside it ──────────────────────────────── */
.al-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 104px));
  padding-bottom: clamp(56px, 8vw, 104px);
}
.al-hero__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: .95; letter-spacing: -.05em;
}
.al-hero__lede { margin-top: 1.4rem; max-width: 34rem; font-size: 1.12rem; line-height: 1.6; color: var(--text-2); }
.al-hero__facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.al-hero__facts li {
  font-size: .86rem; font-weight: 500; color: var(--text-2);
  padding: .35rem .8rem; border-radius: 999px; background: var(--ground);
}

.al-claim {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); padding: clamp(22px, 3vw, 32px);
}
.al-count { padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.al-count__line { color: var(--text-2); font-size: .98rem; display: flex; align-items: baseline; gap: .5rem; }
.al-count__n {
  font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -.05em;
  color: var(--ink); font-variant-numeric: tabular-nums; min-width: 1ch;
}
/* One dot a spot: filled once taken. */
.al-dots { display: grid; grid-template-columns: repeat(10, minmax(0, 18px)); justify-content: space-between; row-gap: 8px; margin-top: 1rem; }
.al-dot {
  aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--line-2); background: transparent;
  transition: background 400ms var(--expo), border-color 400ms var(--expo);
}
.al-dot.is-taken { background: var(--ink); border-color: var(--ink); }

.al-claim__title { font-family: var(--display); font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.al-muted { color: var(--text-2); font-size: .95rem; line-height: 1.55; }
.al-form { display: grid; gap: .6rem; margin-top: 1rem; }
.al-input {
  width: 100%; height: 48px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 .9rem;
  transition: border-color var(--press), box-shadow var(--press);
}
.al-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 10%, transparent); }
.al-wide { width: 100%; justify-content: center; }
#step > .btn { margin-top: 1rem; }
#step > .btn + .btn { margin-top: .5rem; }
.al-link { margin-top: .8rem; font-size: .86rem; color: var(--text-3); cursor: pointer; padding: .2rem 0; }
.al-link:hover { color: var(--ink); }
.al-done { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: .3rem; }
.al-status { min-height: 1.4em; margin-top: .8rem; font-size: .9rem; color: var(--accent-text); }
.btn:disabled { opacity: .55; cursor: default; }

/* ── the sections below ─────────────────────────────────────────────── */
.al-section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.al-h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.05; letter-spacing: -.04em; max-width: 22ch;
}

.al-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.4rem; }
.al-perk { background: var(--ground); border-radius: var(--r); padding: 1.4rem; }
.al-perk__icon { width: 26px; height: 26px; color: var(--ink); }
.al-perk h3 { font-size: 1.05rem; font-weight: 600; margin: 1.1rem 0 .4rem; }
.al-perk p { color: var(--text-2); font-size: .95rem; line-height: 1.55; }

.al-ask { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.al-steps { margin-top: 2rem; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1.3rem; }
.al-steps li { counter-increment: step; position: relative; padding-left: 2.8rem; color: var(--text-2); line-height: 1.55; }
.al-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.1rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  font-size: .85rem; font-weight: 700; color: var(--ink); background: var(--ground);
}
.al-steps b { color: var(--ink); font-weight: 600; }
.al-shot { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-3); background: var(--ground); }
.al-shot img { display: block; width: 100%; height: auto; }

.al-faq { margin-top: 2rem; max-width: 46rem; border-top: 1px solid var(--line); }
.al-faq details { border-bottom: 1px solid var(--line); }
.al-faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative;
  font-weight: 600; font-size: 1.02rem;
}
.al-faq summary::-webkit-details-marker { display: none; }
.al-faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 400; color: var(--text-3);
}
.al-faq details[open] summary::after { content: "\2212"; }
.al-faq details p { color: var(--text-2); line-height: 1.6; padding-bottom: 1.2rem; max-width: 40rem; }
.al-faq a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 980px) {
  .al-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .al-hero, .al-ask { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .al-perks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .al-dot, .al-input { transition: none; }
}

/* The application: five short questions in the card. */
.al-apply { gap: 1.05rem; }
.al-q { display: grid; gap: .4rem; }
.al-q__label { font-weight: 600; font-size: .95rem; color: var(--ink); line-height: 1.4; }
.al-q__hint { font-size: .85rem; color: var(--text-2); margin-top: -.25rem; }
.al-text { height: auto; min-height: 72px; padding-top: .7rem; padding-bottom: .7rem; line-height: 1.5; resize: vertical; }
.al-choices { display: flex; flex-wrap: wrap; gap: .45rem; }
.al-choice { position: relative; cursor: pointer; }
.al-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.al-choice span {
  display: inline-block; padding: .5rem .9rem; border-radius: 999px; font-size: .9rem;
  border: 1px solid var(--line-2); color: var(--ink); background: var(--paper);
  transition: background 160ms var(--expo), border-color 160ms var(--expo), color 160ms var(--expo);
}
.al-choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.al-choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
