/* ==========================================================================
   Inner pages. Extends site.css -- same instrument vocabulary, applied to
   longer-form reading.

   The recurring idea: a claim in the body text, and directly beneath it a
   bordered annotation carrying the engineering reason. Depth is shown, not
   asserted.
   ========================================================================== */

/* --- Page header --------------------------------------------------------- */

.phead {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3.25rem);
  border-bottom: var(--rule);
}
.phead .tag { display: block; margin-bottom: 1.1rem; }
.phead .tag b { color: var(--amber); font-weight: 500; }
.phead h1 { font-size: clamp(1.95rem, 1.4rem + 2.4vw, 3.35rem); max-width: 20ch; }
.phead p {
  color: var(--dim);
  max-width: 60ch;
  margin-top: 1.25rem;
  font-size: clamp(1rem, 0.97rem + 0.3vw, 1.13rem);
}

/* --- Draft flag: honest about what is not decided yet --------------------- */

.draft {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--line-hi);
  border-radius: 2px;
  background: rgba(255, 176, 0, 0.04);
  font-size: 0.88rem;
  color: var(--dim);
  max-width: 72ch;
}
.draft .tag { color: var(--amber); flex: none; padding-top: 0.2rem; margin: 0; }

/* --- Pipeline diagram ---------------------------------------------------- */

.pipe { padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: var(--rule); }
.pipe svg { width: 100%; height: auto; display: block; }
.pipe-cap { margin-top: 1.2rem; font-size: 0.84rem; color: var(--faint); }

/* --- Stages -------------------------------------------------------------- */

.stage {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 2.28fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
  border-bottom: var(--rule);
}
@media (max-width: 820px) { .stage { grid-template-columns: 1fr; gap: 1.1rem; } }

.stage-n {
  font-family: var(--mono);
  font-size: clamp(2.6rem, 2rem + 2.6vw, 4rem);
  font-weight: 600;
  line-height: 0.9;
  color: var(--line-hi);
  letter-spacing: -0.04em;
  direction: ltr;
  unicode-bidi: isolate;
}
.stage:hover .stage-n { color: var(--amber); transition: color .3s; }
.stage-n .tag { display: block; margin-top: 0.85rem; color: var(--faint); }

.stage h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem); margin-bottom: 0.95rem; }
.stage > div > p { color: var(--text); font-size: 1.02rem; }

/* the annotation: where the engineering reason lives */
.note {
  margin-top: 1.5rem;
  padding: 1.15rem 1.3rem;
  border: var(--rule);
  border-inline-start: 2px solid var(--probe);
  border-radius: 2px;
  background: var(--ink-800);
}
.note .tag { display: block; color: var(--probe); margin-bottom: 0.6rem; }
.note p { color: var(--dim); font-size: 0.93rem; margin: 0; }

.spec {
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
  letter-spacing: 0.03em;
  direction: rtl;
}

/* --- Restart callout ----------------------------------------------------- */

.callout {
  margin-block: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: var(--rule);
  border-top: 2px solid var(--amber);
  background: var(--ink-800);
  max-width: 78ch;
}
.callout h3 { margin-bottom: 0.85rem; }
.callout p { color: var(--dim); margin: 0; }

/* --- Pricing ------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1px;
  background: var(--line);
  border: var(--rule);
}
.plan {
  background: var(--ink-900);
  padding: clamp(1.75rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
}
.plan.on { background: var(--ink-800); box-shadow: inset 0 2px 0 var(--amber); }
.plan-name { font-size: 1.08rem; font-weight: 600; margin-bottom: 0.3rem; }
.plan-period { font-family: var(--mono); font-size: 0.72rem; color: var(--faint);
               letter-spacing: 0.1em; direction: ltr; unicode-bidi: isolate; }
.plan-price {
  margin-block: 1.5rem 0.3rem;
  font-family: var(--mono);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  direction: ltr;
  unicode-bidi: isolate;
}
.plan.on .plan-price { color: var(--amber); }
.plan-per { font-family: var(--mono); font-size: 0.78rem; color: var(--faint);
            direction: ltr; unicode-bidi: isolate; }
.plan-saving {
  margin-top: 0.7rem;
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--probe-8);
  border-radius: 2px;
  background: var(--probe-8);
  color: var(--probe);
  font-size: 0.78rem;
  font-weight: 500;
}
.plan-note { margin-top: 1.1rem; font-size: 0.89rem; color: var(--dim); }
.plan ul {
  list-style: none;
  margin: 1.6rem 0 1.9rem;
  padding: 1.4rem 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 0.65rem;
  flex: 1;
}
.plan li {
  font-size: 0.9rem;
  color: var(--dim);
  padding-inline-start: 1.3rem;
  position: relative;
}
.plan li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 6px; height: 6px;
  border-top: 1px solid var(--amber);
  border-inline-end: 1px solid var(--amber);
  transform: rotate(45deg);
  opacity: 0.75;
}
.plan .btn { justify-content: center; }

/* --- Terms grid ---------------------------------------------------------- */

.terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.term { padding-inline-start: 1.2rem; border-inline-start: 1px solid var(--line); }
.term h3 { font-size: 1.02rem; margin-bottom: 0.55rem; }
.term p { color: var(--dim); font-size: 0.92rem; }

/* --- FAQ ----------------------------------------------------------------- */

.qa-group { padding-block: clamp(2.25rem, 4vw, 3.25rem); border-bottom: var(--rule); }
.qa-group > .tag { display: block; color: var(--amber); margin-bottom: 1.75rem; }

.qa {
  border: var(--rule);
  border-radius: 2px;
  background: var(--ink-800);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.qa[open] { border-color: var(--line-hi); }
.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.3rem;
  font-weight: 500;
  font-size: 1.01rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: color .18s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--amber); }
.qa summary::after {
  content: '';
  margin-inline-start: auto;
  flex: none;
  width: 8px; height: 8px;
  border-bottom: 1.5px solid var(--faint);
  border-inline-start: 1.5px solid var(--faint);
  transform: rotate(-45deg) translateY(-2px);
  transition: transform .25s, border-color .25s;
}
.qa[open] summary::after {
  transform: rotate(135deg) translateY(-2px);
  border-color: var(--amber);
}
.qa-body { padding: 0 1.3rem 1.3rem; }
.qa-body p { color: var(--dim); font-size: 0.95rem; margin: 0; max-width: 74ch; }

/* --- Legal --------------------------------------------------------------- */

.legal { max-width: 76ch; }
.legal section { padding-block: 0; }
.legal-item { padding-block: 1.75rem; border-bottom: var(--rule); }
.legal-item h2 { font-size: 1.18rem; margin-bottom: 0.7rem; }
.legal-item p { color: var(--dim); font-size: 0.96rem; margin: 0; }

/* --- Cross-page CTA ------------------------------------------------------ */

.xcta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border: var(--rule);
  border-radius: 2px;
  background: var(--ink-800);
  margin-block: clamp(3rem, 6vw, 4.5rem);
}
.xcta p { margin: 0; flex: 1 1 320px; color: var(--dim); }
.xcta strong { color: var(--text); display: block; margin-bottom: 0.3rem;
               font-size: 1.08rem; font-weight: 600; }

/* --- Active nav state ---------------------------------------------------- */

.nav-links a.on { color: var(--text); border-bottom-color: var(--amber); }

/* --- The way in ---------------------------------------------------------- */
/* A visitor who reads the whole page and is convinced needs somewhere to
   click. Before this the site had no signup link anywhere. */

.nav-sep {
  margin-inline-start: 0.6rem;
  padding-inline-start: 1.4rem;
  border-inline-start: 1px solid var(--line);
}
.nav-cta {
  padding: 0.45rem 1rem !important;
  border: 1px solid var(--amber) !important;
  border-radius: 2px;
  background: var(--amber);
  color: #14100A !important;
  font-weight: 600;
  transition: background .18s, transform .18s;
}
.nav-cta:hover { background: #FFC12E; transform: translateY(-1px); }

@media (max-width: 900px) {
  .nav-sep { margin-inline-start: 0; padding-inline-start: 0; border-inline-start: 0; }
  .nav-cta { display: inline-block; margin-top: 0.5rem; text-align: center; }
}

.hero-sub {
  margin-top: 1.15rem;
  font-size: 0.88rem;
  color: var(--faint);
  max-width: 48ch;
  line-height: 1.7;
}
.close-note {
  margin-top: 1.4rem;
  font-size: 0.86rem;
  color: var(--faint);
  max-width: 54ch;
  margin-inline: auto;
}

/* --- Data tables: wide content scrolls in its own box, never the page ---- */

.dtable-wrap { overflow-x: auto; border: var(--rule); border-radius: 2px; }
.dtable {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.dtable thead th {
  background: var(--ink-700);
  text-align: right;
  padding: 0.85rem 1rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line-hi);
  white-space: nowrap;
}
.dtable td {
  padding: 0.82rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  vertical-align: top;
}
.dtable tbody tr:hover td { background: var(--ink-800); }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
.dtable .n {
  font-family: var(--mono);
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  color: var(--probe);
}
.dtable tbody tr:first-child .n { color: var(--amber); }
.tnote { margin-top: 1rem; font-size: 0.8rem; color: var(--faint); line-height: 1.75; }

/* --- Methodology rules --------------------------------------------------- */

.rules { display: grid; gap: 1px; background: var(--line); border: var(--rule); }
.rule {
  background: var(--ink-900);
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 1.25rem;
  padding: clamp(1.4rem, 2.6vw, 2rem);
}
@media (max-width: 640px) { .rule { grid-template-columns: 1fr; gap: .5rem; } }
.rule-n {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--line-hi);
  line-height: 1;
  direction: ltr;
}
.rule:hover .rule-n { color: var(--amber); transition: color .25s; }
.rule h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.rule p { color: var(--dim); font-size: 0.93rem; margin: 0; }

/* --- Caveats: the section a vendor would delete -------------------------- */

.caveats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.caveat {
  padding: clamp(1.35rem, 2.5vw, 1.8rem);
  background: var(--ink-900);
  border: var(--rule);
  border-inline-start: 2px solid var(--limit);
}
.caveat h3 { font-size: 1.02rem; margin-bottom: 0.55rem; }
.caveat p { color: var(--dim); font-size: 0.92rem; margin: 0; }

/* --- Track record placeholder: honest empty state ------------------------ */

.trk {
  padding: clamp(1.9rem, 4vw, 3rem);
  border: 1px dashed var(--line-hi);
  border-radius: 2px;
  background:
    repeating-linear-gradient(135deg, transparent 0 9px,
                              rgba(255,255,255,.014) 9px 18px),
    var(--ink-800);
  text-align: center;
}
.trk .tag { display: block; color: var(--faint); margin-bottom: 1rem; }
.trk h3 { margin-bottom: 0.9rem; }
.trk p { color: var(--dim); max-width: 62ch; margin-inline: auto; }
.trk .promise {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--amber);
  font-size: 0.93rem;
}

/* --- Setup steps --------------------------------------------------------- */

.reqs { display: grid; gap: 1px; background: var(--line); border: var(--rule);
        margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.req { background: var(--ink-900); display: grid;
       grid-template-columns: minmax(130px, .5fr) minmax(0, 2fr);
       gap: 1rem; padding: 1rem 1.25rem; font-size: 0.93rem; }
.req dt { color: var(--faint); }
.req dd { margin: 0; color: var(--text); }

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-bottom: var(--rule);
}
@media (max-width: 640px) { .step { grid-template-columns: 1fr; gap: .6rem; } }
.step-n {
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--line-hi);
  line-height: 1;
  direction: ltr;
}
.step:hover .step-n { color: var(--amber); transition: color .25s; }
.step h3 { margin-bottom: 0.55rem; }
.step > div > p { color: var(--dim); font-size: 0.96rem; }

.warn {
  margin-top: 1.15rem;
  padding: 1rem 1.2rem;
  border: var(--rule);
  border-inline-start: 2px solid var(--limit);
  border-radius: 2px;
  background: var(--ink-800);
}
.warn .tag { display: block; color: var(--limit); margin-bottom: 0.5rem; }
.warn p { color: var(--dim); font-size: 0.9rem; margin: 0; }

.vslot {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--line-hi);
  border-radius: 2px;
  font-size: 0.83rem;
  color: var(--faint);
}
.vslot::before {
  content: '';
  flex: none;
  width: 0; height: 0;
  border-block: 6px solid transparent;
  border-inline-end: 9px solid var(--amber);
  opacity: 0.8;
}

/* --- Support channels ---------------------------------------------------- */

.chans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1px;
  background: var(--line);
  border: var(--rule);
}
.chan { background: var(--ink-900); padding: clamp(1.5rem, 3vw, 2.1rem); }
.chan .tag { display: block; color: var(--amber); margin-bottom: 0.8rem; }
.chan h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.chan p { color: var(--dim); font-size: 0.92rem; }
.chan .val {
  display: block;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--probe);
  direction: ltr;
  unicode-bidi: isolate;
}

/* --- Payment ------------------------------------------------------------- */

/* The network warning outranks everything else on the page, because sending
   over the wrong chain is the one mistake nobody can undo. */
.netwarn {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--limit);
  border-inline-start-width: 3px;
  border-radius: 2px;
  background: rgba(232, 103, 76, 0.07);
  margin-bottom: 2rem;
}
.netwarn .tag { color: var(--limit); flex: none; padding-top: 0.2rem; }
.netwarn p { margin: 0; color: var(--text); font-size: 0.96rem; }

.paynote {
  padding: 1rem 1.2rem;
  border: var(--rule);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.paynote p { margin: 0; }
.paynote.ok   { border-inline-start: 3px solid var(--probe); background: var(--probe-8); }
.paynote.wait { border-inline-start: 3px solid var(--amber); background: var(--amber-8); }
.paynote.bad  { border-inline-start: 3px solid var(--limit);
                background: rgba(232,103,76,.07); }

.paygrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 1px;
  background: var(--line);
  border: var(--rule);
}
.paycard { background: var(--ink-900); padding: clamp(1.5rem, 3vw, 2.2rem); }
.paycard > .tag { display: block; color: var(--amber); margin-bottom: 1.3rem; }

.payrow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.94rem;
}
.payrow dt { color: var(--faint); }
.payrow dd { margin: 0; color: var(--text); text-align: left; direction: ltr; }
.payamount { font-size: 1.25rem; font-weight: 600; color: var(--amber); }

.payaddr { margin-top: 1.5rem; }
.payaddr .tag { display: block; color: var(--faint); margin-bottom: 0.6rem; }
.payaddr code, .keybox code {
  display: block;
  direction: ltr;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  word-break: break-all;
  padding: 0.85rem 1rem;
  background: var(--ink-700);
  border: 1px solid var(--line-hi);
  border-radius: 2px;
  color: var(--probe);
  user-select: all;                     /* one tap selects the whole address */
}
.payaddr .btn { margin-top: 0.7rem; width: 100%; justify-content: center; }

.payqr {
  display: block;
  margin: 1.5rem auto 0;
  border-radius: 3px;
  background: #fff;
  padding: 8px;
}
.payhint { margin-top: 1rem; font-size: 0.85rem; color: var(--faint); }
.paydone { color: var(--probe); font-weight: 500; }

.paylabel {
  display: block;
  font-size: 0.85rem;
  color: var(--faint);
  margin-bottom: 0.55rem;
}
.payinput {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: var(--ink-700);
  border: 1px solid var(--line-hi);
  border-radius: 2px;
  color: var(--text);
  font-size: 0.85rem;
  transition: border-color .18s;
}
.payinput:focus { border-color: var(--amber); outline: none; }

.paychecks {
  margin-top: 1.8rem;
  padding-top: 1.3rem;
  border-top: 1px dashed var(--line);
}
.paychecks .tag { display: block; color: var(--faint); margin-bottom: 0.8rem; }
.paychecks ul { margin: 0; padding-inline-start: 1.1rem; }
.paychecks li { font-size: 0.87rem; color: var(--dim); margin-bottom: 0.5rem; }

.paysteps { margin: 0 0 1.5rem; padding-inline-start: 1.2rem; }
.paysteps li { font-size: 0.93rem; color: var(--dim); margin-bottom: 0.8rem; }
code.inline {
  display: inline-block;
  direction: ltr;
  padding: 0.15rem 0.45rem;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--probe);
  font-size: 0.85em;
}

.keybox {
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border: 1px solid var(--amber-2);
  border-radius: 2px;
  background: var(--amber-8);
  text-align: center;
}
.keybox .tag { display: block; color: var(--amber); margin-bottom: 1.1rem; }
.keybox code {
  font-size: clamp(0.95rem, 0.85rem + 0.7vw, 1.35rem);
  letter-spacing: 0.06em;
  color: var(--text);
  text-align: center;
  background: var(--ink-900);
}
.keybox .btn { margin-top: 1.2rem; }

.copy.copied { border-color: var(--probe); color: var(--probe); }

/* --- Forms --------------------------------------------------------------- */

label {
  display: block;
  margin-bottom: 1.15rem;
  font-size: 0.9rem;
  color: var(--dim);
}
input[type="email"], input[type="password"], input[type="text"], textarea {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.72rem 0.9rem;
  background: var(--ink-900);
  border: 1px solid var(--line-hi);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color .18s;
}
input:focus, textarea:focus { outline: none; border-color: var(--amber); }
textarea { resize: vertical; line-height: 1.7; }
.hint { display: block; margin-top: 0.35rem; font-size: 0.78rem; color: var(--faint); }

.formerr {
  margin-bottom: 1.3rem;
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--limit);
  border-radius: 2px;
  background: rgba(232,103,76,.07);
  color: var(--text);
  font-size: 0.92rem;
}

.flash {
  margin-top: 1.4rem;
  padding: 0.85rem 1.05rem;
  border-radius: 2px;
  font-size: 0.92rem;
  border: 1px solid var(--line-hi);
}
.flash.ok { border-color: var(--probe); background: var(--probe-8); }

/* --- Auth cards ---------------------------------------------------------- */

.authwrap {
  display: flex;
  justify-content: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.authcard {
  width: min(460px, 100%);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--ink-800);
  border: var(--rule);
  border-top: 2px solid var(--amber);
  border-radius: 2px;
}
.authcard.wide { width: min(680px, 100%); }
.authcard .tag { display: block; margin-bottom: 0.9rem; }
.authcard h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 1.3rem; }
.authlede { color: var(--dim); font-size: 0.94rem; margin-bottom: 1.6rem; }
.authcard .btn { width: 100%; justify-content: center; }
.authalt {
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: var(--rule);
  font-size: 0.88rem;
  color: var(--faint);
}
.authalt a { color: var(--amber); }

/* --- The key, shown once ------------------------------------------------- */

.keybox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1.1rem;
  margin-bottom: 1.4rem;
  background: var(--ink-900);
  border: 1px solid var(--amber-2);
  border-radius: 2px;
}
.keyval {
  flex: 1 1 260px;
  font-family: var(--mono);
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.25rem);
  letter-spacing: 0.06em;
  color: var(--amber);
  direction: ltr;
  unicode-bidi: isolate;
  word-break: break-all;
}
.keybox .btn { width: auto; flex: none; }

.nextsteps { margin-top: 1.6rem; }
.nextsteps h3 { font-size: 1.02rem; margin-bottom: 0.8rem; }
.nextsteps ol { margin: 0; padding-inline-start: 1.3rem; color: var(--dim); }
.nextsteps li { margin-bottom: 0.55rem; font-size: 0.92rem; }

/* --- Dashboard ----------------------------------------------------------- */

.acct {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.1rem, 2.5vw, 1.75rem);
}
.acct .span2 { grid-column: 1 / -1; }

.card {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--ink-800);
  border: var(--rule);
  border-radius: 2px;
}
.card .tag { display: block; color: var(--amber); margin-bottom: 0.9rem; }
.card h3 { font-size: 1.08rem; margin-bottom: 0.7rem; }
.card p { color: var(--dim); font-size: 0.93rem; }
.cardnote {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  font-size: 0.82rem;
  color: var(--faint);
  line-height: 1.7;
}
.cardnote a { color: var(--amber); }
.empty { color: var(--faint); font-style: normal; }

.statusline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
  font-size: 0.92rem;
  color: var(--dim);
}
.pill {
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid;
}
.pill.ok   { color: var(--probe); border-color: var(--probe); background: var(--probe-8); }
.pill.wait { color: var(--amber); border-color: var(--amber-2); background: var(--amber-8); }
.pill.off  { color: var(--faint); border-color: var(--line-hi); }

.kv { display: grid; gap: 0.85rem; margin-bottom: 1.4rem; }
.kv dt { font-size: 0.78rem; color: var(--faint); margin-bottom: 0.2rem; }
.kv dd { margin: 0; font-size: 0.95rem; color: var(--text); }

.btn.small { padding: 0.42rem 0.85rem; font-size: 0.84rem; }

.ticket {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 0 1.1rem;
  margin-top: 1.2rem;
}
.ticket .span2 { grid-column: 1 / -1; }

/* --- 404 ----------------------------------------------------------------- */

.nf { text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.nf-code {
  font-family: var(--mono);
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  font-weight: 600;
  color: var(--line-hi);
  line-height: 1;
  letter-spacing: -0.05em;
  direction: ltr;
}
.nf h1 { margin-block: 1.5rem 1rem; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.nf p { color: var(--dim); max-width: 46ch; margin-inline: auto; margin-bottom: 2rem; }
