/* ABBYY product pages — extends brity.css (.br) + bassist.css */
.ab .h2 { white-space: pre-line; }
.ab .br-stats b { white-space: nowrap; }
.ab-line { font-size: 15px; font-weight: 600; color: var(--muted); margin-top: 10px; }
.ab .br-lead { margin-top: 26px; }

/* hero visual */
.ab-vis { background: #0f1220; color: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(15,18,32,.45); position: relative; overflow: hidden; }
.ab-vis::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.ab-vis > * { position: relative; }
.ab-vis-h { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 18px; }
.ab-vis-h span { font-weight: 700; font-size: 15px; }
.ab-vis-h i { font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--accent-light); }
.ab-vis ol { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ab-vis li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); animation: aUp .5s both; font-size: 14px; position: relative; }
.ab-vis li + li::before { content: ''; position: absolute; left: 47px; top: -11px; height: 10px; border-left: 2px dashed rgba(255,255,255,.25); }
.ab-vis li em { font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; color: var(--accent-light); height: 28px; border-radius: 6px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.ab-vis li:nth-child(2) { background: color-mix(in oklch, var(--accent) 55%, #0f1220); border-color: transparent; }
.ab-vis li:nth-child(2) em { color: #fff; background: rgba(255,255,255,.16); }
.ab-vis li span { color: rgba(255,255,255,.88); }
.ab-vis-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.ab-vis-chips span { font-size: 12px; padding: 5px 10px; border-radius: 6px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); font-family: 'JetBrains Mono', monospace; }
.ab-vis.layers { display: flex; flex-direction: column; gap: 8px; }
.ab-layer { border-radius: 10px; padding: 14px 18px; display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); animation: aUp .5s both; }
.ab-layer small { grid-row: span 2; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent-light); }
.ab-layer b { font-size: 15px; }
.ab-layer span { font-size: 12.5px; color: rgba(255,255,255,.6); }
.ab-layer.l1 { margin: 0 10px; }
.ab-layer.l2 { margin: 0 20px; background: color-mix(in oklch, var(--accent) 60%, #0f1220); border-color: transparent; padding: 20px 18px; }
.ab-layer.l2 b { font-size: 19px; }
.ab-layer.l2 small, .ab-layer.l2 span { color: rgba(255,255,255,.82); }
.ab-layer.l3 { margin: 0 30px; background: #fff; color: #0f1220; }
.ab-layer.l3 small { color: var(--accent); }
.ab-layer.l3 span { color: #5a5f70; }

/* overview points */
.ab-pts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ab-pts > div { background: var(--surface); border-radius: var(--radius); padding: 30px 26px; }
.ab-pts small { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); }
.ab-pts h4 { font-size: 20px; letter-spacing: -0.02em; margin: 36px 0 10px; line-height: 1.35; }
.ab-pts p { font-size: 14.5px; color: var(--muted); }

/* flow */
.ab-flow { display: grid; gap: 0; border-top: 2px solid var(--fg); }
.ab-flow.n3 { grid-template-columns: repeat(3, 1fr); }
.ab-flow.n5 { grid-template-columns: repeat(5, 1fr); }
.ab-flow.n6 { grid-template-columns: repeat(6, 1fr); }
.ab-flow > div { padding: 26px 22px 8px 0; position: relative; }
.ab-flow > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.ab-flow > div::before { content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.ab-flow > div + div::before { left: -6px; background: var(--bg); border: 2px solid var(--accent); }
.ab-flow span { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); }
.ab-flow h4 { font-size: 19px; letter-spacing: -0.02em; margin: 12px 0 10px; line-height: 1.35; }
.ab-flow p { font-size: 14px; color: var(--muted); }

/* scenarios */
.ab-stages.n3 { grid-template-columns: repeat(3, 1fr); }
.ab-scen { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; padding: 40px; border-radius: var(--radius); background: var(--surface); animation: aUp .45s both; }
.ab-scen h3 { font-size: 28px; letter-spacing: -0.03em; line-height: 1.3; }
.ab-scen p { font-size: 15.5px; color: var(--muted); margin-top: 14px; }
.ab-scen ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ab-scen li { background: var(--bg); border-radius: 10px; padding: 18px; font-size: 15px; font-weight: 600; display: flex; flex-direction: column; gap: 14px; }
.ab-scen li em { font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); font-weight: 500; }

/* doc types */
.ab-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ab-docs > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.ab-docs > div.d1 { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ab-docs > div.d1 p { color: color-mix(in oklch, var(--bg) 70%, transparent); }
.ab-docs > div.d1 .ba-chips em { background: transparent; border-color: color-mix(in oklch, var(--bg) 30%, transparent); }
.ab-docs small { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); margin-top: 28px; }
.ab-docs > div.d1 small { color: var(--accent-light); }
.ab-docs h4 { font-size: 24px; letter-spacing: -0.03em; margin: 4px 0 10px; }
.ab-docs p { font-size: 14.5px; color: var(--muted); }
.ab-doc-ic { width: 84px; height: 104px; border: 1.5px solid currentColor; border-radius: 6px; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; opacity: .85; }
.ab-doc-ic i { display: block; height: 7px; border-radius: 2px; background: color-mix(in oklch, currentColor 25%, transparent); }
.d0 .ab-doc-ic i:nth-child(odd) { width: 40%; }
.d0 .ab-doc-ic i:nth-child(even) { width: 100%; background: color-mix(in oklch, var(--accent) 60%, transparent); }
.d1 .ab-doc-ic i:nth-child(1) { width: 70%; margin-left: 30%; }
.d1 .ab-doc-ic i:nth-child(2) { width: 50%; background: var(--accent-light); }
.d1 .ab-doc-ic i:nth-child(3) { width: 85%; }
.d1 .ab-doc-ic i:nth-child(4) { width: 40%; margin-left: 60%; background: var(--accent-light); }
.d2 .ab-doc-ic i:nth-child(1) { width: 90%; } .d2 .ab-doc-ic i:nth-child(2) { width: 65%; } .d2 .ab-doc-ic i:nth-child(3) { width: 100%; } .d2 .ab-doc-ic i:nth-child(4) { width: 55%; } .d2 .ab-doc-ic i:nth-child(5) { width: 80%; }

/* recognition */
.ab-recog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ab-recog > div { background: var(--bg); padding: 28px; }
.ab-recog .hd { display: flex; align-items: center; gap: 10px; }
.ab-recog .hd small { font-size: 13.5px; font-weight: 700; }
.ab-recog b { display: block; font-size: 44px; letter-spacing: -0.04em; margin: 22px 0 10px; color: var(--accent); line-height: 1; }
.ab-recog b i { font-style: normal; font-size: 15px; color: var(--muted); margin-left: 6px; letter-spacing: 0; font-weight: 600; }
.ab-recog p { font-size: 14px; color: var(--muted); }

/* integrations */
.ab-integ { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.ab-integ-l { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.ab-integ-l .lead { font-size: 16px; color: var(--muted); margin-bottom: 8px; }
.ab-grp { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; }
.ab-grp h5 { font-size: 14.5px; padding-top: 6px; }
.ab-grp > div { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-grp span { font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 8px; background: var(--surface); }
.ab-grp span.hl { background: var(--accent); color: #fff; }
.ab-cs { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.ab-cs small { font-family: 'JetBrains Mono', monospace; font-size: 12px; opacity: .75; }
.ab-cs h4 { font-size: 30px; letter-spacing: -0.03em; margin: 28px 0 8px; }
.ab-cs p { font-size: 15px; opacity: .85; }
.ab-cs > div { margin-top: auto; padding-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ab-cs > div b { display: block; font-size: 40px; letter-spacing: -0.04em; line-height: 1.1; }
.ab-cs > div span { font-size: 13px; opacity: .8; }

/* PHOENIX layers */
.ab-stack { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: start; }
.ab-stack-main { display: flex; flex-direction: column; gap: 12px; }
.ab-tier { border-radius: var(--radius); padding: 30px 32px; }
.ab-tier.t0 { background: var(--accent); color: #fff; }
.ab-tier.t1 { background: var(--surface); }
.ab-tier h4 { font-size: 24px; letter-spacing: -0.03em; margin-bottom: 18px; }
.ab-tier .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.ab-tier h6 { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; opacity: .65; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid color-mix(in oklch, currentColor 20%, transparent); }
.ab-tier ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ab-tier li { font-size: 13.5px; font-weight: 600; padding: 7px 11px; border-radius: 7px; background: rgba(255,255,255,.14); }
.ab-tier.t1 li { background: var(--bg); }
.ab-byom { border: 1px dashed var(--accent); border-radius: var(--radius); padding: 26px; }
.ab-byom h4 { font-size: 22px; color: var(--accent); }
.ab-byom p { font-size: 14px; color: var(--muted); margin: 6px 0 16px; }
.ab-byom ul { list-style: none; border-top: 1px solid var(--line); }
.ab-byom li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 600; }
.ab-hy { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.ab-hy > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.ab-hy > div.gen { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ab-hy small { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); }
.ab-hy > div.gen small { color: var(--accent-light); }
.ab-hy h4 { font-size: 21px; letter-spacing: -0.02em; margin: 14px 0 6px; }
.ab-hy p { font-size: 15px; }
.ab-hy span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.ab-hy > div.gen span { color: color-mix(in oklch, var(--bg) 65%, transparent); }

/* features */
.ab-feat { display: grid; gap: 16px; }
.ab-feat.n4 { grid-template-columns: repeat(4, 1fr); }
.ab-feat.n3 { grid-template-columns: repeat(3, 1fr); }
.ab-feat > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: border-color .2s; }
.ab-feat > div:hover { border-color: var(--accent); }
.ab-feat small { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); }
.ab-feat h4 { font-size: 18px; letter-spacing: -0.02em; margin: 28px 0 8px; line-height: 1.4; }
.ab-feat p { font-size: 14px; color: var(--muted); }

.ab-uses { grid-template-columns: repeat(3, 1fr); }

/* specs */
.ab-spec { border-top: 1px solid var(--fg); }
.ab-spec > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ab-spec dt { font-weight: 700; font-size: 15px; }
.ab-spec dd { font-size: 14.5px; color: var(--muted); margin: 0; }

@container site (max-width: 900px) {
  .ab-vis { padding: 20px; }
  .ab-vis li { grid-template-columns: 52px 1fr; font-size: 13px; padding: 12px; }
  .ab-vis li + li::before { left: 38px; }
  .ab-layer.l1 { margin: 0 6px; } .ab-layer.l2 { margin: 0 12px; } .ab-layer.l3 { margin: 0 18px; }
  .ab-pts, .ab-feat.n4, .ab-feat.n3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ab-pts > div, .ab-feat > div { padding: 18px; }
  .ab-pts h4, .ab-feat h4 { font-size: 15.5px; margin-top: 16px; }
  .ab-pts p, .ab-feat p { font-size: 13px; }
  .ab-flow.n3, .ab-flow.n5, .ab-flow.n6 { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--fg); }
  .ab-flow > div, .ab-flow > div + div { padding: 4px 0 24px 22px; border-left: 0; }
  .ab-flow > div::before, .ab-flow > div + div::before { top: 6px; left: -7px; }
  .ab-flow h4 { font-size: 17px; margin: 6px 0; }
  .ab-stages.n3 { display: flex; }
  .ab-stages.n3 button { flex: none; max-width: 70vw; font-size: 15px; }
  .ab-scen { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px; }
  .ab-scen h3 { font-size: 21px; }
  .ab-scen li { padding: 14px; font-size: 13.5px; gap: 8px; }
  .ab-docs, .ab-integ, .ab-stack, .ab-hy, .ab-tier .cols { grid-template-columns: minmax(0, 1fr); }
  .ab-docs > div, .ab-integ-l, .ab-cs, .ab-tier, .ab-hy > div { padding: 22px; }
  .ab-recog { grid-template-columns: 1fr 1fr; }
  .ab-recog > div { padding: 18px; }
  .ab-recog b { font-size: 30px; margin: 14px 0 8px; }
  .ab-recog p { font-size: 12.5px; }
  .ab-grp { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ab-cs h4 { font-size: 24px; margin-top: 16px; }
  .ab-cs > div b { font-size: 30px; }
  .ab-uses { grid-template-columns: 1fr 1fr; }
  .ab-spec > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
