/* ==========================================================================
   Q-BUILD Landing — styles.css
   Design tokens from Figma: Q-BUILD V2 / One Page
   Breakpoints: mobile (<=480), tablet (481-1023), desktop (>=1024), wide (>=1640)
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Brand */
  --orange: #E07B39;
  --orange-light: #FEF1E6;
  --orange-deep: #B46E09;
  --orange-shadow: rgba(224, 123, 57, 0.28);

  /* Neutrals */
  --bg: #F9F9F9;
  --surface: #FFFFFF;
  --border: #E6E6E6;
  --text: #1A1A1A;
  --text-2: #666666;
  --text-3: #999999;

  /* Semantic */
  --red: #BE3232;
  --amber: #B46E09;
  --green: #22A043;
  --blue: #2E6CE3;
  --red-bg: #FEE6E6;
  --amber-bg: #FFF3C4;
  --green-bg: #E5F8EA;
  --blue-bg: #E0EAFF;

  /* Type */
  --ff: 'Rubik', 'Noto Sans Hebrew', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1280px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-elev: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-cta: 0 8px 20px var(--orange-shadow);

  --header-h: 72px;
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.5px; }
.section-header .section-sub { max-width: 720px; margin: 16px auto 0; color: var(--text-2); font-size: 18px; line-height: 1.6; }

.eyebrow {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  font-weight: 500;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow--plain { background: transparent; color: var(--orange); padding-inline: 0; }

.text-orange { color: var(--orange); }

/* --- CTA buttons -------------------------------------------------------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.cta-btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.cta-btn--primary:hover { background: #cf6e2d; transform: translateY(-1px); }
.cta-btn--primary:active { transform: translateY(0); }
.cta-btn--lg { font-size: 16px; padding: 16px 28px; border-radius: 10px; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(6px);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-cta { padding: 10px 20px; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav-links a:hover { color: var(--orange); border-color: var(--orange); }

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1;
}
.logo-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--text);
}
.logo-q { color: var(--orange); }
.logo-tagline {
  font-weight: 400;
  font-size: 10px;
  color: var(--text);
  margin-top: 4px;
}
.logo-helmet { width: 36px; height: 36px; }
.logo-full { height: 52px; width: auto; display: block; }
.logo-mobile { height: 36px; width: auto; display: none; }
.logo--footer .logo-title { color: #fff; }
.logo--footer .logo-tagline { color: rgba(255, 255, 255, 0.75); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav — fixed overlay drawer from right (RTL) */
.mobile-nav {
  position: fixed;
  top: 0;
  /* In RTL, position: fixed; right: 0 places the element's left edge at viewport right edge.
     We use left positioning with calc so translateX works correctly. */
  left: 100vw;
  height: 100vh;
  width: min(320px, 92vw);
  background: #fff;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px 32px;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  transform: translateX(0);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1), visibility 0.28s;
  overflow-y: auto;
}
.mobile-nav.is-open {
  transform: translateX(-100%);
  visibility: visible;
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-nav-brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.mobile-nav-close {
  font-size: 20px;
  padding: 8px;
  margin-bottom: 12px;
  color: var(--text-2);
  border-radius: 8px;
}
.mobile-nav-close:hover { background: var(--bg); }
.mobile-nav a {
  padding: 14px 8px;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-header .logo { border-bottom: none; padding: 0; }
.mobile-nav .cta-btn { margin-top: 16px; }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.mobile-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Hero --------------------------------------------------------------- */
.hero { padding: 96px 0; background: #fff; }
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.hero-content { flex: 1 1 480px; max-width: 560px; text-align: right; }
.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 16px 0 16px;
}
.hero-sub {
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 8px;
}
.cta-note {
  color: var(--text-3);
  font-size: 13px;
}
.cta-note--light { color: rgba(255, 255, 255, 0.85); }

/* Hero visual — devices image */
.hero-visual { flex: 1 1 520px; max-width: 660px; display: flex; align-items: center; justify-content: center; }
.hero-devices-img { width: 100%; height: auto; display: block; }
.mock-window {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elev);
  overflow: hidden;
  font-size: 11px;
  line-height: 1.25;
  direction: rtl;
}
.mock-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.mock-brand {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.mock-brand-dot { line-height: 1; }
.mock-title { font-weight: 600; color: var(--text); }
.mock-search {
  flex: 1;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text-3);
  min-width: 0;
}
.mock-lang {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.mock-lang span {
  padding: 3px 6px;
  font-size: 9px;
  color: var(--text-3);
  background: var(--bg);
}
.mock-lang .active { background: var(--orange); color: #fff; font-weight: 600; }

.mock-body { display: flex; min-height: 300px; }
.mock-sidebar {
  width: 120px;
  background: #fff;
  border-left: 1px solid var(--border);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.mock-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.mock-q {
  width: 16px; height: 16px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 9px;
}
.mock-sidebar-name { font-weight: 700; font-size: 10px; }
.mock-nav li {
  padding: 6px 10px;
  font-size: 10px;
  color: var(--text);
  cursor: pointer;
}
.mock-nav li.active {
  background: rgba(224, 123, 57, 0.08);
  color: var(--orange);
  border-right: 2px solid var(--orange);
  font-weight: 600;
}
.mock-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
}
.mock-avatar {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.mock-user strong { display: block; font-size: 10px; }
.mock-user small { display: block; font-size: 8px; color: var(--text-2); }

.mock-main { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.mock-kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  min-width: 0;
}
.kpi-icon {
  font-weight: 700;
  font-size: 11px;
  display: inline-block;
  margin-bottom: 2px;
}
.kpi-icon.blue { color: var(--blue); }
.kpi-icon.amber { color: var(--amber); }
.kpi-icon.green { color: var(--green); }
.kpi-icon.red { color: var(--red); }
.kpi-label { display: block; font-size: 9px; color: var(--text-2); }
.kpi-value { display: block; font-size: 14px; margin: 2px 0; }
.kpi-delta { display: block; font-size: 8px; color: var(--text-2); }

.mock-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  min-width: 0;
  overflow: hidden;
}
.mock-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  font-size: 10px;
}
.mock-card-header .muted { color: var(--orange); font-size: 9px; }
.mock-card-header.robi-header {
  background: var(--orange);
  color: #fff;
  margin: -8px -10px 6px;
  padding: 6px 10px;
  border-radius: 6px 6px 0 0;
  border: 0;
}
.mock-attention li {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 6px;
  align-items: baseline;
  padding: 4px 0;
  font-size: 9px;
  border-bottom: 1px solid var(--border);
}
.mock-attention li:last-child { border-bottom: 0; }
.mock-attention strong { font-size: 10px; }
.mock-attention small { display: block; color: var(--text-2); font-size: 8px; }
.mock-attention em { font-style: normal; font-size: 8px; }
.mock-attention em.red { color: var(--red); }
.mock-attention em.amber { color: var(--amber); }
.mock-attention em.blue { color: var(--blue); }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-top: 4px; }
.dot.red { background: var(--red); }
.dot.amber { background: var(--amber); }
.dot.blue { background: var(--blue); }

.mock-robi li {
  background: #fdf7f2;
  border: 1px solid #f0d2be;
  border-radius: 4px;
  padding: 6px;
  margin-bottom: 6px;
  display: flex;
  gap: 6px;
  font-size: 9px;
}
.mock-robi li:last-child { margin-bottom: 0; }
.mock-robi small { color: var(--text-2); font-size: 8px; }
.chip {
  background: var(--orange);
  color: #fff;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 8px;
  font-weight: 600;
  flex-shrink: 0;
  align-self: center;
}

/* --- Pain --------------------------------------------------------------- */
.pain { background: var(--bg); }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pain-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: right;
  box-shadow: var(--shadow-card);
}
.pain-num {
  display: inline-block;
  font-size: 48px;
  font-weight: 600;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.85;
}
.pain-card h3 { font-size: 22px; margin-bottom: 12px; }
.pain-card p { color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* --- How It Works ------------------------------------------------------- */
.how { background: #fff; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: right;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.step-num {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 20px; margin-bottom: 8px; }
.step-card p { color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* --- Design Partner Program -------------------------------------------- */
.program { background: var(--bg); }
.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.program-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: right;
}
.program-card--give { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-light); }
.program-card h3 { font-size: 22px; margin-bottom: 16px; }
.program-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.program-card ul li:last-child { border-bottom: 0; }
.check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
  display: grid; place-items: center;
  margin-top: 2px;
}

.qual-question {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}
.qual-question-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.qual-options { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.qual-opt {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s ease;
}
.qual-opt:hover, .qual-opt.selected {
  border-color: var(--orange);
  background: var(--orange-light);
  color: var(--orange);
}

.urgency-strip {
  background: var(--amber-bg);
  color: var(--amber);
  text-align: center;
  padding: 14px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
}

/* --- Form --------------------------------------------------------------- */
.form-section { background: #fff; }
.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
}
.form-title { font-size: 28px; text-align: center; margin-bottom: 8px; }
.form-sub { text-align: center; color: var(--text-2); font-size: 15px; margin-bottom: 32px; }
.apply-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.req { color: var(--orange); }
.field input,
.field select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
  text-align: right;
}
.field input::placeholder { color: var(--text-3); }
.field input:focus,
.field select:focus {
  outline: 0;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-light);
}
.field.invalid input,
.field.invalid select { border-color: var(--red); }
.field.invalid input:focus,
.field.invalid select:focus { box-shadow: 0 0 0 3px var(--red-bg); }
.select-wrap { position: relative; }
.select-caret {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-3);
  font-size: 14px;
}
.err {
  min-height: 16px;
  font-size: 12px;
  color: var(--red);
}
.form-submit {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.form-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  margin-top: 4px;
}
.form-success {
  grid-column: 1 / -1;
  background: var(--green-bg);
  color: #166534;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 15px;
  text-align: center;
}
.form-success strong { color: var(--green); margin-inline-end: 8px; }

/* --- Team --------------------------------------------------------------- */
.team { background: var(--bg); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: right;
  box-shadow: var(--shadow-card);
}
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange);
  font-weight: 700;
  font-size: 28px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  margin-inline-start: auto;
}
.team-card h3 { font-size: 20px; margin-bottom: 4px; }
.team-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: 12px;
}
.team-bio {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}
.team-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--orange);
}
.team-link:hover { text-decoration: underline; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { background: #fff; }
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { font-weight: 700; }
.faq-q { flex: 1; text-align: right; }
.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--orange);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 2px;
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform .2s ease; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a {
  padding: 0 24px 20px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  text-align: right;
}

/* --- Final CTA ---------------------------------------------------------- */
.final-cta {
  background: linear-gradient(135deg, var(--orange) 0%, #cf6e2d 100%);
  color: #fff;
  text-align: center;
}
.final-cta-inner { max-width: 720px; }
.final-cta h2 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.final-cta p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
  opacity: 0.95;
}
.final-cta .cta-btn--primary {
  background: #fff;
  color: var(--orange);
}
.final-cta .cta-btn--primary:hover { background: var(--orange-light); }
.final-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta-note--light { color: rgba(255, 255, 255, 0.85); font-size: 13px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul li {
  padding: 4px 0;
  font-size: 14px;
}
.footer-col a { transition: color .15s ease; }
.footer-col a:hover { color: var(--orange); }
.footer-col--brand p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 340px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* --- WhatsApp FAB ------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  bottom: 90px;
  left: 24px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(34, 160, 68, 0.35);
  z-index: 9999;
  transition: transform .15s ease;
}
.whatsapp-fab:hover { transform: translateY(-2px) scale(1.05); }
.wa-icon { display: flex; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* Tablet */
@media (max-width: 1023px) {
  .section { padding: 72px 0; }

  /* Hero stays side-by-side until 720px */
  .hero-inner { gap: 32px; }
  .hero-content { max-width: none; flex: 1 1 320px; }
  .hero-visual { flex: 1 1 340px; max-width: none; }

  .pain-grid { grid-template-columns: 1fr 1fr; }
  .pain-grid .pain-card:last-child { grid-column: 1 / -1; max-width: 520px; margin-inline: auto; }

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

  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-grid .team-card:last-child { grid-column: 1 / -1; max-width: 420px; margin-inline: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col--brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .container { padding-inline: 16px; }

  .nav-links { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; order: -1; }
  .logo-full { display: none; }
  .logo-mobile { display: block; height: 44px; }

  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 28px; }
  .section-header .section-sub { font-size: 16px; }

  .hero { padding: 48px 0 56px; }
  .hero-inner { flex-direction: column; }
  .hero-content { text-align: center; }
  .cta-wrap { align-items: center; }
  .hero-visual { width: 100%; }
  .hero-title { font-size: 32px; letter-spacing: -0.5px; }
  .hero-sub { font-size: 16px; }

.pain-grid { grid-template-columns: 1fr; }
  .pain-grid .pain-card:last-child { grid-column: auto; max-width: none; }
  .pain-card { padding: 24px; }
  .pain-num { font-size: 40px; }
  .pain-card h3 { font-size: 20px; }

  .steps-grid { grid-template-columns: 1fr; }
  .step-card { padding: 24px; }

  .program-grid { grid-template-columns: 1fr; gap: 16px; }
  .program-card { padding: 24px; }
  .qual-options { gap: 8px; }
  .qual-opt { padding: 10px 16px; flex: 1 1 calc(50% - 8px); }

  .form-card { padding: 24px; border-radius: var(--radius); }
  .apply-form { grid-template-columns: 1fr; gap: 12px; }
  .form-title { font-size: 22px; }

  .team-grid { grid-template-columns: 1fr; }
  .team-grid .team-card:last-child { grid-column: auto; max-width: none; }

  .faq-item summary { padding: 16px 18px; font-size: 15px; gap: 12px; }
  .faq-a { padding: 0 18px 16px; font-size: 14px; }

  .final-cta h2 { font-size: 28px; }
  .final-cta p { font-size: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }

  .whatsapp-fab { bottom: 84px; left: 16px; width: 48px; height: 48px; }

  .cta-btn--lg { font-size: 15px; padding: 14px 24px; }
}

/* --- Cookie banner ------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  background: var(--text);
  color: rgba(255,255,255,0.9);
  z-index: 500;
  border-top: 3px solid var(--orange);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 16px;
  flex-wrap: wrap;
}
.cookie-inner p { font-size: 14px; flex: 1 1 300px; line-height: 1.5; }
.cookie-link { color: var(--orange); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
}
.cookie-btn--primary { background: var(--orange); color: #fff; }
.cookie-btn--primary:hover { background: #cf6e2d; }
.cookie-btn--outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.cookie-btn--outline:hover { background: rgba(255,255,255,0.1); }

/* Wide desktop */
@media (min-width: 1640px) {
  :root { --container: 1440px; }
  .hero-title { font-size: 56px; }
}

/* Focus-visible polish */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Privacy page
   ========================================================================== */
.privacy-page { background: #F9F9F9; min-height: 80vh; }
.privacy-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  line-height: 1.75;
}
.privacy-container h1 {
  font-size: 40px; font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.privacy-updated {
  color: var(--text-2); font-size: 14px;
  margin-bottom: 40px;
}
.privacy-container h2 {
  font-size: 22px; font-weight: 700;
  margin: 48px 0 14px;
  border-inline-start: 4px solid var(--orange);
  padding-inline-start: 14px;
  color: var(--text);
}
.privacy-container p { margin: 0 0 16px; color: var(--text); }
.privacy-container ul { padding-inline-end: 24px; margin: 0 0 16px; }
.privacy-container li { margin-bottom: 8px; }
.privacy-container a { color: var(--orange); }
.privacy-legal-note {
  margin-top: 56px;
  padding: 20px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}
@media (max-width: 720px) {
  .privacy-container { padding: 40px 16px 72px; }
  .privacy-container h1 { font-size: 28px; }
  .privacy-container h2 { font-size: 18px; }
}

/* Skip to content link (IS 5568) */
.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  background: var(--orange);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   Accessibility Widget
   ========================================================================== */
.a11y-widget {
  position: fixed;
  bottom: 88px; /* above WhatsApp FAB */
  left: 20px;
  z-index: 500;
}
.a11y-trigger {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #1A1A1A;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.2s;
}
.a11y-trigger:hover { background: var(--orange); transform: scale(1.08); }
.a11y-trigger:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.a11y-panel {
  position: absolute;
  bottom: 62px;
  left: 0;
  width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  overflow: hidden;
  animation: a11yFadeIn 0.18s ease;
}
@keyframes a11yFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.a11y-header {
  background: #1A1A1A;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
}
.a11y-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.a11y-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.a11y-label { font-size: 13px; color: var(--text); font-weight: 500; }
.a11y-btns { display: flex; gap: 4px; }
.a11y-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  font-size: 12px; font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.a11y-btn:hover { background: var(--orange-light); border-color: var(--orange); }
.a11y-toggle-btn {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  font-size: 13px; font-weight: 500;
  text-align: right;
  transition: background 0.15s, border-color 0.15s;
  font-family: var(--ff);
}
.a11y-toggle-btn:hover { background: var(--orange-light); border-color: var(--orange); }
.a11y-toggle-btn.is-active { background: var(--orange); color: #fff; border-color: var(--orange); }
.a11y-reset-all { color: var(--text-2); font-size: 12px; }

/* High-contrast mode */
body.a11y-contrast {
  filter: contrast(150%) brightness(1.05);
}
/* Links highlight */
body.a11y-links a {
  text-decoration: underline !important;
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
