/* Stratos account surface.
   Dark grey and black with the cyan accent the tracker already uses. Rounded
   fields, one motion duration, and the same type ramp as the rest of the app.
   Every colour comes from the shared tokens so a theme switch still works. */

.acct {
  --a-bg: #06080a;
  --a-panel: #101318;
  --a-panel-2: #161a20;
  --a-line: rgba(148, 163, 178, .16);
  --a-line-strong: rgba(148, 163, 178, .28);
  --a-txt: #e9eef4;
  --a-mut: #8d99a6;
  --a-acc: var(--acc, #38bdf8);
  --a-ok: #4ade80;
  --a-bad: #f87171;
  --a-warn: #fbbf24;
  --a-radius: 14px;
  --a-radius-sm: 10px;
  --a-dur: 160ms;
  --a-ease: cubic-bezier(.2, .7, .3, 1);
  min-height: 100dvh;
  background:
    radial-gradient(1100px 620px at 50% -20%, rgba(56, 189, 248, .12), transparent 62%),
    radial-gradient(700px 420px at 88% 108%, rgba(56, 189, 248, .06), transparent 60%),
    var(--a-bg);
  color: var(--a-txt);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

.acct *,
.acct *::before,
.acct *::after { box-sizing: border-box; }

/* A component's own display must never beat the hidden attribute. */
.acct [hidden] { display: none !important; }

.acct a { color: var(--a-acc); text-decoration: none; }
.acct a:hover { text-decoration: underline; }

/* ── Brand line ───────────────────────────────────────────────────── */
.acct-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px 24px max(20px, env(safe-area-inset-top));
}
.acct-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--a-txt);
  font-weight: 800;
  letter-spacing: .16em;
  font-size: 13px;
  text-decoration: none;
}
.acct-brand:hover { text-decoration: none; }
.acct-brand svg { width: 26px; height: 26px; color: var(--a-acc); }
.acct-brand small {
  display: block;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--a-mut);
  font-weight: 700;
}
.acct-top__nav { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.acct-top__nav a { color: var(--a-mut); padding: 7px 10px; border-radius: 8px; }
.acct-top__nav a:hover { color: var(--a-txt); background: var(--a-panel-2); text-decoration: none; }

/* ── Auth layout ──────────────────────────────────────────────────── */
.acct-main {
  flex: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 8px 24px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(430px, 100%);
  background: linear-gradient(180deg, rgba(22, 26, 32, .96), rgba(16, 19, 24, .98));
  border: 1px solid var(--a-line);
  border-radius: 20px;
  padding: 30px 30px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .05);
  animation: acct-in 320ms var(--a-ease) both;
}
@keyframes acct-in {
  from { opacity: 0; transform: translateY(10px) scale(.995); }
  to { opacity: 1; transform: none; }
}

.auth-head { margin-bottom: 22px; }
.auth-head h1 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.02em;
}
.auth-head p { margin: 0; color: var(--a-mut); font-size: 13.5px; line-height: 1.55; }

.auth-form { display: grid; gap: 14px; }

.field { display: grid; gap: 7px; }
.field > label {
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--a-mut);
}
.field__row { position: relative; display: flex; align-items: center; }
.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  color: var(--a-txt);
  background: #0a0d11;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius-sm);
  transition: border-color var(--a-dur) var(--a-ease), box-shadow var(--a-dur) var(--a-ease), background var(--a-dur) var(--a-ease);
  appearance: none;
}
.field input::placeholder { color: #5c6672; }
.field input:hover { border-color: var(--a-line-strong); }
.field input:focus {
  outline: none;
  border-color: var(--a-acc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--a-acc) 18%, transparent);
  background: #0b0f14;
}
.field input[aria-invalid="true"] { border-color: color-mix(in srgb, var(--a-bad) 60%, transparent); }
.field__row:has(.field__toggle) input { padding-right: 76px; }
.field__hint { font-size: 11.5px; color: var(--a-mut); line-height: 1.4; }
.field__hint--bad { color: var(--a-bad); }
.field__toggle {
  position: absolute;
  right: 6px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--a-mut);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}
.field__toggle:hover { color: var(--a-acc); }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--a-mut);
}
.auth-row a { font-size: 12.5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--a-txt);
  background: var(--a-panel-2);
  border: 1px solid var(--a-line-strong);
  border-radius: var(--a-radius-sm);
  cursor: pointer;
  transition: background var(--a-dur) var(--a-ease), border-color var(--a-dur) var(--a-ease), transform var(--a-dur) var(--a-ease), opacity var(--a-dur) var(--a-ease);
}
.btn:hover:not(:disabled) { border-color: var(--a-acc); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary {
  background: var(--a-acc);
  border-color: var(--a-acc);
  color: #04222b;
}
.btn--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--a-acc) 88%, #fff); border-color: var(--a-acc); }
.btn--ghost { background: transparent; }
.btn--wide { width: 100%; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 12px; }
.btn--danger { color: var(--a-bad); border-color: color-mix(in srgb, var(--a-bad) 40%, transparent); background: transparent; }
.btn .spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(4, 34, 43, .35);
  border-top-color: currentColor;
  animation: acct-spin .7s linear infinite;
}
@keyframes acct-spin { to { transform: rotate(360deg); } }

.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.5;
  border-radius: var(--a-radius-sm);
  border: 1px solid var(--a-line);
  background: var(--a-panel-2);
  color: var(--a-txt);
  animation: acct-in 200ms var(--a-ease) both;
}
.alert[hidden] { display: none; }
.alert--bad { border-color: color-mix(in srgb, var(--a-bad) 45%, transparent); background: color-mix(in srgb, var(--a-bad) 10%, var(--a-panel)); }
.alert--ok { border-color: color-mix(in srgb, var(--a-ok) 40%, transparent); background: color-mix(in srgb, var(--a-ok) 9%, var(--a-panel)); }
.alert--info { border-color: color-mix(in srgb, var(--a-acc) 40%, transparent); background: color-mix(in srgb, var(--a-acc) 8%, var(--a-panel)); }
.alert b { font-weight: 750; }
.alert a { font-weight: 700; word-break: break-word; }

.auth-alt {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--a-line);
  font-size: 13px;
  color: var(--a-mut);
  text-align: center;
}

.auth-foot {
  width: min(430px, 100%);
  margin: 14px auto 0;
  text-align: center;
  font-size: 11px;
  color: #6b7683;
  line-height: 1.6;
}

.strength { display: grid; gap: 5px; }
.strength__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength__track i {
  height: 3px;
  border-radius: 2px;
  background: var(--a-line);
  transition: background var(--a-dur) var(--a-ease);
}
.strength[data-score="1"] i:nth-child(-n+1) { background: var(--a-bad); }
.strength[data-score="2"] i:nth-child(-n+2) { background: var(--a-warn); }
.strength[data-score="3"] i:nth-child(-n+3) { background: var(--a-acc); }
.strength[data-score="4"] i { background: var(--a-ok); }
.strength small { font-size: 11px; color: var(--a-mut); }

/* ── Dashboard ────────────────────────────────────────────────────── */
.dash {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 8px 24px 56px;
  display: grid;
  gap: 18px;
  animation: acct-in 280ms var(--a-ease) both;
}

.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: linear-gradient(160deg, rgba(24, 29, 36, .96), rgba(14, 17, 21, .98));
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
}
.avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--a-acc) 14%, var(--a-panel-2));
  border: 1px solid color-mix(in srgb, var(--a-acc) 32%, transparent);
  color: var(--a-acc);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar--lg { width: 84px; height: 84px; flex-basis: 84px; font-size: 28px; }
.dash-head__id { display: grid; gap: 3px; min-width: 0; }
.dash-head__id h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.dash-head__id p { margin: 0; font-size: 12.5px; color: var(--a-mut); overflow-wrap: anywhere; }
.dash-head__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.dash-head__actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--a-mut);
  border: 1px solid var(--a-line);
  border-radius: 6px;
  background: var(--a-panel-2);
}
.chip--ok { color: var(--a-ok); border-color: color-mix(in srgb, var(--a-ok) 38%, transparent); }
.chip--warn { color: var(--a-warn); border-color: color-mix(in srgb, var(--a-warn) 38%, transparent); }
.chip--live { color: var(--a-acc); border-color: color-mix(in srgb, var(--a-acc) 45%, transparent); }
.chip--live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--a-acc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--a-acc) 22%, transparent);
  animation: acct-pulse 1.8s ease-in-out infinite;
}
@keyframes acct-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kpi {
  padding: 16px 18px;
  background: var(--a-panel);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  position: relative;
  overflow: hidden;
  transition: border-color var(--a-dur) var(--a-ease), transform var(--a-dur) var(--a-ease);
}
.kpi:hover { border-color: var(--a-line-strong); transform: translateY(-1px); }
.kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--a-acc);
  opacity: .55;
}
.kpi b {
  display: block;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.kpi span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--a-mut);
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel {
  background: var(--a-panel);
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius);
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--a-line);
}
.panel__head h2 {
  margin: 0;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--a-acc);
}
.panel__head .spacer { flex: 1; }
.panel__body { padding: 16px; }
.panel__body--flush { padding: 0; }

/* Live flight */
.live {
  display: grid;
  gap: 12px;
}
.live__map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 180px;
  border: 1px solid var(--a-line);
  border-radius: var(--a-radius-sm);
  background: #070a0e;
  overflow: hidden;
}
.live__map svg { display: block; width: 100%; height: 100%; }
.live__map .land { fill: #1a222b; stroke: #2b3543; stroke-width: .5; }
.live__map .route { fill: none; stroke: var(--a-acc); stroke-width: 1.1; stroke-dasharray: 3 3; opacity: .8; }
.live__map .track { fill: none; stroke: color-mix(in srgb, var(--a-acc) 55%, transparent); stroke-width: 1.2; }
.live__map .ac {
  fill: var(--a-acc);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--a-acc) 70%, transparent));
}
.live__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.live__cell {
  padding: 9px 11px;
  background: var(--a-panel-2);
  border: 1px solid var(--a-line);
  border-radius: 8px;
}
.live__cell b {
  display: block;
  font-size: 16px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.live__cell span {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--a-mut);
}
.live__route {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}
.live__route i { flex: 1; height: 1px; background: var(--a-line-strong); position: relative; }
.live__route i b {
  position: absolute;
  left: 0; top: -1px;
  height: 3px;
  border-radius: 2px;
  background: var(--a-acc);
  transition: width 600ms var(--a-ease);
}

.rows { display: grid; }
.row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--a-line);
  font-size: 13px;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--a-panel-2); }
.row__badge {
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .04em;
  color: var(--a-acc);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row__main { min-width: 0; }
.row__main b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__main span { display: block; font-size: 11.5px; color: var(--a-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__right { text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--a-mut); }
.row__right b { display: block; color: var(--a-txt); font-size: 13px; font-weight: 700; }

.bars { display: grid; gap: 10px; }
.bar { display: grid; gap: 5px; }
.bar__label { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.bar__label b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__label span { color: var(--a-mut); font-variant-numeric: tabular-nums; }
.bar__track { height: 5px; border-radius: 3px; background: var(--a-panel-2); overflow: hidden; }
.bar__track i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--a-acc) 55%, transparent), var(--a-acc)); transition: width 500ms var(--a-ease); }

.empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 34px 18px;
  text-align: center;
  color: var(--a-mut);
  font-size: 12.5px;
  line-height: 1.6;
}
.empty b { color: var(--a-txt); font-size: 13px; }
.empty .btn { margin-top: 4px; }

.skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--a-panel-2) 0%, #1d232b 50%, var(--a-panel-2) 100%);
  background-size: 200% 100%;
  animation: acct-shimmer 1.4s linear infinite;
  min-height: 12px;
}
@keyframes acct-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Settings blocks */
.settings { display: grid; gap: 18px; }
.set-heading {
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--a-mut);
}
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.set-grid .field--wide { grid-column: 1 / -1; }
.set-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.avatar-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar-pick input[type="file"] { display: none; }
.set-note { font-size: 11.5px; color: var(--a-mut); line-height: 1.55; }
.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--a-line);
  font-size: 13px;
}
.pref-row:last-child { border-bottom: 0; }
.pref-row label { color: var(--a-txt); }
.pref-row small { display: block; color: var(--a-mut); font-size: 11px; margin-top: 2px; }
.pref-row select, .pref-row input[type="text"] {
  min-height: 36px;
  padding: 0 10px;
  color: var(--a-txt);
  background: #0a0d11;
  border: 1px solid var(--a-line);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}

.dash-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--a-mut);
}
.dash-foot a { color: var(--a-mut); }
.dash-foot a:hover { color: var(--a-acc); }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .acct-top { padding: 14px 16px; }
  .acct-top__nav a { padding: 6px 8px; }
  .acct-main { padding: 4px 14px 30px; align-items: flex-start; }
  .auth-card { padding: 24px 20px 22px; border-radius: 18px; }
  .auth-head h1 { font-size: 21px; }
  .dash { padding: 4px 14px calc(38px + env(safe-area-inset-bottom)); gap: 14px; }
  .dash-head { padding: 16px; gap: 13px; }
  .dash-head__actions { margin-left: 0; width: 100%; }
  .dash-head__actions .btn { flex: 1 1 auto; }
  .kpi { padding: 13px 14px; }
  .set-grid { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 9px; padding: 10px 13px; }
  .live__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .acct *, .acct *::before, .acct *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── Sign-in landing (auth.html) ───────────────────────────────────── */
.landing-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 56px;
  padding-top: 12px;
  padding-bottom: 24px;
}
.landing-hero { max-width: 560px; animation: acct-in 420ms var(--a-ease) both; }
.landing-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--a-mut);
}
.landing-eyebrow i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--a-acc);
  animation: landing-pulse 2.6s var(--a-ease) infinite;
}
@keyframes landing-pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, .45); }
  70% { box-shadow: 0 0 0 9px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
.landing-hero h1 {
  margin: 0 0 14px; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08;
  font-weight: 780; letter-spacing: -.035em; color: #f4f9fe;
}
.landing-lede { margin: 0 0 22px; color: var(--a-mut); font-size: 15px; line-height: 1.62; max-width: 48ch; }
.landing-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.landing-points li { position: relative; padding-left: 24px; font-size: 13px; line-height: 1.55; color: #b9c6d2; }
.landing-points li::before {
  content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 5px;
  border-left: 1.6px solid var(--a-acc); border-bottom: 1.6px solid var(--a-acc);
  transform: rotate(-45deg);
}
.landing-points b { color: var(--a-txt); font-weight: 650; }

.landing-actions { display: grid; gap: 12px; animation: acct-in 520ms var(--a-ease) both; }
.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 29, 36, .96), rgba(15, 18, 23, .98));
  border: 1px solid var(--a-line); color: var(--a-txt); text-decoration: none;
  transition: border-color var(--a-dur) var(--a-ease), transform var(--a-dur) var(--a-ease),
              box-shadow var(--a-dur) var(--a-ease);
}
.choice:hover {
  text-decoration: none; transform: translateY(-2px); border-color: var(--a-line-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .45);
}
.choice:focus-visible { outline: 2px solid var(--a-acc); outline-offset: 3px; }
.choice__body { display: grid; gap: 3px; }
.choice__body b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.choice__body span { font-size: 12.5px; color: var(--a-mut); }
.choice__arrow {
  color: var(--a-mut); font-size: 18px;
  transition: transform var(--a-dur) var(--a-ease), color var(--a-dur) var(--a-ease);
}
.choice:hover .choice__arrow { transform: translateX(3px); color: var(--a-acc); }
.choice--primary {
  background: linear-gradient(180deg, rgba(56, 189, 248, .16), rgba(14, 116, 144, .12));
  border-color: rgba(56, 189, 248, .42);
}
.choice--primary .choice__body b { color: #f4fbff; }
.choice--primary .choice__arrow { color: var(--a-acc); }
.landing-note { margin: 6px 2px 0; font-size: 11.5px; line-height: 1.6; color: #77848f; }

.landing-foot {
  width: min(1120px, 100%); margin: 0 auto; padding: 18px 24px max(22px, env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 11.5px; color: #6f7c88; border-top: 1px solid var(--a-line);
}
.landing-foot a { color: #8fa0ae; }

/* ── Checkboxes and legal pages ────────────────────────────────────── */
.check {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12.5px; line-height: 1.5; color: #b9c6d2; cursor: pointer;
}
.check input {
  appearance: none; -webkit-appearance: none; margin: 1px 0 0;
  width: 17px; height: 17px; flex: none; border-radius: 5px;
  border: 1px solid var(--a-line-strong); background: var(--a-panel-2); cursor: pointer;
  transition: background var(--a-dur) var(--a-ease), border-color var(--a-dur) var(--a-ease);
}
.check input:checked { background: var(--a-acc); border-color: var(--a-acc); }
.check input:checked::after {
  content: ""; display: block; width: 8px; height: 4px; margin: 4px 0 0 4px;
  border-left: 1.8px solid #05131b; border-bottom: 1.8px solid #05131b;
  transform: rotate(-45deg);
}
.check input:focus-visible { outline: 2px solid var(--a-acc); outline-offset: 2px; }
.check a { color: var(--a-acc); }
.auth-row--stack { flex-direction: column; align-items: flex-start; gap: 10px; }
.terms-line { margin: 2px 0 0; }

.legal {
  width: min(760px, 100%); margin: 0 auto; padding: 26px 30px 34px;
  background: linear-gradient(180deg, rgba(22, 26, 32, .96), rgba(16, 19, 24, .98));
  border: 1px solid var(--a-line); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  animation: acct-in 320ms var(--a-ease) both;
}
.legal h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; }
.legal__meta { margin: 0 0 20px; color: var(--a-mut); font-size: 12px; }
.legal h2 {
  margin: 24px 0 8px; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: #cfdae5;
}
.legal p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.68; color: #aeb9c4; }
.legal__foot { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--a-line); font-size: 12.5px; }

@media (max-width: 900px) {
  .landing-main { grid-template-columns: 1fr; gap: 30px; padding-top: 4px; }
  .landing-hero { max-width: none; }
  .landing-hero h1 { font-size: clamp(27px, 8vw, 36px); }
  .landing-actions { max-width: 520px; }
  .landing-foot { flex-direction: column; }
}
@media (max-width: 520px) {
  .landing .acct-top, .landing-foot { padding-left: 18px; padding-right: 18px; }
  .landing .acct-main { padding-left: 18px; padding-right: 18px; }
  .choice { padding: 17px 18px; }
  .legal { padding: 22px 18px 26px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-hero, .landing-actions, .auth-card, .legal { animation: none; }
  .landing-eyebrow i { animation: none; }
  .choice, .choice__arrow { transition: none; }
  .choice:hover { transform: none; }
}
.landing-skip {
  justify-self: start; margin-top: 4px; padding: 9px 14px; border-radius: 10px; cursor: pointer;
  background: transparent; color: #9fb0bf; border: 1px solid var(--a-line);
  font: 600 12.5px/1 system-ui, sans-serif;
  transition: color var(--a-dur) var(--a-ease), border-color var(--a-dur) var(--a-ease);
}
.landing-skip:hover { color: var(--a-txt); border-color: var(--a-line-strong); }
.landing-skip:focus-visible { outline: 2px solid var(--a-acc); outline-offset: 2px; }
.landing-skip-note { margin: 2px 2px 0; font-size: 11.5px; line-height: 1.55; color: #6f7c88; }
