/* ============================================
   Hey Assist — atiende-ia.es
   Minimalist design system · Vodafone palette
   ============================================ */

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

:root {
  --vf-red: #E60000;
  --vf-red-hover: #CC0000;
  --black: #1d1d1f;
  --gray-900: #333336;
  --gray-600: #6e6e73;
  --gray-400: #aeaeb2;
  --gray-200: #d2d2d7;
  --gray-100: #e8e8ed;
  --gray-50: #f5f5f7;
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1080px;
  --section-py: 120px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 14px;
  color: var(--gray-600);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--vf-red);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--vf-red);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 980px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn:hover {
  background: var(--vf-red-hover);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 7px 16px;
  font-size: 12px;
}

.btn--dark {
  background: var(--black);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--gray-900);
}

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

/* --- Hero --- */
.hero {
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-lead {
  font-size: clamp(22px, 3.5vw, 32px);
  color: var(--gray-600);
  font-weight: 400;
  margin-bottom: 4px;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--gray-400);
  font-weight: 400;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Hero Mockups */
.hero-mockup {
  max-width: 900px;
  margin: 60px auto 0;
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  padding: 0 24px;
}

/* Phone Mockup */
.mockup-phone {
  width: 300px;
  flex-shrink: 0;
  background: var(--gray-50);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.phone-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
}

.phone-name {
  font-size: 13px;
  font-weight: 600;
}

.phone-status {
  font-size: 11px;
  color: var(--gray-400);
}

.phone-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.msg--user {
  align-self: flex-end;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-bottom-right-radius: 4px;
}

.msg--bot {
  align-self: flex-start;
  background: var(--vf-red);
  color: var(--white);
  border-bottom-left-radius: 4px;
}

.phone-input {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  background: var(--white);
  font-size: 12px;
  color: var(--gray-400);
}

/* Dashboard Mockup */
.mockup-dashboard {
  flex: 1;
  max-width: 480px;
  background: var(--gray-50);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
}

.dash-header {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
}

.dash-tab {
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-400);
}

.dash-tab--active {
  color: var(--vf-red);
  box-shadow: inset 0 -2px 0 var(--vf-red);
}

.dash-body {
  padding: 8px;
}

.dash-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.15s;
}

.dash-contact:first-child {
  background: var(--white);
}

.dash-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  flex-shrink: 0;
}

.dash-contact-info {
  flex: 1;
  min-width: 0;
}

.dash-contact-name {
  font-size: 13px;
  font-weight: 500;
}

.dash-contact-msg {
  font-size: 11px;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 980px;
  background: var(--vf-red);
  color: var(--white);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.dash-badge--manual {
  background: var(--gray-200);
  color: var(--gray-600);
}

/* --- Feature Sections --- */
.feature {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-py) 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature--reverse {
  direction: rtl;
}

.feature--reverse>* {
  direction: ltr;
}

.feature-text h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.feature-text p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

/* --- Mockup: Calendar --- */
.mockup-calendar {
  width: 100%;
  max-width: 380px;
  background: var(--gray-50);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--gray-100);
}

.cal-header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.cal-days {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
}

.cal-days span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-slot {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cal-time {
  font-size: 11px;
  color: var(--gray-400);
  width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cal-event {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

.cal-event--booked {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--gray-100);
}

.cal-event--new {
  background: var(--vf-red);
  color: var(--white);
}

.cal-event--break {
  background: var(--gray-100);
  color: var(--gray-400);
  font-style: italic;
}

/* --- Mockup: Chat Mini --- */
.mockup-chat-mini {
  width: 100%;
  max-width: 380px;
  background: var(--gray-50);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-msg {
  display: flex;
}

.mini-msg--user {
  justify-content: flex-end;
}

.mini-msg--bot {
  justify-content: flex-start;
}

.mini-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.55;
}

.mini-msg--user .mini-bubble {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-bottom-right-radius: 4px;
}

.mini-msg--bot .mini-bubble {
  background: var(--vf-red);
  color: var(--white);
  border-bottom-left-radius: 4px;
}

/* --- Mockup: Knowledge Base --- */
.mockup-kb {
  width: 100%;
  max-width: 380px;
  background: var(--gray-50);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--gray-100);
}

.kb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-100);
  margin-bottom: 20px;
  color: var(--gray-400);
  font-size: 12px;
}

.kb-search svg {
  flex-shrink: 0;
  color: var(--gray-400);
}

.kb-entries {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kb-entry {
  padding: 14px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-100);
}

.kb-q {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.kb-a {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 6px;
}

.kb-source {
  font-size: 10px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* --- Mockup: Voice --- */
.mockup-voice {
  width: 100%;
  max-width: 380px;
  background: var(--gray-50);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.voice-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--gray-100);
}

.voice-icon {
  color: var(--gray-600);
  flex-shrink: 0;
}

.voice-wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
}

.voice-wave span {
  flex: 1;
  background: var(--gray-300, #c7c7cc);
  border-radius: 2px;
  min-width: 3px;
}

.voice-wave span:nth-child(1) {
  height: 30%;
}

.voice-wave span:nth-child(2) {
  height: 60%;
}

.voice-wave span:nth-child(3) {
  height: 45%;
}

.voice-wave span:nth-child(4) {
  height: 80%;
}

.voice-wave span:nth-child(5) {
  height: 55%;
}

.voice-wave span:nth-child(6) {
  height: 90%;
}

.voice-wave span:nth-child(7) {
  height: 70%;
}

.voice-wave span:nth-child(8) {
  height: 40%;
}

.voice-wave span:nth-child(9) {
  height: 85%;
}

.voice-wave span:nth-child(10) {
  height: 50%;
}

.voice-wave span:nth-child(11) {
  height: 65%;
}

.voice-wave span:nth-child(12) {
  height: 35%;
}

.voice-wave span:nth-child(13) {
  height: 75%;
}

.voice-wave span:nth-child(14) {
  height: 45%;
}

.voice-wave span:nth-child(15) {
  height: 25%;
}

.voice-time {
  font-size: 11px;
  color: var(--gray-400);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.voice-transcription {
  padding: 14px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-100);
}

.voice-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.voice-text {
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.5;
  font-style: italic;
}

.voice-response .mini-bubble {
  background: var(--vf-red);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  font-size: 12.5px;
  line-height: 1.55;
}

/* --- Mockup: Schedule --- */
.mockup-schedule {
  width: 100%;
  max-width: 400px;
  background: var(--gray-50);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--gray-100);
}

.sched-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.sched-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.sched-row {
  display: grid;
  grid-template-columns: 60px repeat(5, 1fr);
  gap: 4px;
  align-items: center;
}

.sched-row--header {
  margin-bottom: 4px;
}

.sched-row--header div {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sched-name {
  font-size: 12px;
  font-weight: 500;
  text-align: left !important;
  color: var(--black) !important;
}

.sched-block {
  height: 28px;
  border-radius: 6px;
}

.sched-block--on {
  background: var(--vf-red);
}

.sched-block--off {
  background: var(--gray-200);
}

.sched-legend {
  display: flex;
  gap: 16px;
}

.sched-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--gray-600);
}

.sched-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
}

.sched-dot--on {
  background: var(--vf-red);
}

.sched-dot--off {
  background: var(--gray-200);
}

/* --- Mockup: Security --- */
.mockup-security {
  width: 100%;
  max-width: 380px;
  background: var(--gray-50);
  border-radius: 16px;
  padding: 32px 24px;
  border: 1px solid var(--gray-100);
  text-align: center;
}

.sec-shield {
  margin-bottom: 24px;
  color: var(--black);
}

.sec-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.sec-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
  padding: 8px 12px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-100);
}

.sec-tick {
  font-weight: 700;
  color: var(--vf-red);
  font-size: 14px;
}

/* --- Mockup: Languages --- */
.mockup-lang {
  width: 100%;
  max-width: 380px;
  background: var(--gray-50);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--gray-100);
}

.lang-conversation {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.lang-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-flag {
  font-size: 20px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.lang-bubble {
  padding: 10px 14px;
  background: var(--white);
  border-radius: 12px;
  font-size: 12.5px;
  border: 1px solid var(--gray-100);
  line-height: 1.4;
}

.lang-label {
  text-align: center;
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* --- Mockup: Transfer --- */
.mockup-transfer {
  width: 100%;
  max-width: 380px;
  background: var(--gray-50);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--gray-100);
}

.transfer-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
}

.transfer-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.transfer-node svg {
  color: var(--black);
}

.transfer-node span {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-600);
}

.transfer-arrow {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
}

.transfer-line {
  width: 100%;
  height: 2px;
  background: var(--gray-200);
  position: relative;
}

.transfer-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: var(--gray-200);
}

.transfer-trigger {
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-400);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.transfer-context {
  padding: 14px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-100);
}

.transfer-context-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.transfer-context-item {
  font-size: 12px;
  color: var(--gray-600);
  padding: 4px 0;
  padding-left: 14px;
  position: relative;
}

.transfer-context-item::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gray-400);
}

/* --- Mockup: Panel --- */
.mockup-panel {
  width: 100%;
  max-width: 400px;
  background: var(--gray-50);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  display: flex;
  min-height: 260px;
}

.panel-sidebar {
  width: 44px;
  background: var(--white);
  border-right: 1px solid var(--gray-100);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.panel-nav-item {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--gray-400);
}

.panel-nav-item--active {
  background: var(--vf-red);
  color: var(--white);
}

.panel-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-stats {
  display: flex;
  gap: 12px;
}

.panel-stat {
  flex: 1;
  padding: 12px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-100);
  text-align: center;
}

.panel-stat-num {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-stat-label {
  font-size: 9px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.panel-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 12px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-100);
}

.panel-bar {
  flex: 1;
  background: var(--vf-red);
  border-radius: 4px 4px 0 0;
  min-height: 8px;
}

/* --- Mockup: Trust --- */
.mockup-trust {
  width: 100%;
  max-width: 380px;
  background: var(--gray-50);
  border-radius: 16px;
  padding: 40px 24px;
  border: 1px solid var(--gray-100);
}

.trust-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.trust-logo {
  text-align: center;
  padding: 20px 0;
}

.trust-brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.trust-role {
  font-size: 12px;
  color: var(--gray-400);
}

.trust-divider {
  width: 40px;
  height: 1px;
  background: var(--gray-200);
}

/* --- Steps --- */
.steps {
  padding: var(--section-py) 24px;
  background: var(--gray-50);
}

.steps-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 48px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--vf-red);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.step-label {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* --- Stats --- */
.stats {
  padding: 80px 24px;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* --- CTA --- */
.cta {
  padding: var(--section-py) 24px;
  text-align: center;
}

.cta-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.cta-sub {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--gray-100);
  padding: 24px 24px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-size: 14px;
  font-weight: 600;
}

.footer-sep {
  color: var(--gray-200);
}

.footer-vodafone {
  display: flex;
  align-items: center;
}

.vf-logo {
  display: block;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--gray-400);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--black);
}

.footer-copy {
  font-size: 12px;
  color: var(--gray-400);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-vf-logo {
  height: 30px;
  width: auto;
  display: block;
}

/* --- Modal & Form --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.25s;
}

.modal-overlay.is-open {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

.modal-close:hover {
  color: var(--black);
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.modal-sub {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--vf-red);
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.08);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23aeaeb2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group textarea {
  resize: vertical;
  min-height: 72px;
}

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

.btn--full {
  width: 100%;
  text-align: center;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-turnstile {
  display: flex;
  justify-content: center;
}

.form-error {
  font-size: 13px;
  color: var(--vf-red);
  background: rgba(230, 0, 0, 0.06);
  border: 1px solid rgba(230, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0;
}

.form-legal {
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
}

.form-legal a {
  color: var(--gray-600);
  text-decoration: underline;
}

/* Success state */
.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 20px 0;
}

.success-icon {
  margin-bottom: 4px;
}

.modal-success h3 {
  font-size: 20px;
  font-weight: 700;
}

.modal-success p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  max-width: var(--max-w);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 24px;
}

.cookie-banner-content {
  flex: 1;
  min-width: 0;
}

.cookie-banner-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--black);
}

.cookie-banner-text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
}

.cookie-banner-text a {
  color: var(--vf-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
  color: var(--vf-red-hover);
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn--ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.btn--ghost:hover {
  background: var(--gray-50);
  color: var(--black);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  :root {
    --section-py: 80px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 60px 20px 40px;
  }

  .hero-mockup {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 12px;
  }

  .mockup-phone {
    width: 100%;
    max-width: 340px;
  }

  .mockup-dashboard {
    max-width: 340px;
    width: 100%;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 60px 20px;
  }

  .feature--reverse {
    direction: ltr;
  }

  .feature-visual {
    order: -1;
  }

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

  .stats-grid {
    gap: 32px;
    flex-wrap: wrap;
  }

  .stat-num {
    font-size: 32px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 20px;
  }

  .cookie-banner-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: 28px 20px;
    border-radius: 16px;
  }

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

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

  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .panel-stats {
    flex-direction: column;
  }

  .sched-row {
    grid-template-columns: 48px repeat(5, 1fr);
  }

  .sched-name {
    font-size: 11px;
  }
}