:root {
  --bg: #f3f8f5;
  --ink: #0f221d;
  --line: #d5e4de;
  --rushers: #0f5f4b;
  --rushers-soft: #2d9b7c;
  --scroll-night: 0;
  --rusherboy-shift: 130px;
  --chat-open: 0;
}
:root[data-theme='dark'] {
  --bg: #101317;
  --ink: #ecf2f8;
  --line: #2e3843;
}
* { box-sizing: border-box; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f9ff;
  background-image:
    radial-gradient(70% 55% at 12% 6%, rgba(120, 215, 255, 0.22) 0%, rgba(120, 215, 255, 0) 72%),
    radial-gradient(64% 52% at 88% 2%, rgba(164, 137, 255, 0.2) 0%, rgba(164, 137, 255, 0) 72%),
    linear-gradient(155deg, #f9fcff 0%, #f2f7ff 42%, #eef4ff 100%);
  transition: background 220ms ease, color 160ms linear;
}
body::before {
  content: '';
  position: fixed;
  inset: -30vh -12vw auto -12vw;
  height: 72vh;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(110deg, rgba(89, 205, 255, 0.34) 0%, rgba(118, 143, 255, 0.3) 36%, rgba(184, 114, 255, 0.26) 68%, rgba(94, 228, 182, 0.24) 100%);
  filter: blur(72px);
  opacity: 0.95;
}
.rushers-page { width: min(1120px, 92vw); margin: 0 auto; padding: 24px 0 56px; }
.top-controls { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 10px; }
.lang-toggle { display: inline-flex; border: 1px solid #b9d4c8; border-radius: 999px; overflow: hidden; }
.lang-btn,.theme-toggle { border: none; padding: 8px 12px; cursor: pointer; font-weight: 700; }
.lang-btn.active { background: var(--rushers); color: #fff; }
.theme-toggle { border: 1px solid #b9d4c8; border-radius: 999px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.rushers-brand { width: 150px; display: block; margin-bottom: 14px; }
.market-counter {
  margin: 8px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: clamp(.82rem, .92vw, .98rem);
  color: #526a82;
  letter-spacing: .01em;
  white-space: nowrap;
}
.hero-copy .market-counter {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.2;
  max-width: 100%;
}
.market-counter strong {
  flex: 0 1 auto;
  font-weight: 650;
  color: #0f2540;
  opacity: .92;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(170, 195, 214, .7);
  border-radius: 999px;
  padding: 3px 8px;
}
#marketCounterLabel {
  font-weight: 650;
  color: #0f2540;
}
#marketCounterValue {
  flex: 0 0 auto;
  margin-left: 0;
  font-size: inherit;
  font-weight: 450;
  color: #617a97;
  font-variant-numeric: tabular-nums;
}
.hero-copy h1 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.03; }
.hero-copy p { margin: 12px 0 0; font-size: 1.2rem; max-width: 660px; }
.hero-visual { min-height: 380px; display: flex; align-items: end; justify-content: end; }
.hero-rider {
  width: min(580px, 120%);
  transform: translate3d(0, var(--rusherboy-shift), 0);
  transition: transform .08s linear;
  will-change: transform;
}
.partner-strip { margin: 2px 0 14px; }
.partner-strip p { margin: 0 0 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #285e4d; }
.partner-logos { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.partner-card { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-height: 82px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.partner-card img { max-width: 84%; max-height: 42px; object-fit: contain; }
.partner-card img[alt='Just Eat'] { max-width: 100%; max-height: 60px; }
.partner-card .eufarma-logo-dark { display: none; }
.quick-download { margin: 12px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.store-badges img { height: 46px; display:block; }
.flow-shell {
  position: relative;
  display: grid;
  align-items: start;
  min-height: 185vh;
  margin-top: 6px;
}
.typewriter {
  position: sticky;
  top: 8px;
  display: grid;
  grid-template-columns: calc(40px + (24px * var(--chat-open))) 1fr;
  gap: calc(8px + (12px * var(--chat-open)));
  min-height: 100vh;
  align-content: start;
  padding-top: calc(18px + (12px * var(--chat-open)));
}
.chat-avatar { width:48px; height:48px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; background:#fff; }
.chat-avatar img { width:30px; }
.chat-message {
  border: 1px solid #c7d7cf;
  border-radius: calc(18px - (14px * var(--chat-open)));
  padding: calc(12px + (12px * var(--chat-open)));
  background:
    radial-gradient(circle at 12px 12px, rgba(255,255,255,.55) 1px, transparent 1px) 0 0 / 22px 22px,
    #e7ddd2;
  width: calc(66vw + (30vw * var(--chat-open)));
  max-width: none;
  min-height: calc(240px + (62vh * var(--chat-open)));
  box-shadow: 0 10px 26px rgba(23, 37, 35, .12);
  transition: border-radius .12s linear, padding .12s linear, min-height .12s linear, box-shadow .2s ease;
}
.chat-thread {
  display: grid;
  gap: calc(8px + (4px * var(--chat-open)));
  align-content: start;
  min-height: calc(180px + (58vh * var(--chat-open)));
  overflow: auto;
  padding-right: 4px;
}
.msg {
  max-width: 86%;
  border-radius: 12px;
  padding: 8px 10px;
  position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.msg p {
  margin: 0;
  white-space: pre-line;
  font-size: 1rem;
  line-height: 1.32;
  font-weight: 600;
}
.msg-bot {
  justify-self: start;
  background: #ffffff;
  color: #1f2a23;
}
.msg-bot::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 9px;
  border-width: 7px 7px 7px 0;
  border-style: solid;
  border-color: transparent #ffffff transparent transparent;
}
.msg-user {
  justify-self: end;
  margin-left: 0;
  background: #d8fbd2;
  color: #10231a;
  border: 1px solid #bae7b1;
}
.msg-user::before {
  content: '';
  position: absolute;
  right: -7px;
  top: 9px;
  border-width: 7px 0 7px 7px;
  border-style: solid;
  border-color: transparent transparent transparent #d8fbd2;
}
.msg-sticker { margin-top: -2px; }
.sticker-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4fff9 0%, #e8f7f0 100%);
  border: 1px solid #b9ddcd;
  font-size: 1.25rem;
  line-height: 1;
  animation: sticker-pop 1.7s ease-in-out infinite;
  transform-origin: center;
}
.msg-eyebrow { display:block; font-size:.66rem; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .08em; }
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 1px 0 0;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(28, 44, 37, 0.55);
  animation: rushersTypingDot 1s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: .12s; }
.typing-dots span:nth-child(3) { animation-delay: .24s; }
@keyframes rushersTypingDot {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(-3px); opacity: 1; }
}
.choices { display:flex; flex-wrap:wrap; gap:10px; }
.flow-shell .choices {
  position: sticky;
  top: calc(62vh + (8vh * var(--chat-open)));
  z-index: 2;
  width: calc(66vw + (30vw * var(--chat-open)));
  margin-left: calc(48px + (24px * var(--chat-open)) + 8px + (12px * var(--chat-open)));
  padding-bottom: 12px;
  transition: width .12s linear, margin-left .12s linear, top .12s linear;
}
.choice { border:1px solid #8ec4b0; background:#e7f6f0; color:#0e4f3e; border-radius:999px; padding:10px 14px; font-weight:700; cursor:pointer; }
.form-wrap { border:1px solid var(--line); border-radius:14px; padding:16px; margin-top: 22px; }
.form-wrap h2 { margin:0 0 10px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
form { display:grid; gap:10px; }
label { display:grid; gap:6px; font-weight:700; }
.field-hint {
  margin-top: 2px;
  font-size: .8rem;
  font-weight: 600;
  color: #507264;
}
.candidate-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.candidate-grid .span-4 { grid-column: span 4; }
.candidate-grid .span-3 { grid-column: span 3; }
.candidate-grid .form-actions {
  align-items: end;
  justify-content: flex-start;
}
.candidate-grid .form-notice { grid-column: 1 / -1; }
input, select {
  border:1px solid var(--line);
  border-radius:10px;
  padding:11px 12px;
  font: inherit;
  color: inherit;
  background: #fff;
}
select:disabled {
  opacity: .72;
  cursor: not-allowed;
}
.form-actions { display:flex; gap:8px; }
#submitBtn {
  border: 1px solid #0f5f4b;
  background: linear-gradient(135deg, #0f5f4b 0%, #1f7a61 100%);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(15, 95, 75, 0.24);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
#submitBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15, 95, 75, 0.3);
  filter: saturate(1.05);
}
#submitBtn:active {
  transform: translateY(0);
  box-shadow: 0 8px 14px rgba(15, 95, 75, 0.25);
}
#submitBtn:focus-visible {
  outline: 2px solid #8ed0ba;
  outline-offset: 2px;
}
.success { border:1px solid #a7dbc4; border-radius: 10px; padding: 10px; background:#dff5e8; }
.site-footer { margin-top: 24px; border-top:1px solid var(--line); padding-top: 14px; }
.footer-layout { display:grid; grid-template-columns: 1fr 1fr auto; gap:22px; align-items: start; }
.footer-legal-logo { width:68px; display:block; }
.footer-copy { margin:8px 0 6px; font-weight:700; }
.footer-links { display:flex; gap:12px; }
.footer-links a { color:#1a5a47; text-decoration:none; font-weight:700; }
.footer-links-vertical {
  display: grid;
  gap: 6px;
  justify-items: start;
  margin-bottom: 10px;
}
.footer-links-vertical a {
  font-size: .92rem;
  letter-spacing: .01em;
}
.footer-company {
  display: grid;
  gap: 2px;
}
.footer-company p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.28;
  color: #3f5c50;
  font-weight: 600;
}
.footer-main { text-align:center; }
.footer-main p { margin:0; font-size:1.05rem; font-weight:700; line-height:1.2; }
.guarantee-badge { width:224px; border:2px solid var(--rushers); border-radius:14px; overflow:hidden; background:#fff; }
.guarantee-badge p { margin:0; padding:12px 10px; text-align:center; border-bottom:1px dashed var(--rushers); font-weight:800; display:grid; gap:2px; }
.guarantee-logos { padding:12px 10px; display:grid; gap:10px; justify-items:center; }
.guarantee-logos::before { content:'PARTNER CERTIFIED'; font-size:.56rem; letter-spacing:.12em; color:#1f6b55; padding:3px 7px; border:1px solid #8ec3b1; border-radius:999px; }
.guarantee-logos img { width:174px; height:42px; object-fit:contain; background:#fff; border:1px solid #d5e7df; border-radius:10px; padding:7px 8px; }
.guarantee-logos img[alt='Just Eat'] {
  width: 174px;
  height: 42px;
  padding: 4px 5px;
  object-fit: contain;
  transform: scale(1.12);
  transform-origin: center;
}
.guarantee-logos img[alt='Alfonsino'] {
  width: 174px;
  height: 42px;
  padding: 5px 6px;
  object-fit: contain;
  transform: scale(1.08);
  transform-origin: center;
}
@keyframes sticker-pop {
  0%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-4px) scale(1.08); }
  60% { transform: translateY(-2px) scale(1.04); }
}
@media (max-width: 1200px) {
  .rushers-page { width: min(1060px, 94vw); }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; justify-content: center; }
  .hero-rider { width: min(520px, 92vw); }
  .flow-shell {
    min-height: auto;
    gap: 12px;
  }
  .typewriter {
    position: static;
    min-height: auto;
    grid-template-columns: 48px 1fr;
    padding-top: 0;
  }
  .chat-message {
    width: 100%;
    min-height: auto;
    border-radius: 18px;
    padding: 12px;
  }
  .chat-thread {
    min-height: auto;
    max-height: 54vh;
    gap: 8px;
  }
  .flow-shell .choices {
    position: static;
    width: 100%;
    margin-left: 0;
    top: auto;
    padding-bottom: 0;
  }
  .choice { padding: 10px 12px; font-size: .98rem; }
  .footer-layout { grid-template-columns: 1fr; gap: 16px; }
  .guarantee-badge { justify-self: start; }
}
@media (max-width: 768px) {
  .rushers-page { width: min(1120px, 95vw); padding: 16px 0 40px; }
  .top-controls { justify-content: space-between; gap: 6px; flex-wrap: wrap; }
  .rushers-brand { width: 126px; }
  .hero-copy h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero-copy p { font-size: 1.04rem; }
  .quick-download { padding: 10px 10px; flex-direction: column; align-items: flex-start; }
  .store-badges img { height: 42px; }
  .typewriter { grid-template-columns: 40px 1fr; gap: 8px; }
  .chat-avatar { width:40px; height:40px; }
  .chat-avatar img { width:24px; }
  .msg { max-width: 94%; }
  .msg p { font-size: .95rem; }
  .form-wrap { padding: 12px; margin-top: 16px; }
  .form-wrap h2 { font-size: clamp(1.4rem, 7vw, 2rem); }
  #submitBtn { width: 100%; }
  .candidate-grid .form-actions { justify-content: stretch; }
}
@media (max-width: 960px) {
  .flow-shell {
    min-height: auto;
    gap: 10px;
  }
  .typewriter {
    position: static;
    min-height: auto;
    grid-template-columns: 48px 1fr;
    padding-top: 0;
  }
  .chat-message {
    width: 100%;
    min-height: auto;
    border-radius: 18px;
    padding: 12px;
  }
  .chat-thread {
    min-height: auto;
    max-height: 52vh;
    gap: 8px;
  }
  .flow-shell .choices {
    position: static;
    width: 100%;
    margin-left: 0;
    top: auto;
    padding-bottom: 0;
  }
  .hero { grid-template-columns:1fr; }
  .hero-visual { min-height: 300px; }
  .partner-logos { grid-template-columns: 1fr; }
  .footer-layout { grid-template-columns: 1fr; }
  .footer-main { order:2; }
  .guarantee-badge { order:3; justify-self: center; }
  .candidate-grid { grid-template-columns: 1fr; }
  .candidate-grid .span-4,
  .candidate-grid .span-3 { grid-column: auto; }
}

:root[data-theme='dark'] .lang-toggle,
:root[data-theme='dark'] .theme-toggle {
  border-color: #3b4957;
  background: #1a2129;
  color: #e8edf3;
}

:root[data-theme='dark'] body {
  background-color: #0b1220;
  background-image:
    radial-gradient(70% 55% at 10% 4%, rgba(46, 111, 255, 0.25) 0%, rgba(46, 111, 255, 0) 72%),
    radial-gradient(64% 52% at 88% 6%, rgba(157, 89, 255, 0.24) 0%, rgba(157, 89, 255, 0) 74%),
    linear-gradient(160deg, #111a2c 0%, #0d1626 42%, #0a121f 100%);
}
:root[data-theme='dark'] body::before {
  background: linear-gradient(112deg, rgba(75, 122, 255, 0.24) 0%, rgba(94, 198, 255, 0.22) 34%, rgba(173, 110, 255, 0.23) 67%, rgba(46, 214, 168, 0.18) 100%);
  opacity: .82;
}

:root[data-theme='dark'] .partner-strip p {
  color: #92c9b4;
}
:root[data-theme='dark'] .market-counter {
  color: #9bb1c7;
}
:root[data-theme='dark'] .market-counter strong {
  color: #e0e8f2;
  background: rgba(20, 30, 45, .88);
  border-color: rgba(69, 93, 116, .8);
}
:root[data-theme='dark'] #marketCounterLabel {
  color: #e0e8f2;
}
:root[data-theme='dark'] #marketCounterValue {
  color: #9bb5d1;
}

:root[data-theme='dark'] .partner-card,
:root[data-theme='dark'] .quick-download,
:root[data-theme='dark'] .chat-avatar,
:root[data-theme='dark'] .msg-user,
:root[data-theme='dark'] .form-wrap,
:root[data-theme='dark'] .guarantee-badge {
  background: #171d24;
  border-color: #2f3b48;
}
:root[data-theme='dark'] .partner-card .eufarma-logo-light { display: none; }
:root[data-theme='dark'] .partner-card .eufarma-logo-dark { display: block; }

:root[data-theme='dark'] .chat-message {
  border-color: #2f3b48;
  background:
    radial-gradient(circle at 12px 12px, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 22px 22px,
    #111923;
}

:root[data-theme='dark'] .msg-bot {
  background: #1d2a35;
  color: #e6eef7;
}
:root[data-theme='dark'] .typing-dots span {
  background: rgba(229, 239, 247, 0.7);
}
:root[data-theme='dark'] .msg-bot::before {
  border-color: transparent #1d2a35 transparent transparent;
}

:root[data-theme='dark'] .msg-user {
  background: #1f4d3b;
  border-color: #306651;
  color: #e8fff4;
}
:root[data-theme='dark'] .msg-user::before {
  border-color: transparent transparent transparent #1f4d3b;
}

:root[data-theme='dark'] .choice {
  background: #163428;
  border-color: #2c6f58;
  color: #dbf4ea;
}
:root[data-theme='dark'] .sticker-chip {
  background: linear-gradient(135deg, #1a2d24 0%, #153127 100%);
  border-color: #2f6c56;
}

:root[data-theme='dark'] input,
:root[data-theme='dark'] select {
  background: #11181f;
  color: #e9eff5;
  border-color: #33414f;
}

:root[data-theme='dark'] .success {
  background: #123327;
  border-color: #2e7b5f;
  color: #d8f4e7;
}

:root[data-theme='dark'] .field-hint {
  color: #8fb9a9;
}

:root[data-theme='dark'] .footer-links a {
  color: #9ed9c2;
}
:root[data-theme='dark'] .footer-company p {
  color: #b7c8d6;
}

:root[data-theme='dark'] .guarantee-badge p {
  color: #ebf2f8;
  border-bottom-color: #2b7f66;
}

:root[data-theme='dark'] .guarantee-logos::before {
  color: #8fd0b7;
  border-color: #3d7f68;
  background: #142c23;
}

:root[data-theme='dark'] .guarantee-logos img {
  background: #f4f7f9;
  border-color: #7aa392;
}

/* Stable responsive chat layout (fallback from fullscreen reveal experiment) */
.flow-shell {
  min-height: auto;
  gap: 10px;
}
.typewriter {
  position: static;
  top: auto;
  min-height: auto;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding-top: 0;
}
.chat-message {
  width: 100%;
  min-height: auto;
  border-radius: 18px;
  padding: 12px;
}
.chat-thread {
  min-height: auto;
  max-height: 56vh;
  gap: 8px;
}
.flow-shell .choices {
  position: static;
  width: 100%;
  margin-left: 0;
  top: auto;
  padding-bottom: 0;
}
@media (max-width: 768px) {
  .typewriter { grid-template-columns: 40px 1fr; gap: 8px; }
  .chat-thread { max-height: 50vh; }
}

/* AI helper (interactive typed chat for FAQ/turni/requisiti/pagamenti) */
.ai-help {
  margin: 14px 0 20px;
  border: 1px solid rgba(170, 194, 183, 0.85);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(18, 30, 44, 0.06);
  overflow: hidden;
}
.ai-help-inline {
  margin: 12px 0 2px;
  border-radius: 14px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.62);
}
.chat-message .ai-help-inline .ai-help-head {
  padding: 10px 10px 8px;
}
.chat-message .ai-help-inline .ai-help-panel {
  padding: 10px 10px 10px;
}
.chat-message .ai-help-inline .ai-help-toggle {
  padding: 9px 11px;
  font-size: .9rem;
}
.chat-message .ai-help-inline .ai-help-caption {
  font-size: .8rem;
  margin-top: 6px;
}
.chat-message .ai-help-inline .ai-help-messages {
  min-height: 84px;
  max-height: 180px;
}
.chat-message .ai-help-inline .ai-msg-bubble {
  font-size: .88rem;
}
.chat-message .ai-help-inline .ai-quick-btn {
  font-size: .8rem;
  padding: 6px 9px;
}
:root[data-theme='dark'] .ai-help-inline {
  background: rgba(17, 22, 28, 0.72);
}
.ai-help-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(176, 198, 216, 0.35);
}
.ai-help-toggle {
  width: 100%;
  border: 1px solid #9fd0bf;
  background: linear-gradient(180deg, #f5fff9 0%, #eaf8f1 100%);
  color: #0f5f4b;
  border-radius: 14px;
  padding: 11px 13px;
  text-align: left;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
}
.ai-help-caption {
  margin: 7px 2px 0;
  color: #5d7287;
  font-size: 0.87rem;
}
.ai-help-panel {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}
.ai-help-messages {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 110px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}
.ai-msg {
  display: flex;
}
.ai-msg-bot {
  justify-content: flex-start;
}
.ai-msg-user {
  justify-content: flex-end;
}
.ai-msg-bubble {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.3;
  white-space: pre-line;
  font-size: 0.93rem;
  border: 1px solid #c5d8cf;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.ai-msg-bot .ai-msg-bubble {
  background: #fff;
  color: #1a2a24;
}
.ai-msg-user .ai-msg-bubble {
  background: #ddf7ea;
  border-color: #9fceb9;
  color: #103228;
}
.ai-msg[data-pending='1'] .ai-msg-bubble {
  opacity: 0.78;
  font-style: italic;
}
.ai-help-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ai-quick-btn {
  border: 1px solid #c8ddd4;
  background: #fff;
  color: #254237;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.ai-quick-btn:hover {
  border-color: #98c5b4;
  color: #0f5f4b;
}
.ai-help-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.ai-help-form input {
  min-width: 0;
  border: 1px solid #c5d8ce;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 0.94rem;
}
.ai-help-form button {
  border: 1px solid #0f6a53;
  background: #0f6a53;
  color: #fff;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}
.ai-help.is-loading .ai-help-toggle {
  opacity: 0.95;
}
.ai-help-form button:disabled,
.ai-help-form input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

:root[data-theme='dark'] .ai-help {
  background: rgba(18, 24, 31, 0.78);
  border-color: #303b46;
  box-shadow: 0 14px 28px rgba(2, 6, 12, 0.28);
}
:root[data-theme='dark'] .ai-help-head {
  border-bottom-color: rgba(61, 74, 88, 0.7);
}
:root[data-theme='dark'] .ai-help-toggle {
  background: linear-gradient(180deg, rgba(20, 62, 50, 0.96) 0%, rgba(14, 46, 38, 0.96) 100%);
  border-color: #2b7b65;
  color: #dffbf0;
}
:root[data-theme='dark'] .ai-help-caption {
  color: #b3c1cf;
}
:root[data-theme='dark'] .ai-msg-bot .ai-msg-bubble,
:root[data-theme='dark'] .ai-quick-btn,
:root[data-theme='dark'] .ai-help-form input {
  background: #171f28;
  color: #eaf0f6;
  border-color: #374351;
}
:root[data-theme='dark'] .ai-msg-user .ai-msg-bubble {
  background: #12392f;
  border-color: #286a56;
  color: #e6fbf2;
}
:root[data-theme='dark'] .ai-help-form button {
  background: #1d8d6d;
  border-color: #1d8d6d;
}
:root[data-theme='dark'] .ai-quick-btn:hover {
  border-color: #4d9580;
  color: #defbf0;
}

@media (max-width: 768px) {
  .ai-help-form {
    grid-template-columns: 1fr;
  }
  .ai-help-form button {
    min-height: 44px;
  }
  .ai-msg-bubble {
    max-width: 92%;
  }
}

.money-rain-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.money-rain-drop {
  position: absolute;
  top: -12vh;
  font-weight: 800;
  line-height: 1;
  color: #d9a928;
  text-shadow:
    0 3px 14px rgba(217, 169, 40, 0.28),
    0 0 0.5px rgba(72, 48, 7, 0.65);
  transform: translate3d(0, 0, 0) rotate(-8deg);
  animation: moneyRainFall linear forwards;
  user-select: none;
}
.money-rain-drop.is-bar {
  color: #f0c84f;
  font-weight: 900;
  text-shadow:
    0 3px 12px rgba(240, 200, 79, 0.32),
    0 0 0.5px rgba(88, 61, 8, 0.75);
  letter-spacing: -0.08em;
}
.money-rain-drop.is-coin,
.money-rain-drop.is-bag {
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.18));
}
:root[data-theme='dark'] .money-rain-drop {
  color: #ffd767;
  text-shadow:
    0 3px 14px rgba(255, 215, 103, 0.34),
    0 0 0.5px rgba(0, 0, 0, 0.8);
}
@keyframes moneyRainFall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(-12deg) scale(.92);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--drift, 0px), 118vh, 0) rotate(18deg) scale(1.08);
    opacity: 0;
  }
}

/* Delivery orbit section (toggle from WP Customizer) */
.delivery-orbit {
  margin: 16px 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(88% 110% at 4% 0%, rgba(53, 207, 164, 0.12) 0%, rgba(53, 207, 164, 0) 62%),
    radial-gradient(70% 100% at 96% 0%, rgba(135, 148, 255, 0.14) 0%, rgba(135, 148, 255, 0) 60%),
    rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(18, 30, 44, 0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}
.delivery-orbit-copy { display: grid; gap: 8px; align-content: start; }
.delivery-orbit-eyebrow {
  margin: 0;
  color: #1d6a54;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 800;
  font-size: .76rem;
}
.delivery-orbit-copy h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.04;
}
.delivery-orbit-copy p:not(.delivery-orbit-eyebrow) {
  margin: 0;
  color: #405a6d;
  line-height: 1.35;
  font-weight: 500;
}
.delivery-orbit-visual { display: grid; place-items: center; }
.orbit-stage {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.8) 0%, rgba(255,255,255,.45) 42%, rgba(255,255,255,0) 66%),
    linear-gradient(180deg, rgba(250,253,255,.85) 0%, rgba(245,250,255,.45) 100%);
  border: 1px solid #d7e5df;
  overflow: hidden;
}
.orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(32, 108, 85, 0.22); }
.orbit-ring-main { width: 82%; height: 82%; }
.orbit-ring-soft { width: 66%; height: 66%; border-style: solid; border-color: rgba(98, 140, 255, 0.12); }
.orbit-track { position: absolute; inset: 0; animation: orbit-spin 18s linear infinite; }
.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 132px;
  height: 58px;
  margin: -29px 0 0 -66px;
}
.orbit-node-1 { transform: rotate(0deg) translateY(-150px); }
.orbit-node-2 { transform: rotate(120deg) translateY(-150px); }
.orbit-node-3 { transform: rotate(240deg) translateY(-150px); }
.orbit-card {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  border: 1px solid #d5e7df;
  box-shadow: 0 8px 16px rgba(18, 30, 44, .08);
  display: grid;
  place-items: center;
  padding: 6px 8px;
  animation: orbit-spin-counter 18s linear infinite;
}
.orbit-card img { width: 100%; height: 100%; object-fit: contain; }
.orbit-card img[alt='Just Eat'] { transform: scale(1.08); }
.orbit-card img[alt='Alfonsino'] { transform: scale(1.02); }
.orbit-card .eufarma-logo-dark { display: none; }
.orbit-center {
  position: relative;
  z-index: 3;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background: linear-gradient(180deg, #0f5f4b 0%, #164f41 100%);
  color: #fff;
  border: 1px solid rgba(16, 95, 75, 0.45);
  box-shadow: 0 16px 24px rgba(15, 95, 75, 0.22);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
  padding: 10px;
}
.orbit-center-logo { width: 44px; height: auto; filter: brightness(0) invert(1); }
.orbit-center p { margin: 0; font-size: .9rem; font-weight: 800; line-height: 1.15; }
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-spin-counter { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
:root[data-theme='dark'] .delivery-orbit {
  border-color: #2f3b48;
  background:
    radial-gradient(88% 110% at 4% 0%, rgba(53, 207, 164, 0.12) 0%, rgba(53, 207, 164, 0) 62%),
    radial-gradient(70% 100% at 96% 0%, rgba(135, 148, 255, 0.12) 0%, rgba(135, 148, 255, 0) 60%),
    rgba(20, 26, 33, .82);
}
:root[data-theme='dark'] .delivery-orbit-eyebrow { color: #9ddcc5; }
:root[data-theme='dark'] .delivery-orbit-copy p:not(.delivery-orbit-eyebrow) { color: #b9c9d6; }
:root[data-theme='dark'] .orbit-stage {
  background:
    radial-gradient(circle at 50% 50%, rgba(29,39,49,.9) 0%, rgba(22,29,36,.65) 46%, rgba(22,29,36,0) 70%),
    linear-gradient(180deg, rgba(20,27,34,.92) 0%, rgba(19,25,32,.62) 100%);
  border-color: #35414f;
}
:root[data-theme='dark'] .orbit-ring { border-color: rgba(98, 202, 170, 0.22); }
:root[data-theme='dark'] .orbit-ring-soft { border-color: rgba(119, 149, 255, 0.16); }
:root[data-theme='dark'] .orbit-card { background: #141b23; border-color: #37434f; box-shadow: 0 10px 18px rgba(2, 6, 12, .28); }
:root[data-theme='dark'] .orbit-card .eufarma-logo-light { display: none; }
:root[data-theme='dark'] .orbit-card .eufarma-logo-dark { display: block; }
:root[data-theme='dark'] .orbit-center { background: linear-gradient(180deg, #0f5f4b 0%, #103f34 100%); border-color: rgba(68, 136, 116, 0.6); }
@media (max-width: 960px) {
  .delivery-orbit { grid-template-columns: 1fr; gap: 10px; }
  .orbit-stage { width: min(380px, 100%); }
}
@media (max-width: 768px) {
  .delivery-orbit { padding: 12px; }
  .orbit-node { width: 116px; height: 52px; margin: -26px 0 0 -58px; }
  .orbit-node-1 { transform: rotate(0deg) translateY(-132px); }
  .orbit-node-2 { transform: rotate(120deg) translateY(-132px); }
  .orbit-node-3 { transform: rotate(240deg) translateY(-132px); }
  .orbit-center { width: 134px; height: 134px; }
  .orbit-center p { font-size: .82rem; }
}

/* Priority onboarding (between chat and form) */
.priority-onboarding {
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(90% 120% at 8% 0%, rgba(85, 220, 179, 0.12) 0%, rgba(85, 220, 179, 0) 60%),
    radial-gradient(85% 110% at 100% 0%, rgba(132, 157, 255, 0.12) 0%, rgba(132, 157, 255, 0) 58%),
    rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(18, 30, 44, 0.06);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  padding: 16px;
  align-items: stretch;
}
.priority-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}
.priority-eyebrow {
  margin: 0;
  color: #1d6a54;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 800;
  font-size: .76rem;
}
.priority-copy h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.05;
}
.priority-copy > p:not(.priority-eyebrow):not(.priority-note) {
  margin: 0;
  color: #405a6d;
  font-weight: 500;
  line-height: 1.35;
}
.priority-widget {
  margin-top: 2px;
  border: 1px solid #d5e5df;
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  padding: 12px;
  display: grid;
  gap: 10px;
}
.priority-widget label {
  display: grid;
  gap: 4px;
  font-size: .9rem;
  font-weight: 700;
}
#priorityCitySelect {
  border-radius: 12px;
  border: 1px solid #cadfd6;
  padding: 11px 12px;
  font-weight: 600;
  background: #fff;
}
.priority-result {
  display: grid;
  gap: 10px;
}
.priority-chip {
  display: grid;
  gap: 2px;
  border: 1px solid #d5e7df;
  border-radius: 12px;
  background: #f8fffb;
  padding: 10px 12px;
}
.priority-chip span {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #557666;
  font-weight: 800;
}
.priority-chip strong {
  font-size: 1.05rem;
  color: #123e32;
  line-height: 1.1;
}
.priority-chip-accent {
  background: linear-gradient(135deg, rgba(18, 112, 87, 0.08) 0%, rgba(36, 161, 127, 0.05) 100%);
  border-color: #abd6c5;
}
.priority-note {
  margin: 0;
  color: #456171;
  font-size: .92rem;
  line-height: 1.35;
}
.priority-pay-btn {
  border: 1px solid #0f5f4b;
  background: linear-gradient(135deg, #0f5f4b 0%, #1f7a61 100%);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: .94rem;
  font-weight: 800;
  letter-spacing: .01em;
  opacity: .58;
  cursor: not-allowed;
  box-shadow: 0 8px 18px rgba(15, 95, 75, 0.18);
}
.priority-visual {
  display: grid;
  align-items: end;
}
.priority-visual-card {
  position: relative;
  height: 100%;
  min-height: 320px;
  border: 1px solid #d8e7e1;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(65% 60% at 40% 18%, rgba(214, 181, 72, 0.28) 0%, rgba(214, 181, 72, 0) 70%),
    radial-gradient(55% 45% at 80% 80%, rgba(52, 157, 127, 0.16) 0%, rgba(52, 157, 127, 0) 70%),
    linear-gradient(180deg, #f9fcfa 0%, #f1f7f4 100%);
}
.priority-visual-card::before {
  content: '';
  position: absolute;
  inset: auto 6% 8% 6%;
  height: 18%;
  border-radius: 999px;
  background: rgba(196, 161, 57, 0.9);
  z-index: 1;
}
.priority-rider-figure {
  position: absolute;
  right: 50%;
  bottom: 0;
  transform: translateX(50%);
  height: min(108%, 520px);
  width: auto;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 16px 18px rgba(6, 19, 16, 0.12));
}
:root[data-theme='dark'] .priority-onboarding {
  border-color: #2f3b48;
  background:
    radial-gradient(90% 120% at 8% 0%, rgba(49, 189, 152, 0.14) 0%, rgba(49, 189, 152, 0) 60%),
    radial-gradient(85% 110% at 100% 0%, rgba(132, 157, 255, 0.12) 0%, rgba(132, 157, 255, 0) 58%),
    rgba(20, 26, 33, 0.82);
}
:root[data-theme='dark'] .priority-eyebrow { color: #9ddcc5; }
:root[data-theme='dark'] .priority-copy > p:not(.priority-eyebrow):not(.priority-note),
:root[data-theme='dark'] .priority-note { color: #b9c9d6; }
:root[data-theme='dark'] .priority-widget,
:root[data-theme='dark'] .priority-visual-card { background: #151d26; border-color: #35414f; }
:root[data-theme='dark'] .priority-chip { background: #18222c; border-color: #33424f; }
:root[data-theme='dark'] .priority-chip span { color: #93bda9; }
:root[data-theme='dark'] .priority-chip strong { color: #ecf4fb; }
:root[data-theme='dark'] .priority-chip-accent { background: linear-gradient(135deg, rgba(18, 112, 87, 0.14) 0%, rgba(36, 161, 127, 0.07) 100%); border-color: #2f7a63; }
:root[data-theme='dark'] #priorityCitySelect { background: #11181f; border-color: #33414f; color: #e9eff5; }
:root[data-theme='dark'] .priority-visual-card::before { background: rgba(196, 161, 57, 0.78); }

@media (max-width: 960px) {
  .priority-onboarding { grid-template-columns: 1fr; gap: 10px; }
  .priority-visual-card { min-height: 240px; }
  .priority-rider-figure { height: min(118%, 420px); }
}
@media (max-width: 768px) {
  .priority-onboarding { padding: 12px; }
  .priority-copy h2 { font-size: clamp(1.15rem, 6vw, 1.5rem); }
}

/* Legal pages */
.legal-page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 18px 64px;
}
.legal-card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,95,75,.16);
  border-radius: 22px;
  box-shadow: 0 14px 44px rgba(11,28,35,.08);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.legal-header {
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(15,95,75,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(245,250,255,.65));
}
.legal-eyebrow {
  margin: 0 0 8px;
  color: var(--rushers);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
}
.legal-header h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
}
.legal-updated {
  margin: 10px 0 0;
  color: #5e748f;
  font-size: 14px;
}
.legal-content {
  padding: 24px;
  font-size: 15px;
  line-height: 1.58;
  color: color-mix(in srgb, var(--ink) 92%, #2a3a4a);
}
.legal-content p {
  margin: 0 0 14px;
}
.legal-content--pre p {
  white-space: pre-wrap;
}
.legal-content a {
  color: var(--rushers);
  font-weight: 600;
}
:root[data-theme='dark'] .legal-card {
  background: rgba(18,23,30,.84);
  border-color: rgba(126,209,186,.18);
  box-shadow: 0 18px 52px rgba(0,0,0,.34);
}
:root[data-theme='dark'] .legal-header {
  background: linear-gradient(180deg, rgba(22,28,36,.9), rgba(17,22,29,.78));
  border-bottom-color: rgba(126,209,186,.14);
}
:root[data-theme='dark'] .legal-updated {
  color: #a8b8ca;
}
@media (max-width: 768px) {
  .legal-page-shell { padding: 20px 12px 44px; }
  .legal-header { padding: 18px 16px 14px; }
  .legal-content { padding: 16px; font-size: 14px; line-height: 1.52; }
}

/* Legal pages - PayPal-like layout */
.legal-page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}
.legal-card {
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(15,95,75,.14);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(15,22,31,.08);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.legal-header {
  padding: 26px 28px 22px;
  border-bottom: 1px solid rgba(15,95,75,.1);
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(246,250,255,.72));
}
.legal-eyebrow {
  margin: 0 0 10px;
  color: var(--rushers);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legal-header h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.legal-updated {
  margin: 12px 0 0;
  color: #627891;
  font-size: 14px;
}
.legal-content {
  padding: 0;
  font-size: 16px;
  line-height: 1.65;
}
.legal-doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
}
.legal-doc-toc-wrap {
  border-right: 1px solid rgba(15,95,75,.08);
  background: linear-gradient(180deg, rgba(247,250,255,.86), rgba(251,253,255,.7));
}
.legal-doc-toc {
  position: sticky;
  top: 20px;
  padding: 22px 16px 22px 20px;
}
.legal-doc-toc-title {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #58728f;
  font-weight: 700;
}
.legal-doc-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.legal-doc-toc li a {
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  color: #15324f;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.25;
}
.legal-doc-toc li a:hover {
  background: rgba(15,95,75,.07);
  color: var(--rushers);
}
.legal-doc-content {
  padding: 24px 28px 30px;
}
.legal-doc-section {
  margin: 0 0 22px;
  scroll-margin-top: 24px;
}
.legal-doc-heading {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #10283f;
}
.legal-doc-num {
  color: var(--rushers);
  font-weight: 800;
}
.legal-doc-subheading {
  margin: 12px 0 8px;
  font-size: 16px;
  line-height: 1.3;
  color: #233d59;
}
.legal-doc-paragraph {
  margin: 0 0 12px;
  color: #24384c;
}
.legal-doc-paragraph.is-intro {
  font-size: 17px;
  line-height: 1.62;
  color: #132b43;
}
.legal-doc-list {
  margin: 0 0 12px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.legal-doc-list li {
  position: relative;
  padding-left: 16px;
  color: #24384c;
}
.legal-doc-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rushers);
  font-weight: 700;
}
.legal-content a,
.legal-doc-content a {
  color: var(--rushers);
  text-decoration-color: rgba(15,95,75,.35);
  text-underline-offset: 2px;
  word-break: break-word;
}
:root[data-theme='dark'] .legal-card {
  background: rgba(17,22,29,.88);
  border-color: rgba(126,209,186,.14);
  box-shadow: 0 22px 60px rgba(0,0,0,.32);
}
:root[data-theme='dark'] .legal-header {
  background: linear-gradient(180deg, rgba(21,27,35,.95), rgba(16,21,28,.88));
  border-bottom-color: rgba(126,209,186,.1);
}
:root[data-theme='dark'] .legal-updated { color: #9eb1c6; }
:root[data-theme='dark'] .legal-doc-toc-wrap {
  border-right-color: rgba(126,209,186,.08);
  background: linear-gradient(180deg, rgba(20,26,34,.78), rgba(17,21,28,.7));
}
:root[data-theme='dark'] .legal-doc-toc-title { color: #88a3be; }
:root[data-theme='dark'] .legal-doc-toc li a { color: #c7d4e4; }
:root[data-theme='dark'] .legal-doc-toc li a:hover {
  background: rgba(126,209,186,.08);
  color: #9ce4cb;
}
:root[data-theme='dark'] .legal-doc-heading { color: #edf4fb; }
:root[data-theme='dark'] .legal-doc-subheading { color: #cfdaea; }
:root[data-theme='dark'] .legal-doc-paragraph,
:root[data-theme='dark'] .legal-doc-list li { color: #b8c7d9; }
:root[data-theme='dark'] .legal-doc-paragraph.is-intro { color: #e6eef8; }

@media (max-width: 980px) {
  .legal-doc-layout {
    grid-template-columns: 1fr;
  }
  .legal-doc-toc-wrap {
    border-right: 0;
    border-bottom: 1px solid rgba(15,95,75,.08);
  }
  .legal-doc-toc {
    position: static;
    padding: 16px 16px 14px;
  }
  .legal-doc-toc ol {
    grid-template-columns: 1fr;
    max-height: 240px;
    overflow: auto;
  }
}

@media (max-width: 768px) {
  .legal-page-shell { padding: 20px 12px 44px; }
  .legal-header { padding: 18px 16px 14px; }
  .legal-doc-content { padding: 16px; }
  .legal-doc-heading { font-size: 20px; }
  .legal-doc-paragraph,
  .legal-doc-list li { font-size: 14px; line-height: 1.55; }
  .legal-doc-paragraph.is-intro { font-size: 15px; }
}

/* Mobile hardening overrides */
@media (max-width: 768px) {
  .rushers-page {
    width: min(100%, 100vw);
    margin: 0;
    padding: 14px 12px 36px;
    overflow-x: clip;
  }

  .top-controls {
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }

  .lang-toggle {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .lang-btn,
  .theme-toggle {
    min-height: 40px;
    font-size: 13px;
  }

  .theme-toggle {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(1.72rem, 9vw, 2.35rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
  }

  .hero-copy p {
    font-size: .98rem;
    line-height: 1.3;
    max-width: 100%;
  }

  .hero-copy .market-counter {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
    flex-wrap: wrap;
  }

  .market-counter strong {
    max-width: 100%;
    padding: 4px 8px;
    font-size: 12px;
  }

  #marketCounterValue {
    font-size: 12px;
    font-weight: 700;
  }

  .hero-visual {
    min-height: 180px;
    justify-content: center;
    overflow: hidden;
  }

  .hero-rider {
    width: min(100%, 340px);
    max-width: 100%;
    transform: translate3d(0, 0, 0);
    transition: none;
  }

  .partner-strip {
    margin: 8px 0 12px;
  }

  .partner-strip p {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .partner-logos {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .partner-card {
    min-height: 72px;
    padding: 8px 10px;
  }

  .partner-card img { max-height: 36px; }
  .partner-card img[alt='Just Eat'] { max-height: 48px; }

  .quick-download {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    gap: 10px;
  }

  .quick-download p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.25;
  }

  .store-badges {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .store-badges a {
    min-width: 0;
  }

  .store-badges img {
    width: 100%;
    height: auto;
    max-height: 42px;
    object-fit: contain;
  }

  .flow-shell {
    min-height: 0;
    margin-top: 4px;
    gap: 8px;
  }

  .typewriter {
    position: relative;
    top: auto;
    min-height: 0;
    grid-template-columns: 38px 1fr;
    gap: 8px;
    padding-top: 0;
    align-content: start;
  }

  .chat-avatar {
    width: 38px;
    height: 38px;
  }

  .chat-avatar img {
    width: 22px;
  }

  .chat-message {
    width: 100%;
    min-height: 0;
    border-radius: 14px;
    padding: 10px;
    background-size: 18px 18px, auto;
  }

  .chat-thread {
    min-height: 240px;
    max-height: 52vh;
    gap: 8px;
  }

  .msg {
    max-width: 94%;
    padding: 8px 9px;
    border-radius: 11px;
  }

  .msg p {
    font-size: .92rem;
    line-height: 1.26;
    font-weight: 600;
  }

  .flow-shell .choices {
    position: static;
    top: auto;
    width: 100%;
    margin: 2px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .choice {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.15;
  }

  .form-wrap {
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
  }

  .form-wrap h2 {
    font-size: clamp(1.35rem, 8vw, 1.8rem);
    line-height: 1.06;
    margin-bottom: 12px;
  }

  .candidate-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .candidate-grid .span-4,
  .candidate-grid .span-3 {
    grid-column: auto;
  }

  .candidate-grid .form-actions {
    justify-content: stretch;
  }

  .candidate-grid .form-actions button,
  #submitBtn {
    width: 100%;
  }

  .delivery-orbit {
    padding: 14px 12px;
    border-radius: 16px;
    gap: 8px;
  }

  .delivery-orbit-copy h2 {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
    line-height: 1.05;
  }

  .delivery-orbit-copy p:not(.delivery-orbit-eyebrow) {
    font-size: .92rem;
    line-height: 1.28;
  }

  .priority-onboarding {
    padding: 12px;
    border-radius: 16px;
    margin-top: 14px;
  }

  .priority-copy p,
  .priority-note {
    font-size: .9rem;
    line-height: 1.28;
  }

  .priority-widget {
    padding: 10px;
    border-radius: 12px;
  }

  .priority-chip {
    padding: 9px 10px;
    gap: 2px;
  }

  .site-footer {
    margin-top: 18px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .footer-legal-logo {
    width: 96px;
  }

  .footer-links-vertical {
    gap: 8px;
  }

  .footer-links-vertical a {
    font-size: 13px;
    line-height: 1.2;
    word-break: break-word;
  }

  .guarantee-badge {
    width: 100%;
    max-width: 320px;
    justify-self: stretch;
    margin-left: 0;
  }

  .guarantee-logos img {
    width: 100%;
    max-width: none;
    height: 46px;
    object-fit: contain;
  }

  .guarantee-logos img[alt='Just Eat'],
  .guarantee-logos img[alt='Alfonsino'] {
    width: 100%;
    transform: none;
  }
}

@media (max-width: 420px) {
  .rushers-page {
    padding-inline: 10px;
  }

  .lang-btn,
  .theme-toggle {
    padding: 8px 10px;
    font-size: 12px;
  }

  .hero-copy .market-counter {
    font-size: 11px;
    gap: 4px;
  }

  .market-counter strong,
  #marketCounterValue {
    font-size: 11px;
  }

  .chat-thread {
    max-height: 48vh;
    min-height: 220px;
  }

  .msg p {
    font-size: .88rem;
  }

  .store-badges {
    grid-template-columns: 1fr;
  }

  .guarantee-badge {
    max-width: 100%;
  }
}

/* Mobile hotfixes (screenshot-driven) */
@media (max-width: 768px) {
  .hero-visual {
    min-height: 120px !important;
    max-height: 220px;
    margin-top: 2px;
    overflow: hidden;
    align-items: center;
  }

  .hero-rider {
    width: min(76vw, 300px) !important;
    max-width: 300px !important;
    transform: none !important;
    margin: 0 auto;
    display: block;
  }

  .hero-copy .market-counter {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px 8px;
    width: 100%;
    white-space: normal !important;
    max-width: 100%;
    overflow: hidden;
  }

  .market-counter strong {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #marketCounterValue {
    justify-self: end;
    white-space: nowrap;
    font-weight: 700;
  }

  .partner-strip {
    margin-top: 10px !important;
    clear: both;
  }

  .partner-strip p {
    font-size: 11px !important;
    line-height: 1.2;
    letter-spacing: .05em;
    margin-bottom: 6px;
  }

  .partner-card {
    min-height: 64px !important;
  }

  .partner-card img[alt='Just Eat'] {
    max-height: 42px !important;
  }

  .flow-shell {
    min-height: 0 !important;
  }

  .typewriter {
    min-height: 0 !important;
  }

  .chat-message,
  .flow-shell .choices {
    width: 100% !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 430px) {
  .hero-copy .market-counter {
    grid-template-columns: 1fr;
  }

  #marketCounterValue {
    justify-self: start;
  }

  .market-counter strong {
    white-space: normal;
    border-radius: 12px;
  }
}

/* Mobile emergency cleanup - hero */
@media (max-width: 768px) {
  body {
    background-image:
      radial-gradient(90% 70% at 14% 4%, rgba(120, 215, 255, 0.12) 0%, rgba(120, 215, 255, 0) 70%),
      linear-gradient(180deg, #f3f8ff 0%, #eef4ff 100%) !important;
    background-attachment: scroll;
  }

  body::before {
    display: none !important;
  }

  .hero {
    gap: 8px !important;
  }

  .hero-visual {
    display: none !important;
  }

  .hero-copy {
    padding-right: 0 !important;
  }

  .rushers-brand {
    width: 108px !important;
    margin-bottom: 8px !important;
  }

  .hero-copy h1 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .hero-copy p#heroDesc {
    margin-top: 10px !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    max-width: 24ch !important;
    text-wrap: balance;
  }

  .hero-copy .market-counter {
    margin-top: 8px !important;
    padding-right: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .market-counter strong {
    white-space: normal !important;
    line-height: 1.18;
    border-radius: 12px;
  }

  #marketCounterValue {
    justify-self: start !important;
    display: inline-block;
  }

  .partner-strip {
    margin-top: 12px !important;
  }
}

@media (max-width: 420px) {
  .rushers-brand {
    width: 98px !important;
  }

  .hero-copy h1 {
    font-size: clamp(1.55rem, 8.6vw, 2.1rem) !important;
  }

  .hero-copy p#heroDesc {
    font-size: 14px !important;
  }

  .partner-card {
    min-height: 60px !important;
    padding: 6px 8px !important;
  }
}

/* Mobile polish overrides (final) */
@media (max-width: 768px) {
  .top-controls {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
  }

  .lang-toggle {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    display: inline-flex !important;
    border-radius: 999px;
    overflow: hidden;
  }

  .lang-btn {
    min-width: 74px;
    min-height: 42px;
    padding: 9px 14px !important;
    font-size: 13px !important;
  }

  .theme-toggle {
    flex: 0 0 auto !important;
    width: auto !important;
    min-height: 42px;
    padding: 9px 14px !important;
    justify-self: end;
    font-size: 13px !important;
    border-radius: 999px;
    white-space: nowrap;
  }

  .hero-visual {
    display: flex !important;
    min-height: 110px !important;
    max-height: 150px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-top: 2px;
    margin-bottom: 2px;
    overflow: visible !important;
  }

  .hero-rider {
    width: min(44vw, 170px) !important;
    max-width: 170px !important;
    opacity: .96;
    transform: none !important;
    margin: 0 !important;
  }

  .hero-copy p#heroDesc {
    max-width: 22ch !important;
  }

  .store-badges {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    align-items: center;
  }

  .store-badges img {
    width: 100%;
    max-height: 36px !important;
    height: auto !important;
    object-fit: contain;
  }

  .quick-download {
    align-items: flex-start !important;
  }

  :root[data-theme='dark'] body {
    background-color: #0b1220 !important;
    background-image:
      radial-gradient(70% 55% at 10% 4%, rgba(46, 111, 255, 0.17) 0%, rgba(46, 111, 255, 0) 72%),
      radial-gradient(64% 52% at 88% 6%, rgba(157, 89, 255, 0.16) 0%, rgba(157, 89, 255, 0) 74%),
      linear-gradient(160deg, #111a2c 0%, #0d1626 42%, #0a121f 100%) !important;
  }
}

@media (max-width: 420px) {
  .top-controls {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lang-toggle,
  .theme-toggle {
    width: 100% !important;
  }

  .lang-btn {
    min-width: 0;
    flex: 1 1 50%;
  }

  .theme-toggle {
    justify-self: stretch;
    text-align: center;
  }

  .hero-visual {
    max-height: 130px !important;
    min-height: 96px !important;
  }

  .hero-rider {
    width: min(48vw, 158px) !important;
    max-width: 158px !important;
  }

  .store-badges {
    grid-template-columns: 1fr 1fr !important;
  }

  .store-badges img {
    max-height: 34px !important;
  }
}

/* Chat auto-flow UX */
.chat-thread {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.9) 14px, rgba(0,0,0,1) 34px, rgba(0,0,0,1) calc(100% - 26px), rgba(0,0,0,.92) calc(100% - 10px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.9) 14px, rgba(0,0,0,1) 34px, rgba(0,0,0,1) calc(100% - 26px), rgba(0,0,0,.92) calc(100% - 10px), transparent 100%);
}

@media (max-width: 768px) {
  .chat-thread {
    mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.92) 10px, rgba(0,0,0,1) 22px, rgba(0,0,0,1) calc(100% - 20px), rgba(0,0,0,.92) calc(100% - 8px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.92) 10px, rgba(0,0,0,1) 22px, rgba(0,0,0,1) calc(100% - 20px), rgba(0,0,0,.92) calc(100% - 8px), transparent 100%);
  }
}

/* Hero refinement */
.hero {
  align-items: end;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 0;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
  line-height: .94;
  letter-spacing: -0.035em;
  max-width: 12ch;
  text-wrap: balance;
}

.hero-copy h1 br {
  content: '';
}

#heroDesc {
  margin-top: 16px !important;
  font-size: clamp(1.08rem, 1.5vw, 1.32rem) !important;
  line-height: 1.22 !important;
  max-width: 34ch;
  color: color-mix(in srgb, var(--ink) 92%, #34475a);
}

.hero-copy .market-counter {
  margin-top: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: auto !important;
  max-width: 100%;
  white-space: nowrap !important;
}

.hero-copy .market-counter strong {
  white-space: nowrap !important;
  flex: 0 1 auto;
}

#marketCounterValue {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 700;
}

.hero-visual {
  min-height: 420px;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  right: 8%;
  bottom: 6%;
  width: 68%;
  height: 52%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(207, 168, 62, .16) 0%, rgba(207, 168, 62, 0) 72%);
  z-index: 0;
  pointer-events: none;
}

.hero-rider {
  width: min(460px, 92%);
  max-width: 460px;
  position: relative;
  z-index: 1;
  transform-origin: bottom right;
}

@media (max-width: 1200px) {
  .hero-copy h1 {
    font-size: clamp(2.2rem, 7vw, 3.8rem);
    max-width: 13ch;
  }

  #heroDesc {
    max-width: 30ch;
  }

  .hero-visual {
    min-height: 280px;
    justify-content: center;
  }

  .hero-rider {
    width: min(280px, 58vw);
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .hero {
    align-items: start;
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 9.6vw, 2.95rem) !important;
    line-height: .95 !important;
    max-width: 11ch !important;
    letter-spacing: -0.03em;
  }

  #heroDesc {
    font-size: 16px !important;
    line-height: 1.22 !important;
    max-width: 24ch !important;
  }

  .hero-copy .market-counter {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
    justify-content: flex-start !important;
    align-items: baseline !important;
    overflow: hidden;
  }

  .hero-copy .market-counter strong {
    min-width: 0;
    max-width: calc(100% - 96px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
  }

  #marketCounterValue {
    margin-left: auto;
    font-size: 12px !important;
    line-height: 1;
  }

  .hero-visual {
    display: flex !important;
    min-height: 96px !important;
    max-height: 116px !important;
    justify-content: flex-end !important;
    margin: 0 !important;
  }

  .hero-visual::before {
    display: none;
  }

  .hero-rider {
    width: min(34vw, 132px) !important;
    max-width: 132px !important;
    opacity: .95;
  }
}

@media (max-width: 430px) {
  .hero-copy h1 {
    font-size: clamp(1.9rem, 10vw, 2.45rem) !important;
    max-width: 10.8ch !important;
  }

  #heroDesc {
    font-size: 15px !important;
    max-width: 22ch !important;
  }

  .hero-copy .market-counter {
    gap: 5px !important;
  }

  .hero-copy .market-counter strong {
    max-width: calc(100% - 88px);
    font-size: 11px !important;
  }

  #marketCounterValue {
    font-size: 11px !important;
  }

  .hero-rider {
    width: min(36vw, 124px) !important;
    max-width: 124px !important;
  }
}

/* Hero inline rider + mobile compact header controls */
.hero-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.hero-rider-inline {
  display: none;
  width: 118px;
  height: auto;
  object-fit: contain;
  align-self: start;
  margin-top: 8px;
  filter: drop-shadow(0 8px 14px rgba(13, 24, 21, 0.08));
}

@media (max-width: 768px) {
  .hero-title-row {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .hero-rider-inline {
    display: block;
    width: 74px;
    margin-top: 2px;
    opacity: 0.96;
  }

  .hero-visual {
    display: none !important;
  }

  .top-controls {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  .lang-toggle {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: none !important;
  }

  .lang-btn {
    min-width: 58px !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
  }

  .theme-toggle {
    flex: 0 1 auto !important;
    width: auto !important;
    min-height: 38px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    text-align: center;
  }

  .quick-download {
    align-items: center !important;
  }

  .store-badges {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    width: 100%;
    gap: 8px !important;
  }

  .store-badges a {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  .store-badges img {
    width: 100%;
    max-width: 160px;
    max-height: 32px !important;
    height: auto !important;
    object-fit: contain;
  }

  .hero-copy .market-counter {
    gap: 4px !important;
  }

  .hero-copy .market-counter strong {
    max-width: calc(100% - 84px) !important;
  }
}

@media (max-width: 430px) {
  .hero-rider-inline {
    width: 64px;
  }

  .lang-btn {
    min-width: 54px !important;
    padding: 7px 9px !important;
  }

  .theme-toggle {
    padding: 7px 10px !important;
    font-size: 11px !important;
  }

  .store-badges img {
    max-height: 30px !important;
  }

  .hero-copy .market-counter strong {
    max-width: calc(100% - 80px) !important;
  }
}

/* Restore desktop hero, keep mobile inline rider */
#heroTitle br {
  display: none;
}

.hero-title-row {
  display: block;
}

.hero-rider-inline {
  display: none !important;
}

@media (min-width: 769px) {
  .hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 20px;
    align-items: initial;
  }

  .hero-copy {
    display: block;
    position: static;
  }

  .hero-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem) !important;
    line-height: 1.03 !important;
    letter-spacing: normal !important;
    max-width: none !important;
  }

  #heroDesc {
    margin-top: 12px !important;
    font-size: 1.2rem !important;
    line-height: 1.22 !important;
    max-width: 660px !important;
  }

  .hero-copy .market-counter {
    margin-top: 8px !important;
    display: inline-flex !important;
    width: auto !important;
    max-width: 100%;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  .hero-copy .market-counter strong {
    max-width: none !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
    overflow: visible !important;
  }

  #marketCounterValue {
    margin-left: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
  }

  .hero-visual {
    display: flex !important;
    min-height: 380px !important;
    align-items: end !important;
    justify-content: end !important;
    position: static !important;
    margin: 0 !important;
    max-height: none !important;
  }

  .hero-visual::before {
    display: none !important;
  }

  .hero-rider {
    width: min(580px, 120%) !important;
    max-width: none !important;
    position: static !important;
    opacity: 1 !important;
    transform: translate3d(0, var(--rusherboy-shift), 0) !important;
  }
}

@media (max-width: 768px) {
  #heroTitle br {
    display: block;
  }

  .hero-title-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
  }

  .hero-rider-inline {
    display: block !important;
    width: 58px !important;
    max-width: 58px !important;
    margin-top: 6px !important;
  }

  .hero-visual {
    display: none !important;
  }
}

@media (max-width: 430px) {
  .hero-rider-inline {
    width: 50px !important;
    max-width: 50px !important;
  }
}

/* Canonical hero/top controls responsive reset (wins over previous patches) */
.hero-rider-inline { display: none !important; }
#heroTitle br { display: none; }

@media (min-width: 769px) {
  .top-controls {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  .lang-toggle,
  .theme-toggle {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
  }

  .hero {
    display: grid !important;
    grid-template-columns: 1.1fr .9fr !important;
    gap: 20px !important;
    align-items: end !important;
  }

  .hero-title-row {
    display: block !important;
  }

  .hero-rider-inline {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 5vw, 4rem) !important;
    line-height: 1.03 !important;
    max-width: none !important;
    letter-spacing: normal !important;
  }

  #heroDesc {
    font-size: 1.2rem !important;
    line-height: 1.22 !important;
    max-width: 660px !important;
  }

  .hero-copy .market-counter {
    display: inline-flex !important;
    width: auto !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }

  .hero-copy .market-counter strong {
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  #marketCounterValue {
    margin-left: 0 !important;
    justify-self: auto !important;
    font-size: inherit !important;
  }

  .hero-visual {
    display: flex !important;
    min-height: 380px !important;
    max-height: none !important;
    align-items: end !important;
    justify-content: end !important;
    overflow: visible !important;
  }

  .hero-rider {
    display: block !important;
    width: min(580px, 120%) !important;
    max-width: none !important;
    transform: translate3d(0, var(--rusherboy-shift), 0) !important;
    opacity: 1 !important;
  }

  .store-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: auto !important;
  }

  .store-badges img {
    height: 46px !important;
    width: auto !important;
    max-width: none !important;
  }
}

@media (max-width: 768px) {
  #heroTitle br { display: block; }

  .top-controls {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  .lang-toggle {
    width: auto !important;
    max-width: none !important;
    flex: 0 1 auto !important;
  }

  .lang-btn {
    min-width: 56px !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
  }

  .theme-toggle {
    width: auto !important;
    flex: 0 1 auto !important;
    min-height: 38px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  .hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-items: start !important;
  }

  .hero-title-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    align-items: start !important;
  }

  .hero-rider-inline {
    display: block !important;
    width: 50px !important;
    max-width: 50px !important;
    height: auto !important;
    margin-top: 6px !important;
    opacity: .96 !important;
    flex-shrink: 0;
  }

  .hero-visual {
    display: none !important;
  }

  .hero-copy h1 {
    font-size: clamp(1.95rem, 10vw, 2.65rem) !important;
    line-height: .95 !important;
    max-width: 10.8ch !important;
    letter-spacing: -0.03em !important;
  }

  #heroDesc {
    margin-top: 10px !important;
    font-size: 15px !important;
    line-height: 1.22 !important;
    max-width: 24ch !important;
    text-wrap: balance;
  }

  .hero-copy .market-counter {
    display: flex !important;
    width: 100% !important;
    align-items: baseline !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow: hidden;
  }

  .hero-copy .market-counter strong {
    min-width: 0 !important;
    max-width: calc(100% - 86px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #marketCounterValue {
    margin-left: auto !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .store-badges {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .store-badges a {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: center !important;
  }

  .store-badges img {
    width: 100% !important;
    max-width: 150px !important;
    max-height: 32px !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 430px) {
  .hero-rider-inline {
    width: 44px !important;
    max-width: 44px !important;
  }

  .hero-copy h1 {
    font-size: clamp(1.82rem, 10.2vw, 2.35rem) !important;
  }

  #heroDesc {
    font-size: 14px !important;
    max-width: 22ch !important;
  }

  .hero-copy .market-counter strong {
    max-width: calc(100% - 78px) !important;
    font-size: 11px !important;
  }

  #marketCounterValue {
    font-size: 11px !important;
  }

  .store-badges img {
    max-height: 30px !important;
  }
}

/* Final mobile/desktop stabilization (hero + footer) */
@media (min-width: 769px) {
  .hero-rider-inline {
    display: none !important;
  }

  .hero-visual {
    display: flex !important;
  }

  .hero-rider {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .top-controls {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .lang-toggle {
    justify-self: start !important;
    width: auto !important;
    max-width: none !important;
  }

  .lang-btn {
    min-width: 60px !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  .theme-toggle {
    justify-self: end !important;
    width: auto !important;
    min-height: 40px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  .rushers-brand {
    display: block !important;
    width: 124px !important;
    margin: 0 auto 12px !important;
  }

  .hero-title-row {
    display: block !important;
  }

  .hero-rider-inline {
    display: none !important;
  }

  .hero-visual {
    display: none !important;
  }

  .hero-copy h1 {
    max-width: 100% !important;
    letter-spacing: -0.025em !important;
    line-height: 0.98 !important;
  }

  #heroDesc {
    max-width: 100% !important;
    font-size: 17px !important;
    line-height: 1.28 !important;
    text-wrap: pretty;
  }

  .hero-copy .market-counter {
    display: inline-flex !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .hero-copy .market-counter strong {
    max-width: calc(100% - 104px) !important;
    font-size: 12px !important;
    padding: 5px 10px !important;
  }

  #marketCounterValue {
    margin-left: 2px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

  .store-badges {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .store-badges a {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  .store-badges img {
    max-width: 100% !important;
    max-height: 36px !important;
    width: auto !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 430px) {
  .top-controls {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .lang-toggle,
  .theme-toggle {
    justify-self: stretch !important;
    width: 100% !important;
  }

  .theme-toggle {
    text-align: center !important;
    justify-content: center !important;
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 11vw, 2.7rem) !important;
    line-height: 0.98 !important;
  }

  #heroDesc {
    font-size: 15px !important;
    line-height: 1.28 !important;
  }

  .hero-copy .market-counter {
    gap: 6px !important;
  }

  .hero-copy .market-counter strong {
    max-width: calc(100% - 96px) !important;
    font-size: 11.5px !important;
    padding: 4px 9px !important;
  }

  #marketCounterValue {
    font-size: 11.5px !important;
    margin-left: 1px !important;
  }
}

.site-footer {
  margin-top: 40px;
  padding: 18px 16px 14px;
  border: 1px solid rgba(147, 180, 167, 0.45);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(247, 251, 254, 0.95), rgba(239, 246, 251, 0.96));
}

:root[data-theme='dark'] .site-footer {
  border-color: rgba(67, 96, 117, 0.58);
  background:
    linear-gradient(180deg, rgba(12, 18, 26, 0.94), rgba(16, 24, 34, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

@media (max-width: 768px) {
  .site-footer {
    margin-top: 30px;
    padding: 16px 14px 12px;
    border-radius: 16px;
  }

  .footer-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .guarantee-badge {
    order: 1;
    justify-self: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .footer-legal {
    order: 2;
  }

  .footer-middle {
    order: 3;
    display: none;
  }
}

/* Spacing tweak: separate partner section from market counter */
.partner-strip {
  margin-top: 20px !important;
}

@media (max-width: 768px) {
  .partner-strip {
    margin-top: 18px !important;
  }
}
