/* ==========================================================================
   sniche — shared stylesheet
   Business / enterprise security-feed site. White background, ink navy,
   indigo accent, cyan signal. All tokens live in :root.
   ========================================================================== */

:root {
  /* Ink */
  --ink:        #0d1424;
  --ink-soft:   #4a5468;
  --ink-faint:  #79839a;

  /* Surfaces */
  --bg:         #ffffff;
  --bg-alt:     #f6f8fc;
  --bg-deep:    #0d1424;
  --line:       #e4e8f0;
  --line-soft:  #eef1f7;

  /* Brand */
  --accent:       #4338ca;
  --accent-dark:  #322aa0;
  --accent-soft:  #eef0fe;
  --accent-line:  #d9dcfb;
  --cyan:         #0891b2;
  --cyan-soft:    #e7f6fa;

  /* Signal */
  --ok:        #0f9d66;
  --ok-soft:   #e8f7f0;
  --warn:      #b45309;
  --warn-soft: #fdf3e3;
  --crit:      #c62b3e;
  --crit-soft: #fdeef0;

  --radius:    10px;
  --radius-lg: 16px;
  --max:       1140px;
  --shadow-sm: 0 1px 2px rgba(13,20,36,.05), 0 4px 12px rgba(13,20,36,.05);
  --shadow:    0 2px 6px rgba(13,20,36,.05), 0 14px 34px rgba(13,20,36,.07);
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { display: block; }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--accent-soft); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section-sm { padding: 52px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow.on-dark { color: #8ea0ff; }

.lead { font-size: 1.12rem; color: var(--ink-soft); }

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

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.muted { color: var(--ink-faint); }
.small { font-size: .88rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.24rem; letter-spacing: -.03em; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 32px; height: 32px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-mark svg { width: 32px; height: 32px; display: block; }
/* Wordmark: blue "s", ink "niche". */
.brand-s { color: var(--accent); }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 12px; border-radius: 8px;
  color: var(--ink-soft); font-size: .94rem; font-weight: 500;
}
.main-nav a:hover { color: var(--ink); background: var(--bg-alt); }
.main-nav a.current { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .link-quiet { color: var(--ink-soft); font-size: .94rem; font-weight: 500; padding: 8px 4px; }
.nav-cta .link-quiet:hover { color: var(--ink); }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  background: #fff; border-radius: 8px; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 17px; height: 2px; background: var(--ink);
  margin: 3.5px auto; border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  font-size: .94rem; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(13,20,36,.1); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); border-color: #d3d9e6; }

.btn-dark { background: #fff; color: var(--ink); }
.btn-dark:hover { background: #eceffa; color: var(--ink); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }

.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-sm { padding: 7px 13px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(760px 380px at 88% -8%, rgba(8,145,178,.10), transparent 62%),
    radial-gradient(720px 420px at 8% 0%,  rgba(67,56,202,.10), transparent 60%);
}
.hero .wrap { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: 1.16rem; margin-bottom: 1.6em; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--ink-faint); }
.hero-note strong { color: var(--ink-soft); font-weight: 600; }

.trust-row { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.trust-row .label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.trust-logos { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-logos span {
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; background: #fff;
}

/* ---------- Stats ---------- */

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat-strip .stat { background: #fff; padding: 26px 24px; }
.stat .num { font-size: 1.85rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.stat .num small { font-size: 1.1rem; font-weight: 600; color: var(--accent); }
.stat .cap { font-size: .86rem; color: var(--ink-faint); margin-top: 4px; }

/* ---------- Cards ---------- */

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card-hover:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); font-size: .95rem; }

.icon-badge {
  width: 42px; height: 42px; border-radius: 11px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.icon-badge svg { width: 20px; height: 20px; }
.icon-badge.cyan { background: var(--cyan-soft); color: var(--cyan); border-color: #cbe9f1; }
.icon-badge.ok   { background: var(--ok-soft);   color: var(--ok);   border-color: #cbeadd; }

.step-num {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; margin-bottom: 14px;
}

/* ---------- Chips / badges ---------- */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); background: #fff;
}
.chip-accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.chip-ok   { background: var(--ok-soft);   border-color: #cbeadd; color: var(--ok); }
.chip-warn { background: var(--warn-soft); border-color: #f4e0bf; color: var(--warn); }
.chip-crit { background: var(--crit-soft); border-color: #f6ccd2; color: var(--crit); }
.chip-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(15,157,102,.5); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(15,157,102,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(15,157,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(15,157,102,0); }
}

/* ---------- Feed catalog ---------- */

.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.catalog-search { position: relative; flex: 1 1 260px; max-width: 340px; }
.catalog-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-faint); }
.catalog-search input { padding-left: 36px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.filter-chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  font: inherit; font-size: .86rem; font-weight: 500; padding: 6px 13px;
  border-radius: 999px; cursor: pointer; transition: all .15s;
}
.filter-chip:hover { border-color: #d3d9e6; color: var(--ink); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

.feed-card { display: flex; flex-direction: column; }
.feed-card .feed-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.feed-card h3 { font-size: 1.05rem; margin: 0; }
.feed-card .feed-slug { font-family: var(--mono); font-size: .78rem; color: var(--ink-faint); margin-top: 3px; }
.feed-card p { flex: 1; }
.feed-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.feed-meta div { font-size: .8rem; color: var(--ink-faint); }
.feed-meta strong { display: block; color: var(--ink); font-weight: 600; font-size: .87rem; }
.catalog-empty { padding: 48px; text-align: center; color: var(--ink-faint); border: 1px dashed var(--line); border-radius: var(--radius-lg); }

/* ---------- Live ticker ---------- */

.ticker {
  background: var(--bg-deep); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 24px 60px rgba(13,20,36,.22); border: 1px solid #1d2740;
}
.ticker-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid #1d2740; background: #111a2e;
}
.ticker-head .dots { display: flex; gap: 6px; }
.ticker-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c3856; }
.ticker-head .title { font-family: var(--mono); font-size: .78rem; color: #8b97b3; }
.ticker-head .chip { margin-left: auto; background: rgba(15,157,102,.14); border-color: rgba(15,157,102,.3); color: #46d39b; }
.ticker-body { padding: 8px 0; height: 322px; overflow: hidden; }
.ticker-row {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center;
  padding: 8px 16px; font-family: var(--mono); font-size: .78rem; color: #c3cbdd;
  animation: rowIn .45s ease;
}
.ticker-row .t { color: #6c7896; }
.ticker-row .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e6ebf5; }
.ticker-row .tag { font-size: .68rem; padding: 2px 7px; border-radius: 5px; font-weight: 600; letter-spacing: .02em; }
.tag-crit { background: rgba(198,43,62,.16); color: #ff8a99; }
.tag-warn { background: rgba(180,83,9,.18);  color: #f3b569; }
.tag-info { background: rgba(8,145,178,.16); color: #63cde6; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
/* Rows are visible by default; the keyframe only eases them in. */
.ticker-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border-top: 1px solid #1d2740; background: #111a2e;
  font-family: var(--mono); font-size: .72rem; color: #6c7896;
}

/* ---------- Code ---------- */

.code-block {
  background: var(--bg-deep); border-radius: var(--radius); border: 1px solid #1d2740;
  overflow: hidden; margin: 0 0 18px;
}
.code-head {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  background: #111a2e; border-bottom: 1px solid #1d2740;
  font-family: var(--mono); font-size: .76rem; color: #8b97b3;
}
.code-head .btn-copy {
  margin-left: auto; background: transparent; border: 1px solid #2c3856; color: #a9b4cc;
  font: inherit; font-size: .72rem; padding: 3px 9px; border-radius: 6px; cursor: pointer;
}
.code-head .btn-copy:hover { background: #1a2540; color: #fff; }
.code-block pre {
  margin: 0; padding: 15px; overflow-x: auto;
  font-family: var(--mono); font-size: .82rem; line-height: 1.62; color: #d7deec;
}
.code-block code { font-family: inherit; }
.tok-key  { color: #8ea0ff; }
.tok-str  { color: #7fd6a8; }
.tok-num  { color: #f3b569; }
.tok-com  { color: #6c7896; }
.tok-fn   { color: #63cde6; }

code.inline {
  font-family: var(--mono); font-size: .86em; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--accent-dark);
}

/* ---------- Tabs ---------- */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tab {
  border: 0; background: transparent; font: inherit; font-size: .92rem; font-weight: 500;
  color: var(--ink-soft); padding: 9px 14px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel[hidden] { display: none; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
table.data th, table.data td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data th { background: var(--bg-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 700; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data td code { font-family: var(--mono); font-size: .84em; color: var(--accent-dark); }
table.data .req { color: var(--crit); font-size: .74rem; font-weight: 700; text-transform: uppercase; }

/* ---------- Docs layout ---------- */

.docs { display: grid; grid-template-columns: 232px 1fr; gap: 48px; align-items: start; }
.docs-nav { position: sticky; top: 92px; }
.docs-nav .docs-nav-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-weight: 700; margin: 20px 0 8px; }
.docs-nav .docs-nav-title:first-child { margin-top: 0; }
.docs-nav a {
  display: block; padding: 5px 12px; font-size: .9rem; color: var(--ink-soft);
  border-left: 2px solid var(--line); line-height: 1.45;
}
.docs-nav a:hover { color: var(--ink); border-left-color: #c9d0de; }
.docs-nav a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; background: linear-gradient(90deg, var(--accent-soft), transparent); }

.docs-body > section { scroll-margin-top: 88px; padding-bottom: 44px; }
.docs-body h2 { padding-top: 8px; }
.docs-body h3 { margin-top: 28px; }
.docs-body p, .docs-body li { color: var(--ink-soft); }
.docs-body ul { padding-left: 20px; }
.docs-body li { margin-bottom: 6px; }

.endpoint {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; margin-bottom: 16px; font-family: var(--mono); font-size: .88rem;
}
.method { font-weight: 700; font-size: .74rem; padding: 3px 8px; border-radius: 5px; letter-spacing: .04em; }
.method-get  { background: var(--ok-soft); color: var(--ok); }
.method-post { background: var(--accent-soft); color: var(--accent); }

.callout {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 15px 18px; margin: 20px 0;
  font-size: .93rem; color: var(--ink-soft);
}
.callout strong { color: var(--ink); }
.callout.warn { border-left-color: var(--warn); background: var(--warn-soft); }

/* ---------- Accordion ---------- */

.accordion { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.acc-item + .acc-item { border-top: 1px solid var(--line-soft); }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: #fff; border: 0; font: inherit; font-weight: 600; color: var(--ink);
  padding: 17px 20px; cursor: pointer;
}
.acc-head:hover { background: var(--bg-alt); }
.acc-head .acc-icon { margin-left: auto; flex: none; color: var(--ink-faint); transition: transform .2s; }
.acc-item.open .acc-head .acc-icon { transform: rotate(45deg); color: var(--accent); }
.acc-body { padding: 0 20px 20px; color: var(--ink-soft); font-size: .95rem; }
.acc-body p:last-child { margin-bottom: 0; }
.acc-item[hidden] { display: none; }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field.span-2 { grid-column: span 2; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--ink-faint); }
.req-star { color: var(--crit); }

input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 132px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2379839a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: #a7afc0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--crit); }
.field .err { font-size: .8rem; color: var(--crit); font-weight: 500; }
.field .err:empty { display: none; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.captcha-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.captcha-img { display: block; width: 150px; height: 50px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.captcha-row .btn-sm { flex: none; }

.form-note { font-size: .84rem; color: var(--ink-faint); margin-top: 14px; }

.form-alert {
  border-radius: var(--radius); padding: 13px 16px; font-size: .92rem; margin-bottom: 20px;
  border: 1px solid; display: flex; gap: 10px; align-items: flex-start;
}
.form-alert[hidden] { display: none; }
.form-alert.ok   { background: var(--ok-soft);   border-color: #cbeadd; color: #0b6f49; }
.form-alert.err  { background: var(--crit-soft); border-color: #f6ccd2; color: #9d2130; }
.form-alert.info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-dark); }
.form-alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }

/* ---------- Contact / info list ---------- */

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--bg-alt); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.info-list .ico svg { width: 17px; height: 17px; }
.info-list .k { font-size: .8rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.info-list .v { font-weight: 500; }
.info-list .v span { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Account / dashboard ---------- */

.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-switch { display: flex; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 26px; }
.auth-switch button {
  flex: 1; border: 0; background: transparent; font: inherit; font-size: .92rem; font-weight: 600;
  color: var(--ink-soft); padding: 9px; border-radius: 7px; cursor: pointer;
}
.auth-switch button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.dash { display: grid; grid-template-columns: 210px 1fr; gap: 40px; align-items: start; }
.dash-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.dash-nav button {
  display: flex; align-items: center; gap: 10px; text-align: left;
  border: 0; background: transparent; font: inherit; font-size: .93rem; font-weight: 500;
  color: var(--ink-soft); padding: 9px 12px; border-radius: 8px; cursor: pointer; width: 100%;
}
.dash-nav button:hover { background: var(--bg-alt); color: var(--ink); }
.dash-nav button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.dash-nav svg { width: 16px; height: 16px; flex: none; }

.key-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.key-row + .key-row { margin-top: 10px; }
.key-row .key-name { font-weight: 600; font-size: .93rem; }
.key-row .key-val { font-family: var(--mono); font-size: .84rem; color: var(--ink-soft); background: var(--bg-alt); border: 1px solid var(--line-soft); border-radius: 6px; padding: 4px 9px; }
.key-row .key-actions { margin-left: auto; display: flex; gap: 8px; }

.usage-bar { height: 8px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line-soft); overflow: hidden; }
.usage-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); border-radius: 999px; transition: width .8s ease; }

.plan-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: #fff; }
.plan-card.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-price { font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; }
.plan-price small { font-size: .9rem; font-weight: 500; color: var(--ink-faint); }
.plan-feats { list-style: none; margin: 16px 0 0; padding: 0; font-size: .9rem; color: var(--ink-soft); }
.plan-feats li { display: flex; gap: 9px; padding: 5px 0; }
.plan-feats li::before { content: "✓"; color: var(--ok); font-weight: 700; flex: none; }

/* ---------- Timeline (about) ---------- */

.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -33px; top: 5px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--accent);
}
.timeline .yr { font-family: var(--mono); font-size: .82rem; color: var(--accent); font-weight: 600; }
.timeline h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.timeline p { color: var(--ink-soft); font-size: .93rem; margin: 0; }

/* ---------- Figures ---------- */

.figure-shot { margin: 0; }
.figure-shot img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-sm);
}
.figure-shot figcaption { margin-top: 10px; font-size: .84rem; color: var(--ink-faint); }

/* ---------- Image placeholders (swap for real art later) ---------- */

.img-slot {
  position: relative; border: 1px dashed var(--line); border-radius: var(--radius-lg);
  background: repeating-linear-gradient(45deg, #fbfcfe, #fbfcfe 12px, #f4f6fb 12px, #f4f6fb 24px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--ink-faint); font-size: .82rem; min-height: 190px; padding: 20px;
}
.img-slot span { display: block; font-family: var(--mono); }
.img-slot .label { color: var(--ink-soft); font-weight: 600; margin-bottom: 4px; }


/* ---------- Page header ---------- */

.page-head { padding: 54px 0 42px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.page-head h1 { margin-bottom: .3em; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.page-head p { color: var(--ink-soft); font-size: 1.06rem; max-width: 640px; margin: 0; }
.breadcrumb { font-size: .84rem; color: var(--ink-faint); margin-bottom: 12px; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--bg-deep); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 82% 10%, rgba(8,145,178,.28), transparent 62%),
              radial-gradient(600px 320px at 12% 100%, rgba(67,56,202,.34), transparent 60%);
}
.cta-band .wrap { position: relative; display: flex; gap: 34px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #b3bdd2; margin: 0; max-width: 520px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ink-soft); }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { color: var(--ink-soft); max-width: 300px; margin: 14px 0 0; font-size: .9rem; }
.footer-bottom {
  margin-top: 42px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-faint); font-size: .86rem;
}
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .docs, .dash { grid-template-columns: 1fr; gap: 28px; }
  .docs-nav, .dash-nav { position: static; }
  .dash-nav { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .dash-nav button { white-space: nowrap; width: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); flex-direction: column;
    padding: 10px 16px 16px; gap: 2px; box-shadow: var(--shadow);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 11px 12px; }
  .nav-toggle { display: block; }
  .nav-cta .link-quiet, .nav-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
  .stat-strip { grid-template-columns: 1fr; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .filter-chips { margin-left: 0; }
  .catalog-search { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
}
