/* =================================================================
   PavilionFlow — landing page
   Plain HTML + CSS. No build tools, no frameworks.
   Design tokens taken directly from the signed-off Figma spec.
   Brand assets (logo, fonts) from the signed-off brand package.
   ================================================================= */

/* ---------- 0. Fonts (self-hosted Inter Tight, variable) ---------- */
@font-face {
  font-family: 'Inter Tight';
  src: url('assets/fonts/InterTight.woff2') format('woff2'),
       url('assets/fonts/InterTight.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('assets/fonts/InterTight-Italic.woff2') format('woff2'),
       url('assets/fonts/InterTight-Italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand colours */
  --ink:            #1D1D1F;   /* primary charcoal */
  --ink-2:          #1D1D1E;   /* heading charcoal (Figma uses both) */
  --green:          #00C9A2;   /* mint accent */
  --green-hover:    #00B392;
  --green-ink:      #0A1F1A;   /* text on green buttons */
  --mint-bg:        #E5FDF8;   /* pale mint badge background */
  --surface:        #FFFFFF;
  --surface-2:      #F4F4F6;   /* light grey section */
  --surface-3:      #F5F5F7;   /* light grey card / image bg */
  --line:           rgba(29,29,31,0.08);
  --line-strong:    rgba(29,29,31,0.20);

  /* Text on light */
  --text:           #1D1D1F;
  --text-muted:     rgba(29,29,31,0.65);
  --text-soft:      rgba(29,29,31,0.55);
  --text-faint:     rgba(29,29,31,0.45);

  /* Text on dark */
  --on-dark:            #FFFFFF;
  --on-dark-muted:      rgba(255,255,255,0.70);
  --on-dark-soft:       rgba(255,255,255,0.55);
  --on-dark-faint:      rgba(255,255,255,0.45);
  --on-dark-line:       rgba(255,255,255,0.15);

  /* Layout */
  --content:        1140px;   /* inner content column */
  --gutter:         150px;    /* desktop section side padding */
  --radius:         8px;
  --radius-lg:      12px;
  --radius-sm:      4px;

  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ---------- 2a. Accessibility (invisible until needed) ---------- */
/* Skip-to-content link: hidden until a keyboard user tabs to it */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 0 0 6px 0; font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* Visible focus ring for keyboard users (brand green) — mouse users unaffected */
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px; }

/* Respect users who ask their device to reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 3. Reusable pieces ---------- */

/* Section shell: full-bleed background, centred 1140 content */
.section { padding: 120px var(--gutter); }
.section--tight { padding: 80px var(--gutter); }
.container { max-width: var(--content); margin: 0 auto; width: 100%; }

/* Eyebrow / kicker label */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
  letter-spacing: 1.84px;
  text-transform: uppercase;
  color: var(--green);
}

/* Big section heading (54 / 63) */
.h-section {
  font-size: 54px;
  font-weight: 600;
  line-height: 63px;
  letter-spacing: -2px;
  color: var(--ink-2);
}
.on-dark .h-section, .h-section.on-dark { color: var(--on-dark); }

/* Lead paragraph under headings */
.lead {
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.176px;
  color: var(--text-muted);
}

/* Small pill badge (e.g. QUEUE, EFFICIENCY) */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  background: var(--mint-bg);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.26px;
  text-transform: uppercase;
  color: var(--green);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: -0.176px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--green { background: var(--green); color: var(--green-ink); }
.btn--green:hover { background: var(--green-hover); }
.btn--lg { padding: 16px 28px; font-size: 18px; line-height: 22px; }
.btn--md { padding: 8px 16px; font-size: 14px; line-height: 21px; }
.btn--ghost-dark { border-color: var(--on-dark-line); color: rgba(255,255,255,0.9); background: transparent; }
.btn--ghost-dark:hover { border-color: rgba(255,255,255,0.4); }
.btn--ink { background: var(--ink); color: #fff; }

/* Inline arrow link with underline */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: -0.176px;
  color: var(--ink-2);
  transition: gap .15s ease, border-color .15s ease;
}
.arrow-link:hover { gap: 8px; border-color: var(--ink-2); }
.arrow-link svg { width: 20px; height: 20px; flex: none; }
.on-dark .arrow-link { color: #fff; border-color: var(--on-dark-line); }

/* ---------- 4. Header / nav ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  height: 80px;
  display: flex; align-items: center;
  padding: 0 var(--gutter);
}
.site-header__inner {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 58px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 14px; line-height: 21px; letter-spacing: -0.176px;
  color: rgba(255,255,255,0.8); transition: color .15s ease;
}
.nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .signin {
  padding: 8px 9px; font-size: 14px; font-weight: 600; line-height: 21px;
  color: rgba(255,255,255,0.8);
}
.header-actions .signin:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 819px;
  display: flex; align-items: center;
  padding: 120px var(--gutter) 80px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(87.5deg, rgba(29,29,31,0.95) 34%, rgba(29,29,31,0.57) 59%, rgba(29,29,31,0) 85%),
    var(--hero-img);
  background-size: cover;
  background-position: center;
}
.hero__inner { position: relative; max-width: var(--content); margin: 0 auto; width: 100%; }
.hero__copy { max-width: 631px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  font-size: 64px; font-weight: 600; line-height: 74px; letter-spacing: -2px;
}
.hero__sub {
  font-size: 20px; font-weight: 500; line-height: 32px; letter-spacing: -0.176px;
  color: var(--on-dark-muted); max-width: 631px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__stats { display: flex; gap: 64px; margin-top: 40px; }
.stat__num { font-size: 28px; font-weight: 600; line-height: 36px; letter-spacing: -0.32px; }
.stat__desc { font-size: 16px; line-height: 24px; color: var(--on-dark-muted); max-width: 195px; }

/* ---------- 6. Trusted-by logo strip ---------- */
.trusted { padding: 60px var(--gutter); background: #fff; }
.trusted__label {
  text-align: center; font-size: 16px; letter-spacing: -0.18px;
  color: var(--text-muted); margin-bottom: 40px;
}
.trusted__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px; flex-wrap: wrap; opacity: 0.65;
}
.trusted__row img { height: 26px; width: auto; object-fit: contain; filter: grayscale(1); }

/* ---------- 7. Problem ---------- */
.problem { background: #fff; }
.problem__head {
  display: flex; gap: 99px; align-items: center; margin-bottom: 46px;
}
.problem__head .h-section { flex: 0 0 470px; }
.problem__head-right { display: flex; flex-direction: column; gap: 32px; }
.problem__body { display: grid; grid-template-columns: 1fr 560px; gap: 48px; align-items: start; }
.problem__list { display: flex; flex-direction: column; }
.problem-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.problem-item h3 {
  font-size: 32px; font-weight: 600; line-height: 40px; letter-spacing: -0.5px;
  color: var(--ink); margin: 12px 0;
}
.problem-item p { font-size: 18px; line-height: 28px; color: rgba(29,29,31,0.6); letter-spacing: -0.176px; }
.problem__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 569px; background: var(--ink);
}
.problem__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.problem__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.15) 0%, rgba(0,0,0,0) 35%, rgba(10,10,12,0.85) 100%);
}
.cost-card {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  background: #fff; border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm);
  padding: 12px 14px; width: 171px;
}
.cost-card__label { font-size: 11px; font-weight: 600; letter-spacing: 0.9px; color: var(--text-muted); text-transform: uppercase; }
.cost-card__amount { font-size: 24px; font-weight: 700; letter-spacing: -0.54px; color: var(--green); margin: 6px 0 4px; }
.cost-card__sub { font-size: 12px; color: var(--text-faint); }

/* ---------- 8. Platform (Two surfaces) ---------- */
.platform { background: var(--surface-2); }
.platform__head { display: flex; flex-direction: column; gap: 20px; max-width: 671px; margin-bottom: 63px; }
.platform__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.platform-card {
  background: #fff; border-radius: var(--radius); padding: 40px;
  display: flex; flex-direction: column; gap: 16px;
}
.platform-card__kicker { font-size: 11px; font-weight: 700; letter-spacing: 1.32px; text-transform: uppercase; color: var(--green); }
.platform-card__title { font-size: 32px; font-weight: 600; line-height: 40px; letter-spacing: -1px; color: var(--ink); }
.platform-card__desc { font-size: 16px; line-height: 28px; color: rgba(29,29,31,0.6); }
.platform-card__note { font-size: 14px; font-style: italic; line-height: 19px; color: var(--text-faint); }
.device {
  margin-top: 12px; border-radius: var(--radius);
  background: linear-gradient(135deg,#FAFAFA,#EEEEF0);
  border: 1px solid rgba(0,0,0,0.04);
  min-height: 414px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.device::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(75% 94% at 50% 30%, rgba(0,201,162,0.16) 0%, rgba(0,0,0,0) 50%);
}
.device img { position: relative; border-radius: 10px; box-shadow: 0 33px 80px -20px rgba(0,0,0,0.23); max-height: 340px; width: auto; }
.device--phone img { max-height: 320px; }

/* ---------- 9. Features (outcome rows) ---------- */
.features { background: #fff; }
.features__intro { display: flex; justify-content: space-between; gap: 99px; align-items: center; margin-bottom: 96px; }
.features__intro .h-section { flex: 0 0 470px; }
.features__intro .lead { flex: 0 1 560px; }
.feature-rows { display: flex; flex-direction: column; gap: 120px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.feature-row--reverse .feature-row__media { order: -1; }
.feature-row__content { display: flex; flex-direction: column; gap: 38px; max-width: 518px; }
.feature-row__title { font-size: 42px; font-weight: 600; line-height: 1.05; letter-spacing: -1px; color: var(--ink); margin: 24px 0; }
.feature-row__desc { font-size: 18px; line-height: 28px; color: rgba(29,29,31,0.65); letter-spacing: -0.176px; }
.feature-metric { display: flex; align-items: flex-end; gap: 20px; }
.metric__num {
  font-size: 48px; font-weight: 600; line-height: 1.05; letter-spacing: -1px;
  background: linear-gradient(180deg, var(--ink) 46%, var(--green) 88%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.metric__label { font-size: 14px; font-weight: 500; line-height: 21px; color: var(--text-soft); letter-spacing: -0.176px; margin-top: 4px; }
.metric__source { padding-left: 21px; border-left: 1px solid rgba(0,0,0,0.1); font-size: 11px; font-weight: 500; line-height: 16px; letter-spacing: 0.44px; color: var(--text-faint); max-width: 180px; }
.feature-row__media {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 554 / 600; background: var(--surface-3);
}
.feature-row__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-row__media::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 50%);
}

/* ---------- 10. How it works ---------- */
.how { background: var(--surface-2); }
.how__head { display: flex; justify-content: space-between; gap: 99px; align-items: center; margin-bottom: 60px; }
.how__head .h-section { flex: 0 0 511px; }
.how__head .lead { flex: 0 1 560px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
.step-card { background: #fff; border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 32px; }
.step-card__top { display: flex; align-items: center; justify-content: space-between; }
.step-card__num-wrap { display: flex; align-items: center; gap: 12px; }
.step-card__num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.step-card__kicker { font-size: 12px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--text-faint); }
.step-card__icon { width: 40px; height: 40px; border-radius: 14px; background: rgba(0,201,162,0.12); display: flex; align-items: center; justify-content: center; color: var(--green); }
.step-card__icon svg { width: 18px; height: 18px; }
.step-card__body { display: flex; flex-direction: column; gap: 8px; }
.step-card__sub { font-size: 13px; font-weight: 500; color: var(--text-soft); letter-spacing: -0.1px; }
.step-card h3 { font-size: 28px; font-weight: 600; line-height: 31px; letter-spacing: -0.67px; color: var(--ink); }
.step-card p { font-size: 16px; line-height: 26px; color: rgba(29,29,31,0.6); }
.step-card__foot { padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.06); font-size: 14px; font-weight: 500; color: var(--ink); }
.integration-band {
  background: #fff; border-radius: var(--radius-lg); padding: 60px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 80px; flex-wrap: wrap;
}
.integration-band__copy { max-width: 482px; display: flex; flex-direction: column; gap: 20px; }
.integration-band__copy h3 { font-size: 36px; font-weight: 600; line-height: 46px; letter-spacing: -1px; color: var(--ink); }
.integration-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px 40px; align-items: center; max-width: 440px; }
.integration-logos img { height: 30px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; }
/* Integrations: Zenoti-only, shown prominently in full colour */
.integration-zenoti { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.integration-zenoti__logo { height: 48px; width: auto; object-fit: contain; }
.integration-zenoti__note { font-size: 14px; color: var(--text-soft); letter-spacing: -0.176px; }

/* ---------- 11. Stats band ---------- */
.stats-band {
  padding: 120px var(--gutter);
  background: linear-gradient(180deg, var(--ink-2) 70%, var(--green) 139%);
  color: #fff;
}
.stats-band__head { display: flex; gap: 99px; margin-bottom: 80px; }
.stats-band__head .h-section { flex: 0 0 574px; color: #fff; }
.stats-grid { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.stat-block { flex: 1; }
.stat-block__num {
  font-size: 64px; font-weight: 700; line-height: 1.02; letter-spacing: -1px;
  background: linear-gradient(180deg,#fff,var(--green));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.stat-block__title { font-size: 20px; font-weight: 600; line-height: 22px; margin-top: 12px; }
.stat-block__sub { font-size: 14px; line-height: 19px; color: var(--on-dark-muted); margin-top: 4px; }
.stats-grid .divider { width: 1px; align-self: stretch; background: rgba(255,255,255,0.18); }

/* ---------- 12. Case studies ---------- */
.cases { background: #fff; }
.cases__head { display: flex; flex-direction: column; gap: 32px; margin-bottom: 40px; }
.cases__head-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 99px; }
.cases__head-text { display: flex; flex-direction: column; gap: 20px; }
.cases__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 8px 20px; border-radius: var(--radius-sm); border: 1px solid rgba(29,29,31,0.16);
  background: #fff; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--text-muted);
}
.filter-btn.is-active, .filter-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; }
.case-card { border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.case-card__img { position: relative; aspect-ratio: 365 / 294; }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; }
.case-card__cat {
  position: absolute; top: 16px; left: 16px; padding: 4px 8px; border-radius: var(--radius-sm);
  background: rgba(16,16,16,0.35); border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px); color: #fff; font-size: 11px; font-weight: 600;
}
.case-card__body { padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.case-card__brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--text-muted); }
.case-card__brand strong { font-size: 15px; color: var(--ink); font-weight: 700; letter-spacing: -0.3px; }
.case-card__quote { font-size: 16px; font-weight: 500; line-height: 24px; letter-spacing: -0.155px; color: var(--ink); }
.case-card__stats { display: flex; gap: 8px; }
.case-stat { flex: 1; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.case-stat__val { font-size: 18px; font-weight: 600; color: var(--green); line-height: 22px; }
.case-stat__desc { font-size: 10.5px; font-weight: 500; line-height: 16px; color: var(--text-soft); margin-top: 6px; }
.case-card__person { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.06); }
.case-card__person .name { font-size: 13px; font-weight: 600; color: var(--ink); }
.case-card__person .role { font-size: 12px; color: var(--text-muted); }
.case-card__person .go { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--green); display: flex; align-items: center; justify-content: center; color: var(--ink); }

/* ---------- 13. Testimonial ---------- */
.testimonial { background: var(--surface-2); padding: 80px var(--gutter); }
.testimonial__card {
  position: relative; overflow: hidden;
  background: var(--ink); border-radius: var(--radius-lg); color: #fff;
  padding: 80px;
}
.testimonial__glow {
  position: absolute; left: -160px; top: 0; width: 600px; height: 600px;
  background: radial-gradient(71% 71% at 50% 50%, var(--green) 0%, rgba(0,0,0,0) 70%);
  opacity: .4; filter: blur(120px); pointer-events: none;
}
.testimonial__photo {
  position: absolute; right: 0; top: 0; bottom: 0; width: 488px;
  background-size: cover; background-position: center;
}
.testimonial__photo::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(0,0,0,0) 50%);
}
.testimonial__inner { position: relative; z-index: 2; max-width: 600px; display: flex; flex-direction: column; gap: 50px; }
.testimonial__loc {
  display: inline-flex; align-items: center; gap: 12px;
}
.testimonial__loc .tag {
  padding: 5px 11px; background: rgba(255,255,255,0.1); border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; letter-spacing: 1.32px; text-transform: uppercase;
}
.testimonial__loc .detail { font-size: 14px; color: var(--on-dark-muted); }
.testimonial__quote { font-size: 42px; font-weight: 500; line-height: 52px; letter-spacing: -1.23px; }
.testimonial__quote .mark { color: var(--green); font-size: 56px; line-height: 0; }
.testimonial__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.testimonial__person { display: flex; align-items: center; gap: 16px; }
.testimonial__avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 2px solid var(--on-dark-line); background-size: cover; background-position: center; }
.testimonial__person .name { font-size: 18px; font-weight: 600; }
.testimonial__person .title { font-size: 14px; color: var(--on-dark-soft); }
.testimonial__metrics { display: flex; gap: 24px; }
.tm-metric { text-align: center; }
.tm-metric__num { font-size: 24px; font-weight: 700; letter-spacing: -0.44px; color: var(--green); }
.tm-metric__label { font-size: 14px; font-weight: 500; letter-spacing: 0.44px; color: var(--on-dark-faint); }

/* ---------- 14. Franchise ---------- */
.franchise { background: #fff; }
.franchise__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.franchise__copy { display: flex; flex-direction: column; gap: 32px; max-width: 553px; }
.franchise__head { display: flex; flex-direction: column; gap: 20px; }
.franchise__list { display: flex; flex-direction: column; gap: 20px; }
.franchise-item { display: flex; gap: 12px; }
.franchise-item__check { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,201,162,0.15); display: flex; align-items: center; justify-content: center; color: var(--green); }
.franchise-item h4 { font-size: 18px; font-weight: 600; line-height: 24px; letter-spacing: -0.08px; color: var(--ink); margin-bottom: 8px; }
.franchise-item p { font-size: 16px; line-height: 20px; color: var(--text-soft); letter-spacing: -0.176px; }
.franchise__media {
  background: var(--surface-2); border: 12px solid #0A0A0C; border-radius: var(--radius);
  box-shadow: 0 34px 107px -7px rgba(0,0,0,0.1); padding: 20px; overflow: hidden;
}
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.dash__head .t { font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--text-soft); }
.dash__live { font-size: 12px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.dash__live::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.dash-card { background: #fff; border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.dash-card .reg { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--text-soft); }
.dash-card .reg .loc { font-size: 13px; font-weight: 600; color: var(--ink); }
.dash-card .reg .pct { font-weight: 600; color: var(--green); white-space: nowrap; }
.dash-card .reg .pct--amber { color: #C46A2C; }
.dash-card__metric { display: flex; flex-direction: column; gap: 1px; }
.dash-card .num { font-size: 18px; font-weight: 700; letter-spacing: -0.4px; color: var(--ink); line-height: 1.15; }
.dash-card .lbl { font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--text-faint); line-height: 1.25; }
.dash-bars { display: flex; align-items: flex-end; gap: 2px; height: 16px; margin-top: auto; }
.dash-bars span { flex: 1; border-radius: 3px; background: var(--green); }
.dash-bars--amber span { background: #E8B89C; }

/* ---------- 15. FAQ ---------- */
.faq { background: var(--surface-2); }
.faq__inner { display: grid; grid-template-columns: 457px 1fr; gap: 111px; align-items: start; }
.faq__intro { display: flex; flex-direction: column; gap: 20px; }
.faq__list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 28px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: 20px; font-weight: 500; line-height: 27px; letter-spacing: -0.24px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .toggle {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.faq-item .toggle svg { width: 16px; height: 16px; }
.faq-item[open] summary { border-bottom: 1px solid var(--ink); }
.faq-item[open] .toggle { background: var(--green); border-color: var(--green); transform: rotate(45deg); }
.faq-item__answer { padding: 16px 0 28px; font-size: 15.5px; font-weight: 500; line-height: 25px; letter-spacing: -0.176px; color: rgba(29,29,31,0.65); max-width: 572px; }

/* ---------- 16. CTA ---------- */
.cta { background: #fff; padding: 80px var(--gutter); }
.cta__card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--ink-2) 72%, var(--green) 128%);
  border-radius: var(--radius-lg); color: #fff;
  padding: 73px 82px;
  display: flex; align-items: center; justify-content: space-between; gap: 60px;
}
.cta__copy { max-width: 470px; display: flex; flex-direction: column; gap: 24px; }
.cta__card h2 { font-size: 64px; font-weight: 600; line-height: 74px; letter-spacing: -2px; }
.cta__card .lead { color: var(--on-dark-muted); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.cta__trust { display: flex; flex-wrap: wrap; gap: 23px; margin-top: 8px; }
.cta__trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--on-dark-muted); }
.cta__trust svg { width: 14px; height: 14px; color: var(--green); flex: none; }
.cta__device { flex: none; width: 275px; height: 412px; border-radius: 16px; background: #0A0A0C; box-shadow: 0 43px 103px -26px rgba(0,201,162,0.38); padding: 12px; }
.cta__device-screen { width: 100%; height: 100%; border-radius: 10px; background: #fff; background-size: cover; background-position: center; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--ink-2); color: #fff; padding: 64px var(--gutter) 40px; }
.footer__top { display: grid; grid-template-columns: 244px repeat(4, 1fr); gap: 48px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__brand { display: flex; flex-direction: column; gap: 22px; }
.footer__brand .logo { color: #fff; }
.footer__tagline { font-size: 14px; line-height: 22px; color: var(--on-dark-muted); letter-spacing: -0.176px; }
.footer__lang { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--on-dark-line); border-radius: 999px; font-size: 13px; font-weight: 500; }
.footer__regions { font-size: 12px; color: var(--on-dark-muted); }
.footer-col h4 { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--on-dark-faint); margin-bottom: 20px; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.85); }
.footer-col a:hover { color: #fff; }
.footer__news { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
.footer__news h3 { font-size: 22px; font-weight: 600; line-height: 33px; letter-spacing: -0.4px; }
.footer__news p { font-size: 14px; line-height: 21px; color: var(--on-dark-muted); max-width: 420px; margin-top: 8px; }
.footer__form { display: flex; gap: 8px; }
.footer__form input {
  width: 330px; max-width: 60vw; padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); border: 1px solid var(--on-dark-line); color: #fff; font: inherit; font-size: 14px;
}
.footer__form input::placeholder { color: rgba(255,255,255,0.35); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 32px; flex-wrap: wrap; }
.footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__legal a, .footer__copy { font-size: 12.5px; color: var(--on-dark-muted); letter-spacing: -0.176px; }
.footer__contact { font-size: 12.5px; color: var(--on-dark-muted); letter-spacing: -0.176px; transition: color .15s ease; }
.footer__contact:hover { color: #fff; }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1200px) {
  :root { --gutter: 64px; }
  .hero h1, .cta__card h2 { font-size: 52px; line-height: 60px; }
  .h-section { font-size: 44px; line-height: 52px; }
}

@media (max-width: 900px) {
  :root { --gutter: 40px; }
  .section, .stats-band, .testimonial, .cta { padding-top: 80px; padding-bottom: 80px; }

  /* Tighten oversized desktop spacing that leaves big gaps on mobile */
  .hero { min-height: auto; padding-top: 112px; padding-bottom: 56px; }
  .feature-rows { gap: 64px; }
  .platform__head { margin-bottom: 40px; }
  .stats-band__head { margin-bottom: 40px; }
  .how { gap: 40px; }

  /* Reset fixed flex-basis: when these stack into one column, the px basis was
     being read as a fixed HEIGHT, leaving large empty gaps below each heading. */
  .features__intro .h-section, .features__intro .lead,
  .how__head .h-section, .how__head .lead,
  .stats-band__head .h-section { flex: 0 0 auto; }

  /* Mobile nav: CSS-only dropdown (no JS) */
  .nav, .header-actions .signin { display: none; }
  .nav-toggle { display: block; }
  .nav-cb:checked ~ .nav {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 80px; left: 0; right: 0;
    background: var(--ink); padding: 12px var(--gutter) 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .nav-cb:checked ~ .nav a { padding: 12px 0; font-size: 16px; color: rgba(255,255,255,0.9); }

  .problem__head { flex-direction: column; gap: 24px; align-items: flex-start; }
  .problem__head .h-section { flex: none; }
  .problem__body { grid-template-columns: 1fr; }
  .problem__media { min-height: 420px; }

  .platform__cards { grid-template-columns: 1fr; }
  .features__intro { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 64px; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row--reverse .feature-row__media { order: 0; }
  .feature-row__media { aspect-ratio: 16/10; }

  .how__head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .integration-band { flex-direction: column; align-items: flex-start; }

  .stats-band__head { flex-direction: column; gap: 24px; }
  .stats-grid { flex-wrap: wrap; gap: 32px; }
  .stat-block { flex: 1 1 40%; }
  .stats-grid .divider { display: none; }

  .cases__head-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .case-grid { grid-template-columns: 1fr; }

  .testimonial__card { padding: 40px; }
  .testimonial__photo { display: none; }
  .testimonial__quote { font-size: 30px; line-height: 40px; }

  .franchise__inner { grid-template-columns: 1fr; }
  .faq__inner { grid-template-columns: 1fr; gap: 40px; }

  .cta__card { flex-direction: column; align-items: flex-start; padding: 48px 40px; }
  .cta__device { display: none; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__news { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .section, .stats-band, .testimonial, .cta { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 104px; padding-bottom: 48px; }
  .feature-rows { gap: 56px; }
  .hero h1 { font-size: 38px; line-height: 44px; }
  .hero__sub { font-size: 18px; line-height: 28px; }
  .hero__stats { flex-direction: column; gap: 24px; }
  .stat__desc { max-width: none; }  /* full width on mobile so "check-in" doesn't wrap mid-word */
  .h-section, .cases__head .h-section { font-size: 34px; line-height: 40px; letter-spacing: -1px; }
  .cta__card h2 { font-size: 38px; line-height: 44px; }
  .feature-row__title { font-size: 32px; }
  .testimonial__quote { font-size: 26px; line-height: 34px; }
  .footer__top { grid-template-columns: 1fr; }
  .stat-block { flex: 1 1 100%; }
  .platform-card, .step-card, .testimonial__card { padding: 28px; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 100%; }
}
