@font-face {
  font-family: "Futura VIRA";
  src: url("assets/futura-bt-book.otf") format("opentype");
  font-weight: 400;
}

@font-face {
  font-family: "Futura VIRA";
  src: url("assets/futura-bt-bold.ttf") format("truetype");
  font-weight: 800;
}

:root {
  --ink: #071019;
  --blue: #0f2744;
  --muted: #6f7d84;
  --line: rgba(15, 39, 68, 0.16);
  --paper: #f7faf9;
  --white: #ffffff;
  --teal: #00a99d;
  --mint: #c8f15a;
  --cyan: #78d6e8;
  --sky: #d9f5fb;
  --coral: #ef4f3c;
  --shadow: 0 18px 44px rgba(7, 16, 25, 0.24);
  --button-shadow: 0 12px 0 rgba(7, 16, 25, 0.2), 0 20px 32px rgba(7, 16, 25, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Futura VIRA", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: rgba(7, 16, 25, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-brand {
  gap: 14px;
}

.admin-logo-button {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.admin-logo-button:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.admin-pill {
  background: rgba(217, 245, 251, 0.92);
}

.admin-lock {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(7, 16, 25, 0.92), rgba(15, 39, 68, 0.62)),
    url("assets/hero-mobility.png") center / cover;
}

.lock-panel {
  width: min(100%, 520px);
  display: grid;
  gap: 18px;
  color: white;
}

.lock-panel h1 {
  font-size: clamp(3.2rem, 12vw, 6.4rem);
}

.lock-fields {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.lock-fields label {
  color: rgba(255, 255, 255, 0.84);
}

.lock-hint {
  color: rgba(255, 255, 255, 0.62);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  color: white;
}

.mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--blue);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(120, 214, 232, 0.88)),
    url("assets/vira-degradado-1.png") center / cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}

.mobility-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(120, 214, 232, 0.28)),
    url("assets/vira-degradado-1.png") center / cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}

.mobility-mark img {
  width: 25px;
  height: 25px;
  filter: brightness(0) invert(1);
}

.brand-logo {
  display: block;
  width: 72px;
  height: auto;
}

.brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.nav-hidden {
  display: none;
}

.nav button,
.ghost,
.primary,
.secondary,
.danger,
.icon-button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  padding: 0 16px;
  font-weight: 800;
  box-shadow: 0 7px 0 rgba(7, 16, 25, 0.14), 0 14px 24px rgba(7, 16, 25, 0.1);
}

.nav button:hover,
.ghost:hover,
.primary:hover,
.secondary:hover,
.danger:hover,
.icon-button:hover,
.option:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 10px 0 rgba(7, 16, 25, 0.18), 0 20px 34px rgba(7, 16, 25, 0.18);
}

.nav button.active,
.primary,
.secondary {
  border-color: rgba(200, 241, 90, 0.72);
  background:
    linear-gradient(135deg, rgba(15, 39, 68, 0.96), rgba(0, 169, 157, 0.82), rgba(120, 214, 232, 0.72)),
    url("assets/vira-degradado-1.png") center / cover;
  color: white;
}

.secondary {
  border-color: rgba(255, 255, 255, 0.34);
}

.danger {
  border-color: rgba(239, 79, 60, 0.38);
  background: rgba(239, 79, 60, 0.1);
  color: #962b1f;
}

.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  overflow: hidden;
  border-bottom: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 25, 0.9), rgba(15, 39, 68, 0.54) 45%, rgba(7, 16, 25, 0.18)),
    url("assets/hero-mobility.png") center / cover;
}

.hero::after {
  position: absolute;
  right: -8vw;
  bottom: -18vw;
  width: min(620px, 72vw);
  aspect-ratio: 1;
  content: "";
  background: url("assets/vira-degradado-1.png") center / cover;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.72;
  mix-blend-mode: screen;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  width: min(860px, 100%);
  padding: clamp(26px, 7vw, 76px);
  color: white;
}

.hero-brand {
  width: clamp(116px, 18vw, 190px);
  height: auto;
  margin-bottom: clamp(12px, 2vw, 22px);
}

.service-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.eyebrow {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3rem, 9vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
}

h3 {
  font-size: 1.04rem;
}

.lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.5;
}

.hero-actions,
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-image {
  display: none;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 118px;
  padding: 22px;
  background: var(--white);
}

.metric strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: start;
}

.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(25, 34, 38, 0.06);
}

.panel {
  padding: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.stack {
  display: grid;
  gap: 14px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #4b575b;
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

.select-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(120, 214, 232, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(217, 245, 251, 0.78)),
    url("assets/vira-degradado-1.png") center / cover;
  padding: 14px;
  box-shadow: 0 8px 0 rgba(15, 39, 68, 0.08), 0 18px 30px rgba(15, 39, 68, 0.12);
}

.select-card span {
  color: var(--blue);
  font-weight: 850;
}

.select-card select {
  min-height: 54px;
  border-color: rgba(15, 39, 68, 0.22);
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue);
  font-weight: 800;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

.service-checks {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.service-checks legend {
  padding: 0 6px;
  color: #4b575b;
  font-size: 0.9rem;
  font-weight: 850;
}

.service-checks label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 39, 68, 0.1);
  border-radius: 8px;
  background: rgba(217, 245, 251, 0.34);
  padding: 8px 10px;
  color: var(--ink);
}

.service-checks input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.qr-card {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 20px;
  text-align: center;
}

.qr-frame {
  display: grid;
  width: min(100%, 320px);
  aspect-ratio: 1;
  place-items: center;
  border: 10px solid var(--white);
  background: var(--white);
  box-shadow: var(--shadow);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.copy-url {
  width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.86rem;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.client-card {
  width: 100%;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(15, 39, 68, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  text-align: left;
}

.client-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-results {
  padding: 0;
  overflow: hidden;
}

.selected-results > .panel-head {
  margin: 0;
  padding: 20px;
}

.selected-metrics {
  border-top: 1px solid var(--line);
}

.result-table {
  padding: 20px;
}

.compact-head {
  margin-bottom: 10px;
}

.selected-event-row {
  background:
    linear-gradient(90deg, rgba(217, 245, 251, 0.72), rgba(255, 255, 255, 0.9)),
    url("assets/vira-degradado-1.png") center / cover;
}

.selected-event-row td {
  border-bottom-color: rgba(15, 39, 68, 0.18);
}

.ops-checklist {
  display: grid;
  gap: 14px;
}

.ops-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.ops-steps span {
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(15, 39, 68, 0.12);
  border-radius: 8px;
  background: rgba(217, 245, 251, 0.42);
  padding: 8px 10px;
  color: var(--blue);
  font-weight: 850;
}

.survey-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.18), rgba(251, 251, 247, 0.95)),
    url("assets/hero-mobility-mobile.jpg") center / cover;
}

.phone {
  width: min(100%, 440px);
  max-height: calc(100dvh - 18px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-done {
  width: min(100%, 400px);
}

.phone-head {
  display: grid;
  gap: 8px;
  flex: 0 0 auto;
  padding: 18px;
  background: var(--ink);
  color: white;
}

.public-welcome {
  background:
    linear-gradient(135deg, rgba(7, 16, 25, 0.96), rgba(15, 39, 68, 0.84), rgba(0, 169, 157, 0.38)),
    url("assets/vira-degradado-1.png") center / cover;
}

.survey-logo {
  width: 94px;
  height: auto;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
}

.progress span {
  display: block;
  height: 100%;
  background: var(--coral);
}

.question {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding: 18px;
}

.done-message {
  align-content: center;
  min-height: 180px;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.options-long {
  max-height: min(430px, 48vh);
  overflow-y: auto;
  padding-right: 4px;
}

.options-long .option {
  min-height: 74px;
}

.option {
  min-height: 82px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  text-align: center;
  font-weight: 850;
}

.option.selected {
  border-color: rgba(120, 214, 232, 0.95);
  background:
    linear-gradient(135deg, rgba(217, 245, 251, 0.98), rgba(120, 214, 232, 0.74), rgba(200, 241, 90, 0.5)),
    url("assets/vira-degradado-1.png") center / cover;
  color: var(--blue);
  box-shadow: 0 8px 0 rgba(15, 39, 68, 0.14), 0 18px 30px rgba(15, 39, 68, 0.18);
}

.option .ico {
  font-size: 1.7rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  border-radius: 999px;
  background: var(--sky);
  color: #1c5267;
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 850;
}

.hint {
  color: var(--muted);
  line-height: 1.35;
}

.question .back-button {
  min-height: 44px;
  border: 1px solid rgba(15, 39, 68, 0.16);
  border-radius: 8px;
  background: rgba(15, 39, 68, 0.06);
  color: #47616b;
  padding: 0 16px;
  font-weight: 800;
  box-shadow: none;
}

.question .back-button:hover {
  transform: translateY(-1px);
  background: rgba(120, 214, 232, 0.16);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #4d5a5e;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.mode-bars {
  display: grid;
  gap: 10px;
}

.bar {
  display: grid;
  grid-template-columns: 96px 1fr 42px;
  gap: 10px;
  align-items: center;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ef;
}

.bar-fill {
  height: 100%;
  background: var(--coral);
}

.empty {
  padding: 26px;
  border: 1px dashed #b8c4c1;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-header {
    position: static;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 66vh;
  }

  .hero-image {
    min-height: 190px;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid,
  .fields,
  .lock-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .survey-wrap {
    min-height: 100dvh;
    padding: 8px;
    align-items: center;
  }

  .brand span {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav {
    width: 100%;
  }

  .nav button {
    flex: 1 0 auto;
  }

  .options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .phone {
    width: min(100%, 390px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .phone-head {
    gap: 5px;
    padding: 12px 14px;
  }

  .phone-head h2 {
    font-size: 1.32rem;
  }

  .question {
    gap: 8px;
    padding: 12px 14px 14px;
  }

  .question h2 {
    font-size: 1.24rem;
    line-height: 1.08;
  }

  .option {
    min-height: 68px;
    gap: 5px;
    padding: 8px;
    font-size: 0.88rem;
  }

  .option .ico {
    font-size: 1.35rem;
  }

  .question .row {
    position: sticky;
    bottom: -16px;
    margin: 0 -14px -14px;
    padding: 9px 14px 12px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
  }

  .phone-done {
    width: min(100%, 360px);
  }

  .phone-done .phone-head h2 {
    font-size: 1.25rem;
  }

  .done-message {
    min-height: 136px;
    text-align: center;
  }

  .done-message h2 {
    font-size: 1.16rem;
  }

  .metric {
    min-height: 98px;
    padding: 16px;
  }
}
