/**
 * @file
 * Landing page (front page). Everything is scoped to .fvh.
 */

.fvh {
  --fvh-ink: #0f1f3d;
  --fvh-text: #3b4a63;
  --fvh-muted: #6b7a90;
  --fvh-line: #e4e9f2;
  --fvh-bg: #f6f8fc;
  --fvh-card: #ffffff;
  --fvh-blue: #1565c0;
  --fvh-blue-dark: #0b3d91;
  --fvh-blue-soft: #e3effc;
  --fvh-yellow: #ffcc33;
  --fvh-yellow-dark: #f5b800;
  --fvh-yellow-soft: #fff4d1;
  --fvh-red: #e5484d;
  --fvh-red-soft: #fde8e8;
  --fvh-green: #16a34a;
  --fvh-green-soft: #e3f6ea;
  --fvh-orange: #f08c00;
  --fvh-orange-soft: #fff0db;
  --fvh-purple: #6d4fd8;
  --fvh-purple-soft: #ece7fd;
  --fvh-radius: 16px;
  --fvh-shadow: 0 2px 6px rgba(15, 31, 61, .05), 0 10px 30px rgba(15, 31, 61, .07);

  max-width: 1180px;
  margin: 0 auto;
  color: var(--fvh-text);
  font-size: 16px;
  line-height: 1.55;
}

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

.fvh h1,
.fvh h2,
.fvh h3 {
  color: var(--fvh-ink);
  line-height: 1.2;
  margin: 0;
}

.fvh p {
  margin: 0;
}

.fvh a {
  text-decoration: none;
}

.fvh-svg {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  vertical-align: -0.125em;
}

/* ---------- Buttons ---------- */
.fvh-btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .85em 1.4em;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.fvh-btn:hover,
.fvh-btn:focus-visible {
  transform: translateY(-2px);
}

.fvh-btn--primary {
  background: var(--fvh-yellow);
  color: var(--fvh-ink) !important;
  box-shadow: 0 6px 18px rgba(245, 184, 0, .35);
}

.fvh-btn--primary:hover,
.fvh-btn--primary:focus-visible {
  background: var(--fvh-yellow-dark);
}

.fvh-btn--outline {
  background: #fff;
  color: var(--fvh-ink) !important;
  border: 2px solid var(--fvh-ink);
}

/* ---------- Demo video dialog ---------- */
.fvh-video {
  width: min(1100px, 94vw);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 20px 60px rgba(15, 31, 61, .45);
  overflow: visible;
}

.fvh-video::backdrop {
  background: rgba(15, 31, 61, .75);
}

.fvh-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.fvh-video-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--fvh-yellow);
  color: var(--fvh-ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

/* ---------- Hero ---------- */
.fvh-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 1.5rem 3rem;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 85% 20%, #dcebff 0, transparent 45%),
    linear-gradient(180deg, #ffffff 0%, var(--fvh-bg) 100%);
}

@media (min-width: 900px) {
  .fvh-hero {
    grid-template-columns: 1.05fr 1fr;
    padding: 3.5rem 2rem 4rem;
  }
}

.fvh-pill {
  display: inline-block;
  padding: .35em 1em;
  border-radius: 999px;
  background: var(--fvh-blue-soft);
  color: var(--fvh-blue-dark);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fvh .fvh-title {
  margin: 1rem 0;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

/* Hand-drawn style yellow underline under the second part of the title. */
.fvh-underline {
  position: relative;
  white-space: nowrap;
}

.fvh-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.08em;
  height: .16em;
  border-radius: 999px;
  background: var(--fvh-yellow);
  transform: rotate(-1.5deg);
}

.fvh-lead {
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--fvh-text);
}

.fvh-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: 1.8rem 0 1.4rem;
}

.fvh-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .92rem;
  color: var(--fvh-text);
}

.fvh-checks li {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin: 0;
}

.fvh-checks .fvh-svg {
  color: var(--fvh-green);
}

/* ---------- Hero mock-up ---------- */
.fvh-hero-visual {
  position: relative;
  max-width: 470px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.fvh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .85;
}

.fvh-blob--red {
  width: 150px;
  height: 150px;
  left: -10px;
  top: 40px;
  background: #ff8a8a;
}

.fvh-blob--yellow {
  width: 170px;
  height: 170px;
  right: 0;
  bottom: -10px;
  background: #ffe08a;
}

.fvh-device {
  position: relative;
  padding: .9rem 1.1rem 1.1rem;
  border: 10px solid #1d2433;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 25px 50px rgba(15, 31, 61, .25);
  text-align: center;
  font-size: .9rem;
}

.fvh-device-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .7rem;
  font-size: .75rem;
  color: var(--fvh-muted);
}

.fvh-device-logo {
  font-weight: 700;
  color: var(--fvh-blue-dark);
}

.fvh-dots i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--fvh-line);
}

.fvh-progress {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  color: var(--fvh-muted);
}

.fvh-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--fvh-line);
  overflow: hidden;
}

.fvh-progress-fill {
  width: 70%;
  height: 100%;
  background: var(--fvh-green);
}

.fvh-task {
  margin-top: .9rem;
  font-weight: 700;
  color: var(--fvh-ink);
}

.fvh-chip {
  display: inline-block;
  margin-top: .4rem;
  padding: .2em .8em;
  border-radius: 8px;
  background: var(--fvh-blue-soft);
  color: var(--fvh-blue-dark);
  font-size: .78rem;
}

.fvh-verb {
  margin-top: .7rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--fvh-ink);
}

.fvh-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: .5rem;
}

.fvh-person {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fvh-ink);
}

.fvh-input {
  min-width: 9em;
  padding: .4em .8em;
  border: 2px solid #8ec5ff;
  border-radius: 8px;
  background: #f3f9ff;
  text-align: left;
  font-size: 1.05rem;
  color: var(--fvh-ink);
}

.fvh-ok {
  color: var(--fvh-green);
  font-size: 1.4rem;
}

.fvh-accents {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem;
  margin-top: .8rem;
}

.fvh-accents span {
  min-width: 1.9em;
  padding: .15em .3em;
  border: 1px solid var(--fvh-line);
  border-radius: 6px;
  background: var(--fvh-bg);
  font-size: .85rem;
}

.fvh-device-actions {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .9rem;
}

.fvh-mbtn {
  padding: .45em .9em;
  border-radius: 8px;
  background: var(--fvh-blue-soft);
  color: var(--fvh-blue-dark);
  font-size: .8rem;
  font-weight: 600;
}

.fvh-mbtn--go {
  flex: 1;
  background: var(--fvh-green);
  color: #fff;
}

.fvh-badge {
  position: absolute;
  max-width: 150px;
  padding: .55em .9em;
  border-radius: 12px;
  font-weight: 700;
  font-size: .85rem;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(15, 31, 61, .18);
}

.fvh-badge--blue {
  top: 4px;
  right: -6px;
  background: var(--fvh-blue);
  color: #fff;
  transform: rotate(2deg);
}

.fvh-badge--yellow {
  top: 44%;
  right: -18px;
  background: var(--fvh-yellow);
  color: var(--fvh-ink);
  transform: rotate(-2deg);
}

.fvh-badge--red {
  bottom: 0;
  left: -6px;
  background: var(--fvh-red);
  color: #fff;
  transform: rotate(-3deg);
}

@media (max-width: 520px) {
  .fvh-badge {
    display: none;
  }
}

/* ---------- Coloured round icons ---------- */
.fvh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 26px;
}

.fvh-icon--blue { background: var(--fvh-blue-soft); color: var(--fvh-blue); }
.fvh-icon--orange { background: var(--fvh-orange-soft); color: var(--fvh-orange); }
.fvh-icon--red { background: var(--fvh-red-soft); color: var(--fvh-red); }
.fvh-icon--green { background: var(--fvh-green-soft); color: var(--fvh-green); }
.fvh-icon--purple { background: var(--fvh-purple-soft); color: var(--fvh-purple); }

.fvh-text--blue { color: var(--fvh-blue); }
.fvh-text--orange { color: var(--fvh-orange); }
.fvh-text--red { color: var(--fvh-red); }
.fvh-text--green { color: var(--fvh-green); }
.fvh-text--purple { color: var(--fvh-purple); }

/* ---------- Key facts ---------- */
.fvh-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 1.5rem;
  scroll-margin-top: 1rem;
}

.fvh-stat {
  text-align: center;
}

.fvh-stat h3 {
  margin: .7rem 0 .25rem;
  font-size: 1.1rem;
}

.fvh-stat p {
  font-size: .92rem;
  color: var(--fvh-muted);
}

/* ---------- Sections ---------- */
.fvh-section {
  padding: 2.5rem 1.5rem;
  scroll-margin-top: 1rem;
}

.fvh-section-head {
  max-width: 44em;
  margin-bottom: 1.6rem;
}

.fvh-section-head h2 {
  display: flex;
  align-items: center;
  gap: .5em;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.fvh-section-head h2 .fvh-svg {
  color: var(--fvh-blue);
}

.fvh-section-head p {
  margin-top: .6rem;
  font-size: 1.05rem;
}

/* ---------- Quick starts ---------- */
.fvh-qs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.fvh-qs {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  padding: 1.4rem;
  border: 1px solid var(--fvh-line);
  border-radius: var(--fvh-radius);
  background: var(--fvh-card);
  box-shadow: var(--fvh-shadow);
  color: var(--fvh-text) !important;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}

.fvh-qs:hover,
.fvh-qs:focus-visible {
  transform: translateY(-4px);
  border-color: #b9d6f7;
  box-shadow: 0 4px 10px rgba(15, 31, 61, .06), 0 18px 40px rgba(21, 101, 192, .16);
}

.fvh-qs-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .15em .7em;
  border-radius: 999px;
  background: var(--fvh-green-soft);
  color: var(--fvh-green);
  font-size: .75rem;
  font-weight: 700;
}

.fvh-qs h3 {
  font-size: 1.1rem;
}

.fvh-qs p {
  flex: 1;
  font-size: .92rem;
  color: var(--fvh-muted);
}

.fvh-qs-go {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 700;
  color: var(--fvh-blue);
}

.fvh-qs-all {
  margin-top: 1.2rem !important;
  text-align: right;
}

.fvh-qs-all a {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 700;
  color: var(--fvh-blue);
}

/* ---------- Features ---------- */
.fvh-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.fvh-feat {
  padding: 1.5rem;
  border: 1px solid var(--fvh-line);
  border-radius: var(--fvh-radius);
  background: var(--fvh-card);
  box-shadow: var(--fvh-shadow);
  text-align: center;
}

.fvh-feat h3 {
  margin: .8rem 0 .9rem;
  font-size: 1.1rem;
}

.fvh-feat ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.fvh-feat li {
  display: flex;
  gap: .5em;
  margin: 0 0 .5rem;
  font-size: .94rem;
}

.fvh-feat li .fvh-svg {
  margin-top: .25em;
  color: var(--fvh-green);
}

/* ---------- Audience ---------- */
.fvh-aud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}

.fvh-aud-icon {
  font-size: 30px;
}

.fvh-aud h3 {
  margin: .5rem 0 .3rem;
  font-size: 1.05rem;
}

.fvh-aud p {
  font-size: .94rem;
  color: var(--fvh-muted);
}

/* ---------- Call to action ---------- */
.fvh-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
  padding: 2.2rem 2.5rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 120%, rgba(255, 255, 255, .14) 0, transparent 45%),
    linear-gradient(110deg, var(--fvh-blue-dark), var(--fvh-blue));
  color: #dbe8ff;
}

.fvh .fvh-cta h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
}

.fvh-cta p {
  margin-top: .4rem;
}

@media (prefers-reduced-motion: reduce) {
  .fvh-btn,
  .fvh-qs {
    transition: none;
  }

  .fvh-btn:hover,
  .fvh-qs:hover {
    transform: none;
  }
}
