/*
 * FleetSync — página pública (fleet-sync.app).
 * Sem dependências externas: carrega numa ligação fraca e não depende de CDN nenhum.
 * As cores são as mesmas da aplicação (tema escuro): laranja da marca #f5821f sobre castanho quente.
 */

:root {
  --bg: #14110e;
  --bg-alt: #19150f;
  --surface: #1e1915;
  --surface-2: #272019;
  --text: #f5f2ee;
  --muted: #a89f94;
  --brand: #f5821f;
  --brand-ink: #1a1206;
  --brand-soft: rgba(245, 130, 31, 0.12);
  --border: #2f2820;
  --success: #34d07f;
  --danger: #f0624d;
  --radius: 14px;
  --wrap: 1120px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 12px 18px;
  font-weight: 600;
  z-index: 50;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

/* ───────────────────────────── Marca e navegação ───────────────────────────── */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand__tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  flex: none;
}

.brand__tile svg {
  width: 20px;
  height: 20px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 17, 14, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.nav__links {
  display: none;
  gap: 28px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 15px;
}

.nav__links a:hover {
  color: var(--text);
}

@media (min-width: 880px) {
  .nav__links {
    display: flex;
  }
}

.nav__inner > .btn {
  margin-left: auto;
}

@media (min-width: 880px) {
  .nav__inner > .btn {
    margin-left: 0;
  }
}

/* ───────────────────────────────── Botões ──────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand);
  color: var(--brand-ink);
}
.btn--primary:hover {
  background: #ff9233;
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.btn--lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 18px;
}

.btn--block {
  width: 100%;
}

.btn:active {
  transform: translateY(1px);
}

/* ────────────────────────────────── Hero ───────────────────────────────────── */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--brand);
  margin-bottom: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 420px at 78% -5%, rgba(245, 130, 31, 0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 0%, rgba(245, 130, 31, 0.06), transparent 55%);
}

.hero__inner {
  display: grid;
  gap: 48px;
}

@media (min-width: 980px) {
  .hero {
    padding: 92px 0 104px;
  }
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  margin-bottom: 20px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.17rem);
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 28px;
}

.hero__points {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}

.hero__points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hero__points li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5821f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Maquete: voucher + telemóvel */

.hero__art {
  position: relative;
  display: flex;
  /* o telemóvel encosta ao canto inferior esquerdo: o voucher afasta-se para lhe dar lugar */
  justify-content: flex-end;
  padding: 0 0 46px 104px;
}

.voucher {
  width: min(100%, 390px);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.9);
}

.voucher__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.voucher__org {
  font-size: 12px;
  color: var(--muted);
}

.chip {
  font-size: 11.5px;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.chip--ok {
  color: var(--success);
  background: rgba(52, 208, 127, 0.14);
}

.voucher__label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.voucher__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  font-weight: 600;
  color: var(--brand);
  margin: 4px 0 22px;
  letter-spacing: 0.02em;
}

.voucher__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 22px;
  padding: 18px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

.voucher__grid dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 3px;
}

.voucher__grid dd {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
}

.voucher__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.voucher__qr {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background-image: linear-gradient(var(--text) 0 0), linear-gradient(var(--text) 0 0),
    linear-gradient(var(--text) 0 0), linear-gradient(var(--text) 0 0), linear-gradient(var(--text) 0 0),
    linear-gradient(var(--text) 0 0);
  background-repeat: no-repeat;
  background-color: #fff;
  background-size: 10px 10px, 10px 10px, 10px 10px, 6px 6px, 6px 14px, 14px 6px;
  background-position: 4px 4px, 28px 4px, 4px 28px, 28px 28px, 18px 16px, 14px 24px;
  opacity: 0.92;
}

.phone {
  position: absolute;
  /* sai um pouco para fora da coluna e só toca no canto do voucher */
  left: -46px;
  bottom: -6px;
  width: 168px;
  padding: 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.95);
}

@media (max-width: 560px) {
  .phone {
    display: none;
  }
  .hero__art {
    justify-content: center;
    padding: 0;
  }
}

.phone__bar {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  margin: 0 auto 12px;
}

.phone__title {
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 8px;
}

.phone__shot {
  position: relative;
  height: 84px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3a3029, #241d17);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone__km {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

.phone__hint {
  font-size: 10.5px;
  color: var(--muted);
  margin: 8px 0 10px;
}

.phone__btn {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  color: var(--brand-ink);
  background: var(--brand);
  border-radius: 8px;
  padding: 8px;
}

/* ──────────────────────────────── Secções ──────────────────────────────────── */

.section {
  padding: 72px 0;
}

@media (min-width: 980px) {
  .section {
    padding: 100px 0;
  }
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section__title {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  max-width: 20em;
  margin-bottom: 16px;
}

.section__sub {
  color: var(--muted);
  max-width: 44em;
  margin-bottom: 40px;
}

/* Comparação */

.compare {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 820px) {
  .compare {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.compare__col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.compare__col h3 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare__col h3::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.compare__col--bad h3::before {
  background: var(--danger);
}

.compare__col--good {
  border-color: rgba(245, 130, 31, 0.35);
  background: linear-gradient(180deg, rgba(245, 130, 31, 0.06), transparent 60%), var(--surface);
}

.compare__col--good h3::before {
  background: var(--brand);
}

.compare__col ul {
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 15.5px;
}

.compare__col li {
  padding-left: 18px;
  position: relative;
}

.compare__col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.compare__col--good li::before {
  background: var(--brand);
}

/* Cartões de funcionalidades */

.cards {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}

@media (min-width: 680px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: rgba(245, 130, 31, 0.4);
  transform: translateY(-2px);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}

.card__icon svg {
  width: 21px;
  height: 21px;
}

.card h3 {
  font-size: 1.07rem;
  margin-bottom: 9px;
}

.card p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Passos */

.steps {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  counter-reset: step;
}

@media (min-width: 680px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1060px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  padding-top: 22px;
  border-top: 2px solid var(--border);
}

.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.03rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Preços */

.plans {
  display: grid;
  gap: 20px;
  margin: 8px 0 26px;
}

@media (min-width: 820px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.plan--featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(245, 130, 31, 0.08), transparent 55%), var(--surface);
  box-shadow: 0 24px 60px -34px rgba(245, 130, 31, 0.6);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan__name {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.plan__price strong {
  font-size: clamp(2.2rem, 5.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plan__price span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.plan__per {
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  margin: 6px 0 22px;
}

.plan__list {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15.5px;
}

.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan__list li::before {
  content: '';
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5821f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.plan .btn {
  margin-top: auto;
}

.plans__note {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 48em;
}

/* Chamada final */

.cta {
  padding: 76px 0;
  background:
    radial-gradient(760px 320px at 50% 0%, rgba(245, 130, 31, 0.16), transparent 65%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.3rem);
  margin-bottom: 14px;
}

.cta p {
  color: var(--muted);
  max-width: 40em;
  margin-inline: auto;
}

.cta__actions {
  display: flex;
  justify-content: center;
  margin: 30px 0 14px;
}

.cta__small {
  font-size: 14px;
}

/* Rodapé */

.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.footer__text {
  color: var(--muted);
  font-size: 14.5px;
}

.footer__mail {
  margin-left: auto;
  color: var(--brand);
  font-size: 14.5px;
  font-weight: 600;
}

.footer__mail:hover {
  text-decoration: underline;
}
