/* Adluza marketing site. Colours match the app (apps/web/src/app/globals.css). */
:root {
  --brand-50: #f5f1ff;
  --brand-100: #ebe3ff;
  --brand-200: #d7c8ff;
  --brand-500: #7d3fff;
  --brand-600: #6a21f5;
  --brand-700: #5b17d6;
  --brand-900: #3d138b;
  --bg: #faf9fd;
  --card: #ffffff;
  --text: #1b1630;
  --muted: #6b6480;
  --border: #e6e1f2;
  --alt: #f3f0fa;
  --good: #15803d;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow: 0 1px 2px rgb(27 22 48 / 0.06), 0 8px 24px rgb(27 22 48 / 0.06);
  --shadow-lg: 0 2px 4px rgb(27 22 48 / 0.05), 0 24px 48px rgb(61 19 139 / 0.12);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: var(--brand-600);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--brand-600);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container.narrow {
  max-width: 760px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.925rem;
}
.btn-lg {
  padding: 0.85rem 1.4rem;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--brand-600);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-700);
}
.btn-outline {
  background: var(--card);
  color: var(--brand-700);
  border-color: var(--brand-200);
}
.btn-outline:hover {
  border-color: var(--brand-600);
  background: var(--brand-50);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--card);
  border-color: var(--brand-200);
}
.btn-light {
  background: #fff;
  color: var(--brand-700);
}
.btn-light:hover {
  background: var(--brand-50);
}
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.45);
}
.btn-ghost-light:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(250 249 253 / 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 1px 2px rgb(27 22 48 / 0.15);
}
.logo-mark svg {
  width: 1.25rem;
  height: 1.25rem;
}
.logo-text {
  font-size: 1.2rem;
}
.logo-text span {
  color: var(--brand-600);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:not(.btn):hover {
  color: var(--text);
}
.site-nav .nav-login {
  color: var(--text);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.35rem;
  color: var(--text);
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--brand-100), transparent 60%),
    radial-gradient(40rem 24rem at -10% 10%, #f0eafe, transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.eyebrow {
  color: var(--brand-600);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}
.eyebrow.center {
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.lead {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-actions.center {
  justify-content: center;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.925rem;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-points li::before {
  content: '';
  width: 1rem;
  height: 1rem;
  flex: none;
  background: var(--good);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* Dashboard illustration */
.mock {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #fcfbff;
}
.mock-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--border);
}
.mock-title {
  margin-left: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.mock-tag {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}
.mock-body {
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
}
.kpi-label {
  font-size: 0.72rem;
  color: var(--muted);
}
.kpi-value {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.kpi-delta {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}
.kpi-delta.good {
  color: var(--good);
}
.chart-card {
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.7rem 0.8rem 0.5rem;
}
.chart-head {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.chart {
  width: 100%;
  height: auto;
}
.chart .grid line {
  stroke: var(--border);
  stroke-width: 1;
}
.chart .area {
  fill: var(--brand-100);
  opacity: 0.7;
}
.chart .line {
  fill: none;
  stroke: var(--brand-600);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart .dot {
  fill: var(--brand-600);
  stroke: var(--card);
  stroke-width: 2;
}
.chart .axis text {
  font-size: 8px;
  fill: var(--muted);
  font-family: var(--font);
}
.insight {
  display: grid;
  gap: 0.4rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.6rem;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}
.insight-badge {
  justify-self: start;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-700);
  background: #fff;
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}
.insight p {
  font-size: 0.85rem;
  color: var(--text);
}

/* Sections */
.section {
  padding: 5rem 0;
}
.section.alt {
  background: var(--alt);
}
.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  max-width: 44rem;
  margin: 0 auto;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-top: 0.9rem;
  font-size: 1.05rem;
}

/* Problems */
.problems {
  padding-top: 4rem;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.problem {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.problem h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.problem p {
  color: var(--muted);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.65rem;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 1rem;
}
.feature-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.feature p {
  color: var(--muted);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: none;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.step-num {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--muted);
}

/* Trust */
.trust {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.trust h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
}
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.trust-list li {
  border-left: 3px solid var(--brand-600);
  padding: 0.25rem 0 0.25rem 1rem;
}
.trust-list h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.trust-list p {
  color: var(--muted);
}

/* Pricing */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  width: max-content;
  margin: 2rem auto 0;
  padding: 0.3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.toggle-btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.toggle-btn[aria-pressed='true'] {
  background: var(--brand-600);
  color: #fff;
}
.toggle-btn .save {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--good);
  background: #e9f7ee;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
}
.toggle-btn[aria-pressed='true'] .save {
  color: var(--brand-700);
  background: #fff;
}
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 2.5rem;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
}
.plan.featured {
  border: 2px solid var(--brand-600);
  box-shadow: var(--shadow-lg);
}
.plan-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-600);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 {
  font-size: 1.2rem;
}
.plan-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.35rem;
  min-height: 2.9em;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 1.1rem 0 1.25rem;
}
.amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.per {
  color: var(--muted);
  font-size: 0.95rem;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.93rem;
}
.plan-features li {
  position: relative;
  padding-left: 1.55rem;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  background: var(--brand-600);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.price-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* FAQ */
.faq {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.75rem;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.25rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 1.3rem;
  line-height: 1;
  color: var(--brand-600);
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  color: var(--muted);
  padding-bottom: 1.1rem;
}

/* CTA */
.cta {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
  color: #fff;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  max-width: 40rem;
  margin: 0 auto;
}
.cta p {
  margin-top: 0.9rem;
  color: rgb(255 255 255 / 0.85);
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand p {
  color: var(--muted);
  margin-top: 0.8rem;
  max-width: 18rem;
}
.site-footer h3 {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.site-footer ul a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer ul a:hover {
  color: var(--brand-600);
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* 404 */
.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}
.not-found h1 {
  font-size: 2.2rem;
}
.not-found p {
  color: var(--muted);
  margin: 0.8rem 0 1.6rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    max-width: 640px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a:not(.btn) {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .site-nav .btn {
    margin-top: 1rem;
  }
  .problem-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .trust {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 3rem;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .plans,
  .trust-list {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .section {
    padding: 3.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
