/* ==========================================================================
   Virdexis landing page
   ========================================================================== */

/* ---- Fonts -------------------------------------------------------------- */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --navy: #0a0f38;
  --ice: #e7f5f9;
  --ink: #1e0a38;
  --ink-soft: rgba(30, 10, 56, 0.8);
  --green: #3cb800;
  --green-hover: rgba(60, 184, 0, 0.9);
  --green-icon: #308935;
  --paper: #f9f8f8;
  --line: #edebeb;
  --footer-bg: #111827;
  --footer-muted: #bcbcbc;

  --font: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1280px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  line-height: 1.5;
  color: #1c1c1c;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.icon { flex-shrink: 0; width: 24px; height: 24px; }

.wrap {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 24px 32px;
  border-radius: 9999px;
  background: var(--green);
  color: #fff;
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--green-hover); }
.btn--lg { font-size: 22px; letter-spacing: 0.44px; }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.site-header .wrap { padding-block: 16px; }

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.logo { flex-shrink: 0; }
.logo svg { width: 122px; height: 24px; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.site-nav__link {
  display: none;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s ease;
}
.site-nav__link:hover { color: #fff; }

.btn-order {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 12px 24px;
  border-radius: 9999px;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.15s ease;
}
.btn-order:hover { background: var(--green-hover); }

/* ---- Sections (shared) -------------------------------------------------- */
.section { padding-block: 40px; }
.section--navy { background: var(--navy); color: #fff; }
.section--ice { background: var(--ice); color: var(--ink); }
.section--paper { background: var(--paper); color: var(--ink); }

.section__title {
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
}
.section__text { font-size: 18px; line-height: 26px; }

.split {
  display: grid;
  gap: 24px;
  align-items: center;
}
.split__media { order: -1; }
.split__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---- Hero --------------------------------------------------------------- */
.hero { padding-top: 24px; padding-bottom: 40px; }
.hero .split { gap: 0; }
.hero__media img { border-radius: 8px; }
.hero__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}
.hero__intro { display: flex; flex-direction: column; gap: 16px; }
.hero__title { font-size: 32px; line-height: 40px; font-weight: 700; }
.hero__lead { font-size: 18px; line-height: 28px; }

.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; }
.checklist span { font-size: 16px; line-height: 1.5; }

/* ---- Problem ------------------------------------------------------------ */
.pain .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.pain .split { width: 100%; }
.pain__copy { display: flex; flex-direction: column; gap: 16px; }
.pain__title { font-weight: 600; font-size: 32px; line-height: 42px; }
.pain__kicker { font-size: 18px; line-height: 26px; font-weight: 700; }
.pain__body { display: flex; flex-direction: column; gap: 26px; }
.pain__body p { font-size: 18px; line-height: 26px; }
.pain__photo {
  order: -1;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.pain__photo img { width: 100%; aspect-ratio: 580 / 504; object-fit: cover; }

/* ---- Stages ------------------------------------------------------------- */
.stages__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.stages__text { display: flex; flex-direction: column; gap: 16px; }

/* ---- Guarantee ---------------------------------------------------------- */
.guarantee__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 968px;
  margin-inline: auto;
}
.guarantee__badge { flex-shrink: 0; width: 164px; height: auto; }
.guarantee__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  text-align: center;
}
.guarantee__title { font-weight: 600; font-size: 28px; line-height: 36px; }
.guarantee__text { font-size: 18px; line-height: 26px; color: var(--ink-soft); }

/* ---- FAQ ---------------------------------------------------------------- */
.faq .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.faq__title { text-align: center; font-weight: 600; font-size: 32px; line-height: 40px; }
.faq__layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.faq__photo {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}
.faq__list {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq__rule { border-top: 1px solid var(--line); }
.faq__rule:last-child { border-top: 1px solid var(--line); }

.faq__item { display: flex; flex-direction: column; }
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.faq__question-text {
  flex: 1;
  min-width: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.faq__toggle {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.faq__toggle::before,
.faq__toggle::after {
  content: "";
  position: absolute;
  background: var(--green-icon);
}
.faq__toggle::before { left: 0; top: 50%; width: 18px; height: 2px; transform: translateY(-50%); }
.faq__toggle::after {
  left: 50%; top: 0; width: 2px; height: 18px;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
}
.faq__question[aria-expanded="true"] .faq__toggle::after { opacity: 0; }

.faq__answer {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, margin-top 0.3s ease-in-out;
}
.faq__answer p { font-size: 18px; line-height: 26px; color: var(--ink-soft); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  padding-block: 40px;
  background: var(--footer-bg);
  color: #fff;
}
.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 20px;
}
.site-footer__legal { padding-top: 40px; font-size: 12px; line-height: 16px; color: var(--footer-muted); }
.site-footer__copy { margin-bottom: 16px; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .site-footer__links { flex-direction: row; }
}

@media (min-width: 854px) {
  .wrap { padding-inline: 40px; }

  .logo svg { width: 147.2px; height: 28.86px; }
  .site-header { border-bottom-color: rgba(177, 177, 177, 0.2); }
  .site-nav { gap: 40px; }
  .site-nav__link { display: block; }
  .btn-order { padding-block: 16px; white-space: nowrap; }

  .section { padding-block: 80px; }
  .section__title { font-size: 48px; line-height: 64px; }

  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split__media { order: 0; }

  .btn { width: 480px; white-space: nowrap; }

  .hero { padding-top: 40px; padding-bottom: 80px; }
  .hero .split { gap: 80px; }
  .hero__media { order: 0; }
  .hero__body { gap: 29px; margin-top: 0; }
  .hero__title { font-size: 48px; line-height: 60px; }
  .hero .btn { width: auto; min-width: 372px; }

  .pain .wrap { gap: 40px; }
  .pain__copy { gap: 24px; }
  .pain__title { font-size: 48px; line-height: 64px; }
  .pain__photo { order: 0; }

  .stages { padding-block: 64px; }
  .stages__copy { gap: 40px; }
  .stages__title { font-size: 48px; line-height: normal; }

  .guarantee__inner { flex-direction: row; gap: 48px; }
  .guarantee__badge { width: 218.4px; }
  .guarantee__copy { text-align: left; }
  .guarantee__title { font-size: 36px; line-height: 44px; }

  .faq .wrap { gap: 40px; }
  .faq__title { font-size: 48px; line-height: 56px; }
  .faq__layout { flex-direction: row; gap: 80px; }
  .faq__photo { width: 600px; }
}

@media (min-width: 1110px) {
  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .site-footer__links { margin-top: 0; gap: 40px; }
}

@media (min-width: 1281px) {
  .wrap { max-width: var(--wrap); }
}

@media (min-width: 1440px) {
  .wrap { padding-inline: 0; }
}
