/* style.css — Odbieracz Landing Page */

:root {
  --font-display: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
}

/* ─── Global ─── */
a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
}

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

.section-padding {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
}

/* ─── Scroll Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.reveal-delay-3 {
  transition-delay: 300ms;
}

.reveal-delay-4 {
  transition-delay: 400ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Skip Link ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-accent);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 100;
  font-size: var(--text-sm);
}

.skip-link:focus {
  top: var(--space-2);
}

/* ─── Header ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  background: oklch(from var(--color-bg) l c h / 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
  border-bottom-color: oklch(from var(--color-border) l c h / 0.5);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  gap: var(--space-4);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-img {
  height: 36px;
  filter: brightness(226%) hue-rotate(12deg);
}

[data-theme="dark"] .header__logo-img {
  filter: invert(1) hue-rotate(180deg);
}

.header__nav {
  display: none;
  gap: var(--space-6);
  list-style: none;
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }
}

.header__nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.header__nav a:hover {
  color: var(--color-text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}

.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.header__cta {
  display: none !important;
}

@media (min-width: 768px) {
  .header__cta {
    display: inline-flex !important;
  }
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 60;
  padding: var(--space-20) var(--space-5);
  flex-direction: column;
  gap: var(--space-6);
}

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

.mobile-nav__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 44px;
  transition: all var(--transition-interactive);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px oklch(from var(--color-accent) l c h / 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  background: var(--color-accent-active);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface-offset);
}

.btn-sm {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
  min-height: 36px;
}

.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  min-height: 52px;
}

/* ─── Hero ─── */
.hero {
  padding-top: clamp(var(--space-12), 8vw, var(--space-20));
  padding-bottom: clamp(var(--space-12), 6vw, var(--space-20));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, oklch(from var(--color-accent) l c h / 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero__badge .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.08;
  color: var(--color-heading);
  margin-bottom: var(--space-5);
  max-width: 16ch;
}

.hero__title-accent {
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-bottom: var(--space-8);
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

@media (min-width: 480px) {
  .hero__ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero__trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
  }

  .hero__title {
    max-width: 14ch;
  }
}

.hero__visual {
  display: none;
}

@media (min-width: 768px) {
  .hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
}

.hero__phone-mockup {
  width: 260px;
  height: 520px;
  background: var(--color-surface);
  border-radius: 36px;
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
}

.phone__notch {
  width: 100px;
  height: 24px;
  background: var(--color-bg);
  border-radius: 0 0 14px 14px;
  margin: 0 auto var(--space-6);
}

.phone__screen {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-2);
}

.phone__msg {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  font-size: 12px;
  line-height: 1.45;
  max-width: 85%;
  animation: msg-fade 0.5s ease both;
}

.phone__msg--ai {
  background: var(--color-primary-light);
  color: var(--color-text);
  align-self: flex-start;
}

.phone__msg--user {
  background: var(--color-accent);
  color: #fff;
  align-self: flex-end;
}

.phone__msg:nth-child(2) {
  animation-delay: 0.3s;
}

.phone__msg:nth-child(3) {
  animation-delay: 0.6s;
}

.phone__msg:nth-child(4) {
  animation-delay: 0.9s;
}

.phone__msg:nth-child(5) {
  animation-delay: 1.2s;
}

@keyframes msg-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Problem Section ─── */
.problem {
  background: var(--color-surface);
}

.problem__grid {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .problem__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.stat-card {
  text-align: center;
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-card__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 28ch;
  margin-inline: auto;
}

.stat-bar {
  margin-top: var(--space-6);
}

.stat-bar__track {
  width: 100%;
  height: 12px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stat-bar__fill {
  height: 100%;
  width: 0;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-bar__fill.animated {
  width: 62%;
}

.stat-bar__legend {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.stat-bar__source {
  font-size: 0.7rem;
  color: var(--color-text-faint);
  margin-top: var(--space-2);
  font-style: italic;
}

.problem__scenarios {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.scenario {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
}

.scenario__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.scenario__icon svg {
  width: 20px;
  height: 20px;
}

.scenario__text h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.scenario__text p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
}

.problem__loss-callout {
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(135deg, var(--color-primary) 0%, oklch(from var(--color-primary) calc(l + 0.05) c h) 100%);
  border-radius: var(--radius-xl);
  color: #fff;
}

.problem__loss-callout p {
  font-size: var(--text-sm);
  line-height: 1.65;
  max-width: none;
}

.problem__loss-callout strong {
  font-weight: 700;
}

/* ─── How It Works ─── */
.how-it-works__steps {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

@media (min-width: 640px) {
  .how-it-works__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.step {
  text-align: left;
  position: relative;
}

@media (min-width: 640px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -20%;
    width: 40%;
    height: 2px;
    background: var(--color-divider);
  }
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: var(--color-accent-light);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.step__number svg {
  width: 24px;
  height: 24px;
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.how-it-works__footer {
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}

.how-it-works__footer svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.how-it-works__footer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ─── Features ─── */
.features {
  background: var(--color-surface);
}

.features__grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

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

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

.feature-card {
  padding: var(--space-5);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.feature-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.feature-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ─── Value Propositions ─── */
.value-prop__grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-10);
}

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

.value-prop-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.value-prop-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.value-prop-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-accent-light);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.value-prop-card__icon svg {
  width: 24px;
  height: 24px;
}

.value-prop-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.value-prop-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ─── Industries ─── */
.industries {
  background: var(--color-surface);
}

.industries__grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

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

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

.industry-card {
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
}

.industry-card__icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.industry-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.industry-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ─── ROI Calculator ─── */
.roi {
  background: var(--color-primary);
  color: #fff;
}

.roi .section-label {
  color: oklch(from var(--color-accent) l c h / 0.9);
}

.roi .section-title {
  color: #fff;
}

.roi .section-subtitle {
  color: oklch(1 0 0 / 0.7);
}

.roi__calculator {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .roi__calculator {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.roi__inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.roi__field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: oklch(1 0 0 / 0.85);
}

.roi__field input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: oklch(1 0 0 / 0.2);
  border-radius: var(--radius-full);
  outline: none;
}

.roi__field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.roi__field input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.roi__field-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-accent);
  margin-top: var(--space-1);
}

.roi__result {
  background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.roi__result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-3);
}

.roi__result-row:not(:last-child) {
  border-bottom: 1px solid oklch(1 0 0 / 0.1);
}

.roi__result-label {
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.75);
}

.roi__result-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
}

.roi__result-value--highlight {
  color: var(--color-accent);
  font-size: var(--text-lg);
}

.roi__result-value--loss {
  color: #f87171;
}

.roi__result-value--gain {
  color: #4ade80;
}

/* Dark mode — fix light blue backgrounds caused by --color-primary being #8ba4d4 */
[data-theme="dark"] .roi {
  background: var(--color-primary-light);
}

[data-theme="dark"] .problem__loss-callout {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-highlight) 100%);
}

/* ─── FAQ ─── */
.faq__list {
  margin-top: var(--space-8);
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-item__question {
  width: 100%;
  text-align: left;
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
  background: none;
  border: none;
  min-height: 44px;
}

.faq-item__question:hover {
  color: var(--color-accent);
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer p {
  padding-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ─── CTA / Contact ─── */
.cta-section {
  background: var(--color-surface);
}

.cta__layout {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .cta__layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.cta__form {
  background: var(--color-bg);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  min-height: 44px;
  transition: border-color var(--transition-interactive);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  outline: none;
}

.form-group input.form-error,
.form-group select.form-error {
  border-color: var(--color-error);
}

.form-group input.form-error:focus,
.form-group select.form-error:focus {
  border-color: var(--color-error);
}

.form-error-msg {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
}

.form-group select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: var(--space-8);
}

.cta__contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.cta__contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.cta__contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.cta__contact-item a {
  color: var(--color-text);
  font-weight: 500;
}

.cta__guarantee {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--color-accent-light);
  border-radius: var(--radius-lg);
}

.cta__guarantee p {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
}

.cta__guarantee strong {
  font-weight: 700;
}

/* ─── Footer ─── */
.footer {
  padding-block: var(--space-10);
  border-top: 1px solid var(--color-divider);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.footer__logo-img {
  height: 32px;
  filter: brightness(226%) hue-rotate(12deg);
}

[data-theme="dark"] .footer__logo-img {
  filter: invert(1) hue-rotate(180deg);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  list-style: none;
}

.footer__links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer__links a:hover {
  color: var(--color-text);
}

.footer__bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__bottom a {
  color: var(--color-text-faint);
}

.footer__bottom a:hover {
  color: var(--color-text-muted);
}

/* ─── Form success state ─── */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.form-success.show {
  display: block;
}

.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--color-success);
  margin: 0 auto var(--space-4);
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.form-success p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ─── Design Enhancements ─── */

/* Hero animated gradient mesh background */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, oklch(from var(--color-primary) l c h / 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, oklch(from var(--color-accent) l c h / 0.04) 0%, transparent 60%);
  pointer-events: none;
  animation: hero-mesh 12s ease-in-out infinite alternate;
}

@keyframes hero-mesh {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Hero grain texture overlay */
.hero .container {
  position: relative;
  z-index: 1;
}

/* Hero badge glow */
.hero__badge {
  box-shadow: 0 0 16px oklch(from var(--color-accent) l c h / 0.15);
}

/* Phone mockup floating animation */
.hero__phone-mockup {
  animation: phone-float 6s ease-in-out infinite;
}

@keyframes phone-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* Industry card hover interactions */
.industry-card {
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.industry-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md), 0 0 0 1px oklch(from var(--color-accent) l c h / 0.1);
  transform: translateY(-2px);
}

.industry-card__icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.industry-card:hover .industry-card__icon {
  transform: scale(1.02);
}

/* Feature card icon hover */
.feature-card__icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color var(--transition-interactive);
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.2) translateY(-2px);
}

/* Value prop card icon hover */
.value-prop-card__icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-prop-card:hover .value-prop-card__icon {
  transform: scale(1.08);
}

/* ROI range slider filled track */
.roi__field input[type="range"] {
  background: linear-gradient(to right, var(--color-accent) 0%, var(--color-accent) var(--range-progress, 50%), oklch(1 0 0 / 0.2) var(--range-progress, 50%), oklch(1 0 0 / 0.2) 100%);
}

/* FAQ open item left border accent */
.faq-item {
  transition: border-left-color 0.3s ease, padding-left 0.3s ease;
  border-left: 3px solid transparent;
}

.faq-item.open {
  border-left-color: var(--color-accent);
  padding-left: var(--space-4);
}

/* CTA section radial glow */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, oklch(from var(--color-accent) l c h / 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Section curved dividers */
.problem::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--color-bg);
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 1;
}

.problem {
  position: relative;
}

.features {
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--color-bg);
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 1;
}

.industries {
  position: relative;
}

.industries::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--color-bg);
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 1;
}

/* ─── Legal Pages ─── */
.legal-content {
  max-width: 640px;
  margin-inline: auto;
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
  padding-inline: var(--space-5);
}

@media (min-width: 768px) {
  .legal-content {
    padding-inline: var(--space-8);
  }
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.legal-content .legal-draft {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.legal-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: none;
}

.legal-content ul,
.legal-content ol {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-content li {
  margin-bottom: var(--space-2);
  max-width: none;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--color-accent-hover);
}