/* Shared styles for content pages (how-to, support, code, sign in). Built on site.css tokens. */
.page-head { margin: 40px 0 28px; }
.page-head .eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.page-head .eyebrow svg { width: 14px; height: 14px; }
.page-head h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -.022em; line-height: 1.15; }
.page-head p { margin: 10px 0 0; max-width: 62ch; color: var(--muted); font-size: 15px; line-height: 1.65; }
.surface-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }

.steps { display: grid; gap: 14px; margin-bottom: 26px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .18s var(--ease), transform .18s var(--ease); }
.step:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: #0a0d16; font-size: 15px; font-weight: 700; }
.step h2 { margin: 2px 0 6px; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.step a { color: var(--accent); text-decoration: none; }
.step a:hover { text-decoration: underline; }
.step strong { color: var(--text); font-weight: 600; }

.tip { display: flex; gap: 12px; padding: 16px 18px; margin-bottom: 40px; border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border)); border-radius: var(--radius-lg); background: var(--accent-soft); font-size: 14px; line-height: 1.65; }
.tip svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.tip a { color: var(--accent); }

.contact-grid { display: grid; gap: 14px; margin-bottom: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.contact-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .18s var(--ease), transform .18s var(--ease); }
.contact-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.contact-card .ic { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.contact-card .ic svg { width: 18px; height: 18px; }
.contact-card .label { color: var(--muted-2); font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.contact-card .val { margin-top: 6px; font-size: 15px; word-break: break-word; }
.contact-card .val a { color: var(--text); text-decoration: none; }
.contact-card .val a:hover { color: var(--accent); }
.contact-note { display: flex; gap: 10px; padding: 16px 18px; margin-bottom: 40px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); color: var(--muted); font-size: 14px; line-height: 1.65; }
.contact-note svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--accent); }

.code-layout { display: grid; gap: 16px; max-width: 560px; margin: 0 auto 40px; }
.code-display { margin-top: 18px; padding: 22px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--bg-2); text-align: center; }
.code-display .label { color: var(--muted-2); font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.code-value { margin-top: 10px; font-family: var(--mono); font-size: clamp(30px, 8vw, 42px); font-weight: 600; letter-spacing: .22em; color: var(--accent); cursor: pointer; }
.code-value[data-empty="true"] { color: var(--muted-2); cursor: default; }

.auth-wrap { display: grid; place-items: center; min-height: calc(100vh - 220px); padding: 40px 0; }
.auth-card { width: min(410px, 100%); padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.auth-card .sub { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.auth-card .field { margin-bottom: 16px; }
.auth-foot { margin-top: 20px; text-align: center; font-size: 14px; }
.auth-foot a { color: var(--muted); text-decoration: none; }
.auth-foot a:hover { color: var(--accent); }

.field label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; font-weight: 550; }
.field .hint { margin-top: 7px; color: var(--muted-2); font-size: 12.5px; line-height: 1.55; }
.control { position: relative; display: flex; align-items: center; }
.control > svg:first-child { position: absolute; left: 13px; width: 16px; height: 16px; color: var(--muted-2); pointer-events: none; }
.control input, .control select, .control textarea { width: 100%; min-height: 44px; padding: 11px 13px; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); background: var(--field); font: inherit; font-size: 14px; outline: 0; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.control > svg:first-child ~ input { padding-left: 39px; }
.control input:hover, .control select:hover { border-color: var(--border-strong); }
.control input:focus, .control select:focus, .control textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.control input::placeholder { color: var(--muted-2); }
.control .reveal { position: absolute; right: 6px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.control .reveal:hover { background: var(--surface-2); color: var(--text); }
.control .reveal svg { width: 17px; height: 17px; }

.form-msg { margin-top: 14px; font-size: 13.5px; min-height: 19px; }
.form-msg[data-tone="error"] { color: var(--danger); }
.form-msg[data-tone="success"] { color: var(--success); }
.spin { animation: nx-spin 1s linear infinite; }
@keyframes nx-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .page-head { margin: 26px 0 20px; }
  .step { grid-template-columns: 34px 1fr; gap: 12px; padding: 15px 16px; }
  .step-num { width: 34px; height: 34px; font-size: 14px; }
}
