/* Link WhatsApp page — builds on the tokens in styles.css. */
/* display:grid/block below must not override the hidden attribute. */
.lw [hidden] { display: none !important; }
.logo { color: var(--ink); text-decoration: none; }

.lw { max-width: 560px; }
.lw .lede { color: var(--ink-muted); }

.lw-steps { padding-left: 22px; margin: 24px 0; color: var(--ink-muted); }
.lw-steps li { margin-bottom: 6px; }
.lw-steps strong { color: var(--ink); }

.lw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
}

.lw-tabs { display: flex; gap: 4px; background: var(--paper); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.lw-tabs button {
  flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 8px;
  font: inherit; font-weight: 600; color: var(--ink-muted); cursor: pointer;
}
.lw-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(18, 24, 31, 0.08); }

.lw-form { display: grid; gap: 16px; }
.lw-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.lw-form input {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%;
}
.lw-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.lw-hint { font-weight: 400; font-size: 0.85rem; color: var(--ink-faint); }
.lw-fine { font-size: 0.85rem; color: var(--ink-muted); margin: 0; }
.lw-center { text-align: center; margin-left: auto; margin-right: auto; }

.lw-btn {
  display: block; width: 100%; text-align: center; text-decoration: none;
  font: inherit; font-weight: 700; padding: 14px; border-radius: 10px; border: 0;
  background: var(--accent); color: #fff; cursor: pointer;
}
.lw-btn:hover { background: var(--accent-ink); }
.lw-btn:disabled { opacity: 0.6; cursor: wait; }
.lw-btn:focus-visible, .lw-link:focus-visible, .lw-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lw-btn-wa { background: #1c8a4d; margin-top: 8px; }
.lw-btn-wa:hover { background: #156b3b; }
.lw-btn-ghost { background: transparent; color: var(--accent-ink); border: 1px solid var(--border); margin-top: 12px; }
.lw-btn-ghost:hover { background: var(--accent-soft); }

.lw-link {
  display: block; margin: 14px auto 0; background: none; border: 0; padding: 4px;
  font: inherit; font-size: 0.9rem; color: var(--accent-ink); text-decoration: underline; cursor: pointer;
}

.lw-hello { margin: 0 0 16px; color: var(--ink-muted); }

.lw-code-card { text-align: center; }
.lw-label { margin: 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.lw-code {
  margin: 8px auto 4px; font-family: var(--font-mono); font-size: clamp(2.2rem, 11vw, 3.2rem);
  font-weight: 700; letter-spacing: 0.18em; color: var(--ink);
}
.lw-timer { margin: 0 auto 16px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.lw-code-card.expired .lw-code { color: var(--ink-faint); text-decoration: line-through; }

.lw-status { padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); max-width: none; }
.lw-status.error { background: var(--warn-soft); color: var(--warn); }

@media (max-width: 480px) {
  .lw-card { padding: 18px; }
  header.site nav.site a { margin-left: 12px; }
}
.lw-code-card .lw-fine { margin-top: 14px; }
