/* ============================================================
   PeoplePulse — Design System
   Brand colours, fonts, radii and shadows live in wwwroot/css/tokens.css - the single
   source of truth for every surface. Do not restate values here; a comment that repeats
   a colour is a comment that will be wrong the first time it changes.
   "Local Roots, European Reach"
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 86px 0; }
.section.tight { padding: 60px 0; }
.bg-soft { background: var(--bg); }
.bg-blue { background: var(--blue); color: #dfe7fb; }
.center { text-align: center; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-50);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--slate); font-size: 1.06rem; }
.lead { font-size: 1.14rem; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 700; font-size: .98rem; cursor: pointer;
  padding: 13px 24px; border-radius: 12px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(234, 29, 36, .26); }
.btn-primary:hover { background: var(--red-600); box-shadow: 0 10px 26px rgba(234, 29, 36, .34); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-700); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-50); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: .88rem; border-radius: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
}
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 9px; color: var(--ink);
  font-weight: 600; font-size: .97rem; transition: color .18s ease, background .18s ease;
}
/* Underline that grows from the centre — quieter and more considered than a filled pill. */
.nav-links > li > a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px;
  background: var(--blue); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.nav-links > li > a:hover { color: var(--blue); background: transparent; }
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue); }
.nav-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Services mega-menu ---------- */
.nav { position: relative; }
.mega-trigger .caret { transition: transform .22s ease; opacity: .55; }
.has-mega:hover .mega-trigger .caret,
.has-mega:focus-within .mega-trigger .caret { transform: rotate(180deg); opacity: 1; }

.nav-links > li.has-mega { position: static; } /* panel anchors to .nav, not the <li> */
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(940px, calc(100vw - 48px));
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60; padding-top: 10px;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.mega-inner {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10, 25, 70, .16); overflow: hidden;
}
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 14px; }
.mega-item {
  display: flex !important; align-items: flex-start; gap: 12px;
  padding: 12px !important; border-radius: 12px; text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.mega-item::after { display: none !important; }
.mega-item:hover { background: var(--bg-soft, #f6f8fc); transform: none; }
.mega-ic {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; background: var(--blue-50); color: var(--blue);
  transition: background .15s ease, color .15s ease;
}
.mega-ic svg { width: 19px; height: 19px; }
.mega-ic.red { background: #fdeaea; color: var(--red); }
.mega-ic.yellow { background: var(--yellow-soft); color: #9a7400; }
.mega-item:hover .mega-ic { background: var(--blue); color: #fff; }
.mega-item:hover .mega-ic.red { background: var(--red); color: #fff; }
.mega-item:hover .mega-ic.yellow { background: #9a7400; color: #fff; }
.mega-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-title { font-weight: 700; font-size: .93rem; color: var(--ink); line-height: 1.3; }
.mega-item:hover .mega-title { color: var(--blue); }
.mega-sub {
  font-size: .8rem; font-weight: 500; color: var(--slate); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mega-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; background: var(--bg-soft, #f6f8fc); border-top: 1px solid var(--line);
}
.mega-all { font-weight: 700; font-size: .92rem; color: var(--blue); padding: 0 !important; }
.mega-all::after { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .mega, .mega-trigger .caret, .nav-links > li > a::after { transition: none; }
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%); }
.hero::before {
  content: ""; position: absolute; top: -160px; right: -160px; width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(0,48,144,.10), transparent 62%); border-radius: 50%;
}
.hero::after {
  content: ""; position: absolute; bottom: -180px; left: -120px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255,204,0,.16), transparent 64%); border-radius: 50%;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 76px 0 84px; }
.hero h1 span { color: var(--red); }
.hero .lead { max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; align-items: center; gap: 18px; color: var(--slate); font-size: .92rem; font-weight: 600; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; margin-left: -12px;
  background: var(--blue-50); display: grid; place-items: center; font-size: .85rem; font-weight: 800; color: var(--blue);
}
.avatars span:first-child { margin-left: 0; }

/* job search bar */
.search-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: 8px;
}
.search-field { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 11px; background: var(--bg); }
.search-field svg { flex: none; color: var(--blue); }
.search-field input, .search-field select {
  border: 0; background: transparent; font-family: var(--font); font-size: .95rem; color: var(--ink); width: 100%; outline: none;
}

/* hero visual card */
.hero-visual { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px;
}
.hero-card .hc-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hero-card .hc-row:last-child { border-bottom: 0; }
.hc-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.hc-meta { flex: 1; min-width: 0; }
.hc-meta b { display: block; font-size: .97rem; }
.hc-meta small { color: var(--muted); }
.float-badge {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: .9rem;
}
.float-badge .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.float-1 { top: -20px; left: -26px; }
.float-2 { bottom: -18px; right: -20px; }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 2.5rem; font-weight: 800; color: var(--blue); letter-spacing: -.03em; }
.stat span { color: var(--slate); font-weight: 600; font-size: .96rem; }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4ddee; }
.card .ic-box {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--blue-50); color: var(--blue);
}
.card .ic-box.red { background: #fdeaea; color: var(--red); }
.card .ic-box.yellow { background: var(--yellow-soft); color: #b58a00; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate); font-size: .98rem; margin-bottom: 14px; }
.card .link { font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.card .link:hover { gap: 9px; }

/* ---------- Job list ---------- */
.job-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  display: flex; align-items: center; gap: 18px; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.job-card:hover { box-shadow: var(--shadow); border-color: #d4ddee; transform: translateY(-2px); }
.job-logo { width: 52px; height: 52px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; }
.job-main { flex: 1; min-width: 0; }
.job-main h3 { font-size: 1.08rem; margin-bottom: 5px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--slate); font-size: .9rem; font-weight: 600; }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.tag { font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.tag.red { background: #fdeaea; color: var(--red); }
.tag.green { background: var(--ok-bg); color: var(--ok); }
.tag.yellow { background: var(--yellow-soft); color: #9a7400; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { text-align: center; padding: 0 14px; }
.step .num {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 800; color: #fff; background: var(--blue); position: relative;
}
.step:nth-child(2) .num { background: var(--red); }
.step:nth-child(3) .num { background: var(--blue); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--slate); font-size: .96rem; }

/* ---------- European reach feature ---------- */
.reach { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.reach-visual {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%); border-radius: var(--radius-lg);
  padding: 44px; color: #fff; position: relative; overflow: hidden; min-height: 340px;
}
.reach-visual .stars { position: absolute; inset: 0; }
.reach-visual .star { position: absolute; color: var(--yellow); font-size: 22px; opacity: .9; }
.reach-chip {
  display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); padding: 9px 15px; border-radius: 999px; margin: 0 8px 12px 0; font-weight: 600; font-size: .9rem;
}
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.feature-list .check { width: 26px; height: 26px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; flex: none; font-weight: 800; }
.feature-list b { display: block; }
.feature-list span { color: var(--slate); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.quote .stars { color: var(--yellow); margin-bottom: 14px; letter-spacing: 2px; }
.quote p { font-size: 1.02rem; color: var(--ink); font-weight: 500; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-weight: 800; }
.quote .who b { display: block; font-size: .95rem; }
.quote .who small { color: var(--muted); }

/* ---------- Blog ---------- */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-thumb { height: 190px; background: var(--blue-50); position: relative; display: grid; place-items: center; color: var(--blue); }
.post-body { padding: 24px; }
.post-body .cat { font-size: .78rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.post-body h3 { margin: 8px 0; font-size: 1.12rem; }
.post-body .pmeta { color: var(--muted); font-size: .85rem; font-weight: 600; }

/* ---------- Newsletter / CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue) 0%, #001b52 100%); color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c5d2f0; max-width: 520px; margin: 0 auto 26px; }
.newsletter { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter input { flex: 1; border: 0; border-radius: 12px; padding: 15px 18px; font-family: var(--font); font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: #07112b; color: #9fb0cc; padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot-brand .wordmark { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.foot-brand .wordmark .p1 { color: #fff; } /* People */
.foot-brand .wordmark .p2 { color: #6f8cff; } /* Pulse */
.foot-brand .tagline { color: var(--yellow); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.foot-brand p { color: #8295b4; max-width: 300px; margin-top: 16px; font-size: .95rem; }
.foot-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.foot-col a { display: block; color: #9fb0cc; padding: 6px 0; font-size: .94rem; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: .88rem; flex-wrap: wrap; gap: 12px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #cfe; }
.foot-social a:hover { background: var(--blue); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--blue); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; }
.page-hero .crumbs { color: #adbbe2; font-weight: 600; font-size: .92rem; }
.page-hero .crumbs a { color: var(--yellow); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp .6s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid, .reach { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .mega { display: none; }
  .mega-trigger .caret { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 12px 24px 18px; box-shadow: var(--shadow);
  }
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .steps, .stat-band, .search-card { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .cta-band, .reach-visual { padding: 36px 24px; }
  .newsletter { flex-direction: column; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Extra components — logos strip, categories, pricing, FAQ, teasers
   ============================================================ */
/* client logos strip */
.logos-label { text-align: center; color: var(--muted); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 26px; }
.logos { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.logos span { font-weight: 800; font-size: 1.3rem; color: #aab6cb; letter-spacing: -.01em; transition: color .2s; }
.logos span:hover { color: var(--blue); }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; display: block; color: inherit; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4ddee; }
.cat-card .ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--blue-50); color: var(--blue); }
.cat-card:nth-child(2) .ic, .cat-card:nth-child(6) .ic { background: #fdeaea; color: var(--red); }
.cat-card:nth-child(3) .ic, .cat-card:nth-child(7) .ic { background: var(--yellow-soft); color: #b58a00; }
.cat-card:nth-child(4) .ic, .cat-card:nth-child(8) .ic { background: var(--ok-bg); color: var(--ok); }
.cat-card h3 { font-size: 1.04rem; margin-bottom: 3px; }
.cat-card span { color: var(--muted); font-weight: 600; font-size: .86rem; }

/* pricing plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; position: relative; transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.plan .pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 15px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.plan h3 { font-size: 1.15rem; margin-bottom: 4px; }
.plan .ptag { color: var(--slate); font-size: .9rem; }
.plan .price { font-size: 2.7rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin: 16px 0 2px; }
.plan .price small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; }
.plan li { display: flex; gap: 10px; padding: 9px 0; color: var(--ink); font-size: .93rem; align-items: flex-start; border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; }
.plan li .ck { color: var(--ok); font-weight: 800; flex: none; }
.plan li.off { color: var(--muted); }
.plan li.off .ck { color: #cbd5e6; }
.plan .btn { width: 100%; }

/* faq accordion */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); font-weight: 400; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--slate); padding: 0 0 20px; margin: 0; line-height: 1.7; }

@media (max-width: 900px) { .cat-grid { grid-template-columns: 1fr 1fr; } .plans { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .logos { gap: 26px; } .logos span { font-size: 1.05rem; } }

/* ============================================================
   Forms & panels — GLOBAL (used on public + account pages)
   ============================================================ */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.15rem; margin: 0; }
.panel-head a { font-weight: 700; font-size: .88rem; }
.panel-body { padding: 22px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field > label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 8px; color: var(--ink); }

/* base control look — :where() keeps specificity 0 so component rules (e.g. admin search) still win */
:where(.field input, .field select, .field textarea,
       input[type="text"], input[type="email"], input[type="password"],
       input[type="tel"], input[type="number"], input[type="url"], input[type="date"], select, textarea) {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  font-family: var(--font);
  font-size: .96rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
:where(input, textarea)::placeholder { color: #9aa6bd; }
:where(.field input, .field select, .field textarea,
       input[type="text"], input[type="email"], input[type="password"],
       input[type="tel"], input[type="number"], input[type="url"], input[type="date"], textarea):hover {
  border-color: #c3cee0;
}
.field input:focus, .field select:focus, .field textarea:focus,
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus,
input[type="tel"]:focus, input[type="number"]:focus, input[type="url"]:focus,
input[type="date"]:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 48, 144, .10);
}
:where(.field textarea, textarea) { resize: vertical; min-height: 120px; line-height: 1.55; }

/* custom chevron for selects */
:where(.field select, select) {
  -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6b86' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field .hint { color: var(--muted); font-size: .82rem; margin-top: 6px; }

/* inline checkbox/radio rows (e.g. "Remember me", "I agree…") */
label.check { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .9rem; color: var(--slate); cursor: pointer; }
label.check input { width: auto; accent-color: var(--blue); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }

@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Rich content — renders sanitized Quill output on public pages
   (handles plain <ul>/<ol> AND Quill 2's <ol><li data-list> markup)
   ============================================================ */
.rich { color: var(--slate); line-height: 1.7; }
.rich > :first-child { margin-top: 0; }
.rich h1, .rich h2, .rich h3 { color: var(--ink); margin: 1.3em 0 .5em; line-height: 1.25; }
.rich h1 { font-size: 1.5rem; } .rich h2 { font-size: 1.25rem; } .rich h3 { font-size: 1.08rem; }
.rich p { margin: 0 0 1em; }
.rich strong { color: var(--ink); font-weight: 700; }
.rich a { color: var(--blue); text-decoration: underline; }
.rich blockquote { margin: 0 0 1em; padding: 10px 18px; border-left: 3px solid var(--blue); background: var(--bg-soft); border-radius: 0 8px 8px 0; }
.rich ul, .rich ol { margin: 0 0 1em; padding-left: 1.5em; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { margin-bottom: .4em; }
/* Quill 2 renders both list kinds as <ol>, distinguished per-item by data-list */
.rich ol li[data-list="bullet"] { list-style-type: disc; }
.rich ol li[data-list="ordered"] { list-style-type: decimal; }
.rich .ql-ui { display: none; }
