/* creaiconsultants.com, round 2: graphite and safety orange, Bricolage Grotesque, one centred column. */
:root {
  --bg: #18191b;
  --surface: #222427;
  --surface-2: #2a2c30;
  --ink: #eff0f1;
  --muted: #a3a5aa;
  --accent: #ff4a1f;
  --accent-ink: #18191b;
  --field: #eff0f1;
  --field-2: #e2e4e7;
  --field-ink: #18191b;
  --field-muted: #4f5257;

  --font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  --step-display: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);

  --margin: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --max: 1160px;
  --measure: 70ch;
  --section: clamp(3.5rem, 7vw, 6.5rem);
  --radius: 14px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::before { content: ""; display: block; height: 8px; background: var(--accent); }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; letter-spacing: -0.025em; line-height: 1.08; }
p, li, dd { text-wrap: pretty; }
p, li, dd, dt, td, th, a, h1, h2, h3 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
b, strong { font-weight: 580; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:target { scroll-margin-top: 1.5rem; }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 10; background: var(--ink); color: var(--bg); padding: 0.7rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }

.button, .pick-go a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.2rem; background: var(--accent); color: var(--accent-ink); font-weight: 580; text-decoration: none; border-radius: 999px; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active, .pick-go a:active { transform: scale(0.97); }

/* logos: a fixed square plate; real icons sit on white, monograms on a tint */
.logo { flex: none; display: inline-grid; place-items: center; width: var(--logo); height: var(--logo); border-radius: calc(var(--logo) * 0.22); background: #fff; border: 1px solid rgb(0 0 0 / 0.08); overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 14%; background: transparent; }
.logo:has(img[src*="pacificsoftwareventures-com"]) { background: #101113; border-color: #3a3c41; }
.logo-mono { background: hsl(var(--hue) 45% 90%); color: hsl(var(--hue) 50% 24%); font-weight: 600; font-size: calc(var(--logo) * 0.38); letter-spacing: -0.02em; line-height: 1; }

/* header */
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.1rem; }
.brand { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.6rem; }
.nav a:not(.button) { text-decoration-color: transparent; }
.nav a[aria-current]:not(.button) { text-decoration-color: currentColor; }
.menu-btn { display: none; }

/* hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.crumbs, .meta { font-size: var(--step-small); color: var(--muted); }
.crumbs { margin-bottom: 1rem; }
.crumbs a { text-decoration-color: transparent; }
.h1 { font-size: var(--step-display); letter-spacing: -0.04em; line-height: 1; max-width: 22ch; }
.is-home .h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.5rem); max-width: 16ch; }
.meta { margin-top: 1.1rem; }
.about-mark { margin-top: 2rem; }
.about-mark img { max-width: 100%; }

/* sections */
.sec { padding-block: calc(var(--section) / 2); }
.sec h2 { font-size: var(--step-head); margin-bottom: 1.6rem; max-width: 26ch; }
.sec .wrap > p, .sec .wrap > ul, .sec .wrap > ol:not(.strip):not(.steps), .sec .wrap > dl, .sec .lede { max-width: var(--measure); }
.sec .wrap > * + * { margin-top: 1.2rem; }
.sec .wrap > h2 + * { margin-top: 0; }
.sec ul, .sec ol { padding-left: 1.2em; }
.sec li + li { margin-top: 0.55rem; }
.sec li::marker { color: var(--muted); }
.sec-intro { padding-top: 0; }
.answer { font-size: var(--step-lead); line-height: 1.4; max-width: 46ch; }
.answer .cite { font-size: var(--step-small); }
.sec-field { background: var(--field); color: var(--field-ink); --muted: var(--field-muted); padding-block: calc(var(--section) / 1.4); }
.sec-field a:focus-visible, .sec-field button:focus-visible { outline-color: var(--field-ink); }
.cite { display: block; margin-top: 0.3rem; font-size: var(--step-small); color: var(--muted); }

/* text sections read like an annual report on wide screens: heading left, copy right */
@media (min-width: 64em) {
  .sec-text > .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
  .sec-text > .wrap > h2 { grid-column: 1; grid-row: 1 / span 40; margin: 0; position: sticky; top: 1.5rem; max-width: 12ch; }
  .sec-text > .wrap > :not(h2) { grid-column: 2; }
  .sec-text > .wrap > h2 ~ :nth-child(2) { margin-top: 0; }
  .sec-text > .wrap > :not(h2) + :not(h2) { margin-top: 1.2rem; }
  .sec-text > .wrap > .facts + *, .sec-text > .wrap > * + .facts { margin-top: 1.6rem; }
  .sec-text .facts { max-width: none; }
  .sec-text > .wrap > p, .sec-text > .wrap > ul, .sec-text > .wrap > ol, .sec-text > .wrap > dl { max-width: 62ch; }
}

/* the featured first pick */
.pick-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id go" "body body"; gap: 1.4rem 2.5rem; align-items: center; background: var(--surface); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); margin-top: 2rem; box-shadow: inset 0 4px 0 var(--accent); max-width: none !important; }
.pick-id { grid-area: id; display: flex; align-items: center; gap: 1rem; }
.pick-body { grid-area: body; }
.pick-id .psv-wordmark { max-width: 220px; height: auto !important; }
.pick-label { font-size: var(--step-small); color: var(--accent); font-weight: 580; }
.pick-body { padding-top: 1.4rem; border-top: 1px solid #34363b; }
.pick-what { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.01em; margin-top: 0.5rem; max-width: 60ch; }
.pick-why, .pick-price { margin-top: 0.9rem; max-width: 66ch; }
.pick-go { grid-area: go; justify-self: end; }

/* the top-ranked strip */
.strip { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); gap: 0.6rem; max-width: none !important; }
.strip li + li { margin-top: 0; }
.strip a { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo rank" "name name"; align-items: center; gap: 0.6rem 0.7rem; height: 100%; min-height: 4.25rem; padding: 0.7rem 0.9rem; background: var(--surface); border-radius: var(--radius); text-decoration: none; line-height: 1.2; transition: background-color var(--t-hover) ease; }
.strip .logo { grid-area: logo; }
.strip .s-name { grid-area: name; overflow-wrap: normal; }
.strip .s-rank { grid-area: rank; justify-self: end; font-size: var(--step-lead); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1ch; }
.strip .ours .s-rank { color: var(--accent); }
.strip .s-name { font-weight: 560; font-size: 0.9375rem; }
.sec-field .strip a { background: #fff; }

/* logo wall (unranked) */
.wall { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr)); gap: 0.6rem; max-width: none !important; }
.wall li + li { margin-top: 0; }
.wall a { display: flex; align-items: center; gap: 0.8rem; min-height: 3.75rem; padding: 0.6rem 0.8rem; background: var(--surface); border-radius: var(--radius); text-decoration: none; font-weight: 560; line-height: 1.2; }

/* one uniform card per firm */
.sec-list .wrap > .card + .card { margin-top: 1rem; }
.card { background: var(--surface); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); scroll-margin-top: 1rem; transition: opacity 300ms ease; }
.card.ours { box-shadow: inset 0 4px 0 var(--accent); }
.card-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 1rem 1.2rem; }
.card-head > .logo:first-child { grid-column: 1; }
.rank { font-size: var(--step-head); font-weight: 600; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 1.4ch; }
.card.ours .rank { color: var(--accent); }
.card h3 { font-size: var(--step-lead); letter-spacing: -0.015em; line-height: 1.15; }
.card h3 a { text-decoration-color: transparent; }
.what { margin-top: 0.3rem; color: var(--ink); max-width: 66ch; }
.card-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 2.5rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #34363b; }
.card-body-one { grid-template-columns: minmax(0, 1fr); }
.card-key { display: grid; gap: 0.8rem; align-content: start; }
.score { color: var(--muted); }
.note { color: var(--muted); }
.facts { list-style: none; padding: 0 !important; display: grid; gap: 1rem; }
.facts li + li { margin-top: 0 !important; }
.sec .wrap > .facts { gap: 0; }
.sec .wrap > .facts > li { padding-block: 1rem; border-top: 1px solid #34363b; }
.sec .wrap > .facts > li:last-child { border-bottom: 1px solid #34363b; }
.sec-field .wrap > .facts > li, .sec-field .wrap > .facts > li:last-child { border-color: #cdd0d4; }
.card.is-out { opacity: 0.35; }

/* tables */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: none !important; }
.scroll:focus-visible { outline-offset: 2px; }
table { --muted: var(--field-muted); color: var(--field-ink); border-collapse: collapse; width: 100%; font-size: 1rem; font-variant-numeric: tabular-nums; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; }
thead th { font-weight: 560; font-size: var(--step-small); color: var(--field-muted); background: var(--field-2); }
tbody tr + tr > * { border-top: 1px solid #e4e6e9; }
tbody th { font-weight: 560; }
.firm { display: inline-flex; align-items: center; gap: 0.7rem; }
td .cite { margin-top: 0; }

/* the matrix */
.matrix { max-width: none !important; }
.mx-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.mx-ask { width: 100%; font-weight: 560; margin-bottom: 0.2rem; }
.mx-pick { min-height: 2.75rem; padding: 0.4rem 1rem; border-radius: 999px; background: #fff; color: var(--field-ink); border: 1px solid #cdd0d4; font-size: 0.9375rem; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.mx-pick[aria-pressed="true"] { background: var(--field-ink); color: var(--field); border-color: var(--field-ink); }
.mx-pick:active { transform: scale(0.97); }
.mx-out { margin: 1rem 0 1.2rem; font-size: var(--step-small); color: var(--muted); min-height: 1.5em; }
table.mx { min-width: 62rem; font-size: 0.9375rem; }
table.mx thead th { vertical-align: bottom; }
table.mx tbody th { min-width: 13rem; }
table.mx th:first-child { position: sticky; left: 0; z-index: 1; background: inherit; }
table.mx tbody th { background: #fff; }
table.mx thead th:first-child { background: var(--field-2); }
table.mx tbody tr.ours th, table.mx tbody tr.ours td { background: #fff1ec; }
table.mx tr.is-out th, table.mx tr.is-out td { opacity: 0.32; }
.m-rank { color: var(--field-muted); margin-right: 0.15rem; font-variant-numeric: tabular-nums; }
.mk { display: inline-flex; align-items: flex-start; gap: 0.45rem; line-height: 1.3; --mk-ink: #fff; }
.mk svg { flex: none; width: 1rem; height: 1rem; margin-top: 0.12em; fill: currentColor; }
.s-yes .mk svg, .mk.s-yes svg { color: #1a7f43; }
.s-partly .mk svg, .mk.s-partly svg { color: #b4570b; }
.s-no .mk svg, .mk.s-no svg, .s-unpublished .mk svg, .mk.s-unpublished svg { color: #6a6d73; }
td.s-no, td.s-unpublished { color: var(--field-muted); }
.mx-key { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1rem; font-size: var(--step-small); color: var(--muted); }
.sec:not(.sec-field) .mx-key .mk svg { filter: brightness(1.5); }

/* results bars */
.results { background: var(--surface); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.6rem; max-width: 52rem !important; }
.results figcaption { font-weight: 580; font-size: var(--step-lead); letter-spacing: -0.01em; }
.res-name { margin-bottom: 0.6rem; }
.bar-row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) 9.5rem; align-items: center; gap: 0.8rem; margin-top: 0.4rem; font-size: 0.9375rem; }
.bar { display: flex; height: 0.9rem; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill.before { background: #8b8e94; }
.bar-range { background: #55585e; }
.bar-fill.after { background: var(--accent); }
.bar-label { color: var(--muted); }
.bar-val { font-variant-numeric: tabular-nums; }

/* steps and versus */
.steps { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1rem; counter-reset: step; max-width: none !important; }
.steps > li { counter-increment: step; position: relative; background: var(--surface); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.4rem; margin: 0 !important; }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 600; margin-bottom: 0.9rem; }
.steps h3 { font-size: 1.125rem; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.steps p { color: var(--ink); }
.sec-field .steps > li { background: #fff; }
.versus { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 1rem; max-width: none !important; }
.versus > div { background: var(--surface); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.versus > div.alt { box-shadow: inset 0 4px 0 var(--accent); }
.versus h3 { font-size: var(--step-lead); margin-bottom: 0.9rem; }
.versus ul { padding-left: 1.1em; }

/* questions */
.sec-faq { background: var(--surface); }
.qa { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 1.6rem 2.5rem; max-width: none !important; }
.qa h3 { font-size: 1.125rem; letter-spacing: -0.01em; margin-bottom: 0.45rem; }

/* related */
.related { padding-block: calc(var(--section) / 2) var(--section); }
.related h2 { font-size: var(--step-lead); margin-bottom: 1rem; }
.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 0.6rem; }
.related li a { display: flex; align-items: center; min-height: 3.5rem; height: 100%; padding: 0.8rem 1rem; background: var(--surface); border-radius: var(--radius); font-weight: 560; text-decoration: none; line-height: 1.25; transition: background-color var(--t-hover) ease; }

/* footer */
.foot { background: var(--accent); color: var(--accent-ink); padding-top: 2.5rem; overflow: hidden; }
.foot :focus-visible { outline-color: var(--accent-ink); }
.foot-top { display: flex; flex-wrap: wrap; gap: 0.6rem 2.5rem; align-items: start; font-size: var(--step-small); }
.foot-pub { font-weight: 580; }
.foot-tag { max-width: 44ch; flex: 1 1 18rem; }
.foot-up { margin-left: auto; }
.foot-nav { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 0.4rem 2rem; font-size: var(--step-small); }
.foot-nav a { text-decoration-color: transparent; }
.foot-mark { margin-top: clamp(2.5rem, 6vw, 5rem); font-weight: 600; font-size: min(calc((min(100vw, var(--max)) - 2 * var(--margin)) / 8.3), 9rem); letter-spacing: -0.055em; line-height: 0.85; white-space: nowrap; }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 2rem; font-size: var(--step-small); padding-block: 1.6rem 1.8rem; }
.foot-meta .meta { color: inherit; margin: 0; }

@media (hover: hover) and (pointer: fine) {
  .nav a:not(.button):hover, .foot a:hover, .crumbs a:hover, .card h3 a:hover { text-decoration-color: currentColor; }
  .button:hover, .pick-go a:hover { background: #ff6a45; }
  .strip a:hover, .wall a:hover, .related li a:hover { background: var(--surface-2); }
  .sec-field .strip a:hover { background: var(--field-2); }
  .mx-pick:hover { border-color: var(--field-ink); }
}

/* touch: full-size targets for list-style links and controls */
@media (pointer: coarse) {
  .brand, .foot-up, .foot-nav a, .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .crumbs a { display: inline-block; padding-block: 0.25rem; }
  .foot-nav { gap: 0 2rem; }
  .sec li > a:first-child { display: inline-block; padding-block: 0.35rem; }
}

/* tablets */
@media (max-width: 64em) {
  .pick-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "body" "go"; }
  .pick-go { justify-self: stretch; }
}

/* menu collapses below laptop-narrow widths so the header never wraps */
.brand { white-space: nowrap; }
@media (max-width: 55.99em) {
  .top-row { flex-wrap: wrap; }
  .js .menu-btn { display: inline-flex; align-items: center; min-height: 44px; font-weight: 580; text-decoration: underline; text-underline-offset: 0.2em; }
  .js .nav { display: none; width: 100%; }
  .js .nav.is-open { display: grid; gap: 0; padding-bottom: 0.8rem; }
  .js .nav.is-open a { font-size: var(--step-lead); min-height: 48px; display: flex; align-items: center; }
  .js .nav.is-open .button { justify-self: start; margin-top: 0.6rem; font-size: 1.0625rem; }
}
@media (min-width: 48em) { .strip { grid-template-columns: repeat(auto-fit, minmax(min(8.5rem, 100%), 1fr)); } }

/* phones */
@media (max-width: 47.99em) {
  .hero { padding-top: 1.5rem; }
  .pick-card { gap: 1.1rem; }
  .pick-id .logo { --logo: 48px !important; }
  .pick-id .psv-wordmark { max-width: min(180px, 50vw); }
  .pick-go a { width: 100%; white-space: normal; text-align: center; padding-block: 0.6rem; }
  .strip { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .strip a { min-height: 3.5rem; grid-template-columns: 2ch auto minmax(0, 1fr); grid-template-areas: "rank logo name"; }
  .strip .s-rank { justify-self: start; }
  .card-head { grid-template-columns: auto minmax(0, 1fr); }
  .card-head .card-title { grid-column: 1 / -1; }
  .card-head .rank + .logo { justify-self: start; }
  .card-head:not(:has(.rank)) .card-title { grid-column: 2; }
  .card-body { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .bar-val { grid-column: 2; margin-top: -0.2rem; font-size: var(--step-small); }
  .foot-up { margin-left: 0; }
  .foot-mark { font-size: calc((100vw - 2 * var(--margin)) / 8.3); }
  table.mx tbody th { min-width: 10rem; }
}

/* motion: content shows without script; only what starts below the first screen waits */
@media (prefers-reduced-motion: no-preference) {
  .js .h1 { animation: rise-t 800ms var(--ease-out) 80ms both; }
  .js .rv:not(.sec-list) > .wrap > *, .js .card { transition: opacity 650ms var(--ease-out), transform 800ms var(--ease-out); }
  .js .rv.rv-wait:not(.sec-list) > .wrap > *, .js .card.rv-wait { opacity: 0; transform: translateY(20px); }
  .js .rv:not(.sec-list) > .wrap > :nth-child(2) { transition-delay: 70ms; }
  .js .rv:not(.sec-list) > .wrap > :nth-child(3) { transition-delay: 140ms; }
  .js .rv:not(.sec-list) > .wrap > :nth-child(n + 4) { transition-delay: 200ms; }
  .js .rv.rv-wait.is-in:not(.sec-list) > .wrap > *, .js .card.rv-wait.is-in { opacity: 1; transform: none; }
  .card.is-out { transition: opacity 300ms ease; }
}
@keyframes rise-t { from { transform: translateY(18px); } }
