/* 73 Wireless — hand-written stylesheet.
 *
 * No framework and no build step on purpose: this is a public marketing +
 * signup site, so it should be a couple of small files that render instantly
 * and depend on nothing third-party. One committed dark "instrument panel"
 * look — amber signal on ink, monospace for anything that is data.
 */

:root {
  --ink:        #0b0f14;
  --panel:      #121821;
  --panel-2:    #18202b;
  --line:       #26303d;
  --text:       #dfe7f0;
  --muted:      #8ea0b5;
  --signal:     #ffb020;   /* the accent: carrier/amber */
  --signal-dim: #7a5410;
  --good:       #3fb984;
  --bad:        #ff6b5e;
  --radius:     10px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  /* A very faint carrier-like sweep behind everything. */
  background-image:
    radial-gradient(60rem 30rem at 70% -10%, rgba(255, 176, 32, 0.07), transparent 60%),
    radial-gradient(40rem 25rem at 10% 10%, rgba(63, 185, 132, 0.05), transparent 60%);
  background-repeat: no-repeat;
}

a { color: var(--signal); text-decoration-color: var(--signal-dim); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 40rem; }

/* --- header / footer ---------------------------------------------------- */

header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.8);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  height: 4rem;
}
.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand .num { color: var(--signal); }
header.site nav { margin-left: auto; display: flex; gap: 1.25rem; align-items: center; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
header.site nav a:hover { color: var(--text); }
header.site nav a, .nav-btn { white-space: nowrap; }
/* On a phone, keep the header to one line: the in-page links go first. */
@media (max-width: 36rem) {
  header.site .wrap { gap: 0.75rem; }
  header.site nav { gap: 0.9rem; }
  header.site nav .wide { display: none; }
}
header.site nav form { margin: 0; }
/* "Sign out" is a POST, so it's a button dressed as a nav link. */
.nav-btn { background: none; border: 0; padding: 0; cursor: pointer;
           color: var(--muted); font: 0.95rem var(--sans); }
.nav-btn:hover { color: var(--text); }
header.site nav a.me { font-family: var(--mono); color: var(--signal); letter-spacing: 0.04em; }

footer.site {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
footer.site .wrap { padding-top: 2rem; padding-bottom: 3rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
footer.site a { color: var(--muted); }

/* --- hero --------------------------------------------------------------- */

.hero { padding: 4.5rem 0 2rem; }
.hero.compact { padding-bottom: 1rem; }
/* Inner pages: a smaller title than the splash. (Classes rather than style
   attributes, so the CSP needs no 'unsafe-inline'.) */
.hero h1.page-title { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.spaced { margin-top: 1.5rem; }
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 44rem; margin: 0 0 2rem; }
.hero .lede strong { color: var(--text); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--signal);
  border: 1px solid var(--signal-dim); border-radius: 999px;
  padding: 0.3rem 0.75rem; margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.6);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.55); }
  70%  { box-shadow: 0 0 0 0.6rem rgba(255, 176, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); }
}
@media (prefers-reduced-motion: reduce) { .eyebrow::before { animation: none; } }

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-block; font: 600 1rem/1 var(--sans);
  padding: 0.85rem 1.4rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--signal); color: #241700; }
.btn-primary:hover { background: #ffc247; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* --- cards / sections --------------------------------------------------- */

section { padding: 2.5rem 0; }
h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 0 0 1.25rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .tag {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--signal); display: block; margin-bottom: 0.6rem;
}

/* Spec strip: the numbers, presented like an instrument readout. */
/* Two columns on a phone, three on anything wider: both the 6-cell spec strip
 * and the 3-cell status strip land on tidy full rows instead of leaving a
 * ragged empty cell. */
.specs { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr);
         background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 44rem) { .specs { grid-template-columns: repeat(3, 1fr); } }
.specs div { background: var(--panel); padding: 1rem 1.1rem; }
.specs dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
            text-transform: uppercase; color: var(--muted); margin: 0 0 0.35rem; }
.specs dd { margin: 0; font-family: var(--mono); font-size: 1.05rem; color: var(--text); }

/* --- forms -------------------------------------------------------------- */

form.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem;
}
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .hint { display: block; color: var(--muted); font-size: 0.875rem; margin-bottom: 0.5rem; }
.field input[type="text"], .field input[type="email"], .field input[type="password"] {
  width: 100%; padding: 0.7rem 0.8rem; font: 1rem var(--sans);
  color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 8px;
}
.field input:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: transparent; }
.field input.call { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.15rem; }
/* The attestation label sits inside .field, which bolds its labels — this is
 * running text, so put the weight back. */
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.check span { font-weight: 400; }
.check input { margin-top: 0.25rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--signal); }

.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--signal);
  background: var(--panel-2); border-radius: 6px;
  padding: 0.9rem 1rem; margin: 0 0 1.5rem; font-size: 0.95rem; color: var(--muted);
}
.notice strong { color: var(--text); }
.notice.error { border-left-color: var(--bad); }
.notice.ok    { border-left-color: var(--good); }

.code {
  font-family: var(--mono); font-size: 1.35rem; letter-spacing: 0.12em;
  background: var(--panel-2); border: 1px dashed var(--signal-dim);
  border-radius: 8px; padding: 1rem; display: block; text-align: center;
  color: var(--signal); word-break: break-all;
}

ul.plain { padding-left: 1.1rem; color: var(--muted); }
ul.plain li { margin-bottom: 0.4rem; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* --- account settings ----------------------------------------------------- */

.settings section { padding: 1.25rem 0; }
.settings .hero { padding-bottom: 0.5rem; }
.settings h2 { margin-bottom: 0.5rem; }
.settings form.panel { padding: 1.25rem 1.5rem; margin-top: 1rem; }
.settings .row { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; }
.list { list-style: none; padding: 0; margin: 1rem 0 0; border: 1px solid var(--line);
        border-radius: var(--radius); overflow: hidden; }
.list li { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center;
           justify-content: space-between; padding: 0.85rem 1.1rem;
           background: var(--panel); border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .what { display: flex; flex-direction: column; min-width: 0; }
.list .what .mono { overflow-wrap: anywhere; }
.list form { margin: 0; }
.btn-small { padding: 0.35rem 0.8rem; font-size: 0.875rem; }
.tag-good { color: var(--good); }
.tag-bad  { color: var(--bad); }

/* --- messaging ------------------------------------------------------------ */

/* The unread count in the header. */
.badge { display: inline-block; margin-left: 0.35rem; min-width: 1.3rem; padding: 0 0.35rem;
         border-radius: 999px; background: var(--signal); color: #241700;
         font: 700 0.72rem/1.3rem var(--sans); text-align: center; vertical-align: 0.1em; }
.badge[hidden] { display: none; }

/* An app page fills the window under the header; panes scroll, not the page. */
body.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.app main { flex: 1; min-height: 0; }

.messenger { height: 100%; display: grid; grid-template-columns: 19rem 1fr;
             padding-top: 1rem; padding-bottom: 1rem; }
.convos, .thread { display: flex; flex-direction: column; min-height: 0;
                   border: 1px solid var(--line); background: var(--panel); }
.convos { border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.thread { padding: 0; border-radius: 0 var(--radius) var(--radius) 0; background: #0f141b; }

.newmsg { display: flex; gap: 0.5rem; padding: 0.75rem; border-bottom: 1px solid var(--line); margin: 0; }
.newmsg input { flex: 1; min-width: 0; padding: 0.45rem 0.6rem; color: var(--text);
                background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
                font: 1rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.newmsg input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--sans); }
.newmsg input:focus, .composer textarea:focus { outline: 2px solid var(--signal); outline-offset: 1px;
                                                border-color: transparent; }
.convos .notice { margin: 0.75rem; }

.convo-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.convo-list .empty { padding: 1.25rem 1rem; color: var(--muted); font-size: 0.9rem; }
a.convo { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.7rem 1rem;
          color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
a.convo:hover { background: var(--panel-2); }
a.convo.active { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--signal); }
.c-top, .c-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.c-call { font-family: var(--mono); font-weight: 700; letter-spacing: 0.04em; }
.c-time { font: 0.75rem var(--mono); color: var(--muted); white-space: nowrap; }
.c-name { font-size: 0.8rem; color: var(--muted); }
.c-preview { font-size: 0.875rem; color: var(--muted); min-width: 0;
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.convo.unread .c-preview { color: var(--text); }
.c-badge { flex: none; min-width: 1.3rem; padding: 0 0.35rem; border-radius: 999px; text-align: center;
           background: var(--signal); color: #241700; font: 700 0.72rem/1.3rem var(--sans); }

.thread-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem;
               border-bottom: 1px solid var(--line); background: var(--panel); }
.thread-head .who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.thread-head .call { font: 700 1.1rem var(--mono); letter-spacing: 0.05em; }
.thread-head .back { display: none; font-size: 1.6rem; line-height: 1; text-decoration: none; padding: 0 0.25rem; }

/* column-reverse starts the scroll at the newest message, with no script. */
.scroller { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column-reverse; }
.msgs { list-style: none; margin: 0; padding: 0.75rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.msg { display: flex; flex-direction: column; max-width: min(78%, 34rem); }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; align-items: flex-start; }
.bubble { padding: 0.5rem 0.8rem; border-radius: 16px; line-height: 1.4;
          white-space: pre-wrap; overflow-wrap: anywhere; }
.mine .bubble { background: var(--signal); color: #241700; border-bottom-right-radius: 4px; }
.theirs .bubble { background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.meta { display: flex; gap: 0.35rem; align-items: center; margin: 0.1rem 0.35rem 0.2rem;
        font: 0.7rem var(--mono); color: var(--muted); }
.tick::before { content: "✓"; }
.delivered .tick::before, .read .tick::before { content: "✓✓"; letter-spacing: -0.3em; padding-right: 0.3em; }
.read .tick { color: var(--good); }
.held .tick::before { content: "◷"; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.msgs .day { align-self: center; margin: 0.75rem 0 0.25rem; font: 0.7rem var(--mono); color: var(--muted);
             text-transform: uppercase; letter-spacing: 0.1em; }
.earlier { display: block; text-align: center; padding: 0.75rem; font-size: 0.875rem; }
.empty-thread { color: var(--muted); text-align: center; padding: 2rem 1rem; margin: 0; }

.thread-note { margin: 0; padding: 0.6rem 1rem; font-size: 0.875rem; color: var(--muted);
               border-top: 1px solid var(--line); background: var(--panel); }
.thread-note strong { color: var(--text); }
.thread-note.bad { color: var(--bad); }

.composer { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; padding: 0.75rem;
            border-top: 1px solid var(--line); background: var(--panel); margin: 0;
            border-radius: 0 0 var(--radius) 0; }
.composer textarea { resize: none; min-height: 2.6rem; max-height: 10rem; padding: 0.55rem 0.8rem;
                     font: 1rem/1.4 var(--sans); color: var(--text); background: var(--panel-2);
                     border: 1px solid var(--line); border-radius: 8px; }
.composer .btn { align-self: end; padding: 0.7rem 1.1rem; }
.composer .btn:disabled { opacity: 0.6; cursor: default; }
.composer-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem;
                 font-size: 0.8rem; }
.composer-foot:has(span:empty + span:empty) { display: none; }

.thread.placeholder { justify-content: center; align-items: center; text-align: center;
                      padding: 2rem; color: var(--muted); }
.thread.placeholder p { margin: 0.25rem 0; max-width: 26rem; }

/* Phones: one pane at a time. The list, or the open conversation. */
@media (max-width: 44rem) {
  .messenger { grid-template-columns: 1fr; padding: 0; }
  .convos, .thread { border: 0; border-radius: 0; }
  .composer { border-radius: 0; }
  .messenger.has-thread .convos { display: none; }
  .messenger:not(.has-thread) .thread { display: none; }
  .thread-head .back { display: inline-block; }
  .msg { max-width: 85%; }
}

/* Bots are always labelled as such. */
.bot-tag { display: inline-block; padding: 0 0.35rem; border: 1px solid var(--signal-dim); border-radius: 4px;
           font: 700 0.65rem/1.4 var(--mono); letter-spacing: 0.08em; color: var(--signal); vertical-align: 0.15em; }
