/* ============================================================
   BEZE DESIGN SYSTEM
   Shared styles for all landing pages
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Keep skip-link target, anchor jumps, and sequential focus clear of the
     sticky header (WCAG 2.2 SC 2.4.11 Focus Not Obscured). */
  scroll-padding-top: calc(var(--header-height) + 16px);
  /* Frame colour visible beyond the 1280px page cap. */
  background: var(--bg-warm);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Cap the whole site at 1280px so the design we tuned holds at every
     desktop viewport — beyond 1280 the warm html background shows on
     either side as a deliberate frame. Mobile/tablet (<=1280) is
     unaffected since max-width only enforces above the cap. */
  max-width: 1280px;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-purple-text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-purple-dark); }
ul, ol { list-style: none; }

/* Underline links inside prose so they aren't distinguished by colour alone
   (SC 1.4.1). Buttons/nav/cards live outside <p>/<li> so are unaffected. */
main p a:not(.btn),
main li a:not(.btn),
.legal-content a,
.accordion-body-inner a,
.email-modal__fields a { text-decoration: underline; }

/* Visible focus rings for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--brand-purple-text);
  outline-offset: 2px;
}

/* Lift the focus ring to white on dark/purple surfaces so it stays visible. */
.hero *:focus-visible,
.cta-band *:focus-visible,
.site-footer *:focus-visible,
.section--dark *:focus-visible {
  outline-color: #ffffff;
}

/* Skip link — first focusable element, visible only when focused (SC 2.4.1). */
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -64px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--brand-purple-text);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: top 0.2s;
}
.skip-link:focus {
  top: var(--space-md);
  color: #ffffff;
}

/* Respect users who prefer reduced 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;
    scroll-behavior: auto !important;
  }
}

/* --- Design Tokens --- */
:root {
  /* Brand */
  --brand-purple: #8b5cf6;
  /* Accessible interactive purple for text/buttons/links on light surfaces.
     Same hue Beze already uses for the gradient start + shadows (#7c3aed):
     >=4.5:1 on white, warm, and the lavender washes. Keep --brand-purple for
     decorative icon fills only. */
  --brand-purple-text: #7c3aed;
  --brand-purple-dark: #4c1d95;
  --brand-purple-light: #ede9fe;
  --brand-purple-50: #f5f3ff;
  --brand-gradient: linear-gradient(135deg, #7c3aed 0%, #3b0764 100%);

  /* Text */
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a68;
  --text-muted: #6b6b88;
  --text-on-dark: #ffffff;
  --text-on-purple: #ffffff;

  /* Backgrounds */
  --bg-white: #ffffff;
  --bg-warm: #fafaf8;
  --bg-purple-wash: #f5f3ff;
  --bg-dark: #1a1a2e;
  --bg-dark-lighter: #24243e;

  /* Borders & Surfaces */
  --border: #e5e5ec;
  --border-light: #f0f0f5;
  --surface-card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-card-hover: 0 8px 24px rgba(124,58,237,0.1);

  /* Status */
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1140px;
  --header-height: 72px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 3rem; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; line-height: 1.7; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.section--warm { background: var(--bg-warm); }
.section--purple { background: var(--bg-purple-wash); }
.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--text-on-dark); }
.section--dark p { color: rgba(255,255,255,0.85); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section-header p {
  margin-top: var(--space-md);
  font-size: 1.125rem;
}

/* --- Grid --- */
.grid { display: grid; gap: var(--space-lg); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  height: var(--header-height);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.header-logo svg {
  width: 36px;
  height: 36px;
}

.header-nav {
  display: none;
  align-items: center;
  gap: var(--space-xl);
}

.header-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  padding: 8px 0;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--brand-purple-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-menu-btn svg { width: 24px; height: 24px; }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  background-color: var(--bg-white);
  padding: var(--space-lg);
  z-index: 99;
  flex-direction: column;
  gap: var(--space-sm);
  overflow-y: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  display: block;
  padding: var(--space-md) 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav a:hover { color: var(--brand-purple-text); }

@media (min-width: 900px) {
  .header-nav { display: flex; }
  .mobile-menu-btn { display: none; }
}

/* Below the nav breakpoint the hamburger menu carries the Login link, so the
   header collapses to logo + Get Beze + menu. Prevents the header-actions row
   overflowing narrow (320px) viewports — SC 1.4.10 Reflow. */
@media (max-width: 899px) {
  .header-login-link { display: none; }
  .header-inner { padding-left: var(--space-md); padding-right: var(--space-md); }
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  max-width: 400px;
}

.footer-brand .header-logo {
  color: var(--text-on-dark);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--text-on-dark);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-links a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand-purple-text);
  color: var(--text-on-purple);
  border-color: var(--brand-purple-text);
}
.btn--primary:hover {
  background: var(--brand-purple-dark);
  border-color: var(--brand-purple-dark);
  color: var(--text-on-purple);
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--brand-purple-text);
  border-color: var(--brand-purple-text);
}
.btn--secondary:hover {
  background: var(--brand-purple-text);
  color: var(--text-on-purple);
}

.btn--ghost {
  background: transparent;
  color: var(--brand-purple-text);
  border-color: transparent;
  padding: 12px 16px;
}
.btn--ghost:hover { background: var(--brand-purple-light); }

.btn--ghost-light {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.3);
  padding: 12px 16px;
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.1); color: #ffffff; }

.btn--white {
  background: #ffffff;
  color: var(--brand-purple-text);
  border-color: #ffffff;
}
.btn--white:hover {
  background: var(--brand-purple-light);
  border-color: var(--brand-purple-light);
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* --- Header Login Link --- */
.header-login-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.header-login-link:hover {
  color: var(--brand-purple-text);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
}

/* --- Cards --- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
}

.card--flat {
  border: none;
  background: var(--bg-warm);
}

.card--purple {
  background: var(--bg-purple-wash);
  border-color: rgba(124,58,237,0.1);
}

.card--dark {
  background: var(--bg-dark-lighter);
  border-color: rgba(255,255,255,0.08);
}
.card--dark h3, .card--dark h4 { color: var(--text-on-dark); }
.card--dark p { color: rgba(255,255,255,0.7); }

.card--choice {
  text-decoration: none;
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}
.card--choice .card-icon { margin: 0 auto var(--space-lg); }
.card--choice h2 { font-size: 1.5rem; margin-bottom: var(--space-sm); }
.card--choice .btn { display: inline-flex; }

/* Check-bulleted feature list — green tick + secondary-text item */
.list-check {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}
.list-check li {
  padding: 6px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.list-check li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

/* Feature row — centered, larger-gap two-column grid for alternating
   text/media product sections. --reversed flips the visual order so
   media appears on the left while keeping reading order intact. */
.grid--feature {
  align-items: center;
  gap: var(--space-2xl);
}
.grid--feature--reversed > :first-child { order: 2; }
.grid--feature--reversed > :last-child { order: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--brand-purple-light);
  color: var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: var(--space-sm); }
.card p { font-size: 0.9375rem; }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--brand-purple-light);
  color: var(--brand-purple-text);
}

.badge--dark {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
}

.badge--success {
  background: #dcfce7;
  /* Darker shade of the brand success green so 13px badge text clears
     4.5:1 on the pale-green chip (var(--success) #16a34a is only 3.0:1).
     Decorative check-icons keep #16a34a. */
  color: #15803d;
}

/* --- Hero --- */
.hero {
  padding: var(--space-3xl) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.hero--gradient {
  background: var(--brand-gradient);
  color: var(--text-on-dark);
}
.hero--gradient h1 { color: var(--text-on-dark); }
.hero--gradient p { color: rgba(255,255,255,0.85); }

.hero--light {
  background: var(--bg-purple-wash);
}

.hero--subtle {
  background: var(--bg-warm);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-content h1 { margin-bottom: var(--space-lg); }

.hero-content p {
  font-size: 1.1875rem;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.hero-media {
  display: flex;
  justify-content: center;
}

@media (min-width: 860px) {
  .hero { padding: var(--space-4xl) 0; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Trust Strip --- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  padding: var(--space-xl) 0;
  justify-content: center;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust-strip--dark {
  border-color: rgba(255,255,255,0.1);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

.trust-strip--dark .trust-item {
  color: rgba(255,255,255,0.85);
}

/* --- Steps --- */
.step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--brand-purple-text);
  color: var(--text-on-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step-content h3 { margin-bottom: var(--space-xs); }

/* --- Placeholder Image --- */
.placeholder-img {
  background: linear-gradient(135deg, var(--brand-purple-light) 0%, #ddd6fe 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-purple-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: var(--space-lg);
  aspect-ratio: 16 / 10;
  max-width: 100%;
}

.placeholder-img--phone {
  aspect-ratio: 9 / 16;
  max-width: 280px;
  border-radius: var(--radius-xl);
  border: 3px solid rgba(124,58,237,0.2);
}

.placeholder-img--avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  aspect-ratio: 1;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0;
}

.placeholder-img--avatar-sm {
  width: 48px;
  height: 48px;
  min-width: 48px;
}

/* --- Real feature screenshot (replaces placeholder-img for produced images) --- */
.feature-screenshot {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #0d0a1f;
}

/* Centers a phone mockup inside a feature-row column with a soft purple
   wash behind it so the dark phone reads cleanly on the warm section bg. */
.feature-phone-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: var(--space-md) 0;
}

.feature-phone-stage::before {
  content: "";
  position: absolute;
  inset: 5% 10%;
  background: radial-gradient(closest-side, var(--brand-purple-light) 0%, transparent 75%);
  z-index: 0;
  pointer-events: none;
}

.feature-phone-stage .phone-mock { z-index: 1; width: 240px; }

@media (min-width: 860px) {
  .feature-phone-stage .phone-mock { width: 280px; }
}

@media (min-width: 1100px) {
  .feature-phone-stage .phone-mock { width: 300px; }
}

/* Desktop screenshot with a phone overlapping its lower-right corner —
   used in 'What you get in the employer dashboard' to communicate
   cross-device access for each feature. */
.feature-composite {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.feature-composite__desktop {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0d0a1f;
}

.feature-composite__desktop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.feature-composite__phone {
  position: absolute;
  bottom: -14%;
  right: -3%;
  width: 24%;
  z-index: 2;
  filter: drop-shadow(0 14px 36px rgba(15, 8, 40, 0.5));
}

/* Beat the unconditional .phone-mock width rules with a nested selector. */
.feature-composite__phone .phone-mock {
  width: 100%;
  z-index: 1;
}

/* The phone-mock frame uses pixel-fixed border-radius (44px) and padding
   (10px) that look correct at hero scale (~280px wide) but become
   pill-shaped when the phone shrinks to ~140px inside a composite tile.
   Scale those down here so the smaller phone still reads as a proper
   phone, not a chunky pill. */
.feature-composite__phone .phone-mock__frame {
  border-radius: 22px;
  padding: 5px;
}

.feature-composite__phone .phone-mock__screen {
  border-radius: 18px;
}

@media (max-width: 859px) {
  .feature-composite__phone {
    width: 28%;
    bottom: -10%;
    right: -2%;
  }
}

@media (max-width: 480px) {
  .feature-composite__phone {
    width: 32%;
    bottom: -8%;
    right: 0;
  }
}

/* --- CTA Band --- */
.cta-band {
  background: var(--brand-gradient);
  padding: var(--space-3xl) 0;
  text-align: center;
  color: var(--text-on-dark);
}

.cta-band h2 { color: var(--text-on-dark); margin-bottom: var(--space-md); }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: var(--space-xl); max-width: 520px; margin-left: auto; margin-right: auto; }

/* --- FAQ / Accordion --- */
.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: var(--space-md);
}

.accordion-trigger:hover { color: var(--brand-purple-text); }

.accordion-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  transition: transform 0.3s;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-body-inner {
  padding: 0 0 var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-warm);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
}

.comparison-highlight {
  background: var(--bg-purple-wash);
  font-weight: 600;
  color: var(--brand-purple-text);
}

.check-icon { color: #15803d; }
.cross-icon { color: var(--error); }

/* --- Legal Pages --- */
.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.legal-sidebar {
  display: none;
}

.legal-sidebar-inner {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.legal-sidebar a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  transition: all 0.2s;
}

.legal-sidebar a:hover,
.legal-sidebar a.active {
  color: var(--brand-purple-text);
  border-left-color: var(--brand-purple-text);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.legal-content li {
  margin-bottom: var(--space-sm);
}

@media (min-width: 860px) {
  .legal-layout {
    grid-template-columns: 220px 1fr;
  }
  .legal-sidebar { display: block; }
}

/* --- Team Grid --- */
.team-member {
  text-align: center;
}

.team-member .placeholder-img--avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-md);
  font-size: 1.5rem;
}

.team-member h3 { font-size: 1.125rem; margin-bottom: 2px; }
.team-member .role { font-size: 0.875rem; color: var(--text-muted); margin-bottom: var(--space-sm); }
.team-member p { font-size: 0.875rem; }

/* --- News --- */
.news-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-xl);
}

.news-card:last-child { border-bottom: none; }

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.news-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.news-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--brand-purple-light);
  color: var(--brand-purple-text);
}

.news-card h3 { margin-bottom: var(--space-sm); }

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.container--narrow { max-width: 720px; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* --- Responsive --- */
@media (max-width: 859px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .section { padding: var(--space-3xl) 0; }
  .hero { padding: var(--space-2xl) 0 var(--space-3xl); }
  .section-header { margin-bottom: var(--space-2xl); }
}

@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .container { padding: 0 var(--space-md); }
  .btn--lg { padding: 14px 28px; font-size: 1rem; }
}

/* --- Email compose modal (desktop fallback for mailto: links) --- */
.email-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.email-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.email-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 2 * var(--space-lg));
  overflow-y: auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2xl);
}

.email-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.email-modal__close:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.email-modal__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  padding-right: var(--space-xl);
}

.email-modal__lede {
  margin-bottom: var(--space-lg);
}

.email-modal__options {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.email-modal__options .btn {
  width: 100%;
}

.email-modal__preview {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-md);
}

.email-modal__preview summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-purple-text);
  padding: var(--space-xs) 0;
  list-style: none;
}
.email-modal__preview summary::-webkit-details-marker { display: none; }
.email-modal__preview summary::before {
  content: '›';
  display: inline-block;
  margin-right: var(--space-sm);
  transition: transform 0.2s;
}
.email-modal__preview[open] summary::before { transform: rotate(90deg); }

.email-modal__fields {
  margin-top: var(--space-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xs) var(--space-md);
  font-size: 0.9375rem;
}
.email-modal__fields dt {
  color: var(--text-muted);
  font-weight: 600;
}
.email-modal__fields dd {
  color: var(--text-primary);
  word-break: break-word;
}

.email-modal__body {
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  white-space: pre-wrap;
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-top: var(--space-xs);
  max-height: 200px;
  overflow-y: auto;
}

.email-modal__copy-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.email-modal__copied {
  font-size: 0.875rem;
  color: var(--success);
  font-weight: 600;
}

@media (max-width: 480px) {
  .email-modal__dialog { padding: var(--space-xl); }
  .email-modal__title { font-size: 1.25rem; }
}

/* ============================================================
   For-Employers hero — photo background with feathered fade,
   phone mockup, and floating reassurance card.
   ============================================================ */

.hero--employer {
  position: relative;
  overflow: hidden;
}

.hero--employer .container { position: relative; z-index: 2; }

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg__layer {
  position: absolute;
  inset: 0;
  background-image: url('/brand/Website-Employer-hero.webp');
  background-repeat: no-repeat;
}

/* Blur layer: covers full hero (cover-sized) so it can bleed leftward into the purple. */
.hero-bg__layer--blur {
  background-size: cover;
  background-position: 65% center;
  filter: blur(44px);
  transform: scale(1.15);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 22%, transparent 36%);
          mask-image: linear-gradient(to right, black 0%, black 22%, transparent 36%);
}

/* Sharp layer: image preserves aspect, pushed past the right edge by ~65px
   (~5% of a typical desktop viewport) so the left model sits well clear of
   the hero text instead of being clipped by the purple wash. */
.hero-bg__layer--sharp {
  background-size: auto 100%;
  background-position: calc(100% + 35px) center;
  -webkit-mask-image: linear-gradient(to right, transparent 22%, black 36%);
          mask-image: linear-gradient(to right, transparent 22%, black 36%);
}

/* Purple wash: solid on the text zone, fully gone well before the left model's face. */
.hero-bg__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #3b0764 0%,
    #4c1d95 22%,
    rgba(76, 29, 149, 0.85) 30%,
    rgba(76, 29, 149, 0.25) 36%,
    rgba(76, 29, 149, 0) 42%
  );
}

/* Bottom-right anchor so the phone sits in the lower portion of the hero
   — well below the right model's face. */
.hero--employer .hero-media {
  position: relative;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 560px;
}

/* --- Phone mockup --- */
.phone-mock {
  --phone-purple: #6d28d9;
  --phone-purple-deep: #4c1d95;
  --phone-surface: rgba(255, 255, 255, 0.12);
  --phone-surface-strong: rgba(255, 255, 255, 0.18);
  position: relative;
  width: 230px;
  max-width: 100%;
  z-index: 1;
}

.phone-mock__frame {
  position: relative;
  background: #0b0b14;
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.phone-mock__screen {
  position: relative;
  border-radius: 36px;
  background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%);
  color: #fff;
  padding: 14px 16px 14px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Variant: phone displays a full screenshot inside the screen area
   instead of the synthetic status-bar + tiles. Used in the features
   section to wrap real app captures in a phone frame. */
.phone-mock--screen-img .phone-mock__screen {
  background: #0d0a1f;
  padding: 0;
  gap: 0;
}

.phone-mock--screen-img .phone-mock__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-mock__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 14px 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.phone-mock__time { letter-spacing: -0.01em; }

.phone-mock__sysicons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
}

.phone-mock__sysicons svg { height: 11px; width: auto; }

.phone-mock__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding: 0 2px;
}

.phone-mock__greeting {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.phone-mock__bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
}

.phone-mock__bell svg { width: 18px; height: 18px; }

.phone-mock__balance {
  padding: 4px 2px 0;
}

.phone-mock__balance-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  margin: 0;
}

.phone-mock__balance-amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2px 0 4px;
  color: #fff;
  line-height: 1.1;
}

.phone-mock__balance-updated {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 12px;
}

.phone-mock__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--phone-purple);
  font-weight: 600;
  font-size: 13px;
  border: none;
  border-radius: 999px;
  padding: 9px 22px;
  cursor: default;
}

.phone-mock__tile {
  margin-top: 4px;
  background: var(--phone-surface);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.phone-mock__tile-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 2px;
}

.phone-mock__tile-value {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: -0.01em;
}

.phone-mock__tile-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.phone-mock__tile-icon svg { width: 16px; height: 16px; }

.phone-mock__earnings {
  background: var(--phone-surface);
  border-radius: 14px;
  padding: 12px 14px;
}

.phone-mock__earnings-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 2px;
}

.phone-mock__earnings-amount {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: -0.01em;
}

.phone-mock__progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.phone-mock__progress-fill {
  height: 100%;
  width: 65%;
  background: #fff;
  border-radius: 999px;
}

.phone-mock__earnings-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  margin: 6px 0 0;
}

.phone-mock__nav {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 8px;
  color: rgba(255, 255, 255, 0.65);
}

.phone-mock__nav svg { width: 18px; height: 18px; }
.phone-mock__nav svg:first-child { color: #fff; }

/* --- Floating reassurance card ---
   Sits at the lower-left of the phone, overhanging into the right model's
   jacket area (well below his face). */
.float-card {
  position: absolute;
  bottom: 6%;
  left: -90px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(15, 8, 40, 0.45);
  width: 200px;
  max-width: 60vw;
  z-index: 3;
}

.float-card__icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: var(--brand-purple-light);
  color: var(--brand-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.float-card__icon svg { width: 18px; height: 18px; }

.float-card__body { flex: 1; min-width: 0; }

.float-card .float-card__title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--text-primary);
}

.float-card .float-card__text {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Wider breakpoints --- */
@media (min-width: 860px) {
  .hero--employer .hero-media { min-height: 640px; }
  .phone-mock { width: 250px; }
  .float-card { left: -110px; bottom: 8%; }
}

@media (min-width: 1100px) {
  .phone-mock { width: 270px; }
  .float-card { left: -130px; }
}

/* --- Mobile/tablet: hide hero photo, phone, and floating card.
   Hero falls back to text-only on the brand purple gradient. --- */
@media (max-width: 859px) {
  .hero--employer .hero-bg,
  .hero--employer .hero-media { display: none; }
}

/* ============================================================
   Landing hero (index.html) — same photo+phone+card pattern as employer,
   but desktop-only: the original .placeholder-img--phone stays in the DOM
   and remains visible at <=859px so mobile behaviour is unchanged.
   ============================================================ */

.hero--landing {
  position: relative;
  overflow: hidden;
}

.hero--landing .container { position: relative; z-index: 2; }

/* Swap in the landing photo */
.hero--landing .hero-bg__layer {
  background-image: url('/brand/Website-landing-hero.webp');
}

/* Landing image has one subject left-of-centre; push the sharp copy past
   the right edge (calc(100% + Npx)) so her face/body sit well clear of
   the hero text. The blurred copy fills the full hero so it can dissolve
   leftward into the purple. */
.hero--landing .hero-bg__layer--blur {
  background-size: cover;
  background-position: 50% center;
}

.hero--landing .hero-bg__layer--sharp {
  background-size: auto 100%;
  background-position: calc(100% + 220px) center;
}

/* Wash extends slightly further than the employer page to cover the
   bleed-through of her jacket into the text zone. */
.hero--landing .hero-bg__fade {
  background: linear-gradient(
    to right,
    #3b0764 0%,
    #4c1d95 26%,
    rgba(76, 29, 149, 0.9) 36%,
    rgba(76, 29, 149, 0.5) 44%,
    rgba(76, 29, 149, 0) 54%
  );
}

/* Mobile/tablet: hide the photo + the now-empty hero-media so the hero
   collapses tight against the next section (no dead purple gap). */
@media (max-width: 859px) {
  .hero--landing .hero-bg,
  .hero--landing .hero-media { display: none; }
}

/* Desktop: position the photo+phone+card stack at the bottom-right. */
@media (min-width: 860px) {
  .hero--landing .hero-media {
    position: relative;
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 640px;
  }
}

/* ============================================================
   For Employees hero — photo + phone + floating card, same pattern as
   For Employers and Landing. Photo composition matches the landing
   hero (single subject left-of-centre), so we use the same right-edge
   push to keep the subject clear of the hero text.
   ============================================================ */
.hero--employee {
  position: relative;
  overflow: hidden;
}

.hero--employee .container { position: relative; z-index: 2; }

.hero--employee .hero-bg__layer {
  background-image: url('/brand/Website-employee-hero.webp');
}

.hero--employee .hero-bg__layer--blur {
  background-size: cover;
  background-position: 55% center;
}

.hero--employee .hero-bg__layer--sharp {
  background-size: auto 100%;
  background-position: calc(100% + 220px) center;
}

.hero--employee .hero-bg__fade {
  background: linear-gradient(
    to right,
    #3b0764 0%,
    #4c1d95 26%,
    rgba(76, 29, 149, 0.9) 36%,
    rgba(76, 29, 149, 0.5) 44%,
    rgba(76, 29, 149, 0) 54%
  );
}

@media (max-width: 859px) {
  .hero--employee .hero-bg,
  .hero--employee .hero-media { display: none; }
}

@media (min-width: 860px) {
  .hero--employee .hero-media {
    position: relative;
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 640px;
  }
}

/* ============================================================
   About hero — photo background with feathered fade. Two-subject
   composition (daughter + father on the couch), faces around image
   x=35% and 60% — same pattern as For Employers, so small right-shift.
   Desktop-only; mobile falls back to text-only on the purple gradient.
   ============================================================ */
.hero--about {
  position: relative;
  overflow: hidden;
}

.hero--about .container { position: relative; z-index: 2; }

.hero--about .hero-bg__layer {
  background-image: url('/brand/Website-About-hero.webp');
}

.hero--about .hero-bg__layer--blur {
  background-size: cover;
  background-position: 60% center;
  -webkit-mask-image: linear-gradient(to right, black 0%, black 30%, transparent 60%);
          mask-image: linear-gradient(to right, black 0%, black 30%, transparent 60%);
}

.hero--about .hero-bg__layer--sharp {
  background-size: auto 100%;
  background-position: calc(100% + 35px) center;
  -webkit-mask-image: linear-gradient(to right, transparent 35%, black 65%);
          mask-image: linear-gradient(to right, transparent 35%, black 65%);
}

.hero--about .hero-bg__fade {
  background: linear-gradient(
    to right,
    #3b0764 0%,
    #4c1d95 32%,
    rgba(76, 29, 149, 0.85) 44%,
    rgba(76, 29, 149, 0.5) 56%,
    rgba(76, 29, 149, 0.2) 68%,
    rgba(76, 29, 149, 0) 78%
  );
}

@media (max-width: 859px) {
  .hero--about .hero-bg { display: none; }
}

/* --- Footer socials row (LinkedIn, Instagram, NZ flag) --- */
.footer-socials {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-socials__link {
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s, color 0.2s;
}

.footer-socials__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.footer-socials__link svg {
  width: 18px;
  height: 18px;
}

/* Copyright row in the footer bottom — text on the left, NZ flag on the right. */
.footer-bottom__copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-bottom__flag {
  width: 32px;
  height: auto;
  display: block;
  border-radius: 2px;
  flex-shrink: 0;
}

/* --- Highlighted placeholders awaiting real values (FSP number, DRS name) --- */
mark {
  background: #fff59d;
  color: #1a1a2e;
  padding: 0 4px;
  border-radius: 2px;
  font-weight: 600;
}
