/* =============================================================================
   ultra-solutions.css — design system for /solutions and /solutions/<vertical>

   Written to the same rules as blog/ultra-blog.css and 6options/ultra.css:
   light everywhere, ONE filled-violet element per screen, nothing shouts. The
   reading column earns the attention; the furniture around it stays quiet.

   The icons are stroke-only inline SVG inheriting `currentColor` — the emoji
   they replaced rendered as a different (and on Apple, full-color) glyph on
   every OS, which is why the page read as pasted-together.

   Loaded absolutely (/solutions/ultra-solutions.css) from both the hub and the
   verticals, because /solutions/<id> resolves relative paths one level deeper.
   ============================================================================= */

:root {
  --s-ink: #0f172a;
  --s-muted: #55617a;
  --s-soft: #8b90a3;
  --s-line: #ece7fa;
  --s-hair: #eef0f6;
  --s-violet: #7c3aed;
  --s-violet-d: #5b21b6;
  --s-band: #fbfaff;
}

* { box-sizing: border-box; }

/* `clip`, not `hidden`: overflow:hidden turns the element into a scroll
   container, which silently kills `position: sticky` on the TOC rail. */
html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Heebo', 'Assistant', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--s-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

.s-skip {
  position: absolute; inset-inline-start: -9999px; top: 0;
  background: #fff; color: var(--s-violet-d); padding: 12px 20px;
  border-radius: 0 0 12px 12px; z-index: 999; text-decoration: none; font-weight: 800;
}
.s-skip:focus { inset-inline-start: 16px; }

/* ------------------------------------------------------------------ icons -- */

.s-chip-icon, .s-hub-svg, .s-more-icon {
  width: 1em; height: 1em; flex: none;
  /* Optical centering: a 24-box stroke icon sits a hair high next to Hebrew. */
  transform: translateY(.5px);
}
.s-chip-icon { width: 15px; height: 15px; }
.s-more-icon { width: 17px; height: 17px; color: var(--s-soft); transition: color .15s; }
.s-hub-svg { width: 24px; height: 24px; }

/* ------------------------------------------------------------------- head -- */

.s-page { max-width: 74rem; margin: 0 auto; padding: 0 24px 80px; }

.s-head { position: relative; text-align: right; padding: 46px 0 8px; }
.s-head-hub { text-align: center; padding-bottom: 4px; }

.s-crumb { font-size: .87rem; color: var(--s-soft); margin-bottom: 22px; }
.s-crumb a { color: var(--s-soft); text-decoration: none; }
.s-crumb a:hover { color: var(--s-violet); }
.s-crumb span { color: var(--s-muted); font-weight: 600; }

.s-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--s-muted);
  border: 1px solid var(--s-line); border-radius: 999px;
  padding: 7px 15px; font-size: .86rem; font-weight: 700; margin-bottom: 18px;
}
.s-chip .s-chip-icon { color: var(--s-violet); }

.s-head h1 {
  margin: 0 0 12px; font-size: clamp(1.75rem, 4.2vw, 2.6rem);
  font-weight: 900; line-height: 1.24; letter-spacing: -.025em; max-width: 44rem;
}
.s-head-hub h1 { margin-inline: auto; }

.s-updated { margin: 0; color: var(--s-soft); font-size: .85rem; }

.s-hub-lead {
  margin: 14px auto 0; max-width: 46rem;
  color: var(--s-muted); font-size: 1.05rem; line-height: 1.85;
}

/* ----------------------------------------------------------------- answer -- */

.s-main { padding-top: 30px; }

/* The AI-Overview / featured-snippet target. Deliberately the quietest
   possible container that still reads as a pulled-out summary — a filled
   violet box here would compete with the one CTA at the bottom. */
.s-answer {
  background: var(--s-band);
  border: 1px solid var(--s-line);
  border-inline-start: 3px solid var(--s-violet);
  border-radius: 14px; padding: 22px 26px; margin-bottom: 44px;
}
.s-answer h2 {
  margin: 0 0 8px; font-size: .74rem; font-weight: 800;
  color: var(--s-violet-d); letter-spacing: .09em; text-transform: uppercase;
}
.s-answer p { margin: 0; font-size: 1.06rem; line-height: 1.9; color: #232a3d; font-weight: 500; }

/* ------------------------------------------------------------ ad examples -- */

.s-examples { margin-bottom: 52px; }
.s-examples > h2 {
  margin: 0 0 6px; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em;
}
.s-examples > h2 + .s-ad-grid { margin-top: 20px; }

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

.s-ad {
  margin: 0; background: #fff; border: 1px solid var(--s-hair); border-radius: 14px;
  overflow: hidden; transition: border-color .16s, box-shadow .2s;
}
.s-ad:hover { border-color: #dcd3f7; box-shadow: 0 10px 30px -14px rgba(73, 38, 160, .3); }

.s-ad-top { display: flex; align-items: center; gap: 9px; padding: 12px 14px; }
.s-ad-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--s-band); border: 1px solid var(--s-line);
  color: var(--s-violet-d); font-weight: 800; font-size: .9rem;
}
.s-ad-brand { display: flex; flex-direction: column; line-height: 1.3; font-weight: 700; font-size: .88rem; }
.s-ad-brand small { color: var(--s-soft); font-weight: 500; font-size: .72rem; }
.s-ad picture img { display: block; width: 100%; height: auto; }
.s-ad-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-top: 1px solid var(--s-hair);
  font-size: .85rem; color: var(--s-muted);
}
.s-ad-bar b {
  flex: none; background: #fff; color: var(--s-violet-d);
  border: 1px solid var(--s-line);
  border-radius: 8px; padding: 5px 13px; font-size: .82rem; font-weight: 800;
}

.s-ad-note { margin: 18px 2px 0; font-size: .84rem; color: var(--s-soft); line-height: 1.75; }

/* -------------------------------------------------------- body + toc rail -- */

.s-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 52px;
}
/* Explicit placement: the TOC comes first in the DOM (so keyboard and screen
   reader users meet the outline before the prose) but renders on the outside
   edge of the reading column. */
/* Both `grid-row: 1` declarations are load-bearing. The TOC comes first in the
   DOM (so keyboard users meet the outline before the prose) but renders in
   column 2; without pinning the row, auto-placement drops the body into row 2
   and the rail's grid cell shrinks to its own height — at which point the
   sticky child has nowhere to travel and scrolls away like static content. */
.s-body { grid-column: 1; grid-row: 1; }
.s-toc  { grid-column: 2; grid-row: 1; align-self: stretch; }

.s-toc-inner {
  position: sticky; top: 92px;
  border-inline-start: 1px solid var(--s-line);
  padding-inline-start: 18px;
}
.s-toc h2 {
  margin: 0 0 12px; font-size: .72rem; font-weight: 800; color: var(--s-soft);
  letter-spacing: .09em; text-transform: uppercase;
}
.s-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.s-toc li { counter-increment: toc; margin-bottom: 11px; }
.s-toc a {
  display: block; color: var(--s-muted); text-decoration: none;
  font-size: .89rem; line-height: 1.55; transition: color .15s;
}
.s-toc a::before {
  content: counter(toc) ".";
  color: var(--s-soft); font-weight: 700; margin-inline-end: 7px; font-size: .82rem;
}
.s-toc a:hover { color: var(--s-violet-d); }

.s-body { max-width: 46rem; }
.s-body h2 {
  margin: 46px 0 14px; font-size: 1.4rem; font-weight: 800;
  letter-spacing: -.02em; line-height: 1.35; scroll-margin-top: 90px;
}
.s-body h2:first-child { margin-top: 0; }
.s-body p { margin: 0 0 17px; font-size: 1.03rem; line-height: 1.95; color: #333850; }
.s-body strong { color: var(--s-ink); font-weight: 700; }
.s-body a { color: var(--s-violet); font-weight: 600; text-decoration: none; border-bottom: 1px solid #ded4f9; }
.s-body a:hover { color: var(--s-violet-d); border-color: var(--s-violet); }
.s-body ul { margin: 0 0 20px; padding-inline-start: 20px; }
.s-body li { margin-bottom: 12px; font-size: 1.01rem; line-height: 1.85; color: #333850; }
.s-body li::marker { color: #c4b5fd; }

/* -------------------------------------------------------------------- faq -- */

.s-faq { max-width: 46rem; margin-top: 56px; }
.s-faq h2 { margin: 0 0 16px; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.s-faq details {
  background: #fff; border: 1px solid var(--s-hair); border-radius: 12px;
  margin-bottom: 9px; overflow: hidden; transition: border-color .15s;
}
.s-faq details[open] { border-color: var(--s-line); }
.s-faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; font-size: .98rem;
}
.s-faq summary::-webkit-details-marker { display: none; }
/* Physical `border-right`, deliberately not `border-inline-end`: this is a
   geometric affordance (down = expand, up = collapse), not a directional one.
   The logical property flips it to a sideways "<" under dir="rtl". */
.s-faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--s-soft); border-bottom: 2px solid var(--s-soft);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s, border-color .2s;
}
.s-faq details[open] summary::after {
  transform: rotate(225deg) translateY(-2px); border-color: var(--s-violet);
}
.s-faq details[open] summary { color: var(--s-violet-d); }
.s-faq-a { padding: 0 18px 18px; color: var(--s-muted); font-size: .95rem; line-height: 1.9; }

/* -------------------------------------------------------------------- cta -- */

/* The one filled-violet element on the page. Everything above stays outlined
   so this is the only thing competing for the eye at the end of the read. */
.s-cta {
  position: relative; overflow: hidden;
  margin: 60px 0 0; padding: 38px 32px; border-radius: 20px; text-align: center;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  color: #fff;
}
.s-cta h2 { margin: 0 0 10px; font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; }
.s-cta p { margin: 0 auto 22px; max-width: 32rem; font-size: .98rem; line-height: 1.8; color: #e4d8fb; }
.s-cta a {
  display: inline-block; background: #fff; color: var(--s-violet-d);
  font-weight: 800; font-size: 1rem; padding: 13px 28px; border-radius: 12px;
  text-decoration: none; transition: transform .15s ease;
}
.s-cta a:hover { transform: translateY(-2px); }

/* ---------------------------------------------------------------- related -- */

.s-related { margin-top: 56px; }
.s-related h2, .s-more h2 {
  margin: 0 0 16px; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em;
}
.s-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.s-related-grid a {
  display: flex; flex-direction: column; gap: 5px;
  background: #fff; border: 1px solid var(--s-hair); border-radius: 12px;
  padding: 16px 18px; text-decoration: none; transition: border-color .15s, transform .15s;
}
.s-related-grid a:hover { border-color: #cdbcf7; transform: translateY(-2px); }
.s-related-grid strong { color: var(--s-ink); font-size: .96rem; }
.s-related-grid span { color: var(--s-muted); font-size: .86rem; line-height: 1.6; }

.s-more { margin-top: 48px; }
.s-more-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.s-more-grid a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--s-hair); border-radius: 999px;
  padding: 9px 17px; color: var(--s-muted); font-weight: 600; font-size: .9rem;
  text-decoration: none; transition: border-color .15s, color .15s;
}
.s-more-grid a:hover { border-color: #cdbcf7; color: var(--s-violet-d); }
.s-more-grid a:hover .s-more-icon { color: var(--s-violet); }

/* -------------------------------------------------------------------- hub -- */

.s-hub-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px;
}
.s-hub-card {
  position: relative; display: flex; flex-direction: column; gap: 9px;
  background: #fff; border: 1px solid var(--s-hair); border-radius: 18px;
  padding: 26px 24px 22px; text-decoration: none;
  transition: transform .18s ease, box-shadow .2s ease, border-color .15s;
}
.s-hub-card:hover {
  transform: translateY(-4px); border-color: #cdbcf7;
  box-shadow: 0 20px 44px -20px rgba(73, 38, 160, .38);
}
.s-hub-icon {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center;
  justify-content: center; background: var(--s-band); border: 1px solid var(--s-line);
  color: var(--s-violet); transition: background .18s, color .18s, border-color .18s;
}
.s-hub-card:hover .s-hub-icon { background: var(--s-violet); border-color: var(--s-violet); color: #fff; }
.s-hub-card h2 { margin: 7px 0 0; font-size: 1.14rem; font-weight: 800; color: var(--s-ink); letter-spacing: -.01em; }
.s-hub-card p { margin: 0; color: var(--s-muted); font-size: .92rem; line-height: 1.75; flex: 1; }
.s-hub-more { color: var(--s-violet); font-weight: 700; font-size: .9rem; margin-top: 8px; }
.s-hub-more i { font-style: normal; transition: transform .15s; display: inline-block; }
.s-hub-card:hover .s-hub-more i { transform: translateX(-4px); }

.s-hub-note {
  margin: 34px auto 0; max-width: 40rem; text-align: center;
  color: var(--s-soft); font-size: .9rem; line-height: 1.8;
}

/* ------------------------------------------------------------- responsive -- */

@media (max-width: 1040px) {
  /* The rail is the first thing to go: below this width it steals from the
     measure without earning its keep. The anchors stay in the HTML, so the
     SERP jump-links and the schema `hasPart` survive the breakpoint. */
  .s-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .s-toc { display: none; }
}
@media (max-width: 900px) {
  .s-ad-grid, .s-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .s-ad-grid, .s-hub-grid, .s-related-grid { grid-template-columns: 1fr; }
  .s-head { padding-top: 32px; }
  .s-answer { padding: 18px 20px; }
  .s-cta { padding: 30px 22px; }
  .s-page { padding-bottom: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
