/* ============================================================================
   REGISTRATION + TRIAL  ·  prefix: reg-  ·  /register/*, /trial
   ----------------------------------------------------------------------------
   The public activation flow in the landing's "data sheet" language (landing.css
   provides the shared lp- chrome: topbar, container, footer, trust strip). The
   look mirrors the legacy master's reworked trial page: white form card as the
   hero on the light canvas, flat navy header band, hairlines over shadows, teal
   only as accent. MDS tokens only.
   ============================================================================ */

/* --- shell: flat navy header band + canvas main ---------------------------- */
.reg { background: var(--mds-canvas); }
.reg-head {
    background: #14374E;   /* bespoke marketing navy — deliberately distinct from --mds-navy-700,
                               no exact token match; repeats at .reg-side, .reg-device, the ship icon */
    color: var(--mds-on-accent);
    border-bottom: 3px solid var(--mds-accent);
}
.reg-head__copy {
    max-width: 44rem; margin: 0 auto; text-align: center;
    padding: clamp(28px, 4vw, 48px) 0 clamp(32px, 5vw, 56px);
}
.reg-head__copy h1 {
    margin: 0 0 10px; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12;
    letter-spacing: -.015em; font-weight: 800; color: var(--mds-on-accent);
}
.reg-head__copy p { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .78); }

.reg-main { flex: 1; padding: clamp(32px, 5vw, 56px) 0; }

/* --- the white card -------------------------------------------------------- */
.reg-card {
    background: var(--mds-surface); border: 1px solid var(--mds-line);
    border-radius: var(--mds-radius-lg); padding: 28px 32px;
    max-width: 34rem; margin: 0 auto; box-sizing: border-box;
}
.reg-card--chooser { max-width: 30rem; }
.reg-card--flush { margin: 0; max-width: none; }   /* inside a reg-grid column */

.reg-loading { margin: 8px 0; text-align: center; color: var(--mds-muted); }

/* --- account type chooser --------------------------------------------------- */
.reg-choice {
    display: flex; align-items: center; gap: 16px;
    padding: 18px; margin-bottom: 12px;
    border: 1px solid var(--mds-line); border-radius: var(--mds-radius-lg);
    text-decoration: none; color: var(--mds-text);
    transition: border-color .15s ease, background .15s ease;
}
.reg-choice:hover { border-color: var(--mds-accent); background: var(--mds-tint); }
.reg-choice__icon {
    flex: none; width: 46px; height: 46px; border-radius: var(--mds-radius);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--mds-tint); color: var(--mds-accent-ink); font-size: 19px;
}
.reg-choice__icon--ship { background: #EAF1F5; color: #14374E; }   /* #EAF1F5 is close to but not
    exactly --mds-teal-50 (#EAF5F6) — bespoke tint, left literal rather than shift the color */
.reg-choice__title { display: block; font-size: 16px; font-weight: 700; color: var(--mds-title); }
.reg-choice__desc { display: block; margin-top: 2px; font-size: 13px; color: var(--mds-muted); }
.reg-choice__arrow { margin-left: auto; font-size: 13px; color: var(--mds-muted); }
.reg-choice:hover .reg-choice__arrow { color: var(--mds-accent-ink); }

.reg-aside { margin: 18px 0 0; text-align: center; font-size: 13px; line-height: 1.8; color: var(--mds-muted); }
.reg-aside a { color: var(--mds-accent-ink); font-weight: 600; text-decoration: none; }
.reg-aside a:hover { text-decoration: underline; }

/* --- form primitives (twin of the trial card) ------------------------------- */
.reg-field { margin-bottom: 16px; }
.reg-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 560px) { .reg-row { grid-template-columns: 1fr 1fr; } }

.reg-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--mds-title); }
.reg-req { color: var(--mds-danger); font-weight: 700; }
.reg-hint { display: block; margin-top: 5px; font-size: 12.5px; color: var(--mds-muted); }

.reg-input, .reg-select, .reg-textarea {
    width: 100%; box-sizing: border-box; padding: 10px 12px; line-height: 1.4;
    font-family: var(--mds-font); font-size: 14px; color: var(--mds-text);
    background: var(--mds-surface); border: 1px solid var(--mds-line);
    border-radius: var(--mds-radius);
    transition: border-color .12s ease, box-shadow .12s ease;
}
.reg-textarea { resize: vertical; min-height: 96px; }
.reg-select {
    height: 40px; cursor: pointer; padding-right: 34px;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2368696A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.reg-input:focus, .reg-select:focus, .reg-textarea:focus {
    outline: none; border-color: var(--mds-accent); box-shadow: 0 0 0 3px rgba(71, 163, 175, .18);
}
.reg-input::placeholder, .reg-textarea::placeholder { color: #9AA0A6; }
.reg-input[readonly] { background: var(--mds-canvas); color: var(--mds-muted); }

.reg-phone { display: flex; gap: 10px; }
.reg-phone__code { flex: 0 0 46%; min-width: 0; }
.reg-phone__num { flex: 1; }
@media (max-width: 460px) {
    .reg-phone { flex-direction: column; }
    .reg-phone__code { flex: none; }
}

.reg-consent { margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.reg-check {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; line-height: 1.5; color: var(--mds-text); cursor: pointer;
}
.reg-check input[type="checkbox"] {
    margin-top: 1px; flex: none; width: 16px; height: 16px; accent-color: var(--mds-accent);
}
.reg-check a { color: var(--mds-accent-ink); }

.reg-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; box-sizing: border-box; padding: 12px 26px; margin-top: 4px;
    border: 0; border-radius: var(--mds-radius-lg);
    background: var(--mds-accent); color: var(--mds-on-accent);
    font-family: var(--mds-font); font-size: 15px; font-weight: 700;
    text-decoration: none; cursor: pointer;
    transition: background .12s ease;
}
.reg-submit:hover:not(:disabled) { background: var(--mds-teal-600); }
.reg-submit:disabled { opacity: .65; cursor: default; }
.reg-submit--ghost {
    background: var(--mds-canvas); color: var(--mds-title);
    border: 1px solid var(--mds-line);
}
.reg-submit--ghost:hover:not(:disabled) { background: var(--mds-tint); border-color: var(--mds-accent); }
.reg-submit .fa-solid { font-size: .85em; }

.reg-back {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
    font-size: 13px; font-weight: 600; color: var(--mds-muted); text-decoration: none;
}
.reg-back:hover { color: var(--mds-accent-ink); }
.reg-back .fa-solid { font-size: .8em; }

.reg-link {
    padding: 0; border: 0; background: none; cursor: pointer;
    font-family: var(--mds-font); font-size: 13px; font-weight: 600; color: var(--mds-accent-ink);
}
.reg-link:hover:not(:disabled) { text-decoration: underline; }
.reg-link:disabled { color: var(--mds-muted); cursor: default; }

/* --- info / alert panels ----------------------------------------------------- */
.reg-info {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 18px; padding: 12px 14px;
    background: var(--mds-tint); border-radius: var(--mds-radius);
    font-size: 13px; line-height: 1.5; color: var(--mds-text);
}
.reg-info .fa-solid { flex: none; margin-top: 1px; color: var(--mds-accent-ink); }
.reg-info--center { justify-content: center; text-align: center; }

.reg-alert {
    margin: 0 0 16px; padding: 11px 13px;
    /* bespoke error-alert triad — no --mds-danger tint/border tokens exist to map onto */
    background: #FBEDEC; border: 1px solid #F2C7C3; border-radius: var(--mds-radius);
    color: #8C2B22; font-size: 13.5px; line-height: 1.4;
}

.reg-device {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px; padding: 12px 14px;
    background: #EAF1F5; border: 1px solid var(--mds-line); border-radius: var(--mds-radius);
}
.reg-device .fa-solid { color: #14374E; font-size: 18px; }
.reg-device__label {
    display: block; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--mds-muted);
}
.reg-device__id { display: block; font-size: 14px; font-weight: 600; color: var(--mds-title); }

/* --- verification code -------------------------------------------------------- */
.reg-field--code { text-align: center; }
.reg-code {
    width: 12ch; box-sizing: content-box; padding: 12px 16px;
    font-family: var(--mds-font); font-size: 26px; font-weight: 700;
    letter-spacing: .5ch; text-align: center; color: var(--mds-title);
    border: 1px solid var(--mds-line); border-radius: var(--mds-radius);
    transition: border-color .12s ease, box-shadow .12s ease;
}
.reg-code:focus {
    outline: none; border-color: var(--mds-accent); box-shadow: 0 0 0 3px rgba(71, 163, 175, .18);
}
.reg-resend { margin-top: 20px; text-align: center; font-size: 13px; color: var(--mds-muted); }
.reg-resend span { margin-right: 6px; }
.reg-resend__note { display: block; margin-top: 6px; color: var(--mds-accent-ink); }

/* --- office selection --------------------------------------------------------- */
.reg-offices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.reg-office {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; cursor: pointer;
    border: 1px solid var(--mds-line); border-radius: var(--mds-radius-lg);
    transition: border-color .15s ease, background .15s ease;
}
.reg-office:hover { border-color: var(--mds-accent); }
.reg-office.is-selected { border-color: var(--mds-accent); background: var(--mds-tint); }
.reg-office input { position: absolute; opacity: 0; pointer-events: none; }
.reg-office__name { font-size: 14px; font-weight: 600; color: var(--mds-title); }
.reg-office__check { margin-left: auto; color: var(--mds-line); font-size: 16px; }
.reg-office.is-selected .reg-office__check { color: var(--mds-accent); }

/* --- result panels (no license / no match / expired / success) ---------------- */
.reg-result { text-align: center; padding: 8px 0; }
.reg-result__badge {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--mds-tint); color: var(--mds-accent-ink); font-size: 24px;
}
.reg-result__badge--warn { background: #FDF3E7; color: #B4690E; }   /* close to but not exactly
    --mds-warning (#B9770E) — bespoke result-panel tint, left literal */
.reg-result h2 { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: var(--mds-title); }
.reg-result p { margin: 0 auto 14px; max-width: 40ch; font-size: 14px; line-height: 1.6; color: var(--mds-text); }
.reg-result a:not(.reg-submit) { color: var(--mds-accent-ink); }
.reg-result .reg-submit { width: auto; min-width: 200px; margin-top: 6px; }

/* --- complete step: sidebar + form -------------------------------------------- */
.reg-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; max-width: 62rem; margin: 0 auto; }
@media (min-width: 900px) { .reg-grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 36px; } }

.reg-side {
    background: #14374E; color: var(--mds-on-accent);
    border-radius: var(--mds-radius-lg); padding: 22px 24px;
}
@media (min-width: 900px) { .reg-side { position: sticky; top: 24px; } }
.reg-side__head {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 14px; margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    font-size: 15px; font-weight: 700;
}
/* #8FD3DC: bespoke light teal accent for labels/icons on the dark navy sidebar — no mds token
   is close enough (--mds-teal-500/600 are both darker/more saturated). Repeats below. */
.reg-side__head .fa-solid { color: #8FD3DC; }
.reg-side__facts { margin: 0; }
.reg-side__facts dt {
    margin-top: 12px; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: #8FD3DC;
}
.reg-side__facts dd { margin: 3px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.reg-side__mono { font-family: var(--mds-font-mono, monospace); letter-spacing: .04em; }
.reg-side__badges { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); }
.reg-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .92);
}
.reg-badge .fa-solid { color: #8FD3DC; }
.reg-side__ships { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.reg-side__ships summary {
    cursor: pointer; font-size: 13px; font-weight: 700; color: #8FD3DC;
    list-style-position: inside;
}
.reg-side__shiplist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.reg-shipbadge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); font-size: 12px; color: rgba(255, 255, 255, .9);
}
.reg-shipbadge .fa-solid { font-size: 10px; color: #8FD3DC; }

/* --- trial page: form + steps rail + proof strip ------------------------------- */
.reg-grid--trial { grid-template-columns: 1fr; max-width: 62rem; }
@media (min-width: 900px) { .reg-grid--trial { grid-template-columns: minmax(0, 1fr) minmax(0, 290px); gap: 48px; } }
.reg-grid--trial .reg-card--flush { box-shadow: 0 12px 28px rgba(29, 66, 93, .06); }

.reg-steps-rail { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 900px) { .reg-steps-rail { position: sticky; top: 28px; } }
.reg-steps-rail__h { margin: 0; font-size: 17px; font-weight: 700; color: var(--mds-title); }
.reg-steps {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 18px; counter-reset: step;
}
.reg-steps li {
    position: relative; padding-left: 38px; counter-increment: step;
    font-size: 13px; line-height: 1.45; color: var(--mds-muted);
}
.reg-steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--mds-accent); color: var(--mds-on-accent); font-size: 13px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.reg-steps__t { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 700; color: var(--mds-title); }

.reg-talk {
    padding-top: 18px; border-top: 1px solid var(--mds-line);
    font-size: 13px; line-height: 1.7; color: var(--mds-muted);
}
.reg-talk strong {
    display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--mds-title);
}
.reg-talk a { color: var(--mds-accent-ink); text-decoration: none; }
.reg-talk a:hover { text-decoration: underline; }

.reg-proof { margin-top: clamp(36px, 6vw, 56px); text-align: center; }

/* the honeypot: visually gone, still in the form for bots */
.reg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
