/* Noebi Help Center — modern 2027, inspiration layout only (no Fresha marks) */
:root {
  --bg: #f7f8fa;
  --bg-elev: #ffffff;
  --text: #0f1419;
  --text-muted: #5b6570;
  --border: #e6e9ee;
  --border-soft: #eef1f5;
  --accent: #1a1a2e;
  --accent-soft: #f0f1f5;
  --brand: #6c5ce7;
  --brand-2: #00b894;
  --client: #0984e3;
  --business: #6c5ce7;
  --warn-bg: #fff8e6;
  --warn-border: #f0d78c;
  --info-bg: #eef6ff;
  --info-border: #b8d4f5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,20,25,.04), 0 8px 24px rgba(15,20,25,.06);
  --shadow-hover: 0 2px 4px rgba(15,20,25,.06), 0 16px 40px rgba(15,20,25,.10);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e12;
    --bg-elev: #151820;
    --text: #f2f4f7;
    --text-muted: #9aa3af;
    --border: #2a2f3a;
    --border-soft: #1e232c;
    --accent: #e8eaed;
    --accent-soft: #1c2028;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --shadow-hover: 0 2px 4px rgba(0,0,0,.35), 0 16px 40px rgba(0,0,0,.45);
    --warn-bg: #2a2410;
    --warn-border: #5a4a18;
    --info-bg: #101c2a;
    --info-border: #2a4a6a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; gap: 20px;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.logo span.muted { font-weight: 500; color: var(--text-muted); font-size: .85rem; margin-left: 4px; }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a, .top-nav button {
  padding: 8px 14px; border-radius: 999px; font-size: .9rem; color: var(--text-muted);
}
.top-nav a:hover, .top-nav button:hover, .top-nav a.active, .top-nav button.active {
  background: var(--accent-soft); color: var(--text);
}
.badge-priv {
  font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--text-muted);
}

/* Hero */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 750; letter-spacing: -0.035em; line-height: 1.1;
  margin: 0 0 16px;
}
.hero p.lead {
  font-size: 1.125rem; color: var(--text-muted); max-width: 560px;
  margin: 0 auto 32px;
}
.search-box {
  position: relative; max-width: 560px; margin: 0 auto;
}
.search-box input {
  width: 100%; padding: 16px 20px 16px 52px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-elev); color: var(--text);
  font-size: 1rem; outline: none;
  box-shadow: var(--shadow);
}
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.search-box .icon {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 1.1rem; pointer-events: none;
}
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-hover);
  max-height: 360px; overflow: auto; text-align: left; z-index: 30;
  display: none;
}
.search-results.open { display: block; }
.search-results a {
  display: block; padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
  font-size: .95rem;
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--accent-soft); }
.search-results .meta { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }

/* Entry cards */
.entries {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin: 40px 0 56px;
}
@media (max-width: 720px) { .entries { grid-template-columns: 1fr; } }
.entry-card {
  display: block; padding: 32px; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.entry-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.entry-card .pill {
  display: inline-block; font-size: .75rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.entry-card.client .pill { background: color-mix(in srgb, var(--client) 14%, transparent); color: var(--client); }
.entry-card.business .pill { background: color-mix(in srgb, var(--business) 14%, transparent); color: var(--business); }
.entry-card h2 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -0.02em; }
.entry-card p { margin: 0; color: var(--text-muted); }
.entry-card .arrow { margin-top: 20px; font-weight: 600; font-size: .95rem; }

/* Sections */
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
  margin: 0 0 20px;
}
.section-head h2 {
  margin: 0; font-size: 1.5rem; letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--text-muted); font-size: .95rem; }

.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin-bottom: 56px;
}
.cat-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius-sm);
  background: var(--bg-elev); border: 1px solid var(--border);
  transition: border-color .15s, box-shadow .15s;
}
.cat-card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); box-shadow: var(--shadow); }
.cat-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.25rem;
  background: var(--accent-soft);
}
.cat-card h3 { margin: 0 0 4px; font-size: 1rem; letter-spacing: -0.01em; }
.cat-card p { margin: 0; font-size: .85rem; color: var(--text-muted); }
.cat-card .count { font-size: .75rem; color: var(--text-muted); margin-top: 6px; }

.featured {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px; margin-bottom: 64px;
}
.feat-card {
  padding: 22px; border-radius: var(--radius-sm);
  background: var(--bg-elev); border: 1px solid var(--border);
}
.feat-card .tag { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 8px; }
.feat-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feat-card p { margin: 0; font-size: .9rem; color: var(--text-muted); }

/* Hub getting-started strip */
.gs-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-bottom: 56px;
}
@media (max-width: 800px) { .gs-strip { grid-template-columns: 1fr; } }
.gs-card {
  padding: 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-elev), var(--accent-soft));
  border: 1px solid var(--border);
}
.gs-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.gs-card p { margin: 0; color: var(--text-muted); font-size: .9rem; }

/* Side / category / article layout */
.page-bar {
  padding: 28px 0 8px;
}
.crumbs {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: .85rem; color: var(--text-muted); margin-bottom: 12px;
}
.crumbs a:hover { color: var(--text); }
.crumbs .sep { opacity: .5; }
.page-bar h1 {
  margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}
.page-bar .sub { margin: 0; color: var(--text-muted); }

.layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 32px;
  padding: 24px 0 80px;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static !important; }
}
.sidebar {
  position: sticky; top: 80px; align-self: start;
  max-height: calc(100vh - 100px); overflow: auto;
  padding-right: 8px;
}
.side-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px;
}
.side-list { list-style: none; padding: 0; margin: 0 0 24px; }
.side-list a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: .9rem; color: var(--text-muted);
}
.side-list a:hover, .side-list a.active {
  background: var(--accent-soft); color: var(--text);
}
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list a {
  display: block; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-elev);
  margin-bottom: 10px; transition: box-shadow .15s, border-color .15s;
}
.article-list a:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.article-list a .t { font-weight: 600; font-size: .98rem; }
.article-list a .d { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }
.article-list .warn-dot { color: #c98900; font-size: .75rem; margin-left: 6px; }

/* Article body */
.article {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 40px;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) { .article { padding: 24px 20px; } }
.article h1 {
  margin: 0 0 16px; font-size: 1.75rem; letter-spacing: -0.025em;
}
.article .lead { font-size: 1.05rem; color: var(--text-muted); margin: 0 0 20px; }
.callout {
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid; margin: 0 0 18px; font-size: .92rem;
}
.callout.warn { background: var(--warn-bg); border-color: var(--warn-border); }
.callout.info { background: var(--info-bg); border-color: var(--info-border); }
.callout strong { display: block; margin-bottom: 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

.steps { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 14px 14px 14px 52px; border-bottom: 1px solid var(--border-soft);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 8px; top: 14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--text);
  display: grid; place-items: center; font-size: .85rem; font-weight: 700;
}
.steps .st-title { font-weight: 600; }
.steps .st-detail { font-size: .9rem; color: var(--text-muted); margin-top: 4px; }

.bullets { margin: 0 0 16px; padding-left: 1.2em; }
.bullets li { margin-bottom: 8px; }

/* Shot placeholder */
.shot-slot {
  margin: 24px 0;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  overflow: hidden;
  min-height: 180px;
  position: relative;
}
.shot-slot img {
  width: 100%; height: auto; max-height: 480px; object-fit: contain;
  background: var(--bg);
}
.shot-slot .ph {
  padding: 48px 24px; text-align: center; color: var(--text-muted);
}
.shot-slot .ph code {
  display: inline-block; margin-top: 8px; padding: 4px 8px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 6px; font-family: var(--mono); font-size: .8rem;
}
.shot-slot .ph .hint { font-size: .85rem; margin-top: 8px; }
.shot-slot.has-img {
  border-style: solid;
  border-color: var(--border);
  overflow: hidden;
  background: var(--bg-elev);
}
.shot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.shot-gallery .shot-slot { margin: 0; }
.shot-gallery .shot-slot img { max-height: 420px; }

/* Glossary */
.glosar-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px; padding-bottom: 64px;
}
.glosar-item {
  padding: 18px; border-radius: var(--radius-sm);
  background: var(--bg-elev); border: 1px solid var(--border);
}
.glosar-item dt { font-weight: 700; margin-bottom: 6px; }
.glosar-item dd { margin: 0; color: var(--text-muted); font-size: .92rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--text-muted); font-size: .85rem;
}
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

.hidden { display: none !important; }

/* ===== 2027 refresh layer ===== */
:root{
  --bg:#faf9fc; --bg-elev:#ffffff; --text:#14121c; --text-muted:#625d72;
  --border:#ebe8f2; --border-soft:#f2f0f7; --brand:#6d4aff; --brand-2:#14b8a6;
  --client:#2f6bff; --business:#6d4aff; --radius:22px; --radius-sm:14px;
  --shadow:0 1px 1px rgba(20,18,28,.03),0 10px 30px -12px rgba(40,20,90,.12);
  --shadow-hover:0 2px 2px rgba(20,18,28,.04),0 24px 48px -16px rgba(60,30,140,.22);
  --max:1180px;
}
@media (prefers-color-scheme: dark){:root{--bg:#0d0c12;--bg-elev:#16141e;--text:#f4f2fa;--text-muted:#a39db3;--border:#272335;--border-soft:#1d1a27}}
body{line-height:1.65;font-size:16.5px;letter-spacing:-.005em;
  background:radial-gradient(1200px 600px at 85% -10%,rgba(109,74,255,.10),transparent 60%),radial-gradient(900px 500px at -10% 0%,rgba(20,184,166,.08),transparent 60%),var(--bg);background-attachment:fixed}
.wrap{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
.topbar{background:color-mix(in srgb,var(--bg) 75%,transparent)!important;backdrop-filter:saturate(1.6) blur(18px);-webkit-backdrop-filter:saturate(1.6) blur(18px);border-bottom:1px solid var(--border-soft)}
.logo-mark{background:linear-gradient(135deg,var(--brand),var(--brand-2))!important;border-radius:10px!important}
.top-nav a{border-radius:999px!important;padding:8px 14px!important;font-weight:550}
.top-nav a.active{background:var(--text)!important;color:var(--bg)!important}
.hero{padding-top:72px;padding-bottom:40px;text-align:center}
.hero-kicker{display:inline-block;padding:6px 14px;border-radius:999px;background:var(--bg-elev);border:1px solid var(--border);font-weight:600;font-size:13px}
.hero h1{font-size:clamp(34px,6vw,64px)!important;letter-spacing:-.035em!important;line-height:1.04!important;font-weight:800!important;
  background:linear-gradient(120deg,var(--text) 30%,var(--brand) 80%,var(--brand-2));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p.lead{max-width:620px;margin-left:auto!important;margin-right:auto!important;font-size:clamp(16px,2.2vw,19px)}
.search-box{max-width:640px;margin-left:auto;margin-right:auto}
.search-box input{border-radius:999px!important;padding:18px 22px 18px 52px!important;font-size:16px!important;box-shadow:var(--shadow);border:1px solid var(--border)!important}
.search-box input:focus{outline:none;box-shadow:0 0 0 4px rgba(109,74,255,.18),var(--shadow)!important;border-color:var(--brand)!important}
.entry-card,.cat-card,.feat-card,.gs-card,.glosar-item,.article,.sidebar{border-radius:var(--radius)!important;border:1px solid var(--border-soft)!important;box-shadow:var(--shadow)}
.entry-card,.cat-card,.feat-card,.gs-card{transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s}
.entry-card:hover,.cat-card:hover,.feat-card:hover,.gs-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
.entry-card.client{background:linear-gradient(160deg,rgba(47,107,255,.10),var(--bg-elev) 55%)!important}
.entry-card.business{background:linear-gradient(160deg,rgba(109,74,255,.12),var(--bg-elev) 55%)!important}
.cat-icon{border-radius:16px!important;background:linear-gradient(135deg,rgba(109,74,255,.12),rgba(20,184,166,.12))!important}
.section-head h2{font-size:clamp(22px,3vw,28px)!important;letter-spacing:-.02em;font-weight:750}
.article{padding:clamp(22px,4vw,48px)!important;background:var(--bg-elev)}
.article h1{font-size:clamp(28px,4.4vw,42px)!important;letter-spacing:-.03em;line-height:1.12;font-weight:800}
.article .intro{font-size:clamp(17px,2.2vw,19.5px);line-height:1.6;color:var(--text);margin:8px 0 24px;padding-left:16px;border-left:3px solid var(--brand)}
.article .sec-h{font-size:19px;letter-spacing:-.015em;margin:34px 0 14px;font-weight:750}
.steps li::before{background:linear-gradient(135deg,var(--brand),#8f6bff)!important;color:#fff!important;border:none!important}
.bullets li{padding:10px 0 10px 4px}
.bullets li::marker{color:var(--brand)}
.callout{border-radius:var(--radius-sm)!important;border-width:1px!important}
.shot-slot{border-radius:24px!important;overflow:hidden;background:var(--border-soft)!important;border:none!important}
.shot-slot.has-img img{max-height:640px;width:auto;margin:0 auto;border-radius:20px}
.helpful{margin-top:40px;padding:18px 20px;border-radius:var(--radius-sm);background:var(--border-soft);display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;font-weight:550}
.helpful a{color:var(--brand)}
.side-list a{border-radius:12px!important}
.side-list a.active{background:rgba(109,74,255,.10)!important;color:var(--brand)!important}
@media (max-width:720px){
  body{font-size:16px}
  .topbar-inner{flex-wrap:wrap;gap:8px!important;padding-top:10px;padding-bottom:10px}
  .badge-priv{display:none}
  .top-nav{width:100%;overflow-x:auto;scrollbar-width:none;display:flex;gap:4px}
  .top-nav::-webkit-scrollbar{display:none}
  .top-nav a{white-space:nowrap;min-height:40px;display:inline-flex;align-items:center}
  .hero{padding-top:36px;text-align:left}
  .hero p.lead,.search-box{margin-left:0!important}
  .entries,.cat-grid,.featured,.gs-strip,.glosar-grid{grid-template-columns:1fr!important}
  .cat-card,.feat-card,.gs-card,.entry-card{padding:18px!important}
  .crumbs{white-space:nowrap;overflow-x:auto;scrollbar-width:none}
  .layout{display:flex!important;flex-direction:column-reverse}
  .sidebar{position:static!important}
  .article{border-radius:18px!important;padding:20px 18px!important}
  .shot-gallery{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding-bottom:6px}
  .shot-gallery .shot-slot{flex:0 0 78%;scroll-snap-align:center}
  .shot-slot.has-img img{max-height:520px}
  .search-results a{padding:14px 16px!important}
  a,button{-webkit-tap-highlight-color:transparent}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Sidebar menu: rounded card must not clip labels (esp. mobile/dark) */
.sidebar{
  padding:20px 14px 18px!important;
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
  overflow:visible!important; /* border-radius + overflow:auto was clipping CLIENT + first item */
  max-height:none!important;
}
.side-title{
  padding:2px 12px 0;
  margin-top:0;
  margin-bottom:12px;
  line-height:1.4;
  overflow:visible;
}
.side-list{overflow:visible}
.side-list a{
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
  text-overflow:clip;
  overflow:visible;
  line-height:1.4;
  max-width:100%;
  padding:10px 12px;
}
.layout>*{min-width:0}
@media (min-width:901px){
  /* Desktop only: sticky scroll without clipping title — pad inside, scroll whole card */
  .sidebar{
    position:sticky;
    top:80px;
    max-height:calc(100vh - 100px)!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    padding-top:22px!important;
  }
}
@media (max-width:720px){
  .sidebar{padding:18px 16px 20px!important}
  .side-list a{padding:12px 14px;font-size:.95rem}
  .side-title{font-size:.78rem;letter-spacing:.06em}
}
