/*
 * Fastbro landing page, static version.
 * Ported from app/globals.css + app/home.css + the Tailwind classes in app/page.tsx.
 * Breakpoints match Tailwind: sm 640px, lg 1024px, xl 1280px.
 */

:root {
  --rv-canvas: #f4f8fc;
  --rv-ink: #062c52;
  --rv-ink-soft: #3d5a78;
  --rv-blue: #0d67b0;
  --rv-blue-deep: #0b5799;
  --rv-cyan: #6fdcff;
  --rv-bar-off: #c8d7e6;
  --rv-bolt: 18deg;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset (subset of Tailwind preflight that this page relies on) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

html {
  background: var(--rv-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100%;
  background: var(--rv-canvas);
  color: var(--rv-ink);
  font-family: "Montserrat", system-ui, sans-serif;
  line-height: 1.5;
}

h1,
p,
dl,
dd {
  margin: 0;
}

img,
svg {
  display: block;
}

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

a[href],
button:not(:disabled) {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--rv-blue);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Page shell */
.rv {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

.rv-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-inline: 1.25rem;
}

/* Header */
.rv-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
}

.rv-logo {
  width: 150px;
  height: auto;
}

.rv-divider {
  width: 2px;
  height: 1.75rem;
  background: var(--rv-cyan);
  transform: skewX(calc(var(--rv-bolt) * -1));
}

.rv-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--rv-ink-soft);
}

/* Main */
.rv-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-block: 3.5rem;
}

.rv-status {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  color: var(--rv-blue);
}

.rv-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding-bottom: 3px;
}

.rv-title {
  margin-top: 1.25rem;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.rv-title em {
  color: var(--rv-blue);
}

.rv-br-sm {
  display: none;
}

.rv-lead {
  margin-top: 1.5rem;
  max-width: 42ch;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.625;
  color: var(--rv-ink-soft);
}

/* WhatsApp button */
.rv-cta-wrap {
  margin-top: 2.25rem;
}

.rv-cta {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--rv-blue);
  color: #fff;
  transition: background-color 150ms, transform 150ms;
}

.rv-cta:hover {
  background: var(--rv-blue-deep);
}

.rv-cta:active {
  transform: translateY(1px);
  background: var(--rv-ink);
}

.rv-cta-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.rv-cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.rv-cta-label {
  font-size: 1rem;
  font-weight: 700;
}

.rv-cta-number {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.85);
}

/* Secondary contacts */
.rv-contacts {
  display: grid;
  gap: 1.25rem 3rem;
  margin-top: 2.5rem;
}

.rv-contacts dt {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  color: var(--rv-ink-soft);
}

.rv-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-inline: -0.25rem;
  padding-inline: 0.25rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--rv-ink);
  text-decoration: underline;
  text-decoration-color: var(--rv-cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color 150ms, text-decoration-color 150ms;
}

.rv-link:hover {
  color: var(--rv-blue);
  text-decoration-color: var(--rv-blue);
}

.rv-link:active {
  opacity: 0.75;
}

/* Footer */
.rv-footer {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 10;
}

.rv-footer p {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #fff;
}

/* Brand panel. Mobile: a band at the bottom with a rising edge. */
.rv-panel {
  position: relative;
  height: clamp(240px, 64vw, 420px);
  background: var(--rv-cyan);
  clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%);
  animation: rv-rise 900ms var(--ease-out) 150ms both;
}

.rv-panel-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--rv-blue) 30%, var(--rv-blue-deep) 100%);
  clip-path: polygon(0 calc(22% + 4px), 100% 4px, 100% 100%, 0 100%);
}

/* The photo is a grey cut-out: multiply tints it blue and only darkens, so white text on it keeps contrast. */
.rv-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 100%;
  mix-blend-mode: multiply;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(180deg, transparent 38%, #000 72%);
  mask-image: linear-gradient(180deg, transparent 38%, #000 72%);
}

/* Signal bars: three bolt-angled bars light up once, like a connection coming online. */
.rv-bar {
  display: block;
  width: 4px;
  border-radius: 1px;
  background: var(--rv-blue);
  transform: skewX(calc(var(--rv-bolt) * -1));
  animation: rv-bar 400ms ease-out both;
}

/* Content lands along the bolt direction, one block after another. */
.rv-in {
  animation: rv-in 700ms var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}

@keyframes rv-in {
  from {
    opacity: 0;
    transform: translate3d(-18px, 8px, 0);
  }
}

@keyframes rv-bar {
  from {
    background: var(--rv-bar-off);
  }
}

@keyframes rv-rise {
  from {
    opacity: 0;
    transform: translateY(48px);
  }
}

@keyframes rv-slide {
  from {
    transform: translateX(35%) skewX(calc(var(--rv-bolt) * -1));
  }
}

/* sm */
@media (min-width: 640px) {
  .rv-content {
    padding-inline: 2.5rem;
  }

  .rv-header {
    padding-top: 2.5rem;
  }

  .rv-logo {
    width: 180px;
  }

  .rv-tagline {
    font-size: 0.875rem;
  }

  .rv-main {
    padding-block: 4rem;
  }

  .rv-title {
    font-size: 3.75rem;
  }

  .rv-br-sm {
    display: inline;
  }

  .rv-lead {
    font-size: 1.125rem;
  }

  .rv-cta {
    padding-inline: 1.5rem;
  }

  .rv-contacts {
    display: flex;
  }

  .rv-footer {
    right: 2.5rem;
    bottom: 1.75rem;
  }
}

/* lg: the panel becomes the right side of the screen, its edge leaning at the bolt angle. */
@media (min-width: 1024px) {
  .rv-content {
    width: 62%;
    padding-inline: 4rem;
  }

  .rv-header {
    padding-top: 3rem;
  }

  .rv-main {
    padding-block: 5rem;
  }

  .rv-title {
    font-size: 3.1rem;
  }

  .rv-footer {
    right: 4rem;
  }

  .rv-panel {
    position: absolute;
    inset: 0 -50vh 0 52%;
    height: auto;
    clip-path: none;
    overflow: hidden;
    background: var(--rv-blue);
    border-left: 4px solid var(--rv-cyan);
    transform-origin: 0 100%;
    transform: skewX(calc(var(--rv-bolt) * -1));
    animation: rv-slide 1000ms var(--ease-out) both;
  }

  .rv-panel-inner {
    inset: 0 0 0 -60vh;
    clip-path: none;
    transform-origin: 0 100%;
    transform: skewX(var(--rv-bolt));
  }
}

/* xl */
@media (min-width: 1280px) {
  .rv-content {
    padding-inline: 6rem;
  }

  .rv-title {
    font-size: 4.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-panel,
  .rv-in,
  .rv-bar {
    animation: none;
  }
}
