/* ==========================================================================
   TradePass — homepage design system
   Every token below is taken from the Figma file "TradePass" (canvas.fig):
   the named variables on the Internal Only Canvas and the "home page" frame.
   ========================================================================== */

@font-face {
  font-family: "Ibrand";
  src: url("/assets/fonts/ibrand-regular.otf?v=1") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour — Figma variable set "brand colors" */
  --primary-500: #4a4a4a;    /* text, dark panels */
  --secondary-500: #aca088;  /* taupe accent */
  --bg-500: #d6d0ca;         /* page */
  --tertiary-500: #e9e4df;   /* cards, text on dark */
  --footer-500: #b2aba4;
  --success-500: #88ac8b;
  --error-500: #ac6e6e;
  --on-primary: #d3c8c0;     /* label colour inside the filled button */

  /* Type — Figma text styles */
  --font-display: "Ibrand", Georgia, serif;
  --font-body: "Assistant", system-ui, -apple-system, sans-serif;

  --fs-big-title: clamp(34px, 3.65vw, 70px);
  --fs-semi-title: clamp(26px, 2.08vw, 40px);
  --fs-card-title: clamp(24px, 1.875vw, 36px);
  --fs-body: clamp(16px, 1.25vw, 24px);
  --fs-section-label: clamp(13px, 0.94vw, 18px);
  --fs-button: clamp(16px, 1.04vw, 20px);
  --fs-caption: 12px;
  --lh-title: 1.057;

  /* Spacing — Figma variable set "spacing" */
  --xs: 4px;
  --sm: 8px;
  --md: 16px;
  --lg: 24px;
  --xl: 32px;
  --xxl: 48px;
  --xxxl: 64px;
  --section-y: clamp(72px, 8vw, 132px);

  /* Radius */
  --r-card: 47px;
  --r-image: 40px;
  --r-panel: 20px;
  --r-button: 16px;
  --r-badge: 5px;

  --elevation-1:
    0 1px 2px rgba(0, 0, 0, 0.10),
    0 4px 4px rgba(0, 0, 0, 0.09),
    0 8px 5px rgba(0, 0, 0, 0.05),
    0 14px 6px rgba(0, 0, 0, 0.01);
  --ease: 180ms ease-out;
  --wrap: 1920px;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
/* `clip`, not `hidden`: it contains the off-canvas drawer without making the
   root a scroll container, so the sticky header still works */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg-500);
  color: var(--primary-500);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-title);
  margin: 0;
  color: var(--primary-500);
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
/* An img's width/height attributes are presentational hints that beat
   aspect-ratio, so CSS-sized images must opt out. Components that need a
   fixed height set it explicitly further down. */
img { height: auto; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--primary-500); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 6.25vw, 120px); }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--primary-500); color: var(--tertiary-500);
  padding: 12px 24px; border-radius: var(--r-button);
}
.skip-link:focus { left: 24px; }

/* ---- Type helpers -------------------------------------------------------- */
.big-title { font-size: var(--fs-big-title); }
.semi-title { font-size: var(--fs-semi-title); }
.body-text { font-size: var(--fs-body); line-height: 1.3; }
.section-label {
  font-size: var(--fs-section-label);
  text-transform: uppercase;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sm);
  font-family: var(--font-display);
  font-size: var(--fs-button);
  line-height: 1;
  min-height: 59px;
  padding: 15px 33px;
  border: 0;
  border-radius: var(--r-button);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.btn--filled { background: var(--primary-500); color: var(--on-primary); }
.btn--filled:hover { background: var(--secondary-500); color: var(--primary-500); }
.btn--ghost { background: transparent; color: var(--primary-500); }
.btn--ghost:hover { color: var(--secondary-500); }
.btn--block { width: 100%; }

/* ---- Header -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg-500); }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(74, 74, 74, 0.12); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--lg); min-height: 138px; }
.logo { color: var(--primary-500); }
.logo svg { width: 155px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 73px; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 22px;
  transition: color var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--secondary-500); }

.nav-toggle {
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 52px; height: 52px; padding: 0;
  background: transparent; border: 1px solid var(--secondary-500);
  border-radius: var(--r-button); cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--primary-500); }

/* ---- Mobile drawer ------------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(74, 74, 74, 0.5);
  opacity: 0; pointer-events: none; transition: opacity var(--ease);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.mobile-nav {
  position: fixed; top: 0; right: 0; z-index: 120;
  width: min(360px, 88vw); height: 100dvh;
  padding: var(--lg);
  background: var(--tertiary-500);
  display: flex; flex-direction: column; gap: var(--sm);
  transform: translateX(100%);
  transition: transform 220ms ease-out;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--md); }
.mobile-nav-head .logo svg { width: 130px; }
.mobile-nav-close {
  width: 44px; height: 44px; font-size: 24px; line-height: 1;
  background: transparent; border: 1px solid var(--secondary-500);
  border-radius: var(--r-button); color: var(--primary-500); cursor: pointer;
}
.mobile-nav > a:not(.btn) {
  font-family: var(--font-display); font-size: 22px;
  padding: 14px 0; border-bottom: 1px solid var(--bg-500);
}
.mobile-nav .btn { margin-top: var(--sm); }

/* ---- Floating nav bar ---------------------------------------------------- */
.floating-nav {
  position: fixed; left: 50%; bottom: 65px; z-index: 90;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 39px;
  padding: 23px 14px 23px 31px;
  background: var(--tertiary-500);
  border-radius: var(--r-panel);
  box-shadow: var(--elevation-1);
}
.floating-nav .btn { min-height: 59px; }
.floating-nav .btn--ghost { padding: 0; }
.floating-nav .btn--filled { margin-left: 8px; padding-inline: 38px; }
@media (max-width: 1023px) { .floating-nav { display: none; } }

/* ---- Device mockup (Figma "Group 4" + QR) -------------------------------- */
.device {
  display: block;
  position: relative;
  container-type: inline-size;   /* card contents scale with the phone */
  width: 100%;
  aspect-ratio: 349 / 723;
  flex: 0 0 auto;
}
/* The screen itself is unfilled in the design — whatever sits behind the phone
   shows through (the page in the hero and verify sections, the card in the
   advantages section). */
.device-screen {
  display: block;
  position: absolute;
  inset: 1.5% 1.6%;
  border-radius: 13%/6.3%;
  overflow: hidden;
}
.device-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.device-qr { position: absolute; left: 22%; top: 14.9%; width: 59%; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding-top: clamp(0px, 2.5vw, 48px); padding-bottom: 0; overflow: clip; position: relative; }
/* Everything the hero crops (device, collage) dissolves on one line at the
   section foot rather than each element fading in its own box */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 130px;
  background: linear-gradient(to bottom, rgba(214, 208, 202, 0), var(--bg-500));
  pointer-events: none;
  z-index: 2;
}
/* The design's hero content runs from the left inset to the frame edge
   (Frame 32: x=118, width 1803 in a 1920 frame), so the collage bleeds off
   the right rather than stopping at the wrap padding. */
.hero > .wrap { padding-right: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 769fr) minmax(0, 782fr);
  gap: clamp(40px, 13vw, 252px);
  align-items: start;
}
.hero-copy { display: flex; flex-direction: column; gap: 30px; align-items: flex-start; padding-top: clamp(20px, 3.2vw, 61px); }
.hero-copy > .body-text:first-of-type { max-width: 680px; }
.hero-copy .hero-note { margin-top: -12px; }

.hero-role { display: flex; align-items: center; gap: 35px; margin-top: -10px; }
.scroll-cue {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border: 1.5px solid var(--primary-500);
  border-radius: 50%;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.scroll-cue:hover { background: var(--primary-500); color: var(--tertiary-500); transform: translateY(3px); }
.scroll-cue svg { width: 17px; height: 17px; }

/* The design runs the device off the artboard edge. On a real page that hard
   line reads as a bug, so the crop dissolves into the background instead. */
.hero-device {
  width: clamp(180px, 18.2vw, 349px);
  margin-top: 18px;
  aspect-ratio: 349 / 326;
  overflow: hidden;
}
.hero-device .device { width: 100%; }

/* Right-hand collage: a stacked pair plus a large plate that bleeds off-screen */
.hero-art { position: relative; aspect-ratio: 782 / 894; }
.hero-stack {
  position: absolute; left: 0; top: 13%;
  width: 43.2%;
  display: grid; gap: 3px;
}
.hero-stack img { width: 100%; aspect-ratio: 338 / 605; object-fit: cover; border-radius: var(--r-card); }
/* Mirrored in the design, with its right edge at 865 of the 782-wide column,
   so it runs past the section edge */
.hero-main {
  position: absolute; top: 0; left: 46.3%;
  width: 64.3%;
  aspect-ratio: 503 / 838;
  object-fit: cover;
  border-radius: var(--r-image);
  transform: scaleX(-1);
}


/* ---- Advantages ---------------------------------------------------------- */
.advantages { padding-block: clamp(75px, 7.19vw, 138px) clamp(44px, 4.22vw, 81px); overflow-x: clip; }
/* Three 338px cards + two 24px gaps occupy 63.21% of the content width in the
   design; the title sits in the remainder */
.adv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 63.21%) 8.45%;
  gap: clamp(24px, 3vw, 60px) 0;
  align-items: center;
}
.adv-title { max-width: 8ch; align-self: start; margin-top: 61.05%; }

/* Three cards, staggered vertically exactly as the Figma places them */
.adv-cards { display: flex; align-items: flex-start; gap: 2.25%; }
.adv-item { position: relative; flex: 1 1 0; min-width: 0; container-type: inline-size; }  /* the dashboard pieces scale with the card */
.adv-item--1 { padding-top: 12.99%; }   /* 138 of the 1062 card row: percentage padding
                                          resolves against the row, not the card */
.adv-item--3 { padding-top: 10.64%; }
/* the phone body is 349 wide where the flat cards are 338, so it overhangs */

.adv-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-start;
  aspect-ratio: 338 / 713;
  border-radius: var(--r-card);
  background: var(--tertiary-500);
  /* the copy block starts 352 down the 338-wide card in the design, and the
     card carries no illustration */
  padding: 104.14% 15.98% 0 17.75%;
}
/* Card one sits inside the device, so its surface is the phone screen itself */

.adv-card .label {
  font-size: var(--fs-section-label);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.adv-card-title {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--fs-card-title);
  line-height: 1.06;
  margin-bottom: 16px;
  color: var(--primary-500);
}
/* The taupe band bleeds to the card edge and belongs to whichever card the
   device is currently on — the three Figma variants differ in exactly this. */
.adv-card-title { padding: 6px 0; margin-bottom: 10px; isolation: isolate; transition: color 320ms ease; }
.adv-item.is-active .adv-card-title { color: var(--tertiary-500); }
.adv-card-title::before {
  content: "";
  position: absolute; z-index: -1;
  inset: 0 auto 0 -26.6%;
  width: 132.3%;
  background: var(--secondary-500);
  border-radius: 0 var(--r-button) var(--r-button) 0;
  opacity: 0;
  transition: opacity 320ms ease;
}
.adv-item.is-active .adv-card-title::before { opacity: 1; }

/* One device travels to the active card. The three variants of the Figma
   component differ only in which card the phone covers, and it sits 5.5/5
   proud of the 338x713 card on each side (349x723). */
.adv-cards { position: relative; }
.adv-phone {
  position: absolute; left: 0; top: 0;
  width: var(--phone-w, 0px);
  aspect-ratio: 349 / 723;
  transform: translate(var(--phone-x, 0px), var(--phone-y, 0px));
  transition: transform 520ms cubic-bezier(.4, 0, .2, 1), width 520ms cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
  z-index: 2;
}
.adv-phone .device-qr { position: absolute; left: 22.06%; top: 14.94%; width: 58.93%; height: auto; }
.adv-phone .device-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .adv-phone { opacity: 0; }
.js .adv-phone.is-ready { opacity: 1; transition: transform 520ms cubic-bezier(.4,0,.2,1), width 520ms cubic-bezier(.4,0,.2,1), opacity 200ms ease; }
@media (prefers-reduced-motion: reduce) { .adv-phone { transition: none; } }


/* ---- Attribution / compare slider ---------------------------------------- */
/* The comparison pins to the viewport while the wipe plays, so the page holds
   still until it has settled on "With TradePass", then carries on. */
.compare-track { position: relative; height: calc(100vh + 620px); }
.compare-pin {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center;
}
.compare-pin > .compare { width: 100%; }   /* flex item would otherwise size to content */
/* after the wipe has run once, the section stops holding the page */
.compare-track.is-released { height: auto; }
.compare-track.is-released .compare-pin { position: static; height: auto; display: block; }
@media (max-width: 767px) {
  /* no pinning on phones — it eats too much of a small screen */
  .compare-track { height: auto; }
  .compare-pin { position: static; height: auto; display: block; }
}

.attribution { padding-top: clamp(60px, 5.78vw, 111px); padding-bottom: clamp(40px, 3.85vw, 74px); }
/* Frame 52 insets this section to 97 and runs it to 1824 of the 1920 frame */
.attribution > .wrap { padding-inline: clamp(20px, 5.05vw, 97px) clamp(20px, 5vw, 96px); }
.attr-head .big-title { line-height: 1.03; }
.attr-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 755px);
  gap: clamp(32px, 5vw, 73px); align-items: center;
  margin-bottom: var(--xl);
}

.compare {
  --pos: 100%;   /* opens on "Without TradePass" */
  position: relative;
  aspect-ratio: 1666 / 680;
  min-height: 320px;
}
/* the tags overhang the plate in the design, so the rounding lives on the
   images rather than on a clipping wrapper */
.compare > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-panel); background: var(--primary-500); }
/* the "without" side is desaturated; colour arrives with TradePass */
.compare-top {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  filter: grayscale(1);
}
.compare-side { position: absolute; inset: 0; pointer-events: none; }
.compare-side--without { clip-path: inset(0 calc(100% - var(--pos)) 0 -2.2%); }
.compare-side--with { clip-path: inset(0 -1.7% 0 var(--pos)); }
.compare-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 10px; background: var(--tertiary-500);
  transform: translateX(-5px);
  pointer-events: none;
}
/* the design puts a back / forward pair either side of the seam */
.compare-divider::before,
.compare-divider::after {
  content: "";
  position: absolute; top: calc(50% + 1px);
  width: 70px; height: 70px;
  transform: translateY(-50%);
  background: var(--tertiary-500) center / 46px 46px no-repeat;
  border-radius: 50%;
}
.compare-divider::before {
  right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A4A4A' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.2'/%3E%3Cpath d='M13.6 8.4 10 12l3.6 3.6M10 12h4.6'/%3E%3C/svg%3E");
}
.compare-divider::after {
  left: 27px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A4A4A' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.2'/%3E%3Cpath d='M10.4 8.4 14 12l-3.6 3.6M9.4 12H14'/%3E%3C/svg%3E");
}
.compare-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100%; }
.compare-range:focus-visible + .compare-divider::after { outline: 3px solid var(--primary-500); }

.compare-tag {
  position: absolute; top: 7.65%;
  display: flex; align-items: center; justify-content: center;
  width: 14.35%; height: 10.7%;
  background: var(--tertiary-500);
  border-radius: var(--r-panel);
  font-size: var(--fs-section-label);
  text-transform: uppercase;
  pointer-events: none;
}
.compare-tag--left { left: -2.05%; }
.compare-tag--right { right: -1.56%; background: var(--success-500); }

/* icon row sitting directly above its three labels, bottom-left / bottom-right */
.compare-journey {
  position: absolute; bottom: 1.62%;
  width: 14.1%;
  pointer-events: none;
}
.compare-journey--left { left: 2.16%; }
.compare-journey--right { right: 1.56%; }
.compare-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  color: var(--tertiary-500);
}
.compare-steps li { max-width: 31.5%; margin-inline: auto; text-align: center; font-size: var(--fs-caption); line-height: 1.35; }
/* the sprite carries 3.3px of shadow bleed either side of the 68.8 chips */
.compare-icons { display: block; width: 101.7%; margin-left: -1.4%; margin-bottom: 12px; }
.compare-steps b { display: block; font-weight: 400; opacity: 0.75; }

/* ---- Verify -------------------------------------------------------------- */
.verify { padding-block: clamp(45px, 4.32vw, 83px) clamp(83px, 7.92vw, 152px); }   /* the device overhangs the frame's 195 bottom padding, so the gap below it is what matches */
/* The design's block is 1481 wide inside the 1920 frame, not the full content
   width, and the copy runs to 608 of its 849 column — not the whole column. */
.verify-grid {
  display: grid;
  grid-template-columns: minmax(0, 849fr) minmax(200px, 349fr);
  gap: clamp(40px, 15vw, 283px);
  align-items: center;
  /* design block runs 182..1663 of 1920: left-biased, not centred */
  max-width: 89.5%;
  margin-left: 3.35%;
  margin-right: auto;
}
.verify-copy { display: flex; flex-direction: column; gap: var(--xxl); }
.verify-copy .verify-body { display: flex; flex-direction: column; gap: var(--xl); }
.verify-copy .verify-body > p { max-width: 71.7%; }   /* 608 of the 849 column: two px narrower and the first line wraps */
.verify-copy .check-list { max-width: 82%; }
.check-list { display: flex; flex-direction: column; gap: var(--md); }
.check-list li { display: flex; align-items: flex-start; gap: var(--md); }
.check-list svg { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 2px; color: inherit; }

/* The verified-professional card, laid out straight from the Figma frame.
   Every value is a share of the 349x723 device, measured off node 51:4576,
   so nothing compounds through nested percentage boxes. */
.verify-device { width: min(100%, 18.2vw); min-width: 200px; max-width: 349px; }

.vcard {                       /* standalone card on the inner pages */
  display: flex; flex-direction: column;
  width: 100%; max-width: 320px;
  padding: var(--xl);
  background: var(--tertiary-500);
  border-radius: var(--r-card);
  box-shadow: var(--elevation-1);
}
.vcard-top { font-size: var(--fs-caption); }
.vcard-name { font-family: var(--font-display); font-size: 24px; line-height: 1.06; }
.vcard-role { font-size: var(--fs-section-label); text-transform: uppercase; }
.vcard-badge {
  display: flex; align-items: center; justify-content: center; gap: var(--sm);
  margin-top: var(--md); padding: 10px;
  background: var(--success-500);
  border-radius: var(--r-badge);
  font-size: var(--fs-section-label);
}
.vcard-badge svg { width: 22px; height: 22px; }
.vcard-plate { display: none; }
.vcard-photo { width: 100%; height: auto; border-radius: 13px; }

/* --- on the phone screen: each piece positioned against the device --- */
.device .vcard {
  position: static;
  display: block;
  width: auto; max-width: none;
  padding: 0; background: none; border-radius: 0; box-shadow: none;
}
.device .vcard > * { position: absolute; }

.device .vcard-top {                       /* 62,307  220x32 */
  left: 17.77%; top: 42.46%; width: 63.04%;
  font-size: 3.44cqw; line-height: 1.3;
  margin: 0;
}
.device .vcard-plate {                     /* 62,370  219.7x153.2 */
  display: block;
  left: 17.77%; top: 51.18%; width: 62.94%; height: 21.18%;
  background: var(--secondary-500);
  border-radius: 3.8cqw;
}
.device .vcard-photo {                     /* 37,307  269.8x215.8 */
  left: 10.60%; top: 42.46%; width: 77.30%; height: auto;
  border-radius: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.10)) drop-shadow(0 4px 4px rgba(0,0,0,.09));
}
.device .vcard-id {                        /* 67.5,541  209 wide */
  left: 19.34%; top: 74.83%; width: 59.89%;
  display: flex; flex-direction: column;
}
.device .vcard-name { font-size: 6.93cqw; line-height: 1.08; }
.device .vcard-role { font-size: 5.16cqw; line-height: 1.33; }
.device .vcard-badge {                     /* 62,626  220x44 */
  left: 17.77%; top: 86.58%; width: 63.04%; height: 6.09%;
  margin: 0; padding: 0;
  gap: 2.3cqw;
  border-radius: 1.29cqw;
  font-size: 5.16cqw;
  box-shadow: var(--elevation-1);
}
.device .vcard-badge svg { width: 6.3cqw; height: 6.3cqw; }

/* ---- Steps --------------------------------------------------------------- */
.steps { padding-top: 0; padding-bottom: clamp(73px, 6.98vw, 134px); }
.steps-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--xl); padding-left: 1.9%; }  /* the head lines up with the panel, not the page gutter */
.steps-panel {
  max-width: 96.3%; margin-inline: auto;   /* 1622 of 1684 */
  display: grid; grid-template-columns: 294fr 293fr 349fr 347fr;
  gap: clamp(24px, 3.7vw, 60px);
  align-items: center;
  padding: clamp(30px, 2.8vw, 38px) clamp(28px, 4.1vw, 79px);
  background: var(--primary-500);
  border-radius: var(--r-panel);
}
.step { display: flex; flex-direction: column; gap: var(--lg); }
.step-head { display: flex; flex-direction: column; }
.step-num {
  font-family: var(--font-display);
  font-size: clamp(44px, 3.6vw, 70px);
  line-height: var(--lh-title);
  color: var(--secondary-500);
}
.step-name {
  font-weight: 700; text-transform: uppercase;
  color: var(--secondary-500);
  margin-top: -14px;
}
.step p { color: var(--tertiary-500); }

/* ---- Personas ------------------------------------------------------------ */
/* In the design the card is 623 wide inside an 836 column, and the image sits
   at x=470 running to 776 — i.e. it overhangs the card's right edge. */
.personas { padding-block: clamp(27px, 2.6vw, 50px) clamp(55px, 5.21vw, 100px); overflow-x: clip; }
.personas-head { display: flex; flex-direction: column; gap: var(--lg); margin-bottom: var(--xxl); padding-left: 0.72%; }
.personas-head .section-label { color: #000; }
.persona-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; max-width: 99.3%; margin-left: 0.65%; }  /* two 836 columns at 129 of the 1684 content */
.persona {
  position: relative;
  width: 74.93%;
  aspect-ratio: 623 / 738;
  padding: 14.1% 22.6% 0 10%;
  background: var(--tertiary-500);
  border-radius: var(--r-panel);
  display: flex; flex-direction: column; justify-content: flex-start; gap: var(--lg);
  transition: background var(--ease);
}
.persona--dark { background: var(--primary-500); color: var(--tertiary-500); }
.persona--dark h3, .persona--dark p { color: var(--tertiary-500); }
.persona--dark .btn--filled { background: var(--tertiary-500); color: var(--primary-500); }
.persona--dark .btn--filled:hover { background: var(--secondary-500); }
.persona-copy { display: flex; flex-direction: column; gap: var(--lg); }
/* the design has no button in the card — the card itself is the link */
.persona-link { position: absolute; inset: 0; z-index: 3; border-radius: var(--r-panel); }
.persona .check-list { gap: 12px; }
.persona .check-list li { gap: 24px; }
.persona .check-list li { line-height: 1.6; }
.persona-copy h3 { font-size: var(--fs-semi-title); }
.persona-intro { display: flex; flex-direction: column; gap: var(--xl); }
.persona-copy .btn { align-self: flex-start; }

.persona-art { position: absolute; left: 74.8%; top: 15.6%; width: 49.76%; }
.persona-photo { display: block; overflow: hidden; border-radius: 24px; }
.persona-art img {
  width: 100%; height: auto;
  aspect-ratio: 306 / 510;
  object-fit: cover;
}
/* the design frames the showroom shot tighter than the source crop */
.persona--dark .persona-art img { transform: scale(-1.06, 1.06); transform-origin: 50% 100%; }
.persona-badge {
  position: absolute; top: 4.8%; right: -14.2%;
  display: flex; align-items: center;
  height: 14.1%;
  white-space: nowrap;
  padding: 0 27px;
  background: var(--tertiary-500);
  color: var(--primary-500);
  border-radius: var(--r-panel);
  font-size: var(--fs-section-label);
  text-transform: uppercase;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  position: relative; overflow: clip;
  background: var(--primary-500); color: var(--tertiary-500);
  padding-block: clamp(56px, 4.6vw, 88px) var(--lg);
}
/* the design sets the footer copy at 111 and lets the collage bleed off the right */
.site-footer > .wrap { padding-inline: 5.73% 0; }
.footer-grid { display: block; max-width: 59.6%; margin-left: 0; margin-right: auto; }
.footer-grid > div:not(.footer-art) { position: relative; z-index: 1; }
.footer-lead { display: flex; flex-direction: column; gap: 14px; margin-bottom: var(--xxl); }
.footer-lead h2 { color: var(--secondary-500); max-width: 73.5%; }
.footer-lead p { color: var(--tertiary-500); max-width: 60ch; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 25px; margin-bottom: var(--xxxl); }
.footer-actions .btn { font-size: clamp(16px, 0.99vw, 19px); padding-inline: clamp(16px, 1.1vw, 21px); }
.footer-actions .btn--filled { background: var(--secondary-500); color: var(--primary-500); }
.footer-actions .btn--filled:hover { background: var(--tertiary-500); }
.footer-actions .btn--ghost { color: var(--tertiary-500); box-shadow: inset 0 0 0 1.5px var(--tertiary-500); }
.footer-actions .btn--ghost:hover { color: var(--secondary-500); }
.footer-brand { display: flex; flex-direction: column; gap: var(--xl); margin-bottom: var(--xl); }
.footer-brand .logo { color: var(--tertiary-500); }
.footer-brand .logo svg, .footer-brand .logo img { width: 27%; min-width: 180px; height: auto; }
.footer-brand p { max-width: 45.5%; }

.footer-links {
  display: grid; grid-template-columns: 257fr 258fr 234fr;
  gap: 0;
  padding: 7.15% 13.8% 6.86%;
  background: var(--bg-500);
  border-radius: var(--r-panel);
  color: var(--primary-500);
}
.footer-links h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--fs-body);
  text-transform: uppercase;
  margin-bottom: 37px;
}
.footer-links ul { display: flex; flex-direction: column; gap: var(--md); }
.footer-links a { transition: color var(--ease); }
.footer-links a:hover { color: var(--secondary-500); }

/* the collage sits flush with the top of the footer and runs off its right
   edge and foot, exactly as the frame crops it */
.footer-art {
  position: absolute; top: 0; left: 51.72%; right: -40px; z-index: 0;
  display: grid; grid-template-columns: 41.16% 1fr; gap: 2.9%;
  align-items: start;
}
.footer-art-col { display: grid; gap: 19px; align-content: start; }
.footer-art img { width: 100%; height: auto; object-fit: cover; border-radius: var(--r-image); }
.footer-art-col:first-child img { aspect-ratio: 398 / 685; }
.footer-art-col:last-child img { aspect-ratio: 501 / 973; }
@media (max-width: 1023px) { .footer-art { display: none; } }

.footer-bottom {
  margin-top: var(--lg); padding-top: var(--md);
  border-top: 1px solid rgba(233, 228, 223, 0.16);
  font-size: var(--fs-section-label);
  color: var(--footer-500);
}

/* ---- Hover / focus states ------------------------------------------------
   The Figma prototype's own hover variants were not readable from here (the
   prototype needs a Figma login), so these follow the file's own vocabulary:
   taupe for text and fills, a small lift for cards. -------------------------- */
.logo { transition: opacity var(--ease); }
.logo:hover { opacity: 0.75; }

.floating-nav { transition: box-shadow var(--ease); }
.floating-nav:hover { box-shadow: 0 2px 4px rgba(0,0,0,.10), 0 8px 10px rgba(0,0,0,.08), 0 16px 16px rgba(0,0,0,.05); }
.floating-nav .btn--ghost:hover { color: var(--secondary-500); }

/* The active card is driven by [data-adv] in main.js, which also moves the
   device; hover and keyboard focus both set it. */
@media (max-width: 1023px) {
  /* stacked: the device stays on the first card and titles keep plain colour */
  .adv-item:not(.is-active) .adv-card-title { color: var(--primary-500); }
}

.persona-link { cursor: pointer; }
.persona-art img, .persona-badge { transition: transform var(--ease), background var(--ease); }
.persona:hover { background: #efebe7; }
.persona--dark:hover { background: #565452; }
.persona:hover .persona-art img { transform: scale(1.04); }
.persona--dark:hover .persona-art img { transform: scale(-1.1, 1.1); }
.persona:has(.persona-link:focus-visible) { outline: 2px solid var(--primary-500); outline-offset: 4px; }
.persona-link:focus-visible { outline: none; }

.compare-range { cursor: ew-resize; }
.compare-divider::before, .compare-divider::after { transition: transform var(--ease); }
.compare:hover .compare-divider::before { transform: translateY(-50%) translateX(-3px); }
.compare:hover .compare-divider::after { transform: translateY(-50%) translateX(3px); }

.compare-tag, .persona-badge { transition: background var(--ease); }

/* ---- Reveal -------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1023px) { .br-lg { display: none; } }

@media (max-width: 1200px) {
  .adv-grid { grid-template-columns: 1fr; align-items: start; }
  .adv-title { max-width: none; margin-top: 0; }
  .verify-grid { grid-template-columns: 1fr; }
  .vcard { max-width: 380px; }
  .steps-panel { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1023px) {
  .site-footer > .wrap { padding-inline: clamp(20px, 6.15vw, 118px); }
  .footer-grid { max-width: none; }
  .footer-lead h2, .footer-brand p { max-width: none; }
  .footer-links { padding: clamp(28px, 3vw, 62px); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav { min-height: 84px; }
  .logo svg { width: 132px; }
  .hero-grid, .attr-head, .persona-grid, .footer-grid { grid-template-columns: 1fr; }
  .persona { width: 100%; aspect-ratio: auto; padding: var(--xxl) 26% var(--xxl) var(--xl); }
  .persona-copy { max-width: none; }
  .persona-art { max-width: 340px; margin-inline: auto; }
}

@media (max-width: 767px) {
  .adv-cards { display: grid; grid-template-columns: 1fr; }
  .adv-item--1, .adv-item--3 { padding-top: 0; }
  /* the device wraps a card, which only composes at desktop widths */
  .adv-phone { display: none; }
  .adv-card { min-height: 0; aspect-ratio: auto; padding: var(--xl) var(--lg) var(--xl) 40px; }
  .persona { padding-right: var(--xl); }
  .persona-art { position: static; width: 100%; }
  .adv-card-title::before { inset: 0 auto 0 -40px; width: calc(100% + 40px + var(--md)); }
  .steps-panel { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; gap: var(--xl); }
  .compare { aspect-ratio: 4 / 5; }
  .compare-steps { display: none; }
  .compare-tag { top: var(--md); width: auto; height: auto; padding: 10px 16px; font-size: 12px; }
  .compare-tag--left { left: var(--md); }
  .compare-tag--right { right: var(--md); }
  .compare-journey { display: none; }
  .hero-copy { gap: var(--lg); }
}

/* ==========================================================================
   Inner pages — same tokens, extended component set
   ========================================================================== */

/* ---- Page hero ----------------------------------------------------------- */
.page-hero { padding-block: var(--xxl) var(--section-y); }
.page-hero-inner { display: flex; flex-direction: column; gap: var(--lg); align-items: flex-start; }
.page-hero-inner h1 { max-width: 18ch; }
.page-hero-inner .lead-group { display: flex; flex-direction: column; gap: var(--md); max-width: 62ch; }
.page-hero--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.page-hero--split .page-hero-inner h1 { max-width: none; }
.page-hero .btn-row { display: flex; flex-wrap: wrap; gap: var(--md); }
.hero-support { color: var(--secondary-500); font-size: var(--fs-section-label); }

/* ---- Generic section ----------------------------------------------------- */
.section { padding-bottom: var(--section-y); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--xxl); }
.section-head .lead { max-width: 68ch; }
.section-head--center { align-items: center; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.lead { font-size: var(--fs-body); line-height: 1.4; }
.stack { display: flex; flex-direction: column; gap: var(--lg); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
.split--top { align-items: start; }
.grid { display: grid; gap: var(--lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }

/* ---- Panels -------------------------------------------------------------- */
.panel {
  padding: clamp(28px, 3vw, 48px);
  background: var(--tertiary-500);
  border-radius: var(--r-panel);
}
.panel--dark { background: var(--primary-500); color: var(--tertiary-500); }
.panel--dark h1, .panel--dark h2, .panel--dark h3, .panel--dark h4 { color: var(--tertiary-500); }
.panel--dark .section-label { color: var(--secondary-500); }
.panel--dark .check-list svg { color: var(--secondary-500); }
.panel--dark .btn--filled { background: var(--tertiary-500); color: var(--primary-500); }
.panel--dark .btn--filled:hover { background: var(--secondary-500); }
.panel--dark .btn--ghost { color: var(--tertiary-500); box-shadow: inset 0 0 0 1px rgba(233, 228, 223, 0.4); }
.panel--dark .btn--ghost:hover { color: var(--secondary-500); }

/* ---- Feature card -------------------------------------------------------- */
.feature-card {
  display: flex; flex-direction: column; gap: var(--md);
  padding: clamp(24px, 2.4vw, 40px);
  background: var(--tertiary-500);
  border-radius: var(--r-panel);
}
.feature-card h3 { font-size: var(--fs-card-title); }
.feature-card .tag { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.08em; color: var(--secondary-500); }
.feature-card .btn { align-self: flex-start; margin-top: var(--sm); }
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--r-button);
  background: var(--bg-500);
  color: var(--primary-500);
}
.icon-chip svg { width: 26px; height: 26px; }
.icon-chip--success { background: var(--success-500); color: var(--primary-500); }

/* ---- Journey ------------------------------------------------------------- */
.journey { display: flex; flex-direction: column; gap: var(--sm); width: 100%; }
.journey-step {
  display: flex; align-items: center; gap: var(--md);
  padding: var(--md) var(--lg);
  background: var(--tertiary-500);
  border-radius: var(--r-button);
}
.journey-icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-500);
  color: var(--primary-500);
}
.journey-icon svg { width: 20px; height: 20px; }
.journey-body { display: flex; flex-direction: column; gap: 2px; }
.journey-k { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.08em; color: var(--secondary-500); }
.journey-v { font-size: var(--fs-section-label); font-weight: 700; }
.journey-step--accent .journey-icon { background: var(--secondary-500); color: var(--tertiary-500); }
.journey-step--result .journey-icon { background: var(--success-500); }
.journey-step--lost { opacity: 0.7; }
.journey-step--lost .journey-icon { background: var(--error-500); color: var(--tertiary-500); }
.panel--dark .journey-step { background: rgba(233, 228, 223, 0.08); }
.panel--dark .journey-v { color: var(--tertiary-500); }
.panel--dark .journey-icon { background: rgba(233, 228, 223, 0.16); color: var(--tertiary-500); }
.panel--dark .journey-step--accent .journey-icon { background: var(--secondary-500); color: var(--primary-500); }
.panel--dark .journey-step--result .journey-icon { background: var(--success-500); color: var(--primary-500); }

/* ---- Numbered list ------------------------------------------------------- */
.numbered { display: flex; flex-direction: column; gap: var(--md); counter-reset: n; }
.numbered li { display: flex; align-items: flex-start; gap: var(--md); }
.numbered li::before {
  counter-increment: n;
  content: counter(n);
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--secondary-500);
  color: var(--tertiary-500);
  font-family: var(--font-display);
  font-size: var(--fs-section-label);
}

/* ---- Versus (with / without lists) --------------------------------------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lg); }
.versus-col { padding: clamp(24px, 2.4vw, 40px); background: var(--tertiary-500); border-radius: var(--r-panel); }
.versus-col--with { background: var(--primary-500); color: var(--tertiary-500); }
.versus-col--with .check-list svg { color: var(--success-500); }
.versus-tag {
  display: inline-block; margin-bottom: var(--lg);
  padding: 10px 20px;
  border-radius: var(--r-panel);
  background: var(--bg-500);
  color: var(--primary-500);
  font-size: var(--fs-section-label);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.versus-col--with .versus-tag { background: var(--secondary-500); }
.check-list li.is-negative svg { color: var(--error-500); }

/* ---- Pill note ----------------------------------------------------------- */
.pill-note {
  display: inline-flex; align-items: center; gap: var(--sm);
  padding: 12px 20px;
  background: var(--bg-500);
  border-radius: var(--r-panel);
  font-size: var(--fs-section-label);
}
.panel--dark .pill-note { background: rgba(233, 228, 223, 0.12); }
.pill-note svg { flex: 0 0 auto; width: 18px; height: 18px; }

/* ---- Receipt / project / dashboard mocks --------------------------------- */
.receipt {
  width: 100%; max-width: 320px;
  padding: var(--lg);
  background: var(--tertiary-500);
  border-radius: var(--r-panel);
  box-shadow: var(--elevation-1);
}
.receipt-title { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.08em; color: var(--secondary-500); margin-bottom: var(--md); }
.receipt-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--md); padding: var(--sm) 0; border-bottom: 1px solid var(--bg-500); }
.receipt-row .lbl { font-size: var(--fs-caption); color: var(--secondary-500); }
.receipt-row .val { font-size: var(--fs-section-label); font-weight: 700; text-align: right; }
.receipt-flag {
  display: inline-flex; align-items: center; gap: var(--sm);
  margin-top: var(--md); padding: 10px 18px;
  background: var(--success-500);
  border-radius: var(--r-badge);
  font-size: var(--fs-section-label);
}
.receipt-flag svg { width: 18px; height: 18px; }

.project-card { width: 100%; max-width: 420px; padding: var(--xl); background: var(--tertiary-500); border-radius: var(--r-panel); box-shadow: var(--elevation-1); }
.project-card h3 { font-size: var(--fs-card-title); margin-bottom: var(--lg); }
.project-meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--md); margin-bottom: var(--lg); }
.project-meta .k { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.08em; color: var(--secondary-500); }
.project-meta .v { font-size: var(--fs-section-label); font-weight: 700; }
.project-cats { display: flex; flex-wrap: wrap; gap: var(--sm); }
.project-cats span { padding: 6px 16px; background: var(--bg-500); border-radius: var(--r-panel); font-size: var(--fs-caption); }

.dash { background: var(--tertiary-500); border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--elevation-1); }
.dash-bar { display: flex; align-items: center; gap: var(--sm); padding: var(--md) var(--lg); background: var(--bg-500); }
.dash-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--secondary-500); }
.dash-bar .title { margin-left: var(--sm); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.08em; }
.dash-body { padding: var(--lg); }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--md); margin-bottom: var(--lg); }
.kpi { padding: var(--md); background: var(--bg-500); border-radius: var(--r-button); }
.kpi .k { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.06em; color: var(--secondary-500); }
.kpi .v { font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.kpi .d { font-size: 11px; color: var(--secondary-500); }
.dash-chart { display: flex; align-items: flex-end; gap: var(--sm); height: 150px; }
.dash-chart .bar { flex: 1; background: var(--bg-500); border-radius: var(--r-badge); }
.dash-chart .bar:last-child { background: var(--secondary-500); }
.dash-caption { margin-top: var(--md); font-size: 11px; color: var(--secondary-500); }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { max-width: 900px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--secondary-500); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--lg);
  padding: var(--lg) 0;
  background: transparent; border: 0;
  font-family: var(--font-body); font-size: var(--fs-body); font-weight: 700;
  color: var(--primary-500);
  text-align: left; cursor: pointer;
}
.faq-q .plus { position: relative; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--tertiary-500); transition: background var(--ease); }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; inset: 50% 10px auto; height: 1.5px;
  background: var(--primary-500); transform: translateY(-50%);
}
.faq-q .plus::after { transform: translateY(-50%) rotate(90deg); transition: transform var(--ease); }
.faq-q[aria-expanded="true"] .plus { background: var(--secondary-500); }
.faq-q[aria-expanded="true"] .plus::after { transform: translateY(-50%) rotate(0deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 240ms ease; }
.faq-a-inner { padding-bottom: var(--lg); max-width: 74ch; line-height: 1.4; }

/* ---- Forms --------------------------------------------------------------- */
.form-panel {
  padding: clamp(24px, 3vw, 47px);
  background: var(--tertiary-500);
  border-radius: var(--r-panel);
  box-shadow: var(--elevation-1);
}
/* Form panels keep their own light-surface colours in any context */
.form-panel, .form-success { color: var(--primary-500); }
.form-panel h1, .form-panel h2, .form-panel h3, .form-panel h4,
.form-success h1, .form-success h2, .form-success h3, .form-success h4 { color: var(--primary-500); }
.form-panel .lead, .form-success .lead { color: var(--primary-500); }
.form-panel .btn--filled { background: var(--primary-500); color: var(--on-primary); }
.form-panel .btn--filled:hover { background: var(--secondary-500); color: var(--primary-500); }
.form-panel h2 { font-size: var(--fs-semi-title); margin-bottom: var(--sm); }
.form-intro { color: var(--secondary-500); font-size: var(--fs-section-label); margin-bottom: var(--lg); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--md); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--md); }
.field label { font-size: var(--fs-section-label); font-weight: 700; }
.field .opt { font-weight: 400; color: var(--secondary-500); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 18px;
  font-family: var(--font-body); font-size: var(--fs-section-label);
  color: var(--primary-500);
  background: var(--bg-500);
  border: 1px solid transparent;
  border-radius: var(--r-button);
  transition: border-color var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary-500); }
.field [aria-invalid="true"] { border-color: var(--error-500); }
.field .error { display: none; font-size: var(--fs-caption); color: var(--error-500); }
.field .error.show { display: block; }
.radio-group { display: flex; gap: var(--lg); padding-top: var(--xs); }
.radio-group label { display: inline-flex; align-items: center; gap: var(--sm); font-weight: 400; cursor: pointer; }
.radio-group input { accent-color: var(--primary-500); }
.form-panel .btn { margin-top: var(--sm); }
.form-note { margin-top: var(--md); font-size: var(--fs-caption); color: var(--secondary-500); }

.form-success { display: none; text-align: center; }
.form-success.show { display: block; }
.form-success .ok {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: var(--md);
  border-radius: 50%;
  background: var(--success-500);
  color: var(--primary-500);
}
.form-success .ok svg { width: 26px; height: 26px; }
.form-success h2 { font-size: var(--fs-semi-title); margin-bottom: var(--sm); }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { display: flex; flex-direction: column; align-items: center; gap: var(--lg); text-align: center; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: var(--md); justify-content: center; }

/* ---- Inner-page responsive ----------------------------------------------- */
@media (max-width: 1023px) {
  .page-hero--split, .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .page-hero-inner h1 { max-width: none; }
}
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4, .versus, .kpi-row, .project-meta, .field-row { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .page-hero .btn-row, .cta-band .btn-row { flex-direction: column; align-self: stretch; }
}

/* ==========================================================================
   Mobile refinements
   ========================================================================== */
@media (max-width: 1023px) {
  /* iOS Safari zooms the page when a focused field is under 16px */
  .field input, .field select, .field textarea { font-size: 16px; padding: 14px 16px; }

  /* Comfortable touch targets in the footer and drawer */
  .footer-links a { display: inline-block; padding-block: 6px; }
  .footer-links ul { gap: var(--sm); }
  .mobile-nav > a:not(.btn) { padding: 16px 0; }
  .radio-group { gap: var(--xl); }
  .radio-group label { padding-block: 6px; }
  .faq-q { padding-block: var(--md); gap: var(--md); }
  .site-header .logo { display: inline-flex; padding-block: 10px; }
}

@media (max-width: 767px) {
  /* Tighter vertical rhythm so pages don't feel like endless scrolling */
  :root { --section-y: 64px; }
  .page-hero { padding-block: var(--lg) var(--xxl); }
  .section-head { margin-bottom: var(--xl); }
  .hero { padding-block: var(--md) var(--xxl); }

  /* Big radii read as blobby at phone widths */
  .adv-card { border-radius: var(--r-panel); }
  .hero-stack img, .hero-main { border-radius: 24px; }

  /* The comparison photos lose their subject when cropped to a tall box */
  .compare { aspect-ratio: 3 / 2; min-height: 0; }
  .compare-tag { font-size: 11px; padding: 8px 14px; }

  .steps-panel, .panel, .form-panel, .versus-col, .feature-card { border-radius: var(--r-panel); }
  /* Nested panels stack their padding — trim it so content keeps its width */
  .panel { padding: var(--lg) var(--md); }
  .form-panel { padding: var(--lg); }
  .steps-panel { gap: var(--xl); padding: var(--xl) var(--lg); }
  .footer-art { display: none; }
  .site-footer { padding-block: var(--xxl) var(--lg); }
  .footer-lead, .footer-brand { margin-bottom: var(--xl); }
}


/* ==========================================================================
   Redesigned homepage — responsive behaviour
   ========================================================================== */
@media (max-width: 1023px) {
  /* stacked below desktop: nothing is cropped at the section foot, but the
     device still is, so it fades in its own box instead */
  .hero::after { display: none; }
  .hero-device {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent 100%);
            mask-image: linear-gradient(to bottom, #000 calc(100% - 90px), transparent 100%);
  }
  .hero-grid { grid-template-columns: 1fr; gap: var(--xxl); }
  .hero-copy { padding-top: 0; }

  /* The absolute collage only holds at desktop; below that it becomes a row */
  .hero-art { position: static; aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .hero-stack { position: static; width: auto; display: grid; gap: 12px; }
  .hero-main { position: static; width: 100%; aspect-ratio: 503 / 838; }

  .hero-device { margin-inline: auto; }

  .adv-grid { grid-template-columns: 1fr; gap: var(--xl); }
  .advantages { overflow: visible; }
  .adv-title { max-width: none; }
  .adv-cards { flex-wrap: wrap; gap: var(--lg); }
  .adv-item { flex: 1 1 260px; padding-top: 0 !important; }

  /* the desktop block proportions don't apply once stacked */
  .verify-grid { grid-template-columns: 1fr; gap: var(--xxl); max-width: none; margin-inline: 0; }
  .verify-copy .verify-body > p, .verify-copy .check-list { max-width: none; }
  .verify-device { width: min(100%, 300px); margin-inline: auto; }

  .persona-grid { grid-template-columns: 1fr; gap: var(--lg); }
  .persona { width: 100%; aspect-ratio: auto; padding: var(--xl); }
  /* relative, not static, so the badge still anchors to the image */
  .persona-art { position: relative; left: auto; top: auto; width: 100%; max-width: 300px; margin-top: var(--md); }
  .persona-badge { top: 4%; left: 50%; transform: translateX(-50%); }
}

@media (max-width: 767px) {
  .hero-art { grid-template-columns: 1fr 1fr; }
  .hero-device {
    width: min(260px, 70vw);
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 80px), transparent 100%);
            mask-image: linear-gradient(to bottom, #000 calc(100% - 80px), transparent 100%);
  }
  .adv-cards { flex-direction: column; }
  .adv-item { width: 100%; max-width: 340px; margin-inline: auto; }
  .adv-card { aspect-ratio: auto; padding: var(--xl) var(--lg) var(--xl) 18.6%; }
}
