/* ============================================================
   Axion Software -- free trial signup (J1TS1FC7)

   Used by: free-trial.html, trial-confirm.html
   Loaded AFTER styles.css, whose palette and type scale it inherits
   (--cyan/--blue/--purple on --dark*, Exo 2 for display, Inter for body).

   Its own file rather than an append to styles.css, following bot.css:
   this is a self-contained flow on two pages and nothing else on the site
   uses any of it.
   ============================================================ */

/* ── The card ───────────────────────────────────────────────── */

.tr-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 96px;
}

.tr-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 38px 38px 32px;
  position: relative;
  /* Lifted, because it is the only object on the page that matters. */
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

/* ── Progress ───────────────────────────────────────────────── */
/* A bar, not dots: the count changes with what they pick, and a rail that
   fills reads as progress without the reader counting anything. */

.tr-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.tr-rail {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.tr-rail i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--purple));
  transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tr-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Steps ──────────────────────────────────────────────────── */

.tr-step { display: none; }
.tr-step.is-on { display: block; animation: trIn 0.32s cubic-bezier(0.22, 0.61, 0.36, 1); }

@keyframes trIn {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

.tr-step h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(23px, 3.4vw, 29px);
  font-weight: 800;
  line-height: 1.16;
  color: var(--white);
  text-wrap: balance;
  margin-bottom: 9px;
}

/* Focused by script on every step change, never reached by Tab -- so the
   focus ring would only ever appear when nobody asked for it. */
.tr-step h2:focus { outline: none; }

.tr-step .tr-sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 26px;
  max-width: 52ch;
}

/* ── Product picker ─────────────────────────────────────────── */

.tr-picks { display: flex; flex-direction: column; gap: 12px; }

.tr-pick {
  display: grid;
  grid-template-columns: 46px 1fr 22px;
  gap: 16px;
  align-items: start;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--text);
  padding: 18px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.tr-pick:hover { border-color: rgba(255,255,255,0.16); transform: translateY(-1px); }

.tr-pick[aria-pressed="true"] {
  border-color: var(--blue);
  background: rgba(59, 111, 245, 0.09);
}

.tr-pick .tr-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1.5px var(--pa, var(--border));
}
.tr-pick .tr-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tr-pick .tr-name {
  font-family: 'Exo 2', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--white);
}
.tr-pick .tr-tag {
  font-size: 12px; color: var(--muted); margin-left: 9px; font-weight: 500;
}
.tr-pick .tr-blurb {
  display: block;
  font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-top: 5px;
}

.tr-tick {
  width: 21px; height: 21px; margin-top: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.tr-pick[aria-pressed="true"] .tr-tick {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: inset 0 0 0 4px var(--dark3);
}

/* A product that exists but is not provisionable yet: shown, never offered.
   Hiding it loses a waitlist signup; offering it promises a site we cannot
   build. */
.tr-pick.is-soon { cursor: default; background: var(--dark2); opacity: 0.72; }
.tr-pick.is-soon:hover { transform: none; border-color: var(--border); }
.tr-soon {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
  color: #f5b301; background: rgba(245,179,1,0.13);
  border-radius: 5px; padding: 3px 8px; margin-left: 9px; vertical-align: 2px;
}
.tr-waitlist {
  display: inline-block; margin-top: 9px;
  font-size: 13px; color: var(--cyan); text-decoration: none;
}
.tr-waitlist:hover { text-decoration: underline; }

/* ── Fields ─────────────────────────────────────────────────── */

.tr-fields { display: flex; flex-direction: column; gap: 17px; }
.tr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.tr-field { display: flex; flex-direction: column; gap: 7px; }
.tr-field > span {
  font-size: 12.5px; font-weight: 600; color: var(--text); letter-spacing: 0.01em;
}
.tr-field > span em { font-style: normal; font-weight: 400; color: var(--muted); }

.tr-field input,
.tr-field select {
  width: 100%;
  padding: 13px 15px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 10px;
  transition: border-color 0.16s, box-shadow 0.16s;
  -webkit-appearance: none;
  appearance: none;
}
.tr-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%238892a4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 38px;
}
.tr-field input::placeholder { color: #4b5364; }
.tr-field input:focus,
.tr-field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 111, 245, 0.2);
}
.tr-field input[aria-invalid="true"] { border-color: #e8313f; }
/* font-weight is reset explicitly: `.tr-field > span` sets 600 for the label
   and these are siblings under the same selector, so without it the hint and
   the error render as bold as the field name above them. */
.tr-field .tr-hint { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.tr-field .tr-err  { font-size: 12.5px; font-weight: 400; color: #ff9aa3; display: none; }
.tr-field.has-err .tr-err { display: block; }

/* Honeypot. Off-screen rather than display:none -- some bots skip hidden
   fields but happily fill one they can still reach. */
.tr-hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

/* ── Server picker ──────────────────────────────────────────── */
/* Same object as .tr-pick above -- a full-width row that selects -- but three
   columns instead of three-with-a-logo: there is no mark for a server and a
   placeholder square would be decoration. Distance sits in its own column so
   the numbers line up down the list and can be compared at a glance. */

.tr-svhead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 11px;
}
.tr-svlabel {
  font-family: 'Exo 2', sans-serif;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted);
}
.tr-svfrom { font-size: 12.5px; color: var(--muted); }
.tr-svfrom b { color: var(--text); font-weight: 600; }

.tr-servers { display: flex; flex-direction: column; gap: 10px; }

.tr-server {
  display: grid;
  grid-template-columns: 1fr auto 22px;
  gap: 16px; align-items: center;
  width: 100%; text-align: left; font: inherit; color: var(--text);
  padding: 15px 17px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.tr-server:hover { border-color: rgba(255,255,255,0.16); transform: translateY(-1px); }
.tr-server[aria-pressed="true"] {
  border-color: var(--blue);
  background: rgba(59, 111, 245, 0.09);
}

.tr-svname {
  font-family: 'Exo 2', sans-serif;
  font-size: 16.5px; font-weight: 700; color: var(--white);
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.tr-svwhere {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--muted); margin-top: 3px;
}
.tr-svwhere svg { width: 13px; height: 13px; flex: none; }

/* Reads as a recommendation, not as a status: the cyan is the same one the
   selected tick uses, so the badge and the choice belong to each other. */
.tr-svbest {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--cyan); background: rgba(0, 207, 255, 0.12);
  border-radius: 5px; padding: 3px 8px;
}

.tr-svdist {
  font-size: 12.5px; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right;
}
.tr-svdist b { display: block; font-size: 15px; color: var(--text); font-weight: 600; }

/* Its own rule rather than reusing .tr-tick: that one is sized against a
   46px logo and sits 12px down to meet it. */
.tr-svtick {
  width: 21px; height: 21px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.tr-server[aria-pressed="true"] .tr-svtick {
  border-color: var(--cyan); background: var(--cyan);
  box-shadow: inset 0 0 0 4px var(--dark2);
}

.tr-svmore {
  margin-top: 12px; background: none; border: 0; padding: 0; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--cyan);
}
.tr-svmore:hover { text-decoration: underline; }

.tr-svfoot {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 13px; line-height: 1.6; color: var(--muted);
}
.tr-svfoot svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }

/* While the list is loading, and when it could not be loaded. Both keep the
   step usable: Continue is never blocked on this call, because Nexus picks a
   server perfectly well on its own. */
.tr-svnote {
  padding: 16px 17px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 13.5px; line-height: 1.6; color: var(--muted);
}

/* ── Review ─────────────────────────────────────────────────── */

.tr-review {
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
}
.tr-review div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  align-items: baseline;
}
.tr-review div:last-child { border-bottom: 0; }
.tr-review dt { font-size: 12.5px; color: var(--muted); }
.tr-review dd { color: var(--text); word-break: break-word; }
.tr-review dd b { color: var(--white); font-weight: 600; }
.tr-review .tr-why {
  display: block; font-size: 12px; color: var(--muted); margin-top: 3px;
}
.tr-edit {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--cyan);
}
.tr-edit:hover { text-decoration: underline; }

.tr-consent {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 22px; font-size: 13.5px; line-height: 1.6; color: var(--muted);
}
.tr-consent input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; flex: none; }
.tr-consent a { color: var(--cyan); }

/* ── Actions ────────────────────────────────────────────────── */

.tr-acts {
  display: flex; align-items: center; gap: 12px;
  margin-top: 28px; flex-wrap: wrap;
}
.tr-acts .tr-spacer { flex: 1; }

.tr-next, .tr-back {
  font-family: 'Exo 2', sans-serif;
  font-size: 14.5px; font-weight: 700; letter-spacing: 0.02em;
  padding: 13px 28px; border-radius: 10px; cursor: pointer;
  border: none; text-decoration: none; display: inline-block;
  transition: opacity 0.2s, transform 0.15s, background 0.2s;
}
.tr-next {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
}
.tr-next:hover:not(:disabled) { opacity: 0.93; transform: translateY(-1px); }
.tr-next:disabled { opacity: 0.5; cursor: not-allowed; }
.tr-back {
  color: var(--muted); background: none;
  border: 1px solid rgba(255,255,255,0.11);
}
.tr-back:hover { color: var(--white); background: rgba(255,255,255,0.05); }

.tr-next:focus-visible, .tr-back:focus-visible,
.tr-pick:focus-visible, .tr-edit:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}

/* ── Status screens ─────────────────────────────────────────── */

.tr-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 22px;
}
.tr-icon svg { width: 28px; height: 28px; }
.tr-icon.is-mail { background: rgba(0,207,255,0.11); border: 1px solid rgba(0,207,255,0.3); }
.tr-icon.is-done { background: rgba(39,153,76,0.13); border: 1px solid rgba(39,153,76,0.35); }
.tr-icon.is-warn { background: rgba(245,179,1,0.11); border: 1px solid rgba(245,179,1,0.32); }

.tr-msg {
  margin-top: 18px; padding: 14px 17px; border-radius: 11px;
  font-size: 14px; line-height: 1.6; display: none;
}
.tr-msg.is-on { display: block; }
.tr-msg.is-err { background: rgba(232,49,63,0.11); border: 1px solid rgba(232,49,63,0.3); color: #ff9aa3; }
.tr-msg.is-ok  { background: rgba(39,153,76,0.11); border: 1px solid rgba(39,153,76,0.3); color: #7ee2a4; }

/* ── Build progress ─────────────────────────────────────────── */

.tr-steps { list-style: none; border: 1px solid var(--border); border-radius: 13px; overflow: hidden; }
.tr-steps li {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: center;
  padding: 15px 18px; border-bottom: 1px solid var(--border);
  font-size: 14.5px; color: var(--muted);
  transition: color 0.3s;
}
.tr-steps li:last-child { border-bottom: 0; }
.tr-steps li .tr-dot {
  width: 19px; height: 19px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.14);
  display: grid; place-items: center;
}
.tr-steps li .tr-dot svg { width: 11px; height: 11px; opacity: 0; transition: opacity 0.2s; }
.tr-steps li.is-done { color: var(--text); }
.tr-steps li.is-done .tr-dot { border-color: var(--dm-green-bright); background: rgba(39,153,76,0.18); }
.tr-steps li.is-done .tr-dot svg { opacity: 1; }
.tr-steps li.is-now { color: var(--white); }
.tr-steps li.is-now .tr-dot {
  border-color: var(--cyan); border-right-color: transparent;
  animation: trSpin 0.85s linear infinite;
}
@keyframes trSpin { to { transform: rotate(360deg); } }

/* ── Handoff cards ──────────────────────────────────────────── */

.tr-hand { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.tr-hand a {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 17px 19px; background: var(--dark2);
  border: 1px solid var(--border); border-radius: 13px;
  text-decoration: none; color: var(--text);
  transition: border-color 0.18s, transform 0.18s;
}
.tr-hand a:hover { border-color: rgba(255,255,255,0.17); transform: translateY(-1px); }
.tr-hand .tr-ht { font-family: 'Exo 2', sans-serif; font-size: 16px; font-weight: 700; color: var(--white); }
.tr-hand .tr-hs { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.tr-hand .tr-hs b { color: var(--text); font-weight: 600; }
.tr-hand .tr-go {
  font-size: 20px; color: var(--cyan); line-height: 1;
}

.tr-ribbon {
  display: flex; align-items: center; gap: 14px;
  margin-top: 24px; padding: 15px 18px;
  border: 1px solid rgba(245,179,1,0.28);
  background: rgba(245,179,1,0.07);
  border-radius: 13px;
  font-size: 13.5px; line-height: 1.6; color: #e8d7ab;
}
.tr-ribbon b { color: var(--white); }
.tr-ribbon .tr-days {
  font-family: 'Exo 2', sans-serif; font-size: 24px; font-weight: 800;
  color: #f5b301; line-height: 1; flex: none;
}

/* ── What's included (landing) ──────────────────────────────── */

.tr-incl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 26px; margin-top: 8px; }
.tr-incl li {
  list-style: none; display: grid; grid-template-columns: 18px 1fr; gap: 11px;
  font-size: 14.5px; line-height: 1.55; color: var(--muted);
}
.tr-incl svg { width: 18px; height: 18px; margin-top: 2px; }

/* ── Footer mark ────────────────────────────────────────────── */

.tr-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border);
}
/* Deliberately NOT a <nav>: styles.css styles the bare `nav` element as the
   site's fixed header, so a <nav> here would become a second one pinned to the
   top of the page. */
.tr-links { display: flex; gap: 18px; font-size: 13px; }
.tr-links a { color: var(--muted); text-decoration: none; }
.tr-links a:hover { color: var(--cyan); }
.tr-foot img { width: 154px; height: auto; border-radius: 9px; background: #000; opacity: 0.9; }

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 620px) {
  .tr-wrap  { padding: 0 14px 64px; }
  .tr-card  { padding: 26px 20px 24px; border-radius: 15px; }
  .tr-row   { grid-template-columns: 1fr; }
  .tr-incl  { grid-template-columns: 1fr; }
  .tr-review div { grid-template-columns: 1fr; gap: 3px; padding: 12px 15px; }
  .tr-pick  { grid-template-columns: 40px 1fr 20px; gap: 13px; padding: 15px; }
  .tr-pick .tr-logo { width: 40px; height: 40px; }
  .tr-pick .tr-tag { display: block; margin-left: 0; margin-top: 2px; }
  /* The distance column drops under the name rather than squeezing it: a
     server called "Dallas 1" and "1,358 mi away" do not both fit on a narrow
     phone, and the name is the part they are choosing between. */
  .tr-server { grid-template-columns: 1fr 22px; row-gap: 9px; padding: 14px 15px; }
  .tr-svtick { grid-column: 2; grid-row: 1; }
  .tr-svdist { grid-column: 1; grid-row: 2; text-align: left; }
  .tr-svdist b { display: inline; font-size: 13.5px; margin-right: 4px; }
  .tr-acts { gap: 10px; }
  .tr-next, .tr-back { flex: 1; text-align: center; padding: 13px 18px; }
  .tr-acts .tr-spacer { display: none; }
  .tr-foot { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-step.is-on { animation: none; }
  .tr-rail i { transition: none; }
  .tr-steps li.is-now .tr-dot { animation: none; border-color: var(--cyan); }
  .tr-pick:hover, .tr-next:hover, .tr-hand a:hover { transform: none; }
  .tr-server:hover { transform: none; }
}
