/* ==========================================================================
   Franscale — Marketing site stylesheet
   Brand: UK-built CRM for franchise recruitment
   ========================================================================== */

:root {
  /* Brand palette (from brief) */
  --primary: #1E50FF;
  --primary-dark: #1340D9;
  --primary-soft: #EAF0FF;
  --ink: #0F172A;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;

  /* Semantic */
  --hot: #DC2626;
  --hot-soft: #FEE2E2;
  --warm: #F59E0B;
  --warm-soft: #FEF3C7;
  --signed: #16A34A;
  --signed-soft: #DCFCE7;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06);
  --shadow-blue: 0 12px 32px rgba(30, 80, 255, 0.18);

  /* Type */
  --font: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 480ms;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--primary-dark); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-weight: 800; font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.85rem); letter-spacing: -0.03em; }
h3 { font-weight: 700; font-size: clamp(1.35rem, 2vw, 1.65rem); letter-spacing: -0.02em; }
h4 { font-weight: 600; font-size: 1.15rem; }
h5 { font-weight: 600; font-size: 1rem; }

p { color: var(--slate-700); }
.lead { font-size: 1.2rem; color: var(--slate-700); line-height: 1.65; }

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

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 16px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { left: 16px; color: #fff; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--slate-200); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand { display: inline-flex; align-items: center; gap: 8px; }
.nav__brand img { height: 30px; width: auto; }
.nav__brand:hover { color: var(--ink); }

.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__menu a {
  display: inline-block;
  padding: 9px 14px;
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__menu a:hover { color: var(--ink); background: var(--slate-100); }
.nav__menu a.is-active { color: var(--ink); }

.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__signin { color: var(--slate-700); font-weight: 500; font-size: 0.95rem; padding: 9px 14px; }
.nav__signin:hover { color: var(--ink); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.nav__toggle:hover { background: var(--slate-100); }
.nav__toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative;
  transition: transform var(--t-med) var(--ease), background var(--t-fast) var(--ease);
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink);
  transition: transform var(--t-med) var(--ease), top var(--t-med) var(--ease);
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
.nav__toggle.is-open span { background: transparent; }
.nav__toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav__toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__menu, .nav__signin { display: none; }
  .nav__toggle { display: inline-flex; }
  .mobile-menu.is-open { display: block; }
}

.mobile-menu {
  display: none;
  position: fixed; inset: 72px 0 0 0;
  background: var(--white);
  padding: 24px;
  z-index: 99;
  overflow-y: auto;
  border-top: 1px solid var(--slate-200);
}
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block; padding: 14px 16px;
  font-size: 1.05rem; font-weight: 500; color: var(--ink);
  border-radius: var(--radius-sm);
}
.mobile-menu a:hover { background: var(--slate-100); }
.mobile-menu .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 16px 40px rgba(30, 80, 255, 0.25); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--slate-200);
}
.btn--ghost:hover { background: var(--slate-50); border-color: var(--slate-300); color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #1c2940; color: #fff; transform: translateY(-1px); }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }

.btn svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.btn:hover svg { transform: translateX(2px); }

/* ==========================================================================
   Pills, badges, chips
   ========================================================================== */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-size: 0.82rem; font-weight: 600;
  background: var(--primary-soft); color: var(--primary);
  border-radius: 999px;
}
.pill--ink { background: var(--slate-100); color: var(--slate-700); }
.pill--hot { background: var(--hot-soft); color: var(--hot); }
.pill--warm { background: var(--warm-soft); color: #B45309; }
.pill--signed { background: var(--signed-soft); color: #15803D; }

.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: rgba(255, 255, 255, 0.75); }
.section--soft { background: var(--slate-50); }
.section--bordered { border-top: 1px solid var(--slate-200); }

.section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section__head--left { text-align: left; margin: 0 0 56px; }
.section__eyebrow {
  display: inline-block;
  font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 16px;
}
.section__title { margin-bottom: 16px; }
.section__sub { font-size: 1.15rem; color: var(--slate-500); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 85% -10%, rgba(30, 80, 255, 0.08), transparent 60%),
    radial-gradient(600px 400px at 0% 110%, rgba(30, 80, 255, 0.05), transparent 60%),
    var(--white);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__copy { max-width: 560px; }
.hero__pill { margin-bottom: 22px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--primary); position: relative; }
.hero__sub { font-size: 1.18rem; color: var(--slate-500); margin-bottom: 32px; line-height: 1.6; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero__meta { display: flex; align-items: center; gap: 18px; font-size: 0.92rem; color: var(--slate-500); flex-wrap: wrap; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--signed); }

.hero__visual { position: relative; }

@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__copy { max-width: 100%; }
}

/* ==========================================================================
   Pipeline mock (hero visual)
   ========================================================================== */
.pipeline-mock {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  position: relative;
  overflow: hidden;
  transform: perspective(1400px) rotateY(-3deg) rotateX(2deg);
  transition: transform var(--t-slow) var(--ease);
}
.pipeline-mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }

.pipeline-mock__bar {
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--slate-100);
}
.pipeline-mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-200); display: inline-block; }
.pipeline-mock__bar i:first-child { background: #FF5F57; }
.pipeline-mock__bar i:nth-child(2) { background: #FEBC2E; }
.pipeline-mock__bar i:nth-child(3) { background: #28C840; }
.pipeline-mock__bar span {
  margin-left: 12px; font-size: 0.78rem; color: var(--slate-500);
  background: var(--slate-50); padding: 4px 12px; border-radius: 6px;
  font-weight: 500;
}

.pipeline-mock__cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.pipeline-col {
  background: var(--slate-50); border-radius: var(--radius);
  padding: 10px;
}
.pipeline-col__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.pipeline-col__title { font-size: 0.72rem; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; }
.pipeline-col__count { font-size: 0.7rem; font-weight: 600; color: var(--slate-500); background: var(--white); padding: 2px 7px; border-radius: 999px; }

.lead-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-xs);
  position: relative;
}
.lead-card__head { display: flex; justify-content: space-between; margin-bottom: 6px; align-items: center; }
.lead-card__name { font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.lead-card__score { font-size: 0.66rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.lead-card__score--hot { background: var(--hot-soft); color: var(--hot); }
.lead-card__score--warm { background: var(--warm-soft); color: #B45309; }
.lead-card__score--cold { background: var(--slate-100); color: var(--slate-500); }
.lead-card__meta { font-size: 0.68rem; color: var(--slate-500); }
.lead-card__bar { height: 3px; background: var(--slate-100); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.lead-card__bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.lead-card__bar i.bar-hot { background: var(--hot); }
.lead-card__bar i.bar-warm { background: var(--warm); }
.lead-card__bar i.bar-signed { background: var(--signed); }

.pipeline-mock__alert {
  position: absolute; top: 96px; right: -18px;
  background: var(--white); border: 1px solid var(--hot-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; gap: 10px; align-items: flex-start;
  box-shadow: var(--shadow-md);
  width: 240px;
  animation: float 5s ease-in-out infinite;
}
.pipeline-mock__alert::before {
  content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 3px;
  background: var(--hot); border-radius: 3px 0 0 3px;
}
.pipeline-mock__alert i {
  flex: 0 0 auto; width: 22px; height: 22px;
  background: var(--hot-soft); color: var(--hot); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 700; font-size: 0.85rem;
}
.pipeline-mock__alert h5 { font-size: 0.78rem; color: var(--ink); margin-bottom: 2px; }
.pipeline-mock__alert p { font-size: 0.72rem; color: var(--slate-500); margin: 0; line-height: 1.45; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 1000px) {
  .pipeline-mock__alert { right: 8px; }
  .pipeline-mock { transform: none; }
}
@media (max-width: 600px) {
  .pipeline-mock__cols { grid-template-columns: repeat(2, 1fr); }
  .pipeline-mock__alert { position: relative; right: auto; top: auto; margin-top: 16px; width: 100%; }
}

/* ==========================================================================
   Logo strip / social proof
   ========================================================================== */
.logo-strip { padding: 56px 0; border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); background: var(--white); }
.logo-strip__title {
  text-align: center; font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--slate-500); margin-bottom: 28px;
}
.logo-strip__items {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px;
  align-items: center; opacity: 0.55;
}
.logo-strip__item {
  text-align: center; font-weight: 700; font-size: 1.05rem;
  color: var(--slate-500); letter-spacing: -0.01em;
}
@media (max-width: 800px) {
  .logo-strip__items { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ==========================================================================
   Feature pillars (3-up)
   ========================================================================== */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; gap: 24px; } }

.pillar {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  position: relative; overflow: hidden;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}
.pillar__icon {
  width: 48px; height: 48px;
  background: var(--primary-soft); color: var(--primary);
  border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.pillar__icon svg { width: 22px; height: 22px; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--slate-500); font-size: 1rem; }

/* ==========================================================================
   Feature grid (6-up tiles)
   ========================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-tile {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.feature-tile:hover { border-color: var(--primary); transform: translateY(-2px); }
.feature-tile__icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--slate-100); color: var(--ink);
  margin-bottom: 18px;
}
.feature-tile__icon svg { width: 19px; height: 19px; }
.feature-tile h4 { margin-bottom: 8px; font-size: 1.05rem; font-weight: 700; }
.feature-tile p { color: var(--slate-500); font-size: 0.95rem; line-height: 1.55; }

/* ==========================================================================
   Two-column feature blocks (alternating)
   ========================================================================== */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}
.split:last-child { margin-bottom: 0; }
.split--reverse .split__visual { order: -1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; margin-bottom: 64px; }
  .split--reverse .split__visual { order: 0; }
}

.split__copy h2 { margin-bottom: 18px; }
.split__copy .lead { margin-bottom: 24px; }
.split__copy ul { list-style: none; margin-bottom: 28px; }
.split__copy li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 8px 0; color: var(--slate-700);
}
.split__copy li::before {
  content: ''; flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><circle cx='10' cy='10' r='10' fill='%231E50FF'/><path d='M6 10.5l2.5 2.5L14 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain; background-repeat: no-repeat;
}

.split__visual {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  overflow: hidden;
}

/* ==========================================================================
   Score visual
   ========================================================================== */
.score-visual { padding: 12px; }
.score-visual__row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--slate-200);
}
.score-visual__row:last-child { border-bottom: 0; }
.score-visual__label {
  flex: 0 0 130px; font-size: 0.88rem; color: var(--slate-700); font-weight: 500;
}
.score-visual__bar {
  flex: 1; height: 8px; background: var(--slate-100); border-radius: 999px; overflow: hidden;
}
.score-visual__bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.score-visual__weight {
  flex: 0 0 44px; text-align: right;
  font-size: 0.85rem; font-weight: 600; color: var(--slate-700);
}
.score-visual__total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--slate-200);
}
.score-visual__total strong { font-size: 2.4rem; font-weight: 800; color: var(--primary); }
.score-visual__total span { font-size: 0.95rem; color: var(--slate-500); font-weight: 500; }

/* ==========================================================================
   Territory map mock
   ========================================================================== */
.territory-map {
  position: relative;
  height: 360px;
  background:
    radial-gradient(circle at 20% 30%, rgba(30,80,255,0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(22,163,74,0.08), transparent 50%),
    var(--slate-50);
  border-radius: var(--radius);
  overflow: hidden;
}
.territory-map svg { width: 100%; height: 100%; }
.territory-map__legend {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--white); padding: 10px 14px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex; gap: 14px;
  font-size: 0.8rem; font-weight: 500;
}
.territory-map__legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--slate-700); }
.territory-map__legend i { width: 10px; height: 10px; border-radius: 50%; }

/* ==========================================================================
   Stats / numbers
   ========================================================================== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat__num { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--primary); margin-bottom: 4px; letter-spacing: -0.04em; }
.stat__label { font-size: 0.95rem; color: var(--slate-500); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 920px; margin: 0 auto;
}
@media (max-width: 800px) { .pricing-cards { grid-template-columns: 1fr; } }

.price-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
}
.price-card--featured {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.price-card--featured h3, .price-card--featured .price-card__price { color: #fff; }
.price-card--featured .price-card__per, .price-card--featured p, .price-card--featured ul li { color: rgba(255, 255, 255, 0.78); }
.price-card--featured ul li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><circle cx='10' cy='10' r='10' fill='%231E50FF'/><path d='M6 10.5l2.5 2.5L14 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.price-card--featured hr { border-color: rgba(255, 255, 255, 0.1); }
.price-card--featured .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.price-card--featured .btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.4); color: #fff; }

.price-card__badge {
  position: absolute; top: -12px; right: 24px;
  background: var(--primary); color: #fff;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.price-card h3 { margin-bottom: 8px; }
.price-card__intro { font-size: 0.95rem; margin-bottom: 24px; }
.price-card__price { font-weight: 800; font-size: 3rem; letter-spacing: -0.04em; line-height: 1; }
.price-card__per { font-size: 0.95rem; color: var(--slate-500); margin-bottom: 4px; }
.price-card__vat { font-size: 0.85rem; color: var(--slate-500); margin-bottom: 24px; }
.price-card hr { border: 0; height: 1px; background: var(--slate-200); margin: 24px 0; }
.price-card ul { list-style: none; margin-bottom: 28px; }
.price-card ul li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 7px 0;
  font-size: 0.96rem;
  color: var(--slate-700);
}
.price-card ul li::before {
  content: ''; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><circle cx='10' cy='10' r='10' fill='%231E50FF'/><path d='M6 10.5l2.5 2.5L14 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain; background-repeat: no-repeat;
}
.price-card .btn { width: 100%; }

/* ==========================================================================
   Comparison table
   ========================================================================== */
.compare-table {
  width: 100%; border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.96rem;
}
.compare-table thead th {
  background: var(--slate-50);
  font-weight: 700; color: var(--ink);
  font-size: 0.92rem;
}
.compare-table th:not(:first-child), .compare-table td:not(:first-child) { text-align: center; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .check { color: var(--signed); font-weight: 700; }
.compare-table .dash { color: var(--slate-300); }
.compare-table .row-head { background: var(--slate-50); font-weight: 700; color: var(--ink); }

@media (max-width: 700px) {
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 0.88rem; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--slate-200);
}
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0;
  font-weight: 600; font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--slate-500);
  transition: transform var(--t-fast) var(--ease);
}
.faq__item[open] summary::after { content: '−'; }
.faq__item summary:hover { color: var(--primary); }
.faq__item p { padding: 0 0 22px; color: var(--slate-700); font-size: 1rem; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(30, 80, 255, 0.18), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(30, 80, 255, 0.12), transparent 60%),
    var(--ink);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 7vw, 80px);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; margin-bottom: 16px; max-width: 720px; margin-left: auto; margin-right: auto; }
.cta-banner p { color: rgba(255, 255, 255, 0.75); max-width: 600px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-banner__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  padding: 80px 0 40px;
}
.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}

.footer__brand img { height: 28px; margin-bottom: 16px; }
.footer__brand p { color: var(--slate-500); font-size: 0.95rem; max-width: 320px; margin-bottom: 20px; }

.footer__newsletter { display: flex; gap: 8px; max-width: 360px; }
.footer__newsletter input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--white);
  color: var(--ink);
}
.footer__newsletter input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,80,255,0.1); }
.footer__newsletter button {
  padding: 11px 16px;
  background: var(--ink); color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem;
  transition: background var(--t-fast) var(--ease);
}
.footer__newsletter button:hover { background: #1c2940; }

.footer__col h5 {
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink); margin-bottom: 16px;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { color: var(--slate-500); font-size: 0.95rem; }
.footer__col a:hover { color: var(--ink); }

.footer__bottom {
  border-top: 1px solid var(--slate-200);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.88rem;
  color: var(--slate-500);
}
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a { color: var(--slate-500); }
.footer__bottom-links a:hover { color: var(--ink); }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  padding: 88px 0 56px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(30, 80, 255, 0.06), transparent 70%),
    var(--white);
  border-bottom: 1px solid var(--slate-200);
}
.page-hero .pill { margin-bottom: 20px; }
.page-hero h1 { margin-bottom: 18px; max-width: 880px; margin-left: auto; margin-right: auto; }
.page-hero p { font-size: 1.18rem; color: var(--slate-500); max-width: 680px; margin: 0 auto; line-height: 1.6; }
.page-hero__cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.page-hero--left { text-align: left; }
.page-hero--left h1, .page-hero--left p { margin-left: 0; margin-right: 0; }
.page-hero--left .page-hero__cta { justify-content: flex-start; }

/* Breadcrumbs */
.crumbs { font-size: 0.88rem; color: var(--slate-500); margin-bottom: 18px; }
.crumbs a { color: var(--slate-500); }
.crumbs a:hover { color: var(--primary); }
.crumbs span { color: var(--slate-300); margin: 0 6px; }

/* ==========================================================================
   Form (contact, demo)
   ========================================================================== */
.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.9rem; font-weight: 600;
  color: var(--ink); margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.97rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 80, 255, 0.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group__hint { font-size: 0.85rem; color: var(--slate-500); margin-top: 6px; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--slate-700); }
.form-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); margin-top: 2px; }

/* Demo page two-col */
.demo-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; gap: 40px; } }
.demo-info ul { list-style: none; margin-top: 24px; }
.demo-info li {
  display: flex; gap: 12px; padding: 12px 0;
  align-items: flex-start;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
  font-size: 0.96rem;
}
.demo-info li::before {
  content: ''; flex: 0 0 auto; width: 22px; height: 22px;
  background: var(--primary-soft); color: var(--primary);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='M5 10.5l3.5 3.5L15 7' stroke='%231E50FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: center; background-repeat: no-repeat;
}

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }
.blog-card__cover {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(30,80,255,0.85), rgba(15, 23, 42, 0.85)),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 50%);
  position: relative;
}
.blog-card__cover--alt {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30,80,255,0.7));
}
.blog-card__cover--alt2 {
  background:
    linear-gradient(135deg, rgba(30,80,255,0.7), rgba(15, 23, 42, 0.95));
}
.blog-card__cover svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; }
.blog-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta { font-size: 0.82rem; color: var(--slate-500); margin-bottom: 10px; display: flex; gap: 10px; }
.blog-card h3 { font-size: 1.2rem; margin-bottom: 12px; line-height: 1.35; }
.blog-card p { color: var(--slate-500); font-size: 0.95rem; flex: 1; }
.blog-card__more { color: var(--primary); font-weight: 600; font-size: 0.92rem; margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; }

/* Blog post */
.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.post__meta {
  display: flex; gap: 14px; margin-bottom: 18px;
  font-size: 0.9rem; color: var(--slate-500);
}
.post h1 { margin-bottom: 18px; line-height: 1.18; }
.post .lead { margin-bottom: 36px; }
.post h2 { margin: 48px 0 18px; font-size: 1.85rem; }
.post h3 { margin: 32px 0 14px; font-size: 1.3rem; }
.post p { margin-bottom: 20px; line-height: 1.75; color: var(--slate-700); font-size: 1.06rem; }
.post ul, .post ol { margin: 0 0 20px 1.4rem; }
.post li { margin-bottom: 10px; line-height: 1.7; color: var(--slate-700); font-size: 1.04rem; }
.post blockquote {
  border-left: 3px solid var(--primary);
  padding: 8px 0 8px 24px;
  margin: 28px 0;
  font-size: 1.12rem;
  color: var(--ink);
  font-style: italic;
}
.post hr { border: 0; height: 1px; background: var(--slate-200); margin: 48px 0; }
.post__author {
  display: flex; gap: 16px; align-items: center;
  padding: 24px;
  background: var(--slate-50);
  border-radius: var(--radius);
  margin-top: 48px;
}
.post__author-avatar {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.post__author p { margin: 0; font-size: 0.94rem; color: var(--slate-500); }
.post__author strong { color: var(--ink); }

/* ==========================================================================
   Legal pages (privacy, terms, gdpr)
   ========================================================================== */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.legal h1 { margin-bottom: 12px; font-size: 2.4rem; }
.legal__updated { color: var(--slate-500); font-size: 0.92rem; margin-bottom: 36px; }
.legal h2 { margin: 36px 0 16px; font-size: 1.5rem; }
.legal h3 { margin: 24px 0 12px; font-size: 1.15rem; }
.legal p { margin-bottom: 16px; line-height: 1.7; color: var(--slate-700); }
.legal ul, .legal ol { margin: 0 0 16px 1.4rem; }
.legal li { margin-bottom: 8px; line-height: 1.65; color: var(--slate-700); }

/* ==========================================================================
   404 page
   ========================================================================== */
.error-page {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 64px 24px;
  background:
    radial-gradient(800px 400px at 50% 30%, rgba(30, 80, 255, 0.08), transparent 60%),
    var(--white);
}
.error-page__num {
  font-size: clamp(7rem, 18vw, 14rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--primary);
  line-height: 1;
  background: linear-gradient(180deg, var(--primary), var(--ink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.error-page h1 { margin-bottom: 14px; }
.error-page p { color: var(--slate-500); margin-bottom: 28px; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Sign-in page
   ========================================================================== */
.signin {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) { .signin { grid-template-columns: 1fr; } .signin__visual { display: none; } }

.signin__form {
  display: flex; flex-direction: column;
  padding: 48px;
  justify-content: center;
}
.signin__form-inner { max-width: 380px; width: 100%; margin: 0 auto; }
.signin__brand { display: inline-flex; align-items: center; margin-bottom: 48px; }
.signin__brand img { height: 28px; }
.signin h1 { font-size: 1.85rem; margin-bottom: 8px; }
.signin__sub { color: var(--slate-500); margin-bottom: 32px; }
.signin__divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--slate-500); font-size: 0.85rem; }
.signin__divider::before, .signin__divider::after { content: ''; flex: 1; height: 1px; background: var(--slate-200); }
.signin__alt { text-align: center; margin-top: 24px; font-size: 0.92rem; color: var(--slate-500); }

.signin__visual {
  background:
    radial-gradient(700px 500px at 80% 20%, rgba(30, 80, 255, 0.18), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(30, 80, 255, 0.1), transparent 60%),
    var(--ink);
  padding: 64px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.signin__visual::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
}
.signin__visual h2 { color: #fff; max-width: 460px; margin-bottom: 20px; position: relative; z-index: 1; }
.signin__visual p { color: rgba(255, 255, 255, 0.75); max-width: 460px; position: relative; z-index: 1; }
.signin__visual ul { list-style: none; margin-top: 32px; position: relative; z-index: 1; }
.signin__visual li { display: flex; gap: 12px; padding: 8px 0; align-items: center; color: rgba(255, 255, 255, 0.85); }
.signin__visual li::before {
  content: ''; width: 22px; height: 22px; flex: 0 0 auto;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><circle cx='10' cy='10' r='10' fill='%231E50FF'/><path d='M6 10.5l2.5 2.5L14 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain; background-repeat: no-repeat;
}

/* ==========================================================================
   Quotes / testimonials
   ========================================================================== */
.quote {
  max-width: 760px; margin: 0 auto;
  text-align: center;
}
.quote blockquote {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.quote cite {
  font-style: normal;
  display: block;
  font-size: 0.95rem;
  color: var(--slate-500);
}
.quote cite strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Animations / reveals
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Helpers
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; }
.no-wrap { white-space: nowrap; }
