:root {
  --accent: #fb5c57;
  --accent-dark: #e04944;
  --tint: #fff0ef;
  --bg: #f6f5f1;
  --ink: #1b2733;
  --muted: #5a6472;
  --soft: #8a94a2;
  --line: #e7e6e0;
  --line-soft: #e2e1da;
  --chip: #f3f4f6;
  --white: #fff;
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, h3, .brand { font-family: "Bricolage Grotesque", sans-serif; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

::selection { background: var(--accent); color: #fff; }

.msym {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  display: inline-block;
}

@keyframes pulsering {
  0% { box-shadow: 0 0 0 0 rgba(251, 92, 87, .5); }
  70% { box-shadow: 0 0 0 7px rgba(251, 92, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 92, 87, 0); }
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 241, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--ink);
}

.brand span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.brand em {
  font-style: normal;
  color: var(--accent);
}

.brand.light { color: #fff; }
.brand.light em { color: #fff; }

.site-header nav {
  display: flex;
  gap: 2px;
  margin-left: 6px;
}

.site-header nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--muted);
}

.site-header nav a:hover,
.site-header nav a.is-active {
  color: var(--accent);
  background: var(--tint);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 8px;
}

.link:hover { color: var(--ink); }

.btn,
button {
  border: 0;
  border-radius: 11px;
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.pill,
.pill { border-radius: 999px; }

.primary { background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-dark); color: #fff; }
.secondary,
.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-soft);
}
.danger { background: #331b1b; color: #fff; }
.light { background: #fff; color: var(--ink); }
.ink { background: var(--ink); color: #fff; }

/* ─── Hero ─── */
.hero {
  padding: 62px 28px 48px;
  text-align: center;
  background: radial-gradient(120% 85% at 50% 0%, #fff0ef 0%, #f6f5f1 58%);
}

.hero.compact { padding: 60px 28px 40px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tint);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 26px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulsering 2s infinite;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 54px);
  line-height: 1.03;
  letter-spacing: -.035em;
  max-width: 660px;
  margin: 0 auto 16px;
}

.hero p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 30px;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  padding: 6px 6px 6px 22px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(27, 39, 51, .1);
}

.searchbar .msym { font-size: 22px; color: var(--soft); flex: none; }

.searchbar input {
  flex: 1;
  border: 0;
  outline: none;
  box-shadow: none;
  font-size: 16px;
  padding: 12px 0;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}

.searchbar button {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.hero-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e4e7;
  color: #3a4553;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}

.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.chip.active:hover { color: #fff; }

/* ─── Sections ─── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 28px 4px;
}

.section.pad-lg { padding: 64px 28px 4px; }
.section.pad-md { padding: 60px 28px; }
.section.pad-bottom { padding-bottom: 72px; }

.section-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-band .section { padding: 64px 28px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head.baseline { align-items: baseline; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-head h2,
.section-intro h2 {
  font-weight: 700;
  font-size: 32px;
  margin: 0;
  letter-spacing: -.02em;
}

.section-intro {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 32px;
}

.section-intro p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 10px 0 0;
}

.link-accent {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  text-decoration: none;
  padding: 0;
}

.link-accent:hover { color: var(--accent-dark); }

.btn-outline-accent {
  background: #fff;
  border: 1px solid var(--line-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 9px;
  white-space: nowrap;
  text-decoration: none;
}

.btn-outline-accent:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* ─── Expert cards ─── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.expert-card {
  text-align: left;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .16s ease, border-color .16s ease;
}

.expert-card:hover {
  border-color: var(--ink);
  box-shadow: 0 14px 32px rgba(27, 39, 51, .1);
  color: inherit;
}

.expert-card .fav {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 22px;
  color: #d4d8dd;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chip);
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  overflow: hidden;
  flex: none;
}

.avatar.sm { width: 58px; height: 58px; }
.avatar.lg {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  font-size: 32px;
  background: #eceadf;
}

.expert-card .name {
  font-weight: 700;
  font-size: 16px;
  margin-top: 12px;
  color: var(--ink);
}

.expert-card .title {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #3a4553;
  background: var(--chip);
  padding: 5px 10px;
  border-radius: 7px;
}

.tag.accent {
  color: var(--accent);
  background: var(--tint);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
}

.tag.outline {
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line-soft);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
}

.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 700;
}

.card-meta .soft { color: var(--soft); font-weight: 400; }
.star { color: var(--accent); }
.star.gold { color: #e0a800; }

/* ─── Domain / service / CRM cards ─── */
.domain-card,
.service-card,
.crm-card,
.case-card,
.guide-card,
.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.domain-card {
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
}

.domain-card:hover,
.case-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(20, 26, 23, .08);
  border-color: #f0d3d1;
  color: inherit;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.icon-circle .msym { font-size: 25px; color: var(--accent); }

.domain-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 5px;
  letter-spacing: -.01em;
}

.domain-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 9px;
}

.domain-card .more {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

.crm-card {
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  cursor: pointer;
}

.crm-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(251, 92, 87, .09);
  color: inherit;
}

.crm-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  font-family: "Bricolage Grotesque", sans-serif;
}

.eu-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--tint);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: .04em;
}

.crm-card .crm-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.crm-card .crm-origin {
  font-size: 12.5px;
  color: var(--soft);
  margin-top: 2px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  text-align: center;
}

.step-n {
  width: 50px;
  height: 50px;
  margin: 0 auto 18px;
  border-radius: 13px;
  background: var(--tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 21px;
}

.steps h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.steps p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto;
  max-width: 300px;
}

.service-card {
  flex-direction: column;
  background: var(--bg);
  border-color: #ece9e0;
}

.service-card .icon-circle { margin-bottom: 16px; }

.service-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 7px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.guide-card {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.guide-card .thumb {
  height: 160px;
  background: #eceadf;
}

.guide-card .body { padding: 20px; }

.guide-card .tag-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.guide-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 8px 0;
  line-height: 1.3;
}

.guide-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* ─── CTA band ─── */
.cta-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 28px 72px;
}

.cta-panel {
  background: var(--ink);
  border-radius: 20px;
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  overflow: hidden;
  position: relative;
}

.cta-panel::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 92, 87, .4), transparent 70%);
}

.cta-panel > * { position: relative; }

.cta-panel h2 {
  font-weight: 700;
  font-size: 30px;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: -.02em;
}

.cta-panel p {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
  margin: 0;
  max-width: 560px;
}

.cta-panel .btn { white-space: nowrap; }

/* ─── Page shell (annuaire, etc.) ─── */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 28px 72px;
}

.page h1 {
  font-weight: 700;
  font-size: 40px;
  margin: 0 0 8px;
  letter-spacing: -.03em;
}

.page > .lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 680px;
}

.page-title {
  text-align: center;
  padding: 70px 24px 24px;
}

.page-title h1 {
  font-size: 40px;
  margin: 0 0 8px;
  letter-spacing: -.03em;
}

.page-title p {
  font-size: 16px;
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto;
}

.search-inline {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 7px;
  border-radius: 13px;
  max-width: 520px;
  margin-bottom: 20px;
}

.search-inline input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 10px 13px;
  background: transparent;
}

.filter-block { margin-bottom: 16px; }
.filter-block + .filter-block { margin-bottom: 24px; }

.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--soft);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.result-count {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.result-count strong { color: var(--ink); }

.directory-card {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.directory-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(251, 92, 87, .1);
  color: inherit;
}

.directory-card .head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.directory-card .name {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.directory-card .loc {
  font-size: 13px;
  color: var(--soft);
}

.directory-card .title {
  font-size: 14px;
  color: #3a4553;
  line-height: 1.45;
  margin-bottom: 14px;
  min-height: 40px;
}

.directory-card .card-meta {
  border-top-color: #f0efe9;
  font-size: 13.5px;
}

.directory-card .rate { color: var(--accent); }

/* ─── Expert profile ─── */
.back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 0;
  margin-bottom: 16px;
  text-decoration: none;
}

.back-link:hover { color: var(--ink); }

.profile-top {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.profile-top h1 {
  font-weight: 700;
  font-size: 31px;
  margin: 0;
  letter-spacing: -.02em;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--tint);
  padding: 4px 10px;
  border-radius: 999px;
}

.profile-top .role {
  font-size: 16.5px;
  color: #3a4553;
  margin: 10px 0;
}

.profile-facts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.profile-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
  margin-left: auto;
}

.profile-cta .price {
  text-align: right;
  margin-bottom: 4px;
}

.profile-cta .price strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 27px;
  color: var(--accent);
}

.profile-cta .price span {
  font-size: 14px;
  color: var(--soft);
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.panel,
.sidebox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.sidebox { padding: 24px; }

.panel + .panel,
.profile-main > .panel { margin-top: 0; }
.profile-main { display: flex; flex-direction: column; gap: 24px; }
.profile-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; }

.panel h2 {
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 12px;
}

.panel p {
  font-size: 15px;
  line-height: 1.65;
  color: #3a4553;
  margin: 0;
}

.help-box {
  background: var(--tint);
  border: 1px solid #ffd9d7;
  border-radius: 16px;
  padding: 24px;
}

.help-box h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--accent-dark);
}

.help-box p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #7a3e3c;
  margin: 0 0 14px;
}

.help-box .btn { width: 100%; }

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 13px;
}

.fact-row:last-child { margin-bottom: 0; }
.fact-row span:first-child { color: var(--soft); }
.fact-row span:last-child { font-weight: 600; text-align: right; }

/* ─── Comparatif ─── */
.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.table-scroll { overflow-x: auto; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 760px;
  background: #fff;
}

.compare-table thead tr { background: var(--bg); text-align: left; }

.compare-table th {
  padding: 15px 18px;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 0;
}

.compare-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #f0efe9;
  color: #3a4553;
}

.compare-table tbody tr:nth-child(even) { background: #fbfbf9; }

.notice {
  margin-top: 22px;
  background: var(--tint);
  border: 1px solid #ffd9d7;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.notice p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #7a3e3c;
  margin: 0;
}

/* ─── Cases ─── */
.case-card {
  flex-direction: column;
  padding: 26px;
}

.case-card .case-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.case-card .eyebrow {
  font-size: 11px;
  letter-spacing: .05em;
  margin: 0;
}

.case-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 2px 0 0;
  letter-spacing: -.01em;
}

.case-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--soft);
}

.case-label.result { color: var(--accent-dark); }

.case-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #3a4553;
  margin: 0 0 12px;
}

.case-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f0efe9;
}

.cta-panel.compact {
  border-radius: 18px;
  padding: 36px 40px;
  margin-top: 28px;
}

.cta-panel.compact h2 { font-size: 24px; }
.cta-panel.compact::before { display: none; }

/* ─── Blog ─── */
.blog-featured {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  margin-bottom: 36px;
  text-decoration: none;
  color: inherit;
}

.blog-featured:hover { color: inherit; }

.blog-featured .thumb {
  min-height: 300px;
  background: #eceadf;
}

.blog-featured .body {
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured .tag-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.blog-featured h2 {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -.02em;
}

.blog-featured p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
}

.blog-meta {
  font-size: 13px;
  color: var(--soft);
}

.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.blog-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(251, 92, 87, .08);
  color: inherit;
}

.blog-card .thumb {
  height: 170px;
  background: #eceadf;
}

.blog-card .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card .tag-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.blog-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 8px 0 0;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.blog-card .blog-meta {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12.5px;
}

/* ─── Pricing / become expert ─── */
.plans {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 28px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  border-radius: 20px;
  padding: 30px 26px;
  flex-direction: column;
  border: 1px solid #ececec;
}

.plan-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 20px 46px rgba(251, 92, 87, .16);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-card .plan-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
}

.plan-card .plan-tagline {
  font-size: 13.5px;
  color: var(--muted);
  margin: 4px 0 18px;
  min-height: 38px;
}

.plan-card .plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.plan-card .plan-price strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -.02em;
}

.plan-card .plan-price span,
.plan-card .plan-month {
  font-size: 15px;
  color: var(--soft);
  font-weight: 500;
}

.plan-card .plan-month {
  font-size: 12.5px;
  margin-bottom: 20px;
}

.plan-card .btn { width: 100%; }

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.plan-features div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #3a4553;
  line-height: 1.4;
}

.plan-features .msym {
  font-size: 19px;
  color: var(--accent);
  flex: none;
}

.plans-note {
  text-align: center;
  font-size: 13px;
  color: var(--soft);
  margin: 24px auto 0;
  max-width: 560px;
}

.perks {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 28px 72px;
}

.perks-panel {
  background: var(--ink);
  border-radius: 20px;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  color: #fff;
}

.perks-panel .icon-circle {
  background: rgba(251, 92, 87, .18);
  margin-bottom: 14px;
}

.perks-panel .icon-circle .msym { color: #ff9d99; font-size: 23px; }

.perks-panel h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 6px;
}

.perks-panel p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .68);
  margin: 0;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 28px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-inner.bottom {
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
  grid-template-columns: none;
}

.footer-brand { max-width: 280px; }
.footer-brand .brand { margin-bottom: 14px; }

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

.footer-brand a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col strong {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.footer-col a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
}

.footer-col a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }

/* Legacy alias */
.footer { text-align: center; padding: 50px 24px; }

/* ─── Cards generic / dashboard ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card,
.empty,
.log,
.expert-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  min-height: 280px;
  padding: 48px 32px;
  grid-column: 1 / -1;
}

.empty h2 { margin: 0; }
.empty p { margin: 0; color: var(--muted); max-width: 360px; }
.empty .btn { margin-top: 8px; }

.card { transition: .2s transform, .2s box-shadow; }
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(27, 39, 51, .08);
}

.featured { border-color: var(--accent); }

.dark-cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 70px 24px;
}

.two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.filters,
.form-grid { display: grid; gap: 12px; }

.filters input,
.filters select,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.searchbar input,
.search-inline input {
  width: auto;
  border: 0 !important;
  border-radius: 0;
  padding: 12px 0;
  box-shadow: none;
  outline: none;
}

.search-inline input { padding: 10px 13px; }

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
select:focus,
textarea:focus {
  outline: 2px solid #ffd5d2;
  border-color: var(--accent);
}

.searchbar input:focus,
.search-inline input:focus {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

textarea { min-height: 120px; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.check-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.result-grid { display: grid; gap: 14px; }

.expert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.profile-hero {
  max-width: var(--max);
  margin: 36px auto 0;
  padding: 40px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.dashboard,
.admin,
.install {
  max-width: var(--max);
  margin: auto;
  padding: 54px 24px;
}

/* Auth */
.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 72px;
  min-height: calc(100vh - 220px);
  background: radial-gradient(circle at 50% 0%, #fff 0%, #fff7f6 42%, var(--bg) 78%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: 0 18px 48px rgba(27, 39, 51, .06);
}

.auth-card.wide { max-width: 560px; }

.auth-card h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.1;
  text-align: center;
}

.auth-lead {
  margin: 0 0 28px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.auth-step {
  margin: 0 0 18px;
  text-align: center;
  font-size: 14px;
}

.auth-step a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

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

.role-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.role-page-head {
  text-align: center;
  margin-bottom: 36px;
}

.role-page-head .badge { margin-bottom: 18px; }

.role-page-head h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.05;
}

.role-page-head p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
}

.role-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.role-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 4px 0;
  border: 0;
  background: transparent;
}

.role-panel + .role-panel {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.role-tag {
  display: inline-block;
  width: fit-content;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}

.role-panel h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.1;
}

.role-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 36ch;
}

.role-panel ul {
  margin: 8px 0 18px;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 15px;
  flex: 1;
}

.role-panel li {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 22px;
}

.role-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.role-panel .btn { align-self: flex-start; text-align: center; }

.role-page-foot {
  margin: 40px 0 0;
  text-align: center;
}

.role-page-foot a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.role-page-foot a:hover { color: var(--accent); }

.muted { color: var(--muted); margin: 0 0 20px; }

.alert.onboarding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 22px;
  padding: 16px 18px;
}

.auth-card .form-grid { gap: 14px; }

.auth-card .btn {
  width: 100%;
  margin-top: 4px;
  padding: 14px 18px;
}

.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  text-align: center;
}

.auth-links a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

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

.auth-links .sep { color: var(--line); }

.tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 4px;
  background: var(--bg);
  border-radius: 14px;
}

.tabs a {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

.tabs .active {
  background: var(--ink);
  color: #fff;
}

.install { max-width: 720px; }
.wide { max-width: 820px; }

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.kpis div {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
}

.kpis strong {
  display: block;
  font-size: 32px;
}

.admin-nav {
  display: flex;
  gap: 10px;
  margin: 24px 0;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  flex-wrap: wrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

td, th {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.article { max-width: 820px; }
.md h2 { font-size: 30px; }

.alert {
  padding: 12px;
  background: #fff0ef;
  border: 1px solid #ffd5d2;
  border-radius: 12px;
  margin: 12px 0;
}

.alert a {
  font-weight: 700;
  color: var(--ink);
}

.settings-group {
  margin: 18px 0 4px;
  font-size: 18px;
}

.setting-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.setting-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.maintenance-page {
  text-align: center;
  min-height: 50vh;
  display: grid;
  place-content: center;
  gap: 10px;
}

.maintenance-kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
}

.maintenance-page h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 56px);
}

.maintenance-page p {
  max-width: 480px;
  margin: 0 auto 10px;
  color: var(--muted);
}

.messages {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.message {
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.message small { color: var(--muted); }

@media (max-width: 960px) {
  .grid-3,
  .grid-4,
  .plans,
  .perks-panel,
  .blog-featured,
  .profile-layout,
  .footer-inner:not(.bottom) {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 { grid-template-columns: 1fr 1fr; }
  .blog-featured { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    gap: 12px 16px;
  }

  .site-header .brand { grid-area: brand; }

  .site-header nav {
    grid-area: nav;
    overflow-x: auto;
    width: 100%;
    margin-left: 0;
    -webkit-overflow-scrolling: touch;
  }

  .site-header nav a { white-space: nowrap; }

  .header-actions {
    grid-area: actions;
    margin-left: 0;
    justify-self: end;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .steps,
  .plans,
  .perks-panel,
  .two-col,
  .profile-layout,
  .footer-inner:not(.bottom) {
    grid-template-columns: 1fr;
  }

  .hero { padding: 48px 18px 40px; }
  .hero h1 { font-size: 36px; }

  .searchbar {
    flex-direction: column;
    border-radius: 22px;
    padding: 14px;
    align-items: stretch;
  }

  .searchbar button { width: 100%; }

  .section,
  .page,
  .cta-band,
  .plans,
  .perks { padding-left: 18px; padding-right: 18px; }

  .section-head { flex-direction: column; align-items: flex-start; }

  .cta-panel,
  .cta-panel.compact { padding: 32px 24px; }

  .profile-cta { margin-left: 0; width: 100%; }
  .profile-cta .price { text-align: left; }
  .profile-side { position: static; }

  .expert-row,
  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth {
    min-height: auto;
    padding: 28px 16px 48px;
    align-items: flex-start;
  }

  .auth-card { padding: 28px 22px; }

  .role-page { padding: 32px 18px 56px; }
  .role-choice { grid-template-columns: 1fr; gap: 36px; }

  .role-panel + .role-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 36px;
  }

  .role-panel .btn {
    align-self: stretch;
    width: 100%;
  }

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

  .page-title { padding: 48px 18px 16px; }

  .dashboard,
  .admin,
  .install { padding: 36px 18px; }
}
