
/* ⚠ THE PAGE BACKGROUND IS SET HERE, NOT INHERITED. This page is
   embedded, and the host's background showed through around .inst. */
html, body { background: #0a0a0b; margin: 0; }

/* ---------------------------------------------------------------
   Palette and type taken from hub-nav.html, exactly.

   ⚠ The nav's variables are declared on #myreio-hubnav, NOT on :root,
   so they do not cascade to page content — this page cannot inherit
   them and has to restate them. Keep the two in sync by hand, or
   promote the nav's block to :root and delete this one.
   --------------------------------------------------------------- */
.inst {
  --ink:        #ffffff;
  --muted:      rgba(255,255,255,.82);
  --dim:        rgba(255,255,255,.68);
  --bg:         #0a0a0b;   /* --nav-bg */
  --panel:      #101012;   /* --nav-panel */
  --line:       #2b2b33;   /* --nav-panel-line */
  --accent:     #ffcc33;   /* --gold */
  --accent-hi:  #ffd75e;   /* --gold-hover */
  --accent-ink: #0a0a0b;
  --display: 'Archivo', Arial, sans-serif;
  --body:    'Lato', Arial, sans-serif;

  color: var(--ink);
  max-width: 62rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
  font-family: var(--body);
}
.inst h1, .inst h2, .inst .btn, ol.steps li::before {
  font-family: var(--display);
}

.inst h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 .75rem;
  font-weight: 700;
}
.inst .lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34rem;
  margin: 0 0 2.5rem;
}
.inst .lede strong { color: var(--ink); font-weight: 600; }

/* --- hero: the outcome, shown rather than described --------------- */
.inst-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
/* ⚠ ONE COLUMN. The second column held the phone mock-up, removed
   28 Aug. Leaving `1fr 15rem` would reserve 15rem of empty space and
   squeeze the form for nothing. */
.inst-hero { max-width: 34rem; }

/* --- the demo form ----------------------------------------------- */
.form { background: var(--panel); border: 1px solid var(--accent);
  border-radius: .9rem; padding: 1.5rem 1.35rem; }
/* Icon sits on the heading's baseline, ahead of it. */
.form-head { display: flex; align-items: center; gap: .7rem; margin: 0 0 .35rem; }
.form-head img { width: 2.25rem; height: 2.25rem; border-radius: .5rem;
  flex: 0 0 auto; display: block; }
.form h2 { font-size: 1.05rem; margin: 0; font-weight: 600; }
.form .why { color: var(--muted); font-size: .9rem; line-height: 1.55;
  margin: 0 0 1.15rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-size: .8rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--dim); margin-bottom: .35rem;
  font-family: var(--display); font-weight: 600; }
/* ⚠ CAPPED, NOT FULL-WIDTH. A ZIP is five characters and an email is
   about thirty; a field running the whole width of the card looks like
   it wants a paragraph, and on a wide screen the label ends up a long
   way from the caret.
   ⚠ max-width, NOT a fixed width. The field still shrinks on a narrow
     phone -- a fixed 320px would overflow the card at 360px.
   ⚠ 16px MINIMUM font-size elsewhere in this rule. Below that iOS
     Safari zooms the page on focus, which on a signup form reads as
     the page breaking. */
.field input { width: 100%; max-width: 260px; background: #08080a; color: var(--ink);
  border: 1px solid var(--line); border-radius: .5rem;
  padding: .75rem .8rem; font: inherit; font-size: 1rem; }
/* ⚠ THE ZIP IS NARROWER AGAIN. Five digits in a 330px box reads as a
   field somebody forgot to finish. Sized to its content so the form
   tells you how much it wants before you type.
   🔴 AND A WHITE BORDER, BECAUSE NARROW MADE IT INVISIBLE. At 110px with
      the same 1px var(--line) every other field uses, it stopped reading
      as an input at all on a black card — the one required field on the
      page, and the eye went straight past it. Width was the fix for one
      problem and the cause of another. */
#demoZip {
  max-width: 110px;
  border: 1.5px solid #ffffff;
  background: #0b0b0d;
}
/* ⚠ The placeholder has to stay dimmer than a typed value, or an empty
   field reads as a filled one and people submit the example ZIP. */
#demoZip::placeholder { color: rgba(255,255,255,.68); }
#demoZip:focus { border-color: var(--accent); }
.field input:focus { outline: none; border-color: var(--accent); }
.field input.bad { border-color: #e05252; }
/* ⚠ .field .opt WAS DELETED 1 Sep 2026 with the optional-email flow.
   It styled an "optional" marker on the email label. No markup uses it
   now, and a rule for a state the form cannot be in is how the next
   reader concludes the field is skippable. */
.field .hint { font-size: .78rem; color: var(--dim); margin-top: .35rem; }
.err { color: #ff8a8a; font-size: .85rem; margin: 0 0 .8rem; display: none; }
.err.on { display: block; }
.consent { font-size: .78rem; color: var(--dim); line-height: 1.5;
  margin-top: .9rem; }
.consent a { color: var(--accent); }
.spin { display:inline-block; width:.85rem; height:.85rem; margin-right:.5rem;
  border:2px solid rgba(10,10,11,.3); border-top-color:#0a0a0b;
  border-radius:50%; animation:sp .6s linear infinite; vertical-align:-.1rem; }
@keyframes sp { to { transform: rotate(360deg); } }
.result { display: none; }
.result.on { display: block; }
.result .tick { width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid;
  place-items: center; font-size: 1.2rem; font-weight: 700;
  margin-bottom: .9rem; }
.result .addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9rem; color: var(--ink); margin: .5rem 0 0; word-break: break-all; }

/* --- the instruction panel --------------------------------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: 1.5rem 1.35rem;
}
.panel h2 {
  font-size: 1.05rem; margin: 0 0 1rem; font-weight: 600;
  letter-spacing: -0.01em;
}
.panel[hidden] { display: none; }

ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
ol.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: .8rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
ol.steps li:first-child { border-top: 0; padding-top: 0; }
ol.steps li::before {
  content: counter(s);
  display: grid; place-items: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-size: .8rem; font-weight: 700;
}
ol.steps b { font-weight: 600; }
.glyph {
  display: inline-grid; place-items: center;
  width: 1.35rem; height: 1.35rem;
  vertical-align: -.3rem; margin: 0 .1rem;
  border-radius: .25rem; background: #26262b;
}
.glyph svg { width: .8rem; height: .8rem; fill: none;
  stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round; }

.btn {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: .55rem;
  padding: .8rem 1.35rem;
  font: inherit; font-weight: 650; font-size: 1rem;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--accent-hi); }
.inst :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}

.qr { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.qr .code {
  width: 8.5rem; padding: .7rem;
  background: #fff; border-radius: .6rem;
  color: #0a0a0b; flex: none;
}
.qr .code svg { display: block; width: 100%; height: auto; }
.url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9rem; color: var(--muted);
  word-break: break-all;
}

.note {
  margin-top: 1.1rem; padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .88rem; line-height: 1.5;
}
.after {
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.after h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.after p { color: var(--muted); margin: 0 0 1.25rem; max-width: 36rem; line-height: 1.55; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; }
  .gwrap{margin:0 0 4px}
  .gwrap .mrg-btn{display:flex;justify-content:center;margin-bottom:10px}
  .gwrap .mrg-msg{font-size:14px;color:var(--muted);line-height:1.6;margin:8px 0 0;text-align:center}
  .gwrap .mrg-msg.bad{color:#ff8a80}
  .gor{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--muted);font-size:14px;opacity:.7}
  .gor:before,.gor:after{content:"";flex:1;height:1px;background:rgba(255,255,255,.14)}
