/* =====================================================================
   VERTRO — Landing page
   Recreation of Figma "Home v2"
   Headings: Oswald (substitute for GT America Condensed Bold)
   Body/UI:  Inter  (substitute for SF Pro)
   ===================================================================== */

/* -------------------------------------------------- Design tokens */
:root {
  /* Brand & surfaces */
  --blue:          #4599e4;
  --blue-hover:    #3387d4;
  --ink:           #1e1e1e;
  --panel:         #ddecfa;   /* light-blue section panel */
  --white:         #ffffff;
  --border:        #ececec;   /* hairlines */
  --border-soft:   #aeaeae;   /* ghost button outline */
  --card-border:   rgba(30, 30, 30, 0.06);

  /* Footer */
  --footer-bg:     #1e1e1e;
  --footer-muted:  rgba(255, 255, 255, 0.70);
  --footer-divider:rgba(255, 255, 255, 0.20);

  /* Type */
  --font-head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale (matches Figma px values, fluid where it helps) */
  --fs-h1:   clamp(2.25rem, 1.30rem + 3.0vw, 3.50rem);   /* 36 → 56 */
  --fs-h2:   clamp(2.00rem, 1.45rem + 1.8vw, 3.00rem);   /* 32 → 48 */
  --fs-card: clamp(1.50rem, 1.35rem + 0.6vw, 1.75rem);   /* 24 → 28 */
  --fs-step: 1.5625rem;                                   /* 25 */
  --fs-feat: clamp(1.20rem, 1.10rem + 0.4vw, 1.3125rem); /* ~19 → 21 */
  --fs-lede: clamp(1.10rem, 1.02rem + 0.3vw, 1.25rem);   /* ~17.6 → 20 */
  --fs-body: 1.025rem;                                    /* 18 */
  --fs-nav:  0.9375rem;                                   /* 15 */
  --fs-eyebrow: 0.8125rem;                                /* 13 */

  /* Radii */
  --r-btn:  6px;
  --r-card: 20px;
  --r-panel: 24px;
  --r-pill: 100px;

  /* Layout */
  --maxw: 1340px;
  --pad-x: clamp(20px, 5vw, 100px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 150ms;
  --t-mid: 240ms;

  --shadow-card: 0 1px 2px rgba(30, 30, 30, 0.04), 0 8px 24px rgba(30, 30, 30, 0.06);
  --shadow-card-hover: 0 4px 10px rgba(30, 30, 30, 0.06), 0 18px 40px rgba(30, 30, 30, 0.12);
  --shadow-nav: 0 1px 0 var(--border);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* -------------------------------------------------- Shared layout */
.section {
  padding-block: clamp(72px, 8vw, 140px);
}
.section--flush { padding-inline: clamp(16px, 3vw, 20px); }

.split,
.process,
.section-title,
.cards,
.cta {
  max-width: var(--maxw);
  margin-inline: auto;
}

.split { padding-inline: var(--pad-x); }

/* -------------------------------------------------- Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow--center { justify-content: center; }
.eyebrow__dot {
  width: 8px; height: 8px;
  background: var(--blue);
  flex: none;
}

/* -------------------------------------------------- Headings */
.hero__title,
.block-head__title,
.section-title__heading {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.block-head { display: flex; flex-direction: column; gap: 12px; }
.block-head__title { font-size: var(--fs-h2); }

.lede { font-size: var(--fs-lede); letter-spacing: -0.01em; }

/* -------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 24px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.45;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.btn__icon { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }

.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 16px rgba(69, 153, 228, 0.28); }
.btn--primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(69, 153, 228, 0.36); }
.btn--primary:hover .btn__icon { transform: translateX(3px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-soft); }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-2px); }

.btn--white { background: var(--white); color: var(--blue); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30, 30, 30, 0.18); }
.btn--white:hover .btn__icon { transform: translateX(3px); }

.btn--sm { padding: 10px 16px; font-size: 0.875rem; gap: 8px; border-color: rgba(234, 254, 69, 0.15); }

/* ===================================================================== */
/* NAVBAR                                                                */
/* ===================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease);
}
.nav.is-scrolled { box-shadow: 0 6px 20px rgba(30, 30, 30, 0.06); }

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.625rem;          /* 26 */
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav__links {
  display: flex;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__link {
  font-weight: 500;
  font-size: var(--fs-nav);
  color: var(--ink);
  position: relative;
  padding-block: 4px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__actions { margin-left: auto; }

/* ===================================================================== */
/* HERO                                                                  */
/* ===================================================================== */
.hero {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(56px, 7vw, 100px) var(--pad-x) clamp(48px, 6vw, 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
  text-align: center;
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 800px;
}
.hero__head { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero__title { font-size: var(--fs-h1); }
.hero__lede { font-size: var(--fs-lede); max-width: 798px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; padding-top: 4px; }
.hero__media { width: 100%; display: flex; justify-content: center; }
.media--hero { width: min(640px, 100%); }

/* ===================================================================== */
/* IMAGE PLACEHOLDERS                                                    */
/* ===================================================================== */
.media {
  width: 100%;
}
.media img { width: 100%; height: 100%; object-fit: cover; }


/* ===================================================================== */
/* SPLIT (two-column text + media)                                       */
/* ===================================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 551fr) minmax(0, 540fr);
  align-items: center;
  gap: clamp(32px, 4vw, 48px);
  padding-block: clamp(8px, 1vw, 0);
}
.split--reverse .split__media { order: 2; }
.split--wide { grid-template-columns: minmax(0, 551fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); }
.split__body { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 32px); }
.split__media { width: 100%; }

.has-divider { position: relative; }
.has-divider::before {
  content: "";
  position: absolute;
  top: calc(-1 * clamp(36px, 4vw, 70px));
  left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

/* Problem grid (4 numbered items) */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.problem-item { display: flex; flex-direction: column; gap: 8px; }
.problem-item__title {
  font-weight: 500;
  font-size: var(--fs-card);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.problem-item__title .num { color: var(--blue); }
.problem-item__text { font-size: var(--fs-body); letter-spacing: -0.01em; }

/* Prose (platform layer) */
.prose { display: flex; flex-direction: column; gap: 1em; font-size: var(--fs-body); letter-spacing: -0.01em; }

/* Features list (checks) */
.features { display: flex; flex-direction: column; gap: 18px; }
.feature { display: flex; align-items: flex-start; gap: 10px; }
.feature__icon { width: 24px; height: 24px; color: var(--blue); flex: none; margin-top: 1px; }
.feature__text { font-weight: 500; font-size: var(--fs-feat); line-height: 1.3; letter-spacing: -0.01em; }

/* Stats (about) */
.stats { display: flex; flex-wrap: wrap; gap: 19px; }
.stat { display: flex; align-items: center; gap: 12px; }
.stat__badge {
  width: 48px; height: 48px;
  border-radius: 40px;
  background: var(--blue);
  color: var(--white);
  display: grid; place-items: center;
  flex: none;
}
.stat__badge i { width: 26px; height: 26px; }
.stat__meta { display: flex; flex-direction: column; font-size: var(--fs-body); letter-spacing: -0.01em; line-height: 1.4; }
.stat__meta strong { font-weight: 600; }

/* ===================================================================== */
/* PANELS (blue / soft sections)                                         */
/* ===================================================================== */
.panel {
  max-width: var(--maxw);
  margin-inline: auto;
  border-radius: var(--r-panel);
  overflow: hidden;
}
.panel--blue {
  background: var(--panel);
  padding: clamp(56px, 7vw, 120px) clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 64px);
}
.panel--soft { background: var(--panel); }

/* Centered section title */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.section-title__heading { font-size: var(--fs-h2); }
.section-title__sub { font-size: var(--fs-lede); max-width: 480px; letter-spacing: -0.01em; }

/* Capability cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}
.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 24px;
  min-height: 252px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card__icon { width: 32px; height: 32px; color: var(--blue); }
.card__text { display: flex; flex-direction: column; gap: 8px; }
.card__title { font-weight: 500; font-size: var(--fs-card); line-height: 1.3; letter-spacing: -0.01em; }
.card__desc { font-size: var(--fs-body); letter-spacing: -0.01em; }

/* ===================================================================== */
/* PROCESS ("What changes after the first week")                         */
/* Faithful to Figma flex-wrap: intro + step1 + step2 on row 1,          */
/* step3 + step4 + step5 + summary on row 2.                             */
/* ===================================================================== */
.process { padding-inline: var(--pad-x); }
.process__board {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: clamp(32px, 4vw, 56px);
}
.process__intro {
  flex: 1 1 460px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: clamp(0px, 4vw, 60px);
}
.process__intro .lede { max-width: 520px; }

.step {
  flex: 1 1 220px;
  min-width: 200px;
  background: var(--panel);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.pill {
  align-self: flex-start;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  line-height: 1.6;
}
.step__title { font-weight: 500; font-size: var(--fs-step); line-height: 1.3; }
.step__text { font-size: var(--fs-body); letter-spacing: -0.01em; }

.summary {
  flex: 1 1 440px;
  min-width: 280px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.summary__text { font-weight: 500; font-size: var(--fs-step); line-height: 1.3; }
.summary .btn--white { align-self: flex-start; }

/* ===================================================================== */
/* CTA / DEMO                                                            */
/* ===================================================================== */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 411fr) minmax(0, 683fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  padding: clamp(48px, 6vw, 80px) clamp(28px, 6vw, 120px);
}
.cta__body { display: flex; flex-direction: column; gap: 24px; max-width: 411px; }
.cta__card {
  background: var(--white);
  border: 0.6px solid rgba(26, 26, 26, 0.10);
  border-radius: var(--r-card);
  overflow: hidden;
  height: 507px;
  max-height: 70vh;
}
.cta__card .calendly-inline-widget { height: 100%; }

/* ===================================================================== */
/* FOOTER                                                                */
/* ===================================================================== */
.footer { padding: clamp(80px, 8vw, 0) clamp(16px, 3vw, 20px) 20px; }
.footer__panel {
  max-width: var(--maxw);
  margin-inline: auto;
  background: var(--footer-bg);
  color: var(--white);
  border-radius: var(--r-panel);
  padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 80px) 40px;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
}
.footer__brand-block { display: flex; flex-direction: column; gap: 24px; max-width: 320px; }
.footer__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.15rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.footer__tagline { font-weight: 500; font-size: var(--fs-lede); }
.footer__social { display: flex; gap: 16px; }
.footer__social-link {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--white);
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.footer__social-link i { width: 22px; height: 22px; }
.footer__social-link:hover { background: rgba(255, 255, 255, 0.10); transform: translateY(-2px); }

.footer__credits { display: flex; flex-direction: column; gap: 24px; }
.footer__divider { height: 1px; background: var(--footer-divider); width: 100%; }
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--footer-muted);
}
.footer__links { display: flex; gap: 24px; }
.footer__link { transition: color var(--t-fast) var(--ease); }
.footer__link:hover { color: var(--white); }

/* ===================================================================== */
/* SCROLL REVEAL                                                         */
/* ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================================================================== */
/* RESPONSIVE                                                            */
/* ===================================================================== */

/* Tablet (768–1199) */
@media (max-width: 1199px) {
  .cta { grid-template-columns: 1fr; }
  .cta__body { max-width: none; }
  .cta__card { height: 620px; max-height: none; }
}

/* Hide centred nav links when they no longer fit (no hamburger) */
@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* Stack two-column layouts */
@media (max-width: 900px) {
  .split,
  .split--wide { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .split__media { order: -1; }            /* media on top when stacked */
  .media--hero { width: min(560px, 100%); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (<768) */
@media (max-width: 767px) {
  .hero { text-align: center; }
  .problem-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .step,
  .summary { flex: 1 1 100%; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}

/* Larger screens: keep the page comfortably centred */
@media (min-width: 1440px) {
  :root { --pad-x: 100px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
