/* ROLAVI Visor - landing and sign-in page */
:root {
  --navy-950: #051226;
  --navy-900: #071a33;
  --navy-800: #0c2a4d;
  --blue: #0f5fa8;
  --blue-dark: #0b4c88;
  --sky: #5cb6f2;
  --sand: #eedda0;
  --ink: #0e1b2c;
  --slate: #51627a;
  --line: #d7dfe9;
  --mist: #f2f5f9;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 400 16px/1.55 var(--text);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ================= entry: hero + sign in ================= */
.entry {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  min-height: 100vh;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px clamp(28px, 5vw, 72px) 32px;
  color: #fff;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(15, 95, 168, 0.45), transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(92, 182, 242, 0.12), transparent 60%),
    var(--navy-900);
  overflow: hidden;
}

/* the terrain behind the hero: the same contours as the section card, very faint */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  --c-minor: rgba(124, 182, 240, 0.07);
  --c-major: rgba(150, 200, 248, 0.16);
}

.hero > :not(.hero-bg) {
  position: relative;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  width: 200px;
  height: auto;
}

.tag {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font: 700 clamp(54px, 6.4vw, 104px) / 0.92 var(--display);
  letter-spacing: -0.005em;
}

.lead {
  max-width: 34em;
  margin: 18px 0 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
}

/* the survey figure: contours, section A-B and its profile */
.survey {
  margin: 0;
  max-width: 640px;
  padding: 14px 18px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(4, 14, 30, 0.72);
  backdrop-filter: blur(6px);
}

.survey-body {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  align-items: center;
  gap: 16px;
  margin: 10px 0 6px;
}

.survey-head,
.survey-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.survey-value {
  font: 600 22px/1 var(--display);
  color: var(--sand);
}

.survey-foot {
  justify-content: flex-start;
  gap: 22px;
  margin-top: 4px;
}

.survey-foot b {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.topo,
.prof {
  display: block;
  width: 100%;
  height: auto;
}

.topo {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  --c-minor: rgba(124, 182, 240, 0.38);
  --c-major: rgba(160, 205, 250, 0.8);
}

#topoLines .c {
  fill: none;
  stroke: var(--c-minor);
  stroke-width: 0.9;
}

#topoLines .ci {
  fill: none;
  stroke: var(--c-major);
  stroke-width: 1.5;
}

.topo .section {
  stroke: var(--sand);
  stroke-width: 6;
  stroke-linecap: round;
}

.topo .pin circle {
  fill: var(--navy-900);
  stroke: var(--sand);
  stroke-width: 5;
}

.topo .pin text {
  font: 700 40px var(--display);
  fill: var(--sand);
}

.prof .end {
  font: 700 24px var(--display);
  fill: var(--sand);
}

.prof .g {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.4;
}

.prof .tx,
.prof .ty {
  font: 500 19px var(--text);
  fill: rgba(255, 255, 255, 0.6);
}

.prof .tx {
  text-anchor: middle;
}

.prof .ty {
  text-anchor: end;
}

.prof .area {
  fill: url(#pf);
}

.prof .pline {
  fill: none;
  stroke: var(--sand);
  stroke-width: 3.4;
  stroke-linejoin: round;
}

/* one load sequence: the section line is drawn across the map, then its profile */
@media (prefers-reduced-motion: no-preference) {
  .topo .contours {
    animation: fade 1.1s ease-out both;
  }
  .topo .section {
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    animation: draw 1.1s 0.5s ease-in-out forwards;
  }
  .topo .pin {
    animation: fade 0.4s 0.4s both;
  }
  .prof .pline {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: draw 1.4s 1.2s ease-in-out forwards;
  }
  .prof .area {
    animation: fade 0.8s 2.2s both;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 10px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}

.caps li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.caps li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--sand);
  flex: none;
}

.contact {
  margin: auto 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.contact a {
  color: #fff;
  text-decoration-color: var(--sky);
  text-underline-offset: 3px;
}

/* ================= sign in ================= */
.access {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px clamp(24px, 4vw, 64px) 40px;
  background: #fff;
}

.lang {
  position: absolute;
  top: 28px;
  right: 28px;
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  height: 34px;
  padding: 0 10px 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 600 13px var(--text);
  color: var(--slate);
  cursor: pointer;
}

.lang button:hover {
  color: var(--ink);
}

.lang .flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(14, 27, 44, 0.16);
  flex: none;
}

.lang button[aria-pressed="true"] {
  background: var(--navy-900);
  color: #fff;
}

.access-body {
  width: 100%;
  max-width: 420px;
}

.access h2 {
  margin: 0;
  font: 700 46px/1 var(--display);
  color: var(--navy-900);
}

.access-lead {
  margin: 12px 0 30px;
  color: var(--slate);
}

.login label:not(.remember) {
  display: block;
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 600;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  height: 54px;
  margin-bottom: 20px;
  border: 1px solid #c9d3df;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(92, 182, 242, 0.35);
}

.field > svg {
  width: 20px;
  height: 20px;
  margin-left: 16px;
  fill: none;
  stroke: #8a98ab;
  stroke-width: 1.7;
  flex: none;
}

.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  font: 400 16px var(--text);
  color: var(--ink);
}

.reveal {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: 5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.reveal svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #6d7d92;
  stroke-width: 1.7;
}

.reveal[aria-pressed="true"] svg {
  stroke: var(--blue);
}

.remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 18px;
  font-size: 14px;
  color: var(--slate);
  cursor: pointer;
}

.remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.error {
  min-height: 0;
  margin: 0 0 12px;
  font-size: 14px;
  color: #c0262d;
}

.error:empty {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  font: 600 16px var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  width: 100%;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px -12px rgba(15, 95, 168, 0.9);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: progress;
}

.btn-quiet {
  width: 100%;
  margin-top: 10px;
  color: var(--slate);
  background: var(--mist);
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  font-size: 13px;
  color: #8a98ab;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-demo {
  width: 100%;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  color: var(--navy-900);
  background: var(--mist);
}

.btn-demo:hover {
  border-color: var(--blue);
}

.btn-demo small {
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
}

.server {
  margin: 28px 0 2px;
  font-size: 14px;
  color: var(--slate);
  text-align: center;
}

.server b {
  color: var(--ink);
}

.admin-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: #8a98ab;
  text-align: center;
}

.more {
  display: block;
  font-weight: 600;
  color: var(--blue);
  text-align: center;
  text-decoration: none;
}

.more::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 0 3px 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.signed-in p {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--mist);
}

/* ================= the viewer on a laptop ================= */
.showcase {
  overflow-x: hidden;
  padding: 96px 24px 40px;
  text-align: center;
  background: linear-gradient(#fff, var(--mist));
}

.showcase h2 {
  margin: 0;
  font: 700 clamp(38px, 4.4vw, 60px) / 1 var(--display);
  color: var(--navy-900);
}

.show-lead {
  max-width: 36em;
  margin: 16px auto 52px;
  font-size: 18px;
  color: var(--slate);
}

.laptop {
  max-width: 1120px;
  margin: 0 auto;
}

.lid {
  position: relative;
  padding: 18px 18px 22px;
  border-radius: 22px 22px 8px 8px;
  background: linear-gradient(#262b34, #14181f);
  box-shadow: 0 40px 70px -40px rgba(7, 26, 51, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.lid::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #3b414c;
}

.screen {
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #e9edf3;
}

.bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c3cbd6;
}

.bar span {
  flex: 0 1 300px;
  margin: 0 auto;
  padding: 3px 12px;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  color: var(--slate);
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
}

.base {
  position: relative;
  height: 18px;
  margin: 0 -6%;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(#d9dde3, #a9afb9);
}

.base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: #b9bfc8;
}

/* ================= features ================= */
.features {
  padding: 40px 24px 96px;
  background: var(--mist);
}

.features ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.features li {
  padding-top: 22px;
  border-top: 2px solid var(--navy-900);
}

.features svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.features h3 {
  margin: 12px 0 6px;
  font: 700 27px/1.05 var(--display);
  color: var(--navy-900);
}

.features p {
  margin: 0;
  max-width: 34ch;
  color: var(--slate);
}

/* ================= plan and contact ================= */
.plan {
  padding: 96px 24px 40px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(70% 90% at 85% 0%, rgba(15, 95, 168, 0.55), transparent 60%),
    var(--navy-900);
}

.plan-kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}

.plan h2 {
  margin: 0;
  font: 700 clamp(42px, 5vw, 68px) / 1 var(--display);
}

.plan-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 20px;
  font-weight: 600;
}

.plan-facts .price {
  color: var(--sand);
}

.plan-lead {
  max-width: 30em;
  margin: 22px auto 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.plan-actions .btn {
  padding: 0 28px;
}

.plan-actions svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.btn-whatsapp {
  color: #fff;
  background: #1a8a3f;
}

.btn-whatsapp:hover {
  background: #157434;
}

.btn-mail {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
}

.btn-mail:hover {
  border-color: #fff;
}

.plan-demo {
  margin: 30px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}

.plan-demo a {
  color: #fff;
  font-weight: 600;
  text-decoration-color: var(--sand);
  text-underline-offset: 4px;
}

.plan-foot {
  margin: 70px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* back to the sign-in form, once it is out of sight */
.float-signin {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: var(--navy-800);
  box-shadow: 0 12px 30px -12px rgba(5, 18, 38, 0.8);
  font-weight: 600;
  text-decoration: none;
  z-index: 20;
}

.float-signin[hidden] {
  display: none;
}

.float-signin svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================= smaller screens ================= */
@media (max-width: 1100px) {
  .entry {
    grid-template-columns: 1fr minmax(360px, 440px);
  }
  .caps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .entry {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .hero {
    gap: 22px;
    padding: 26px 22px 30px;
  }
  .brand {
    width: 150px;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(46px, 11vw, 72px);
  }
  .lead {
    font-size: 16px;
  }
  .survey,
  .caps,
  .contact {
    display: none;
  }
  .access {
    padding: 34px 22px 44px;
  }
  .lang {
    position: static;
    width: max-content;
    margin: 0 0 22px auto;
  }
  .access {
    flex-direction: column;
    align-items: stretch;
  }
  .access-body {
    margin: 0 auto;
  }
  .access h2 {
    font-size: 40px;
  }
  .showcase {
    padding-top: 64px;
  }
  .lid {
    padding: 10px 10px 14px;
    border-radius: 14px 14px 6px 6px;
  }
  .bar {
    height: 22px;
  }
  .bar span {
    font-size: 10px;
    padding: 1px 8px;
  }
  .features ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
  }
}

@media (max-width: 560px) {
  .tag {
    display: none;
  }
  .plan-actions .btn {
    width: 100%;
  }
  .plan-facts {
    flex-direction: column;
    gap: 6px;
  }
  .features ul {
    grid-template-columns: 1fr;
  }
}
