/* Wilt - key.css
 * One of the per-page stylesheets split from the former single style.css.
 * Load order matters: base.css first, then this file. See docs/development.md. */

.key-main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.key-card {
  padding: 34px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
}

.key-card h1 {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.key-tabs {
  display: flex;
  gap: 4px;
  margin: 18px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.key-tab {
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.key-tab:hover { background: var(--bg-soft); color: var(--text); }

.key-tab[aria-selected='true'] {
  background: var(--bg-raised);
  color: var(--text);
  font-weight: 500;
}

.key-tab:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.key-tabs + [role='tabpanel'] > h1 {
  margin-top: 22px;
}

.key-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.key-row {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.key-row-name {
  margin: 0;
  font-weight: 600;
}

.key-row-meta {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.5;
}

.key-row-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.key-row-value code {
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.key-list + .btn {
  margin-top: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--accent-subtle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.key-lede, .key-instructions {
  max-width: 56ch;
  color: var(--muted);
}

/* A heads-up, not an error: this browser is likely to drop the device id between
   the checkpoint link opening and the return, which costs the visitor the ad they
   just watched. Calm styling so it reads as advice rather than a failure. */
.key-notice {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--warning-text);
  border-radius: var(--radius-sm);
}

.key-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.key-notice .btn {
  justify-self: start;
}

.key-notice[hidden] {
  display: none;
}

.key-start-form, .token-form {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.key-start-form label, .token-form label {
  font-size: 13px;
  font-weight: 600;
}

.key-start-row {
  display: flex;
  gap: 10px;
}

.key-start-row input, .key-start-form > input, .token-form input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.key-start-row input, .key-start-form > input {
  font-family: var(--mono);
  font-size: 13px;
}

.key-flow {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.key-progress {
  color: var(--accent-subtle);
  font-size: 12px;
  font-weight: 600;
}

.key-flow h2 {
  margin: 7px 0 0;
  font-size: 1.3rem;
}

.key-flow .btn {
  margin-top: 12px;
}

.key-foot {
  margin: 16px auto 0;
  text-align: center;
}

.key-page [hidden] {
  display: none;
}

@media (max-width: 560px) {
  .key-main { padding: 38px 16px 64px; }

  .key-card { padding: 22px 18px; }

  .key-start-row { flex-direction: column; }

  .key-start-row .btn { width: 100%; }
}
