/* ============================================================
   Truth Engine — Homepage (from Figma: Homepage - Prabin Edits - June 25)
   Design canvas: 1920px wide, content column 1410px
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/manrope-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../assets/fonts/barlowsc-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../assets/fonts/barlowsc-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('../assets/fonts/dmmono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../assets/fonts/ibmplexmono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../assets/fonts/ibmplexmono-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/spacegrotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #132644;        /* headings */
  --blue: #2857AD;        /* primary blue: labels, tags, links, buttons */
  --brand: #2857AD;       /* deep brand blue: solid/outline buttons */
  --accent: #3B82F6;      /* bright blue: hover states only */
  --blue-link: #2754AA;   /* footer quick links */
  --nav-ink: #3D3D3D;
  --ink: #000000;
  --gray-1: #535353;
  --gray-2: #333333;
  --pill-border: #B3C6E4;
  --divider: #EEEEEE;
  --card-grad: linear-gradient(135deg, #FAFAFA 0%, #EBF6FE 100%);
  --radius-card: 19px;
  --radius-btn: 37px;

  /* Fluid scale - one source of truth for gutters and vertical rhythm.
     Every value is expressed as min / preferred / max so layouts breathe
     with the viewport instead of stepping at a handful of breakpoints. */
  --gutter-x: clamp(28px, 8vw, 156px);
  --gutter-footer: clamp(28px, 6vw, 100px);
  --sp-xl: clamp(56px, 8vw, 150px);   /* between major sections */
  --sp-lg: clamp(44px, 6.5vw, 110px); /* between capability rows */
  --sp-md: clamp(32px, 4.5vw, 86px);  /* inside sections */
  --sp-sm: clamp(20px, 3vw, 46px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: #FFFFFF;
}
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul { margin: 0; }
a { text-decoration: none; color: inherit; }
button { font: inherit; border: 0; background: none; padding: 0; cursor: pointer; }

.container {
  width: min(1290px, 100% - var(--gutter-x));
  margin-inline: auto;
}

/* Global scale: all page content 20% smaller; nav (header) excluded */
main, footer { zoom: 0.8; }

/* Footer spans the same visual width as the nav bar */
footer .container { width: min(1560px, 100% - var(--gutter-footer)); }

/* Individual feature pages: tighter capability rows */
.feature-page .feature-sec { padding-top: clamp(36px, 5vw, 56px); }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: clamp(44px, 4.4vw, 56px);
  padding: 0 clamp(22px, 2.8vw, 40px);
  border-radius: var(--radius-btn);
  font-weight: 800;
  font-size: clamp(13px, 1.15vw, 16px);
  letter-spacing: clamp(1px, .16vw, 2px);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-solid { background: var(--brand); color: #FFFFFF; }
.btn-solid:hover { background: var(--accent); }
.btn-outline { border: 1px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: rgba(59, 130, 246, .06); color: var(--accent); border-color: var(--accent); }

.pill {
  display: inline-flex;
  align-items: center;
  height: clamp(25px, 2.3vw, 31px);
  padding: 0 clamp(12px, 1.5vw, 20px);
  border: 1px solid var(--pill-border);
  border-radius: var(--radius-btn);
  color: var(--blue);
  font-weight: 700;
  font-size: clamp(11px, 1.05vw, 14px);
  letter-spacing: clamp(1.6px, .23vw, 3px);
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header { background: #FFFFFF; position: relative; z-index: 100; }
.header-inner {
  height: 90px;
  width: calc(100% - 80px); /* full screen width, 40px gap each side */
  display: flex;
  align-items: center;
  gap: 54px;
}
.logo img { width: 180px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 54px; flex: 1; }
.main-nav > a:not(.btn),
.main-nav .nav-features-link {
  font-weight: 800;
  font-size: 13.8px;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: var(--nav-ink);
}
.main-nav > a:not(.btn):hover,
.main-nav .nav-features-link:hover { color: var(--accent); }

/* Features dropdown (CSS-only: hover + keyboard focus; tap goes to /features) */
.has-dropdown { position: relative; display: flex; align-items: center; }
.nav-features-link { display: inline-flex; align-items: center; gap: 7px; }
.nav-chevron { width: 10px; height: 6px; transition: transform .18s ease; }
.has-dropdown:hover .nav-chevron,
.has-dropdown:focus-within .nav-chevron { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
  z-index: 110;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; }
.dropdown-inner {
  background: #FFFFFF;
  border: 1px solid #E8EEF6;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(19, 38, 68, .12);
  padding: 10px;
  min-width: 268px;
}
.dropdown-inner a {
  display: block;
  padding: 11px 16px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--nav-ink);
  white-space: nowrap;
}
.dropdown-inner a:hover { color: var(--accent); background: #F2F7FD; }
.dropdown-inner a.active { color: var(--blue); }
/* Mobile menu button - only shown at the small-screen breakpoint below */
/* hidden from view but focusable; only exists at the mobile breakpoint so it
   never becomes a stray tab stop on desktop */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  position: relative;
  margin-left: auto;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  cursor: pointer;
  color: var(--nav-ink);
}
/* three real bars (no pseudo-elements) at whole-pixel offsets from the top of
   the button, so every browser renders all three at the same weight */
.nav-burger i {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-burger i:nth-of-type(1) { top: 14px; }
.nav-burger i:nth-of-type(2) { top: 21px; }
.nav-burger i:nth-of-type(3) { top: 28px; }
.nav-toggle:checked ~ .nav-burger i:nth-of-type(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle:checked ~ .nav-burger i:nth-of-type(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger i:nth-of-type(3) { top: 21px; transform: rotate(-45deg); }
.nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.btn-login { height: 45px; padding: 0 25px; font-size: 13.8px; margin-left: auto; }
.btn-login svg { width: 10px; height: 13px; }

/* ---------- Hero ---------- */
.eyebrow {
  margin-top: 16px;
  color: var(--blue);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 16px;
  line-height: 31px;
  text-transform: uppercase;
}
.hero-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.hero h1 {
  margin-top: 24px;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 56px);
  line-height: .95;
  color: var(--navy);
}
.hero-side { width: min(569px, 44%); padding-top: 25px; }
.hero-side p { width: 100%; max-width: 542px; margin-left: auto; font-size: clamp(16px, 1.7vw, 22px); line-height: 1.45; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(12px, 2vw, 30px); margin-top: clamp(24px, 3vw, 36px); }

.hero-media {
  position: relative;
  /* Safari mis-sizes <video> under CSS zoom: neutralise the page zoom inside
     the player (0.8 x 1.25 = 1) so the video computes its box normally.
     Inner px values below are compensated so nothing changes visually. */
  zoom: 1.25;
  margin-top: 54px;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  transition: background-color .2s ease;
}
.play-btn:hover { background: rgba(0, 0, 0, .75); }
.hero-media.is-playing .play-btn { display: none; }

/* ---------- Trusted by ---------- */
.trusted { padding-top: var(--sp-lg); }
.trusted-heading {
  text-align: center;
  font-weight: 700;
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.2;
  color: var(--navy);
}
.logo-rows { margin-top: var(--sp-sm); }
/* One continuous grid for all 42 logos: the columns reflow together, so a
   change of width never leaves a hole mid-grid - only the final row can be
   short. Collapsed to exactly one row (a card's height) until Show More. */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr));
  gap: clamp(10px, 1.6vw, 22px);
  max-height: clamp(84px, 10vw, 140px);
  overflow: hidden;
  transition: max-height .45s ease;
}
.logo-grid.open { max-height: none; }
.logo-card {
  height: clamp(84px, 10vw, 140px);
  border-radius: 17.4px;
  background: rgba(247, 249, 251, .72);
  display: flex;
  align-items: center;
  justify-content: center;
}
.builder-logo {
  display: block;
  width: min(180px, calc(100% - 16px));
  height: calc(100% - 8px);
  background-image: var(--mask);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.show-more {
  margin-top: clamp(32px, 4vw, 64px);
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}
.show-more .fade-line {
  flex: 1;
  height: 24px;
  background-image: url('../assets/img/shadow-fade.png');
  background-size: 100% 100%;
  opacity: .08;
}
.show-more-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 26.88px;
}
.show-more .chevron { transition: transform .3s ease; }
.show-more[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* ---------- What you get ---------- */
.what-you-get { padding-top: var(--sp-xl); text-align: center; }
.section-heading {
  margin-top: 32px;
  font-weight: 600;
  font-size: clamp(28px, 4.1vw, 52px);
  line-height: 1.1;
  color: var(--navy);
}
.features-grid {
  margin-top: var(--sp-md);
  display: grid;
  /* four across, or one per row on phones - no in-between states */
  grid-template-columns: repeat(4, 1fr);
  row-gap: clamp(36px, 5vw, 60px);
}
.feature { position: relative; padding: 0 clamp(8px, 2vw, 30px); }
.feature + .feature::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 0;
  width: 24px;
  height: 406px;
  background-image: url('../assets/img/shadow-fade.png');
  background-size: 100% 100%;
  opacity: .08;
}
.feature-icon {
  display: block;
  margin: 0 auto;
  background-color: var(--blue);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.feature-icon[data-icon="platform"] { -webkit-mask-image: url('../assets/img/icon-platform.png'); mask-image: url('../assets/img/icon-platform.png'); }
.feature-icon[data-icon="specs"]    { -webkit-mask-image: url('../assets/img/icon-specs.png'); mask-image: url('../assets/img/icon-specs.png'); }
.feature-icon[data-icon="quote"]    { -webkit-mask-image: url('../assets/img/icon-quote.png'); mask-image: url('../assets/img/icon-quote.png'); }
.feature-icon[data-icon="takeoff"]  { -webkit-mask-image: url('../assets/img/icon-takeoff.png'); mask-image: url('../assets/img/icon-takeoff.png'); }
.feature h3 {
  margin-top: clamp(18px, 2.2vw, 30px);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.2;
  color: var(--navy);
}
.feature p { margin-top: clamp(14px, 2.4vw, 34px); margin-inline: auto; font-size: 16px; line-height: 1.4; }
.feature:nth-child(1) p { max-width: 290px; }
.feature:nth-child(2) p { max-width: 247px; }
.feature:nth-child(3) p { max-width: 215px; }
.feature:nth-child(4) p { max-width: 235px; }

/* ---------- Feature overview (pinwheel) ---------- */
.overview { padding-top: var(--sp-xl); }
.overview-panel {
  border-radius: var(--radius-card);
  background: var(--card-grad);
  display: flex;
  align-items: stretch;
  padding: 0 clamp(20px, 5.4vw, 104px);
  gap: clamp(28px, 4.7vw, 90px);
}
.wheel { position: relative; width: min(540px, 40%); max-width: 100%; aspect-ratio: 1; height: auto; flex: none; align-self: center; }
.wheel img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wheel-hits { position: absolute; inset: 0; width: 100%; height: 100%; }
.wheel-hits path {
  fill-opacity: 0;
  cursor: pointer;
  outline: none;
  transition: fill-opacity .2s ease;
}
.wheel-hits path:hover,
.wheel-hits path:focus-visible { fill-opacity: .16; }
.overview-copy {
  flex: 1;
  min-width: 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 7.8vw, 150px) 0 clamp(32px, 6.8vw, 130px);
}
.overview-copy .pill { align-self: flex-start; }
.overview-copy h3 {
  margin-top: clamp(10px, 1.3vw, 18px);
  font-weight: 700;
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.2;
  color: var(--navy);
}
.overview-copy p { margin-top: clamp(12px, 1.6vw, 22px); margin-bottom: clamp(20px, 2.9vw, 40px); font-size: clamp(13px, 1.2vw, 16px); line-height: 1.45; }
.overview-copy .feature-points { margin-bottom: clamp(20px, 2.9vw, 40px); }
.overview-copy .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Integrations ---------- */
.integrations { padding-top: var(--sp-xl); }
.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(28px, 3vw, 40px);
}
.integrations-copy { width: min(520px, 42%); min-width: 260px; flex: none; }
.integrations-copy h2 {
  margin-top: clamp(20px, 2.6vw, 39px);
  font-weight: 600;
  font-size: clamp(28px, 4.1vw, 52px);
  line-height: 1.1;
  color: var(--navy);
}
.integrations-copy p { margin-top: clamp(18px, 2.7vw, 41px); max-width: 390px; font-size: 16px; line-height: 1.4; }
.int-cards {
  flex: 1;
  min-width: min(100%, 260px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: clamp(14px, 2vw, 28px) clamp(12px, 1.7vw, 24px);
}
.int-card {
  height: clamp(88px, 10vw, 142px);
  border-radius: var(--radius-card);
  background: var(--card-grad);
  display: flex;
  align-items: center;
  justify-content: center;
}
.int-card img { max-width: 68%; max-height: 62%; object-fit: contain; }
/* wordmarks whose lettering reads small at the common size */
.int-card img.int-lg { max-width: 88%; max-height: 76%; }
.int-card img.int-xl { max-width: 86%; max-height: 78%; }

/* ---------- CTA ---------- */
.cta {
  margin-top: var(--sp-xl);
  position: relative;
  min-height: clamp(340px, 40vw, 586px);
  background-image: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .32)), url('../assets/img/cta-sunset.jpg');
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  text-align: center;
}
.cta-inner {
  min-height: clamp(340px, 40vw, 586px);
  padding-block: clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cta-eyebrow {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 26.88px;
}
.cta h2 {
  margin-top: 9px;
  font-weight: 600;
  font-size: clamp(28px, 4.1vw, 52px);
  line-height: 1.1;
}
.cta-sub { margin-top: clamp(14px, 2vw, 28px); max-width: 713px; font-weight: 500; font-size: clamp(16px, 1.55vw, 22px); line-height: 1.35; }
.cta .btn { margin-top: clamp(26px, 3.6vw, 54px); }

/* ---------- Footer ---------- */
footer { padding-top: var(--sp-md); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr 1.4fr;
  gap: clamp(24px, 3vw, 56px);
}
.f-brand .f-logo { width: clamp(132px, 46%, 187px); height: auto; }
.f-brand p {
  margin-top: 22px;
  max-width: 262px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--gray-2);
}
.f-social { display: inline-block; margin-top: 22px; }
.f-social:hover svg { opacity: .8; }
.f-col h4 {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 26.88px;
}
.f-col p {
  margin-top: 16px;
  max-width: 232px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-1);
}
.f-links {
  margin-top: 16px;
  padding: 0;
  list-style: none;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
.f-links a { color: var(--gray-1); }
.f-links a:hover { color: var(--accent); }
.f-links a.active { color: var(--blue-link); }
.f-inline-link { color: var(--blue); }
.f-help p { max-width: 184px; }
.f-mail { color: var(--gray-1); text-decoration: underline; }
.f-send .btn-contact { margin-top: clamp(18px, 2.4vw, 37px); height: 47px; padding: 0 30px; font-size: 15px; }
.f-divider { margin: clamp(28px, 3.4vw, 50px) 0 0; border: 0; border-top: 2px solid var(--divider); }
.legal { font-size: 12px; line-height: 21px; color: var(--gray-2); }
.legal-copyright { margin-top: clamp(20px, 2.2vw, 33px); font-weight: 500; }

/* ---------- Privacy policy body ---------- */
.legal-copy h2 { font-size: clamp(20px, 2vw, 26px); }
.legal-copy h2 + p { margin-top: 18px; }
.legal-copy p + h2 { margin-top: 44px; }
.legal-copy p { margin-top: 14px; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.6; color: var(--gray-2); }
.legal-copy .legal-list-item { margin-top: 8px; padding-left: 28px; }
.legal-terms { font-family: 'Barlow Semi Condensed', sans-serif; }
.footer-bottom { padding-bottom: clamp(28px, 3vw, 43px); }

/* ============================================================
   Subpages (features / about / contact)
   ============================================================ */
.main-nav a.active { color: var(--blue); }

.page-hero { padding-top: 16px; }
.page-hero .eyebrow { margin-top: 0; }
.page-hero h1 {
  margin-top: 24px;
  max-width: 760px;
  font-weight: 600;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.02;
  color: var(--navy);
}
.page-hero .intro {
  margin-top: clamp(16px, 2.2vw, 28px);
  max-width: 640px;
  font-size: clamp(16px, 1.85vw, 22px);
  line-height: 1.45;
}

/* Individual feature pages: hero title matches the main Features page title format */
.feature-page .page-hero h1 { max-width: none; font-size: clamp(30px, 4.6vw, 56px); line-height: .98; }
/* ...and the intro runs the full width rather than wrapping early */
.feature-page .page-hero .intro { max-width: none; }
/* About hero intro runs the full width, matching the feature pages */
.about-hero .intro { max-width: none; }
.page-section { padding-top: clamp(48px, 7vw, 120px); }
.page-section:last-of-type { padding-bottom: 20px; }

/* Placeholder conventions for template content */
.ph { color: #8A93A3; }
.ph-img {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--pill-border);
  border-radius: var(--radius-card);
  color: #8A93A3;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  min-height: clamp(180px, 22vw, 320px);
  text-align: center;
  padding: 20px;
}

/* ---- Features: module system (colors from the platform wheel) ---- */
.module-badge {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--module-color, var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
}
.module-badge img { width: 24px; height: auto; }
.card-cta {
  margin-top: 26px;
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
}
.cap-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  letter-spacing: .5px;
  color: var(--blue);
}
.feature-tag { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.feature-tag .module-badge { width: 48px; height: 48px; }
.feature-tag .module-badge img { width: 20px; }
.feature-tag .module-tag {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  letter-spacing: .5px;
  color: var(--module-color, var(--blue));
}

/* ---- Features overview: alternating media + text rows ---- */
.feature-sec { padding-top: var(--sp-lg); }
.feature-sec-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 4.6vw, 80px);
  align-items: center;
}
.feature-sec-grid.reverse { grid-template-columns: 1.2fr 1fr; }
.feature-sec-grid.reverse .feature-sec-copy { order: 2; }
.feature-sec-grid.reverse .feature-media { order: 1; }
.feature-sec-copy h2 {
  margin-top: 4px;
  font-weight: 600;
  font-size: clamp(26px, 3.5vw, 46px);
  line-height: 1.1;
  color: var(--navy);
}
.feature-sec-copy .lead { margin-top: clamp(12px, 1.5vw, 18px); font-size: clamp(16px, 1.85vw, 22px); line-height: 1.5; }
.feature-points { margin: 24px 0 0; padding: 0; list-style: none; }
.feature-points li {
  position: relative;
  padding-left: clamp(18px, 1.9vw, 26px);
  margin-top: clamp(7px, .9vw, 12px);
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.5;
}
.feature-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--module-color, var(--blue));
}
.feature-sec .card-cta { margin-top: 30px; }
.feature-media {
  min-width: 0;
  border-radius: var(--radius-card);
  background: var(--card-grad);
  padding: clamp(12px, 1.8vw, 26px);
}
.feature-media .ph-img { min-height: clamp(200px, 26vw, 400px); background: #FFFFFF; }
/* Rows with a real screenshot: white background, image + blue border only */
.feature-media:has(.shot-frame) { background: #FFFFFF; padding: 0; }

/* Thin white margin inside the framed screenshot */
.shot-frame.shot-pad {
  padding: 4px;
  background: #FFFFFF;
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px rgba(40, 87, 173, .08), 0 10px 40px rgba(40, 87, 173, .16);
}
.shot-frame.shot-pad img { box-shadow: none; }
/* Wider white margin, for screenshots whose own edges are white */
.shot-frame.shot-pad.shot-pad-mid { padding: 7px; }
.shot-frame.shot-pad.shot-pad-mid img { border-radius: 10px; }
.shot-frame.shot-pad.shot-pad-wide { padding: 11px; }
/* the white pad supplies the rounding, so the image itself stays square-ish
   and nothing in its corners gets clipped */
.shot-frame.shot-pad.shot-pad-wide img { border-radius: 6px; }
/* Extra white space down the sides, for narrow document screenshots */
.shot-frame.shot-pad.shot-sides { padding-left: 7%; padding-right: 7%; }

/* Screenshot: rounded corners, faint blue glow to lift it off the page */
.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px rgba(40, 87, 173, .08), 0 10px 40px rgba(40, 87, 173, .16);
}

/* ---------- Screenshot slideshow ---------- */
.shot-slider {
  position: relative;
  border-radius: var(--radius-card);
  border: 1px solid #E8EEF6;
  background: #FFFFFF;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
/* no click-highlight or focus ring from mouse clicks (kept for keyboard users) */
.shot-slider:focus:not(:focus-visible),
.slider-prev:focus:not(:focus-visible),
.slider-next:focus:not(:focus-visible) { outline: none; }
.shot-slider img { pointer-events: none; }
.shot-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  opacity: 0;
  transition: opacity .25s ease;
}
.shot-slider img.active { opacity: 1; }
.slider-prev,
.slider-next {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(19, 38, 68, .55);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color .2s ease;
}
.slider-prev { right: auto; left: 14px; }
.shot-slider:hover .slider-prev,
.shot-slider:hover .slider-next { background: var(--blue); }
.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}
.slider-dots span { width: 8px; height: 8px; border-radius: 50%; background: #C7D3E6; }
.slider-dots span.active { background: var(--blue); }

/* ---- About ---- */
.story-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(20px, 3.4vw, 64px);
}
.story-cols p { font-size: clamp(16px, 1.55vw, 19px); line-height: 1.5; }
.story-cols p + p { margin-top: 24px; }
.story-narrative { max-width: 820px; }
.story-narrative > p { margin-top: 22px; font-size: 16px; line-height: 1.5; }
.story-narrative > p:first-child { margin-top: 0; }
.story-narrative .story-stats { justify-content: space-between; }
.about-photo { max-width: 1000px; }
.about-photo img { width: 100%; border-radius: var(--radius-card); }
.photo-caption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--gray-1); }
.values-list { margin-top: 40px; }
.value-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--divider);
}
.value-row:last-child { border-bottom: 0; }
.value-num {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  color: var(--blue);
  padding-top: 2px;
}
.value-row h3 { font-weight: 700; font-size: 20px; color: var(--navy); }
.value-row p { margin-top: 8px; font-size: 16px; line-height: 1.55; }
.exp-stat {
  margin-top: 30px;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.exp-stat b {
  font-weight: 600;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1;
  color: var(--blue);
}
.exp-stat span {
  font-size: 16px;
  line-height: 1.4;
  color: var(--gray-1);
  max-width: 280px;
}
.leader-grid {
  margin-top: clamp(30px, 3.8vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  align-items: start;
}
/* Founder leads the grid: three of the four columns, with a little more
   weight than the plain name-and-role cards below it */
.leader-grid > .leader-card:first-child { grid-column: span 3; }
/* everyone else starts on the row below, four across */
.leader-grid > .leader-card:nth-child(2) { grid-column-start: 1; }
.leader-grid > .leader-card:first-child h3 { font-size: clamp(22px, 2.2vw, 28px); }
.leader-grid > .leader-card:first-child .team-role { font-size: 13px; }
.leader-grid > .leader-card:first-child .bio { font-size: 16px; max-width: none; }
.leader-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}
.leader-card h3 { margin-top: 18px; font-weight: 700; font-size: clamp(18px, 1.7vw, 22px); color: var(--navy); }
.leader-card .bio { margin-top: 12px; font-size: 15px; line-height: 1.55; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 4.6vw, 80px);
  align-items: center;
}
.split > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.split h2, .section-heading-left {
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.1;
  color: var(--navy);
}
.split .body-copy p { margin-top: 22px; font-size: 17px; line-height: 1.6; }
.values-grid {
  margin-top: clamp(32px, 4vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.value-card {
  border-radius: var(--radius-card);
  background: var(--card-grad);
  padding: clamp(24px, 2.8vw, 40px) clamp(20px, 2.5vw, 36px) clamp(26px, 3vw, 44px);
}
.value-card h3 { margin-top: 20px; font-weight: 700; font-size: 22px; color: var(--navy); }
a.value-card {
  display: block;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(19, 38, 68, .10);
}
a.value-card:hover h3 { color: var(--accent); }

/* Modern feature tiles (What You Get on /features) */
.feature-tiles { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.feature-tiles .value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 200px;
  padding: 30px 28px 28px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F0F6FE 100%);
  border: 1px solid #E4ECF7;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-tiles .value-card h3 { margin-top: 0; font-size: 20px; line-height: 1.25; }
.feature-tiles .value-card::after {
  content: '\2192';
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #D8E4F5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 16px;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.feature-tiles .value-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 22px 48px rgba(19, 38, 68, .13);
}
.feature-tiles .value-card:hover::after {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  transform: translateX(3px);
}
.feature-tiles .value-card:hover h3 { color: var(--navy); }
.value-card p { margin-top: 14px; font-size: 16px; line-height: 1.5; }
.value-card .module-badge { width: 48px; height: 48px; }
.team-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.team-card {
  border-radius: var(--radius-card);
  background: var(--card-grad);
  padding: clamp(22px, 2.6vw, 36px);
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: clamp(20px, 2.4vw, 32px);
  align-items: start;
}
.team-card img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
}
.team-card h3 { font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--navy); }
.team-role {
  margin-top: 6px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
}
.team-card .bio { margin-top: 16px; font-size: 15px; line-height: 1.55; }
.team-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
}
.team-link:hover { text-decoration: underline; }
.story-stats {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3.4vw, 56px);
}
.story-stats .stat b {
  display: block;
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  color: var(--navy);
}
.story-stats .stat span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--gray-1);
  max-width: 150px;
}
.trust-band {
  margin-top: var(--sp-xl);
  border-radius: var(--radius-card);
  background: var(--card-grad);
  padding: clamp(32px, 4vw, 64px) clamp(20px, 3.6vw, 60px);
  text-align: center;
}
.trust-band .trusted-heading { margin: 0; }
.trust-band p { margin: 14px auto 0; max-width: 560px; font-size: 16px; line-height: 1.5; }

/* ---- Contact ---- */
.page-section:has(> .contact-grid) { padding-top: 60px; }
.contact-grid {
  margin-top: clamp(16px, 2.4vw, 36px);
  max-width: 720px;
  margin-inline: auto;
}
.contact-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: clamp(16px, 2vw, 24px) clamp(18px, 2.2vw, 28px); }
.contact-form .field-full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
}
.field input, .field textarea {
  margin-top: 8px;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--pill-border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #FFFFFF;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: #8A93A3; }
.form-banner {
  grid-column: 1 / -1;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
}
.form-ok { background: #E9F7EF; color: #1E7B45; }
.form-err { background: #FDEDEF; color: #B3213B; }
.info-card {
  border-radius: var(--radius-card);
  background: var(--card-grad);
  padding: clamp(26px, 3vw, 44px) clamp(22px, 2.7vw, 40px);
}
.info-card h3 { font-weight: 700; font-size: 22px; color: var(--navy); }
.info-card dl { margin: 26px 0 0; }
.info-card dt {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 22px;
}
.info-card dt:first-of-type { margin-top: 0; }
.info-card dd { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: var(--gray-1); }
.info-card a { color: inherit; text-decoration: underline; }

/* ---- Quality floor ---- */
a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible, label:focus-visible
  { outline: 2px solid var(--blue); outline-offset: 2px; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
/* Everything above is fluid, so these steps only change *structure*:
   column counts, stacking order, and the overall drawing scale. */

/* Page content is drawn at 0.8 scale on large screens (the Figma canvas is
   1920 wide). Step it back towards 1:1 as the viewport narrows, so body copy
   and tap targets stay a usable size on tablets and phones.
   .hero-media carries the inverse so the video still computes at 1:1 -
   Safari mis-sizes <video> inside a zoomed box. */
@media (max-width: 1100px) {
  main, footer { zoom: .9; }
  .hero-media { zoom: 1.1111; }
}
@media (max-width: 860px) {
  main, footer { zoom: 1; }
  .hero-media { zoom: 1; }
}

/* Wide desktops: let the content column breathe a little rather than
   sitting in a narrow strip. Scoped to main so the full-width header and
   footer keep their own gutters. */
@media (min-width: 1700px) {
  main .container { width: min(1400px, 100% - var(--gutter-x)); }
}

@media (max-width: 1500px) {
  .integrations-copy { width: min(520px, 45%); }
}

/* Tablet and below: two-up and stacked layouts */
@media (max-width: 1100px) {
  .hero-grid { flex-direction: column; }
  .hero-side { width: auto; max-width: 640px; padding-top: 0; }
  .hero-side p { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-media { height: auto; aspect-ratio: 16 / 9; }

  .logo-grid { grid-template-columns: repeat(auto-fit, minmax(min(116px, 100%), 1fr)); }
  .feature + .feature::before { display: none; }
  .feature { padding: 0 clamp(4px, 1.2vw, 16px); }
  .feature h3 { font-size: clamp(15px, 2.1vw, 20px); }
  .feature p { font-size: clamp(13px, 1.8vw, 16px); }
  /* release the Figma line-break widths so copy uses the column, not a sliver */
  .feature p,
  .feature:nth-child(1) p, .feature:nth-child(2) p,
  .feature:nth-child(3) p, .feature:nth-child(4) p { max-width: 44ch; }

  .integrations-grid { flex-direction: column; }
  .integrations-copy { width: auto; min-width: 0; }
  .integrations-copy p { max-width: 560px; }

  /* as many columns as fit, with the founder alone across the top row */
  .leader-grid { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
  .leader-grid > .leader-card:first-child { grid-column: 1 / -1; }
  .leader-grid > .leader-card:nth-child(2) { grid-column-start: auto; }
  .leader-grid > .leader-card:first-child .bio { max-width: 68ch; }

  .team-card { grid-template-columns: 1fr; }
  .team-card img { max-width: 300px; }

  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
}

/* The wheel sits beside its copy only while it is the taller of the two.
   Measured against the module text, that holds down to ~880px; below it the
   wheel would be shorter than the list beside it, so the copy moves under. */
@media (max-width: 880px) {
  .overview-panel { flex-direction: column; }
  .overview-copy { padding: 24px 0 40px; max-width: none; }
  .wheel { width: min(540px, 100%); align-self: center; margin-top: 32px; }
  /* once stacked, this copy reads at the same size as the cards above it */
  .overview-copy p,
  .overview-copy .feature-points li { font-size: clamp(13px, 1.8vw, 16px); }
}

/* Phones - capability rows and feature cards stack here;
   tablets keep their two- and four-column layouts */
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature { padding: 0; }
  .feature h3 { font-size: 20px; }
  .feature p,
  .overview-copy p,
  .overview-copy .feature-points li { font-size: 16px; }

  .feature-sec-grid,
  .feature-sec-grid.reverse { grid-template-columns: 1fr; }
  .feature-sec-grid.reverse .feature-sec-copy { order: 0; }
  .feature-sec-grid.reverse .feature-media { order: 1; }

  .logo-grid { grid-template-columns: repeat(auto-fit, minmax(min(104px, 100%), 1fr)); }
  .int-cards { grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .f-col p, .f-brand p, .f-help p { max-width: 46ch; }
  .story-stats { gap: 24px 32px; }
  .value-row { grid-template-columns: 1fr; gap: 6px; }
  .legal-copy .legal-list-item { padding-left: 18px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .int-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Small screens: collapse the nav behind a menu button ---------- */
@media (max-width: 860px) {
  .header-inner { height: 68px; width: min(1560px, 100% - var(--gutter-footer)); gap: 16px; }
  .logo img { width: clamp(122px, 34vw, 152px); }
  .nav-burger { display: inline-flex; }
  .nav-toggle { display: block; position: absolute; width: 1px; height: 1px;
                margin: 0; opacity: 0; }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px clamp(18px, 5vw, 32px) 22px;
    background: #FFFFFF;
    border-top: 1px solid #EDF2F9;
    box-shadow: 0 20px 44px rgba(19, 38, 68, .14);
    z-index: 120;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-toggle:checked ~ .main-nav { display: flex; }

  .main-nav > a:not(.btn),
  .main-nav .nav-features-link {
    display: block;
    padding: 14px 4px;
    font-size: 13px;
    border-bottom: 1px solid #F2F6FC;
  }

  /* Features and its sub-links sit open in the panel rather than on hover */
  .has-dropdown { display: block; position: static; }
  .nav-chevron { display: none; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding-top: 0;
  }
  .dropdown-inner {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 2px 0 6px 14px;
    min-width: 0;
  }
  .dropdown-inner a { padding: 11px 4px; white-space: normal; }
  .dropdown-inner a:hover { background: none; }

  .btn-login { margin: 18px 0 0; width: 100%; height: 46px; }
}
