/* ============================================================================
   LawPucho — category consultation pages. NEW DESIGN ("ink & signal").

   A self-contained identity for the /online-<subject>-lawyer-consultation family.
   It deliberately does NOT reuse the site's paper-and-ink theme or the older
   navy/gold one: the ground inverts to near-black, the display face is Fraunces
   (editorial, variable), and there is exactly ONE accent — signal blue #2F6BFF —
   used for the eyebrow, the step markers, the price glow and the primary button.

   Everything is scoped under .cx so it cannot leak into the rest of the site, and
   the page is still wrapped in the site's own header and footer.

   Rules kept in mind here: base states come before the media queries (a plain rule
   after a @media block wins regardless of the query), only transform/opacity are
   animated, and every reveal has a prefers-reduced-motion escape that leaves the
   content VISIBLE rather than stranded at opacity 0.
   ========================================================================= */

.cx {
  --cx-ink:      #07080C;
  --cx-ink-2:    #0D0F15;
  --cx-ink-3:    #14171F;
  --cx-paper:    #FBF9F4;
  --cx-paper-2:  #F4F1E9;
  --cx-text:     #E8E9ED;
  --cx-muted:    #9AA0AE;
  --cx-muted-d:  #5F6675;
  --cx-line:     rgba(255, 255, 255, .10);
  --cx-line-s:   rgba(255, 255, 255, .18);
  --cx-edge:     #E4DED1;
  --cx-edge-d:   #E7E2D6;
  --cx-inktext:  #14161C;
  --cx-inksoft:  #4E5462;
  --cx-accent:   #2F6BFF;
  --cx-accent-2: #1B47C4;
  --cx-accent-s: rgba(47, 107, 255, .14);
  --cx-radius:   16px;
  --cx-serif:    "Fraunces", "Iowan Old Style", Georgia, serif;
  --cx-sans:     "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cx-mono:     "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  background: var(--cx-ink);
  color: var(--cx-text);
  font-family: var(--cx-sans);
  -webkit-font-smoothing: antialiased;
}

.cx *,
.cx *::before,
.cx *::after { box-sizing: border-box; }

.cx-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.cx-wrap--narrow { max-width: 780px; }

/* ---------------------------------------------------------------- type */
.cx h1, .cx h2, .cx h3 {
  font-family: var(--cx-serif);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.05;
  margin: 0;
}

/* Out-rank the site's own sheets.
   theme.css and v3.css both carry `h1,h2,h3,h4,h5,.lp-serif{font-family:var(--head)!important;
   color:var(--ink)}` and, being linked from the shared header, they load after this file. The
   !important there can only be beaten by an !important of our own, and the near-black colour it
   sets made the headline invisible on the near-black hero. Scoping by the page id also out-ranks
   their element selectors, and the stylesheet is linked from inside <main> so it is last in
   document order. Do not remove the !important. */
#lp-cat h1, #lp-cat h2, #lp-cat h3 {
  font-family: var(--cx-serif) !important;
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.06;
  color: inherit;
}
#lp-cat .cx-hero h1, #lp-cat .cx-band h2 { color: #fff; }
#lp-cat .cx-sec--paper h2, #lp-cat .cx-sec--paper h3 { color: var(--cx-inktext); }
.cx h1 { font-size: clamp(34px, 6.2vw, 68px); font-variation-settings: "SOFT" 0, "WONK" 1; }
.cx h1 em, .cx h2 em { font-style: italic; color: var(--cx-accent); }
.cx h2 { font-size: clamp(24px, 3.2vw, 40px); letter-spacing: -.02em; }
.cx h3 { font-size: 19px; line-height: 1.3; }
.cx p  { margin: 0 0 16px; line-height: 1.75; }
.cx p:last-child { margin-bottom: 0; }

.cx-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--cx-mono); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cx-accent);
}
.cx-eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6;
}
.cx-eyebrow--ink { color: var(--cx-accent-2); }

.cx-deck { color: var(--cx-muted); font-size: clamp(16px, 1.9vw, 18.5px); line-height: 1.7; max-width: 58ch; }

/* ---------------------------------------------------------------- sections */
.cx-sec { padding: clamp(46px, 7vw, 96px) 0; }
.cx-sec--tight { padding: clamp(30px, 4vw, 54px) 0; }
.cx-sec--paper { background: var(--cx-paper); color: var(--cx-inktext); }
.cx-sec--paper .cx-deck,
.cx-sec--paper .cx-prose p { color: var(--cx-inksoft); }
.cx-sec--paper .cx-eyebrow { color: var(--cx-accent-2); }
.cx-sec--ink2 { background: var(--cx-ink-2); }
.cx-sec--edge { border-top: 1px solid var(--cx-edge); }
.cx-sec--edged { border-top: 1px solid var(--cx-line); }

/* a hairline grid behind the hero: quiet structure, no gradient wash */
.cx-hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 84px) 0 clamp(44px, 6vw, 88px);
  background:
    radial-gradient(760px 420px at 78% -12%, rgba(47, 107, 255, .16), transparent 62%),
    radial-gradient(520px 340px at 4% 8%, rgba(47, 107, 255, .07), transparent 60%),
    var(--cx-ink);
}
.cx-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}
.cx-hero > .cx-wrap { position: relative; z-index: 1; }

.cx-hero-grid {
  display: grid; grid-template-columns: 1.32fr .68fr;
  gap: clamp(30px, 4.4vw, 62px); align-items: start;
}
.cx-hero-lede { margin-top: 20px; }

/* ---------------------------------------------------------------- chips */
.cx-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.cx-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border: 1px solid var(--cx-line-s); border-radius: 999px;
  font-size: 12.5px; color: var(--cx-text); background: rgba(255, 255, 255, .035);
}
.cx-chip i { color: var(--cx-accent); font-size: 11px; }

/* ---------------------------------------------------------------- price card */
.cx-price {
  position: relative;
  border: 1px solid var(--cx-line-s); border-radius: var(--cx-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  padding: clamp(20px, 2.6vw, 28px);
  backdrop-filter: blur(6px);
}
.cx-price::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(47, 107, 255, .55), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px;
}
.cx-price-eyebrow { font-family: var(--cx-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--cx-muted); }
.cx-price-row { display: flex; align-items: baseline; gap: 11px; margin: 12px 0 4px; }
.cx-price-amt { font-family: var(--cx-serif); font-size: clamp(40px, 5.6vw, 54px); font-weight: 600; letter-spacing: -.03em; }
.cx-price-per { color: var(--cx-muted); font-size: 14.5px; }
.cx-price-note { color: var(--cx-muted); font-size: 13.5px; line-height: 1.62; margin: 10px 0 0; }

.cx-list { list-style: none; margin: 20px 0 0; padding: 0; }
.cx-list li {
  position: relative; padding: 9px 0 9px 26px; font-size: 14px; line-height: 1.6;
  color: var(--cx-text); border-top: 1px solid var(--cx-line);
}
.cx-list li:first-child { border-top: 0; }
.cx-list li::before {
  content: ""; position: absolute; left: 3px; top: 17px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--cx-accent);
  transform: rotate(45deg);
}
.cx-sec--paper .cx-list li { color: var(--cx-inktext); border-top-color: var(--cx-edge); }
.cx-sec--paper .cx-list li::before { background: var(--cx-accent-2); }

/* ---------------------------------------------------------------- buttons */
.cx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--cx-sans); font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .18s cubic-bezier(.16, 1, .3, 1), background-color .18s, border-color .18s, box-shadow .18s;
}
.cx-btn--primary {
  background: var(--cx-accent); color: #fff;
  box-shadow: 0 10px 30px -12px rgba(47, 107, 255, .75);
}
.cx-btn--primary:hover { background: #2A61EB; transform: translateY(-1px); }
.cx-btn--ghost { border-color: var(--cx-line-s); color: var(--cx-text); }
.cx-btn--ghost:hover { border-color: var(--cx-accent); color: #fff; }
.cx-btn--ink { background: var(--cx-ink); color: #fff; }
.cx-btn--ink:hover { background: #101319; }
.cx-btn--wide { width: 100%; }
.cx-btn--lg { padding: 17px 28px; font-size: 15.5px; }

.cx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cx-fine { color: var(--cx-muted-d); font-size: 12.5px; line-height: 1.6; margin-top: 12px; }
.cx-sec--paper .cx-fine { color: var(--cx-muted-d); }

/* ---------------------------------------------------------------- trust strip */
.cx-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--cx-line); border-bottom: 1px solid var(--cx-line);
}
.cx-strip div {
  padding: 20px 18px; border-left: 1px solid var(--cx-line);
  font-size: 13.5px; color: var(--cx-muted); line-height: 1.5;
}
.cx-strip div:first-child { border-left: 0; }
.cx-strip b { display: block; color: var(--cx-text); font-weight: 600; margin-bottom: 3px; font-size: 14px; }

/* ---------------------------------------------------------------- cards */
.cx-grid { display: grid; gap: 16px; }
.cx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cx-grid--2 { grid-template-columns: repeat(2, 1fr); }

.cx-card {
  position: relative; padding: 22px;
  border: 1px solid var(--cx-edge); border-radius: var(--cx-radius);
  background: #fff; color: var(--cx-inktext);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), border-color .2s, box-shadow .2s;
}
.cx-card:hover { transform: translateY(-3px); border-color: var(--cx-accent-2); box-shadow: 0 18px 40px -26px rgba(20, 22, 28, .34); }
.cx-card--dark {
  background: var(--cx-ink-3); border-color: var(--cx-line); color: var(--cx-text);
}
.cx-card--dark:hover { border-color: var(--cx-accent); }
.cx-card--dark .cx-card-d { color: var(--cx-muted); }
.cx-card-n {
  font-family: var(--cx-mono); font-size: 11.5px; letter-spacing: .14em;
  color: var(--cx-accent-2); display: block; margin-bottom: 14px;
}
.cx-card--dark .cx-card-n { color: var(--cx-accent); }
.cx-card-t { display: block; font-weight: 600; font-size: 16px; margin-bottom: 8px; letter-spacing: -.01em; }
.cx-card-d { color: var(--cx-inksoft); font-size: 14.5px; line-height: 1.65; }
.cx-card i.cx-i { color: var(--cx-accent-2); font-size: 17px; }

/* ---------------------------------------------------------------- process rail */
.cx-rail { list-style: none; margin: 0; padding: 0; position: relative; }
.cx-rail li {
  position: relative; padding: 0 0 30px 56px;
  border-left: 1px solid var(--cx-edge);
  margin-left: 15px;
}
.cx-rail li:last-child { padding-bottom: 0; border-left-color: transparent; }
.cx-rail-m {
  position: absolute; left: -16px; top: 0;
  width: 31px; height: 31px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cx-paper); border: 1px solid var(--cx-edge);
  font-family: var(--cx-mono); font-size: 11px; color: var(--cx-accent-2);
}
.cx-rail-t { display: block; font-weight: 600; font-size: 16.5px; margin-bottom: 7px; letter-spacing: -.01em; }
.cx-rail-d { color: var(--cx-inksoft); font-size: 15px; line-height: 1.68; }
.cx-rail li::after {
  content: ""; position: absolute; left: -1px; top: 34px; bottom: 0; width: 1px;
  background: var(--cx-edge);
}
.cx-rail li:last-child::after { display: none; }

.cx-rail--dark li { border-left-color: var(--cx-line); }
.cx-rail--dark .cx-rail-m { background: var(--cx-ink-3); border-color: var(--cx-line-s); color: var(--cx-accent); }
.cx-rail--dark .cx-rail-t { color: var(--cx-text); }
.cx-rail--dark .cx-rail-d { color: var(--cx-muted); }
.cx-rail--dark li::after { background: var(--cx-line); }

/* ---------------------------------------------------------------- prose */
/* The reading column is capped at 38rem: at 16.5px that is roughly 70 characters a line, where
   the full 1120px wrapper ran to ~85 and was tiring to read. */
.cx-prose { max-width: 38rem; }
.cx-prose p { color: var(--cx-inksoft); font-size: 16.5px; }
.cx-prose h2 { margin: 0 0 16px; }
.cx-sec--paper .cx-prose h2 { color: var(--cx-inktext); }

/* ---------------------------------------------------------------- fit lists */
.cx-fit { border: 1px solid var(--cx-edge); border-radius: var(--cx-radius); background: #fff; padding: 24px; }
.cx-fit-h { font-family: var(--cx-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; color: var(--cx-accent-2); }
.cx-fit--no .cx-fit-h { color: #B4451F; }
.cx-fit ul { list-style: none; margin: 0; padding: 0; }
.cx-fit li { position: relative; padding: 8px 0 8px 28px; font-size: 14.5px; line-height: 1.62; color: var(--cx-inktext); }
.cx-fit li::before {
  position: absolute; left: 0; top: 8px; font-family: var(--cx-mono); font-size: 13px;
}
.cx-fit--yes li::before { content: "+"; color: var(--cx-accent-2); }
.cx-fit--no li::before  { content: "\2013"; color: #B4451F; }

/* ---------------------------------------------------------------- accordion */
.cx-faq { border-top: 1px solid var(--cx-edge); }
.cx-faq details { border-bottom: 1px solid var(--cx-edge); }
.cx-faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 16px; color: var(--cx-inktext); letter-spacing: -.01em;
}
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq summary::after {
  content: "+"; flex: 0 0 auto; font-family: var(--cx-mono); font-weight: 400;
  font-size: 19px; line-height: 1; color: var(--cx-accent-2); transition: transform .2s;
}
.cx-faq details[open] summary::after { content: "\2013"; }
.cx-faq p { color: var(--cx-inksoft); font-size: 15.5px; padding: 0 0 20px; max-width: 62ch; }
.cx-faq summary { max-width: 60ch; }

/* ---------------------------------------------------------------- closing band */
.cx-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--cx-line-s); border-radius: 20px;
  background:
    radial-gradient(620px 300px at 88% 0%, rgba(47, 107, 255, .22), transparent 60%),
    var(--cx-ink-2);
  padding: clamp(26px, 4vw, 46px);
}
.cx-band-grid { display: grid; grid-template-columns: 1.4fr auto; gap: 26px; align-items: center; }
.cx-band h2 { color: #fff; }
.cx-band p { color: var(--cx-muted); margin-top: 12px; }

/* ---------------------------------------------------------------- internal links */
.cx-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cx-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px;
  border: 1px solid var(--cx-edge); border-radius: 999px; background: #fff;
  color: var(--cx-inktext); font-size: 13.5px; text-decoration: none;
  transition: border-color .18s, transform .18s;
}
.cx-link:hover { border-color: var(--cx-accent-2); transform: translateY(-1px); }
.cx-link i { color: var(--cx-accent-2); font-size: 11px; }

.cx-note {
  border: 1px solid var(--cx-edge); border-left: 3px solid var(--cx-accent-2);
  border-radius: 0 var(--cx-radius) var(--cx-radius) 0; background: var(--cx-paper-2);
  padding: 20px 22px; color: var(--cx-inktext);
}
.cx-note-h { font-family: var(--cx-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-accent-2); margin-bottom: 10px; }

.cx-legal { color: var(--cx-muted-d); font-size: 13px; line-height: 1.7; max-width: 88ch; }
.cx-sec--paper .cx-legal { color: var(--cx-muted-d); }

/* ---------------------------------------------------------------- mobile bar */
.cx-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; gap: 14px;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  background: rgba(7, 8, 12, .94); border-top: 1px solid var(--cx-line-s);
  backdrop-filter: blur(10px);
  transform: translateY(125%);
  transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}
.cx-bar[data-show="1"] { transform: none; }
.cx-bar-amt { font-family: var(--cx-serif); font-size: 23px; font-weight: 600; letter-spacing: -.02em; color: #fff; line-height: 1; }
.cx-bar-sub { display: block; font-size: 11px; color: var(--cx-muted); margin-top: 3px; }
.cx-bar .cx-btn { flex: 0 0 auto; padding: 13px 20px; }

/* ---------------------------------------------------------------- reveal */
.cx-reveal { opacity: 0; transform: translateY(16px); }
.cx-reveal.is-in { opacity: 1; transform: none; transition: opacity .55s cubic-bezier(.16, 1, .3, 1), transform .55s cubic-bezier(.16, 1, .3, 1); }
.cx-motion-off .cx-reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .cx-reveal { opacity: 1 !important; transform: none !important; }
  .cx * { animation: none !important; transition: none !important; }
  .cx-btn:hover, .cx-card:hover, .cx-link:hover { transform: none; }
}

/* ================================ breakpoints ============================ */
@media (max-width: 1000px) {
  .cx-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .cx-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cx-strip { grid-template-columns: repeat(2, 1fr); }
  .cx-strip div:nth-child(odd) { border-left: 0; }
  .cx-strip div:nth-child(n + 3) { border-top: 1px solid var(--cx-line); }
  .cx-band-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cx-wrap { padding: 0 17px; }
  .cx-grid--3, .cx-grid--2 { grid-template-columns: 1fr; }
  .cx-strip { grid-template-columns: 1fr; }
  .cx-strip div { border-left: 0; border-top: 1px solid var(--cx-line); }
  .cx-strip div:first-child { border-top: 0; }
  .cx-actions .cx-btn { width: 100%; }
  .cx-rail li { padding-left: 46px; }
  .cx-bar { display: flex; }
  .cx { padding-bottom: 78px; }          /* keep the sticky bar off the disclaimer */
  .cx-price-amt { font-size: 40px; }
}
