/* ============================================================
   Eventora Marketing Site — Stylesheet
   Organized: Tokens → Reset → Layout → Typography →
              Buttons → Components → Sections → Responsive
   Uses native CSS nesting (baseline 2023, all modern browsers)
   ============================================================ */

/* ─── TOKENS ─────────────────────────────────────────────── */

:root {
  /* Brand palette */
  --color-navy:        #1F2837;
  --color-slate:       #374255;
  --color-lime:        #AEED3A;
  --color-lime-dark:   #88CC00;
  --color-silver:      #CED2DC;
  --color-off-white:   #F7F8FA;
  --color-border:      #E2E4EA;

  /* Text roles */
  --color-text-heading: #1F2837;
  --color-text-body:    #4B5563;
  --color-text-muted:   #6B7280;

  /* Spacing scale */
  --space-xs:   8px;
  --space-sm:   14px;
  --space-md:   20px;
  --space-lg:   32px;
  --space-xl:   48px;
  --space-2xl:  64px;
  --space-3xl:  88px;

  /* Radii */
  --radius-sm:  8px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card:   0 4px 40px rgba(31, 40, 55, 0.10);
  --shadow-hero:   0 -24px 80px rgba(0, 0, 0, 0.30);

  /* Typography */
  --font-sans: 'Instrument Sans', Helvetica, Arial, sans-serif;
  --font-size-xs:   11px;
  --font-size-sm:   13px;
  --font-size-base: 14px;
  --font-size-md:   15px;
  --font-size-lg:   17px;
  --font-size-xl:   18px;
  --font-size-2xl:  28px;
  --font-size-3xl:  38px;
  --font-size-hero: clamp(32px, 2.43vw + 23px, 54px);

  /* Layout */
  --content-width: 1180px;
  --nav-height:    64px;
}


/* ─── RESET ──────────────────────────────────────────────── */

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-off-white);
  color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.03em;
}

p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
}


/* ─── LAYOUT ─────────────────────────────────────────────── */

.section-navy { background: var(--color-navy); }


.inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;

  &.section-alt {
    background: #fff;
  }
}


/* ─── ICON FONT ──────────────────────────────────────────── */

.fi { line-height: 1; vertical-align: -0.125em; display: flex; }


/* ─── TYPOGRAPHY ─────────────────────────────────────────── */

.eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-slate);
  margin-bottom: 16px;
  display: block;

  &.eyebrow-light {
    color: rgba(255, 255, 255, 0.5);
  }
}

.section-heading {
  font-size: clamp(26px, 1.33vw + 21px, 38px);
  line-height: 1.1;
  color: var(--color-navy);
  margin-bottom: 16px;

  &.section-heading-light {
    color: #fff;
  }
}

.section-sub {
  font-size: clamp(14px, 0.33vw + 12.8px, 17px);
  line-height: 1.65;
  color: var(--color-text-body);
  max-width: 580px;

  &.section-sub-light {
    color: rgba(255, 255, 255, 0.6);
  }
}


/* ─── BUTTONS ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;

  &.btn-lime {
    background: var(--color-lime);
    color: var(--color-navy);
    padding: 14px 28px;
    font-size: var(--font-size-md);
    border: 1.5px solid transparent;

    &:hover { background: var(--color-lime-dark); }
  }

  &.btn-navy {
    background: var(--color-navy);
    color: #fff;
    padding: 12px 22px;
    font-size: var(--font-size-base);
    border: 1.5px solid transparent;

    &:hover { background: var(--color-slate); }
  }

  &.btn-outline-light {
    background: transparent;
    color: #fff;
    padding: 14px 28px;
    font-size: var(--font-size-md);
    border: 1.5px solid rgba(255, 255, 255, 0.28);

    &:hover { border-color: rgba(255, 255, 255, 0.65); }
  }

  &.btn-outline {
    background: transparent;
    color: var(--color-navy);
    padding: 10px 18px;
    font-size: var(--font-size-base);
    border: 1.5px solid var(--color-border);

    &:hover { border-color: var(--color-slate); }
  }
}


/* ─── NAV ────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);

  & .nav-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }

  & .nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  & .nav-links {
    display: flex;
    gap: 28px;
    flex: 1;

    & a {
      font-size: var(--font-size-base);
      font-weight: 500;
      color: var(--color-slate);
      transition: color 0.15s;

      &:hover { color: var(--color-navy); }
    }
  }
}


/* ─── HERO ───────────────────────────────────────────────── */

.hero {
  background: var(--color-navy);
  padding: 96px 0 0;

  & h1 {
    font-size: var(--font-size-hero);
    line-height: 1.05;
    color: #fff;
    margin-bottom: 20px;
  }

  & .hero-sub {
    font-size: var(--font-size-xl);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 36px;
    max-width: 560px;
  }

  & .hero-actions {
    display: flex;
    gap: var(--font-size-sm);
    flex-wrap: wrap;
    align-items: center;
  }

  & .hero-copy { max-width: 700px; }

  & .hero-trust {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.74);
    letter-spacing: 0.04em;
  }

  & .hero-trust-badge {
    display: flex;
    align-items: center;
  }

  & .hero-trust-icon {
    color: var(--color-lime);
    margin-right: 5px;
  }

  & .hero-trust-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
  }

  & .hero-browser {
    margin-top: var(--space-2xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px 14px 0 0;
    padding: 12px 12px 0;
    box-shadow: var(--shadow-hero);

    & .hero-browser-bar {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 6px 8px 14px;
    }

    & .hero-browser-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.2);
    }

    & .hero-browser-url {
      margin-left: 12px;
      font-size: 11px;
      color: rgba(255, 255, 255, 0.3);
    }

    & .hero-browser-viewport {
      border-radius: 8px 8px 0 0;
      overflow: hidden;
      height: 380px;
    }

    & .hero-frame {
      width: 960px;
      height: 560px;
      border: none;
      pointer-events: none;
      display: block;
      transform: scale(1.19);
      transform-origin: top left;
    }
  }
}


/* ─── PROBLEM ────────────────────────────────────────────── */

.prob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: 56px;
}

.prob-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);

  & .prob-icon {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--color-lime-dark);
  }

  & h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--color-navy);
  }

  & p {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text-body);
  }
}


/* ─── HOW IT WORKS ───────────────────────────────────────── */

.step-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
  gap: 0;
}

.step-tab {
  padding: 14px 24px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;

  &.active {
    color: var(--color-navy);
    border-bottom-color: var(--color-lime-dark);
  }
}

.step-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-xl);
  align-items: start;
  transition: opacity 0.22s ease;

  &.is-fading { opacity: 0; }
}

.step-stage {
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: block;
}

.step-heading {
  font-size: var(--font-size-2xl);
  line-height: 1.15;
  color: var(--color-navy);
  margin-bottom: 14px;
}

.step-body {
  font-size: var(--font-size-md);
  line-height: 1.7;
  color: var(--color-text-body);
}

.step-points {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-point {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: var(--font-size-base);
  color: var(--color-text-body);

  &::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-lime-dark);
    flex-shrink: 0;
  }
}

.mockup-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: var(--shadow-card);
}


#step-frame {
  width: 760px;
  height: 480px;
  border: none;
  pointer-events: none;
  display: block;
  object-fit: cover;
  object-position: left top;
}


/* ─── UTILITIES ──────────────────────────────────────────── */

br.d-br { display: none; }
@media (min-width: 769px) { br.d-br { display: inline; } }


/* ─── FEATURES ───────────────────────────────────────────── */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: 56px;
}

.feat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px var(--space-lg);

  & .feat-mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--color-off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 18px;
    color: var(--color-lime-dark);
  }

  & h3 {
    font-size: 17px;
    margin-bottom: 9px;
    color: var(--color-navy);
  }

  & p {
    font-size: var(--font-size-base);
    line-height: 1.65;
    color: var(--color-text-body);
  }
}


/* ─── AUDIENCES ──────────────────────────────────────────── */

.aud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.aud-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;

  & .aud-img {
    height: 160px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      transition: transform 0.4s ease;
    }
  }

  &:hover .aud-img img {
    transform: scale(1.04);
  }

  & .aud-body {
    padding: 24px 26px 28px;
  }

  & h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
  }

  & p {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
  }
}


/* ─── PAYMENTS ───────────────────────────────────────────── */

.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  margin-top: 56px;
}

.pay-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pay-item {
  display: flex;
  gap: 16px;

  & .pay-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    color: var(--color-lime-dark);
  }

  & h4 {
    font-size: var(--font-size-md);
    margin-bottom: 4px;
    color: var(--color-navy);
  }

  & p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--color-text-body);
  }
}

.pay-visual {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.invoice-header {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;

  & .invoice-eyebrow {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
  }

  & .invoice-title {
    font-size: 18px;
    font-weight: 600;
  }

  & .invoice-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
  }
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13.5px;

  & .invoice-muted { color: var(--color-text-muted); }

  &:last-child {
    border-bottom: none;
    border-top: 2px solid var(--color-border);
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--color-navy);
  }
}

.invoice-badge {
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: #DCFCE7;
  color: #15803D;
}


/* ─── INTEGRATIONS ───────────────────────────────────────── */

.int-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: var(--space-xl);
}

.int-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: var(--color-navy);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px 12px 20px;

  & .int-logo {
    width: 85px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
  }

  & .int-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #fff;
  }

  & .int-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 1px;
  }
}


/* ─── SECURITY ───────────────────────────────────────────── */

.sec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: 56px;
}

.sec-item {
  display: flex;
  gap: 14px;

  & .sec-tick {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: var(--color-lime-dark);
  }

  & h4 {
    font-size: var(--font-size-md);
    margin-bottom: 5px;
    color: var(--color-navy);
  }

  & p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--color-text-body);
  }
}


/* ─── WHITE-LABEL ────────────────────────────────────────── */

.wl-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.wl-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 36px;
}

.wl-item {
  display: flex;
  gap: 16px;
  align-items: start;

  & .wl-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-lime);
    color: var(--color-navy);
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
  }

  & h4 {
    font-size: var(--font-size-md);
    color: #fff;
    margin-bottom: 4px;
  }

  & p {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
  }
}

.wl-preview {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;

  & .wl-preview-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  & .wl-logo-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px 20px;
  }

  & .wl-logo-card-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
  }

  & .wl-logo-frame {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 12px;
  }

  & .wl-preview-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
  }
}

.wl-swatch {
  display: flex;
  gap: var(--space-xs);
  align-items: center;

  & .wl-swatch-dot {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  & .wl-swatch-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
  }
}


/* ─── CONTACT FORM ───────────────────────────────────────── */

#contact {
  & .inner { text-align: center; }
  & .eyebrow { display: block; }
  & .section-sub { margin: 16px auto 0; }
}

.form-wrap {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 680px;
  margin: 56px auto 0;
  text-align: left;
}

.field-submit { text-align: left; }

.form-wrap .btn-lime {
  font-size: 15px;
  padding: 14px 32px;
}

#form-success {
  display: none;
  padding: 48px 0;
  text-align: center;

  & .form-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--color-lime);
  }

  & .form-success-title {
    font-size: 22px;
    color: var(--color-navy);
    margin-bottom: 8px;
  }

  & .form-success-body {
    font-size: 15px;
    color: var(--color-text-body);
  }
}

#form-error {
  display: none;
  padding: 16px;
  text-align: center;
  color: #DC2626;
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;

  &.field-full {
    grid-column: 1 / -1;
  }

  & label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-navy);
  }

  & input,
  & textarea,
  & select {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-family: inherit;
    font-size: var(--font-size-base);
    color: var(--color-navy);
    background: #fff;
    outline: none;
    transition: border-color 0.15s;

    &:focus {
      border-color: var(--color-slate);
    }
  }

  & .field-error {
    font-size: 12px;
    color: #DC2626;
    min-height: 0;
    display: none;
  }

  &.is-invalid {
    & input, & textarea, & select {
      border-color: #DC2626;
      &:focus { border-color: #DC2626; }
    }
    & .field-error { display: block; }
  }

  & textarea {
    resize: vertical;
    min-height: 100px;
  }
}


/* ─── OFF-CANVAS NAV ─────────────────────────────────────── */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-left: auto;

  & span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-navy);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
    transform-origin: center;
  }

  &.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  &.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  &.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.offcanvas-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100dvh;
  background: var(--color-navy);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.3s;
}

.offcanvas.is-open {
  transform: translateX(0);
  visibility: visible;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-sm);
}

.offcanvas-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s;

  &:hover { background: rgba(255, 255, 255, 0.14); }
}

.offcanvas-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;

  & a {
    display: block;
    padding: 13px var(--space-sm);
    font-size: var(--font-size-md);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;

    &:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.06);
    }
  }
}

.offcanvas-footer {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);

  & .btn {
    width: 100%;
    justify-content: center;

    &:first-child { margin-bottom: 10px; }
  }
}


/* ─── FOOTER ─────────────────────────────────────────────── */

.footer {
  background: var(--color-navy);
  padding: var(--space-xl) 0;

  & .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }

  & .footer-copy {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.35);
  }

  & .footer-links {
    display: flex;
    gap: 24px;

    & a {
      font-size: 12.5px;
      color: rgba(255, 255, 255, 0.4);
      transition: color 0.15s;

      &:hover { color: rgba(255, 255, 255, 0.8); }
    }
  }
}


/* ─── RESPONSIVE ─────────────────────────────────────────── */

/* ── Tablet (≤960px) ── */
@media (max-width: 960px) {
  .pay-grid,
  .wl-inner {
    grid-template-columns: 1fr;
  }

  .pay-visual { display: none; }

  .hero {
    padding-bottom: var(--space-2xl);

    & .hero-browser { overflow: hidden; }
  }

  .prob-grid,
  .step-layout {
    grid-template-columns: 1fr;
  }

  .mockup-wrap { margin-top: var(--space-md); }

  .form-grid { grid-template-columns: 1fr; }
}

/* ── Mobile (≤640px) ── */
@media (max-width: 640px) {
  /* Reduce all section padding */
  .section { padding: 56px 0; }

  /* Tighten inner horizontal padding */
  .inner { padding: 0 var(--space-md); }

  /* Nav: hide links + desktop CTA + login, show hamburger */
  .nav .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-login { display: none; }
  .nav-toggle { display: flex; }

  .nav .nav-inner { gap: var(--space-md); }

  /* Hero */
  .hero {
    padding: 56px 0 var(--space-2xl);

    & .hero-actions { flex-direction: column; align-items: flex-start; }

    /* Scale down the calendar iframe to fit mobile width */
    & .hero-browser-bar { display: none; }
    & .hero-browser-viewport { height: 196px !important; }
    & .hero-frame { transform: scale(0.35) !important; transform-origin: top left !important; }
  }

  /* Step mockup: fill container naturally on mobile */
  .mockup-wrap { height: auto; }
  #step-frame {
    width: 100%;
    height: auto;
    transform: none;
    object-fit: initial;
    object-position: initial;
  }

  /* Step tabs — horizontally scrollable */
  .step-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    &::-webkit-scrollbar { display: none; }
  }

  /* Audiences grid — single column */
  .aud-grid { grid-template-columns: 1fr; }

  /* Integration chips — 2-column grid on mobile */
  .int-grid { grid-template-columns: repeat(2, 1fr); }

  /* Security grid — single column */
  .sec-grid { grid-template-columns: 1fr; }

  /* White-label gap */
  .wl-inner { gap: var(--space-2xl); }

  /* Contact form */
  .form-wrap { padding: var(--space-lg); }

  /* Footer — stack vertically */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

/* ─── LEGAL PAGES ─────────────────────────────────────── */

.legal-hero {
  background: var(--color-navy);
  padding: var(--space-3xl) 0 var(--space-2xl);

  & .eyebrow {
    display: inline-block;
    margin-bottom: 12px;
  }

  & h1 {
    color: #fff;
    font-size: clamp(28px, 5vw, 44px);
    margin: 0 0 12px;
  }
}

.legal-hero-meta {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.legal-prose {
  max-width: 740px;
  padding: var(--space-2xl) 0 var(--space-3xl);

  & p,
  & li,
  & address {
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-text-body);
  }

  & address {
    font-style: normal;
    margin-top: 8px;
  }

  & h2 {
    font-size: 20px;
    color: var(--color-navy);
    margin: var(--space-xl) 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
  }

  & h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-navy);
    margin: var(--space-md) 0 6px;
  }

  & ul {
    padding-left: 20px;
    margin: 8px 0 16px;

    & li { margin-bottom: 6px; }
  }

  & a {
    color: var(--color-lime-dark);
    text-decoration: underline;
    text-underline-offset: 2px;

    &:hover { color: var(--color-navy); }
  }

  & table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 12px 0 20px;
    overflow-x: auto;
    display: block;

    & th {
      background: var(--color-navy);
      color: #fff;
      font-weight: 600;
      padding: 10px 14px;
      text-align: left;
    }

    & td {
      padding: 9px 14px;
      border-bottom: 1px solid var(--color-border);
      vertical-align: top;
    }

    & tr:last-child td { border-bottom: none; }
    & tr:nth-child(even) td { background: var(--color-surface); }
  }
}
