@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/rotvi/instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/rotvi/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #090c0d;
  --ink: #17201c;
  --white: #f6f7f2;
  --paper: #f4f3ee;
  --forest: #275841;
  --line: #ccd4ca;
  --gutter: clamp(1.2rem, 5.2vw, 6rem);
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 5.6rem;
  scrollbar-color: #59635d #101513;
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, p, ul { margin: 0; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid #a0edbd;
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 2 * var(--gutter)), 82rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: .75rem;
  left: .75rem;
  padding: .68rem 1rem;
  transform: translateY(-180%);
  border-radius: 2rem;
  background: #beefcb;
  color: #15251b;
}

.skip-link:focus { transform: translateY(0); }

.film {
  position: relative;
  scroll-margin-top: -5.6rem;
}

.film-pin { position: relative; }

.film-shot {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #111719;
  transform: translateY(calc(-1.9rem * var(--film-exit, 0))) scale(calc(1 - .035 * var(--film-exit, 0)));
  border-radius: calc(2.6rem * var(--film-exit, 0));
}

.film-media, .film-still, .film-media img, .film-media video, .film-road, .film-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.film-media {
  pointer-events: none;
  transform: scale(calc(1 + .024 * var(--film-progress, 0)));
}

.film-media img, .film-media video {
  object-fit: cover;
  object-position: 62% 54%;
}

.film-video {
  opacity: 0;
  transition: opacity 230ms ease;
}

.film-video.has-frame { opacity: 1; }
.film-video[data-terminal].has-frame { opacity: min(1, calc(var(--film-progress, 0) * 32)); }

.film-road {
  opacity: var(--road-reveal, 0);
  visibility: hidden;
}

.film.has-road .film-road { visibility: visible; }
.film-road img, .film-road video { object-position: 62% center; }

.film-shade {
  opacity: var(--copy-shade, 0);
  background:
    radial-gradient(ellipse at 50% 50%, #060c0cdc 0%, #060c0c88 40%, #060c0c3d 78%),
    linear-gradient(0deg, #070a0c92, transparent 33%, transparent 70%, #070a0c68);
}

.film-scenes { background: #111918; }

.film-copy {
  display: grid;
  min-height: 44svh;
  place-items: center;
  padding: 3.25rem var(--gutter);
  text-align: center;
}

.film-copy + .film-copy { border-top: 1px solid #ffffff26; }
.film-line { width: min(100%, 72rem); }

.film-label {
  margin-bottom: 1.05rem;
  color: #def2df;
  font-size: .84rem;
  font-weight: 620;
  letter-spacing: .2em;
}

.film-copy h1, .film-copy h2, .display {
  font-weight: 530;
  letter-spacing: -.057em;
  line-height: .95;
  text-wrap: balance;
}

.film-copy h1 { font-size: clamp(3.6rem, 10vw, 9.4rem); }
.film-copy h2 { font-size: clamp(3.2rem, 7.65vw, 7.8rem); }

.film-copy em, .display em {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.08em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.029em;
}

.film-copy em { color: #d0ecda; }

.film-copy h2 + p {
  width: min(100%, 34rem);
  margin: 1.25rem auto 0;
  color: #edf2eb;
  font-size: clamp(1rem, 1.55vw, 1.24rem);
  text-wrap: balance;
}

.has-scroll-film::after {
  display: block;
  height: 120rem;
  height: clamp(71rem, 230svh, 153rem);
  content: "";
}

.has-scroll-film .film-pin {
  position: sticky;
  top: 0;
}

.has-scroll-film .film-scenes {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  opacity: calc(1 - .88 * var(--film-exit, 0));
}

.has-scroll-film .film-copy {
  position: absolute;
  inset: 0;
  min-height: 0;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.05rem);
  filter: blur(3px);
}

.has-caption-motion .film-copy {
  transition: opacity 440ms ease, transform 600ms cubic-bezier(.21, .68, .29, 1), filter 440ms ease, visibility 0ms 440ms;
}

.has-scroll-film .film-copy.is-current {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  filter: blur(0);
  transition-delay: 0ms;
}

.glass {
  border: 1px solid #f1fff482;
  border-radius: 99rem;
  background:
    radial-gradient(ellipse at 19% -45%, #e3fff270, transparent 56%),
    linear-gradient(158deg, #ffffff33, #ffffff03 58%, #cfffdd20),
    #1831288a;
  color: var(--white);
  box-shadow:
    inset 0 1px 1px #fff9,
    inset 0 -1px 2px #0d231f70,
    0 7px 20px #03100d43;
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
}

.glass-action {
  display: inline-flex;
  min-height: 3.06rem;
  align-items: center;
  justify-content: center;
  padding: .63rem 1.24rem;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.glass-action:hover {
  transform: translateY(-2px);
  border-color: #f1fff4da;
  background-color: #244838d9;
}

.film-copy .glass-action { margin-top: 1.5rem; }

.after-film {
  position: relative;
  z-index: 1;
  margin-top: -2rem;
  padding-top: 1.4rem;
  border-radius: clamp(1.5rem, 4.2vw, 4rem) clamp(1.5rem, 4.2vw, 4rem) 0 0;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}

.dock {
  position: sticky;
  z-index: 5;
  top: max(.92rem, env(safe-area-inset-top));
  display: flex;
  width: fit-content;
  max-width: calc(100% - 1.6rem);
  min-height: 3.2rem;
  align-items: center;
  gap: .18rem;
  margin: 0 auto;
  padding: .23rem .48rem;
  background-color: #16231ce0;
}

.dock-brand {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  padding-inline: .42rem .58rem;
}

.dock-brand img { width: 6.45rem; height: auto; }

.dock-link {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  padding-inline: .9rem;
  border-radius: 99rem;
  color: #f2f7ef;
  font-size: .92rem;
  font-weight: 550;
  white-space: nowrap;
  transition: background-color 180ms ease;
}

.dock-link:hover, .dock-link[aria-current] {
  background: #ffffff22;
  box-shadow: inset 0 1px 1px #ffffff20;
}

.partners, .platform { padding-block: clamp(4rem, 7.5vw, 7.5rem); }
.partners { padding-bottom: 0; }
.display { font-size: clamp(3.15rem, 6.6vw, 7.15rem); }
.display em { color: #527259; }

.partners-heading, .platform-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.4rem 3.2rem;
}

.partners-heading > p, .platform-heading > p {
  max-width: 23rem;
  color: #46564c;
  font-size: 1.07rem;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(1.5rem, 3.3vw, 2.6rem);
  padding: 0;
  border-block: 1px solid var(--line);
  list-style: none;
}

.partner-logos li {
  display: grid;
  min-height: 9rem;
  align-content: center;
  justify-items: center;
  gap: .58rem;
  padding: 1.05rem .45rem;
  text-align: center;
}

.partner-logos li + li { border-left: 1px solid var(--line); }

.partner-logos img {
  width: min(100%, 10rem);
  height: 3.6rem;
  object-fit: contain;
}

.partner-logos .partner-bsoft { width: min(100%, 8.5rem); }
.partner-logos span { color: #526255; font-size: .83rem; line-height: 1.3; }
.platform :focus-visible { outline-color: var(--forest); }

.demo { margin-top: clamp(1.5rem, 3.4vw, 3rem); }

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1.3rem;
  margin-bottom: .95rem;
}

.profile-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: .12rem;
  padding: .2rem;
  border: 1px solid #c8d3c9;
  border-radius: 99rem;
  background: #e7ede5;
}

.profile-tabs a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: .35rem .75rem;
  border-radius: inherit;
  color: #334a3d;
  font-size: .93rem;
  font-weight: 570;
  white-space: nowrap;
}

.profile-tabs a:hover { background: #f3f8f3; }

.profile-tabs a[aria-selected="true"] {
  background: #fffefa;
  color: #183d2b;
  box-shadow: 0 1px 4px #15352525;
  font-weight: 640;
}

.demo-toolbar > p {
  max-width: 32rem;
  color: #47574f;
  font-size: .91rem;
}

.dashboard-preview {
  padding: .43rem;
  overflow: hidden;
  border: 1px solid #bdcabe;
  border-radius: 1rem;
  background: #dce7df;
  box-shadow: 0 1rem 2.4rem #183d2a12;
}

.dashboard-preview iframe {
  display: block;
  width: 100%;
  height: clamp(31rem, 76svh, 53rem);
  border: 0;
  border-radius: .63rem;
  background: #f5f7fb;
  color-scheme: light;
}

.dashboard-preview[data-profile="motorista"] {
  width: min(100%, 27rem);
  margin-inline: auto;
  padding: .48rem;
  border-color: #486157;
  border-radius: 1.55rem;
  background: #182a23;
}

.dashboard-preview[data-profile="motorista"] iframe { border-radius: 1.05rem; }

.closing {
  background:
    radial-gradient(ellipse at 46% 49%, #080e10e8, #090c0d30 72%),
    linear-gradient(0deg, #090c0df2, #090c0d36 70%),
    #0d1716 url("../images/rotvi/road.webp") center 54% / cover;
  color: var(--white);
  color-scheme: dark;
}

.closing-inner {
  display: grid;
  min-height: 68svh;
  justify-items: center;
  align-content: center;
  padding-block: clamp(4rem, 8vw, 8rem);
  text-align: center;
}

.closing .display em { color: #cae7d0; }

.closing p {
  width: min(100%, 32rem);
  margin-top: 1.25rem;
  color: #e7eee6;
  font-size: 1.1rem;
  text-wrap: balance;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin-top: 1.5rem;
}

.contact-email {
  display: inline-block;
  margin-top: 1rem;
  color: #e1eee3;
  font-size: .93rem;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.footer-inner {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding-block: .85rem;
  border-top: 1px solid #ffffff38;
  font-size: .89rem;
}

.footer-inner img { width: 7rem; height: auto; }
.footer-inner a:hover { color: #b9edc9; }

@media (max-width: 760px) {
  .film-media img, .film-media video { object-position: 47% 56%; }
  .film-road img, .film-road video { object-position: 64% center; }
  .film-copy h1 { font-size: clamp(3.45rem, 12vw, 5.9rem); }
  .film-copy h2 { font-size: clamp(3rem, 10.5vw, 5.6rem); }
  .has-scroll-film::after { height: clamp(69rem, 205svh, 122rem); }

  .partners-heading, .platform-heading, .demo-toolbar {
    flex-direction: column;
    align-items: start;
    gap: .78rem;
  }

  .display { font-size: clamp(3.05rem, 9.7vw, 5rem); }
  .partner-logos li { min-height: 6.8rem; padding: .7rem .4rem; }
  .partner-logos img { height: 2.5rem; }
  .partner-logos span { font-size: .74rem; }

  .dashboard-preview iframe { height: clamp(28rem, 69svh, 41rem); }
  .closing p { font-size: 1.03rem; }
}

@media (max-width: 460px) {
  .dock-brand img { width: 4.65rem; }
  .dock-brand { padding-inline: .25rem .42rem; }
  .dock-link { padding-inline: .53rem; font-size: .84rem; }
  .profile-tabs a { padding-inline: .62rem; font-size: .85rem; }
}

@media (max-width: 340px) {
  .dock-brand img { width: 4.14rem; }
  .dock-link { padding-inline: .43rem; font-size: .79rem; }
  .profile-tabs a { padding-inline: .5rem; font-size: .8rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

