/* ==========================================================================
   Choice router — the "which one do you need?" dialog
   Serves two flows (see assets/js/router.js): picking an industry to book a
   call, and picking between the bookkeeping and tax portals at login.
   Loaded after base.css.
   ========================================================================== */

.router {
  border: 0;
  padding: 0;
  max-width: min(620px, calc(100vw - 32px));
  width: 100%;
  background: transparent;
  color: var(--bone);
  overflow: visible;
}
.router::backdrop {
  background: rgba(4, 10, 9, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.router__panel {
  position: relative;
  background: var(--ink);
  border: 1px solid rgba(201, 162, 77, .35);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
/* A gold hairline across the top, echoing the plate seam. */
.router__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(201, 162, 77, 0), rgba(201, 162, 77, .8), rgba(201, 162, 77, 0));
}

.router__close {
  position: absolute;
  top: clamp(16px, 2vw, 22px);
  right: clamp(16px, 2vw, 22px);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(244, 241, 234, .22);
  background: none;
  color: var(--bone);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease;
}
.router__close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.router__eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(201, 162, 77, .9);
}
.router__title {
  margin: 0 0 10px;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.06;
  letter-spacing: -.04em;
  color: var(--cream);
  text-wrap: pretty;
}
.router__sub {
  margin: 0 0 clamp(22px, 3vw, 30px);
  max-width: 40ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(244, 241, 234, .68);
  text-wrap: pretty;
}

.router__options {
  display: grid;
  gap: 10px;
}

.router-option {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "n    label"
    "n    note"
    "n    go";
  column-gap: 16px;
  align-items: start;
  border: 1px solid rgba(232, 236, 231, .16);
  border-radius: 6px;
  padding: clamp(16px, 2vw, 22px);
  color: var(--bone);
  transition: border-color .3s ease, background .3s ease, transform .3s var(--ease-out);
}
.router-option:hover,
.router-option:focus-visible {
  border-color: rgba(201, 162, 77, .65);
  background: rgba(201, 162, 77, .08);
  color: var(--bone);
  transform: translateX(3px);
}

.router-option__n {
  grid-area: n;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: rgba(201, 162, 77, .75);
}
.router-option__label {
  grid-area: label;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.7vw, 21px);
  letter-spacing: -.028em;
  color: var(--cream);
}
.router-option__note {
  grid-area: note;
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(244, 241, 234, .62);
  text-wrap: pretty;
}
.router-option__go {
  grid-area: go;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.router-option__go i {
  font-style: normal;
  transition: margin-left .3s var(--ease-out);
  margin-left: 2px;
}
.router-option:hover .router-option__go i { margin-left: 7px; }

.router__alt {
  margin: clamp(20px, 2.6vw, 28px) 0 0;
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid rgba(232, 236, 231, .12);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: rgba(244, 241, 234, .5);
}
.router__alt a { color: var(--gold); }
.router__alt a:hover { color: var(--gold-light); }

@media (prefers-reduced-motion: reduce) {
  .router-option,
  .router-option__go i { transition: none; }
  .router-option:hover,
  .router-option:focus-visible { transform: none; }
}
