/* Solutions page (app/Views/pages/solutions.php). Design: Option 3 "Annotated Screens" from
   public/mockups/how-it-works/. Everything is scoped to .op and prefixed op- because the theme sets
   global sizes and white text for headings, paragraphs and lists, and Bootstrap owns .btn, .card and .lead. */

html {
    scroll-behavior: smooth;
}

/* The site nav turns fixed and see-through once the page scrolls; its white links need a dark
   background over this page's white content */
.navbar.nav-scroll {
    background: rgba(22, 22, 22, .94);
}

/* ---------- Tokens and resets ---------- */
.op {
    --red: #d7141a;
    --red-h: #b10f14;
    --red-t: #fdf1f1;
    --ink: #161616;
    --ink2: #464646;
    --muted: #6a6a6a;
    --line: #e8e5e1;
    --soft: #f7f5f2;
    --soft2: #f4f2ef;
    --green: #0b8a5e;
    --frame: #e3dfda;
    /* Room for the site's fixed nav once the page scrolls; --bar is the "Browse features" bar on small screens */
    --top: 96px;
    --bar: 0px;
    position: relative;
    margin-top: 130px;
    background: #fff;
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.op .k-in { --k: #1f6feb; --kt: #eaf1fe; }
.op .k-ai { --k: #7a3ff2; --kt: #f2ecfe; }
.op .k-act { --k: #464646; --kt: #efedea; }
.op .k-rec { --k: #0b8a5e; --kt: #e5f4ee; }
.op .k-out { --k: #c26a00; --kt: #fbf0e2; }
.op .k-person { --k: #0e7490; --kt: #e4f2f5; }

.op *, .op *::before, .op *::after { box-sizing: border-box; }
.op h1, .op h2, .op h3 { margin: 0; color: inherit; font-family: inherit; line-height: 1.15; letter-spacing: -0.03em; text-transform: none; }
.op p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; font-weight: inherit; }
.op ul, .op ol { margin: 0; padding: 0; list-style: none; }
.op li { color: inherit; font-size: inherit; line-height: inherit; }
.op a { text-decoration: none; transition: none; }
.op figure { margin: 0; }
.op img { max-width: 100%; }
.op button { font: inherit; }
.op b, .op strong { font-weight: 700; }

.op .ms {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    word-wrap: normal;
    width: 1em;
    height: 1em;
    overflow: hidden;
    flex: none;
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* The theme removes focus outlines everywhere; put them back for keyboard users */
.op :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Browse bar (small screens only) ---------- */
.op .op-browsebar { display: none; }

/* ---------- Three columns: features menu, content, on this page ---------- */
.op .op-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr) 208px;
    gap: 40px;
}

/* Left sidebar */
.op .op-sidebar {
    position: sticky;
    top: var(--top);
    align-self: start;
    height: calc(100vh - var(--top));
    overflow-y: auto;
    padding: 34px 10px 48px 0;
    scrollbar-width: thin;
}

.op .op-sb-group + .op-sb-group { margin-top: 20px; }

.op .op-sb-h {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.op .op-sq {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--c);
    color: #fff;
    display: inline-grid;
    place-items: center;
}

.op .op-sq .ms { font-size: 16px; }
.op .op-sb-list { padding: 0 0 0 24px; }

.op .op-sb-list a {
    display: block;
    padding: 5px 10px;
    margin: 1px 0;
    border-radius: 7px;
    color: var(--ink2);
    font-size: 14px;
    line-height: 1.4;
}

.op .op-sb-list a:hover { background: var(--soft); color: var(--ink); }
.op .op-sb-list a[aria-current] { background: var(--red-t); color: var(--red-h); font-weight: 600; }

.op .op-sb-foot {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 2px;
}

.op .op-sb-foot a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--ink2);
    padding: 5px 10px 5px 0;
    border-radius: 7px;
}

.op .op-sb-foot a:hover { color: var(--red); }
.op .op-sb-foot .ms { font-size: 18px; color: var(--muted); }
.op .op-sb-foot a[aria-current] { color: var(--red-h); font-weight: 600; }

/* Right: on this page */
.op .op-toc {
    position: sticky;
    top: var(--top);
    align-self: start;
    max-height: calc(100vh - var(--top));
    overflow-y: auto;
    padding: 40px 0;
    scrollbar-width: thin;
}

.op .op-toc-h {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--ink);
}

.op .op-toc-h .ms { font-size: 18px; color: var(--muted); }
.op .op-toc ul { border-left: 1px solid var(--line); }

.op .op-toc ul a {
    display: block;
    padding: 4px 0 4px 14px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.4;
}

.op .op-toc ul a:hover { color: var(--ink); }
.op .op-toc ul a[aria-current] { color: var(--red); border-left-color: var(--red); font-weight: 600; }

.op .op-toc-demo {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.op .op-toc-demo:hover { border-color: var(--red); color: var(--red); }

/* ---------- Content column ---------- */
.op .op-main {
    min-width: 0;
    padding: 44px 0 96px;
    container-type: inline-size;
    container-name: opmain;
}

/* Hero */
.op .op-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--red);
}

.op .op-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--red); border-radius: 2px; }

.op .op-h1 {
    font-size: clamp(40px, 6vw, 60px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
    margin-bottom: 18px;
}

.op .op-lead {
    font-size: clamp(17px, 1.5vw, 19.5px);
    line-height: 1.6;
    color: var(--ink2);
    max-width: 62ch;
    margin-bottom: 24px;
}

.op .op-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.op .op-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    border: 1px solid transparent;
    transition: background-color .15s, border-color .15s, color .15s;
}

.op .op-btn-red { background: var(--red); color: #fff; }
.op .op-btn-red:hover { background: var(--red-h); color: #fff; }
.op .op-btn-line { background: #fff; color: var(--ink); border-color: #d9d3cc; }
.op .op-btn-line:hover { border-color: var(--ink); color: var(--ink); }
.op .op-btn .ms { font-size: 18px; }

.op .op-readkey {
    margin-top: 34px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 18px;
    display: grid;
    gap: 10px;
}

.op .op-rk-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; }

.op .op-rk-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 3px;
}

.op .op-rk-row p { font-size: 14px; line-height: 1.5; color: var(--ink2); display: flex; align-items: center; gap: 9px; }

.op .op-mini-pin {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    font-size: 11px;
    font-weight: 700;
    display: inline-grid;
    place-items: center;
}

.op .op-kinds { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.op .op-kinds li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.op .op-kinds b { color: var(--k); }
.op .op-kdot { width: 9px; height: 9px; border-radius: 3px; background: var(--k); flex: none; }

/* ---------- Feature sections ---------- */
.op .op-feat, .op .op-soon { scroll-margin-top: calc(var(--top) + var(--bar) + 12px); }
.op .op-feat { margin-top: 60px; padding-top: 52px; border-top: 1px solid var(--line); }

.op .op-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 12px;
}

.op .op-kicker .op-sq { width: 22px; height: 22px; border-radius: 6px; }
.op .op-kicker .op-sq .ms { font-size: 15px; }
.op .op-count { margin-left: auto; font-variant-numeric: tabular-nums; color: #9b958e; font-weight: 500; }

.op .op-f-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 800;
    margin-bottom: 24px;
}

.op .op-f-icon {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: var(--c);
    background: #f4f2ef;
    background: color-mix(in srgb, var(--c) 11%, #fff);
}

.op .op-f-icon .ms { font-size: 25px; }

.op .op-anchor {
    opacity: 0;
    color: #a8a29b;
    font-weight: 600;
    font-size: .7em;
    transition: opacity .15s;
}

.op .op-f-title:hover .op-anchor, .op .op-anchor:focus-visible { opacity: 1; }
.op .op-anchor:hover { color: var(--red); }

/* Stage: warm backdrop holding the screenshot or the diagram */
.op .op-stage { background: var(--soft2); border-radius: 20px; padding: 28px 28px 24px; }
.op .op-stage-dg { padding-bottom: 28px; }

.op .op-browser {
    background: #fff;
    border: 1px solid var(--frame);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(22, 22, 22, .05), 0 22px 44px -22px rgba(22, 22, 22, .30);
}

.op .op-chrome {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 38px;
    padding: 0 14px;
    background: #fbfaf8;
    border-bottom: 1px solid var(--line);
    border-radius: 12px 12px 0 0;
}

.op .op-dots { display: flex; gap: 6px; flex: none; }
.op .op-dots i { width: 10px; height: 10px; border-radius: 50%; background: #dedad5; }
.op .op-ghost { visibility: hidden; }

.op .op-addr {
    flex: 1;
    min-width: 0;
    max-width: 380px;
    margin: 0 auto;
    height: 24px;
    border-radius: 7px;
    background: #f0ede9;
    color: #6a6a6a;
    font-size: 12.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
}

.op .op-addr .ms { font-size: 14px; color: #8f8983; }
.op .op-shot { position: relative; aspect-ratio: 1200 / 750; }
.op .op-crop { position: absolute; inset: 0; overflow: hidden; border-radius: 0 0 11px 11px; background: #f6f6f8; }
.op .op-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 750; }

/* Pins */
.op .op-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    background: var(--red);
    color: #fff;
    border: 2.5px solid #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(22, 22, 22, .32);
    transition: background-color .15s, box-shadow .15s;
}

.op .op-pin::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--red);
    opacity: 0;
    animation: op-ping 2.6s cubic-bezier(.2, .6, .4, 1) infinite;
    pointer-events: none;
}

.op .op-shot .op-pin:nth-of-type(2)::before { animation-delay: .4s; }
.op .op-shot .op-pin:nth-of-type(3)::before { animation-delay: .8s; }

@keyframes op-ping {
    0% { transform: scale(1); opacity: .55; }
    70%, 100% { transform: scale(1.9); opacity: 0; }
}

.op .op-pin.on {
    background: var(--red-h);
    box-shadow: 0 0 0 6px rgba(215, 20, 26, .22), 0 2px 8px rgba(22, 22, 22, .32);
    z-index: 4;
}

.op .op-pin.on::before { animation: none; opacity: 0; }
.op .op-pin:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.op .op-tip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: 250px;
    padding: 8px 11px;
    border-radius: 9px;
    background: #161616;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s, transform .15s;
}

.op .tip-l .op-tip { left: -8px; transform: translateY(4px); }
.op .tip-r .op-tip { left: auto; right: -8px; transform: translateY(4px); }
.op .tip-b .op-tip { bottom: auto; top: calc(100% + 12px); }
.op .op-pin.on .op-tip { opacity: 1; transform: translateX(-50%); }
.op .op-pin.on.tip-l .op-tip, .op .op-pin.on.tip-r .op-tip { transform: none; }

.op .op-capline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
}

.op .op-capline > span { display: inline-flex; align-items: center; gap: 7px; }
.op .op-capline .ms { font-size: 17px; }
.op .op-hint { color: #8f8983; }

.op .op-legend { margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.op .op-legend li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink2);
    cursor: default;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.op .op-n {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: grid;
    place-items: center;
    margin-top: -1px;
}

.op .op-legend li.on { border-color: var(--red); background: var(--red-t); color: var(--ink); box-shadow: 0 0 0 3px rgba(215, 20, 26, .10); }
.op .op-legend li.on .op-n { background: var(--red-h); }

/* Large diagram card (features without a screenshot) */
.op .op-diagram {
    background: #fff;
    border: 1px solid var(--frame);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(22, 22, 22, .05), 0 22px 44px -22px rgba(22, 22, 22, .24);
}

.op .op-dg-head {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 16px;
    background: #fbfaf8;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink2);
}

.op .op-dg-head .ms { font-size: 18px; color: var(--c); }
.op .op-dg-head .op-count { font-weight: 500; color: var(--muted); }

.op .op-dg-body {
    padding: 46px 18px 40px;
    background-image: radial-gradient(circle, #e9e5e0 1.1px, transparent 1.4px);
    background-size: 18px 18px;
    background-position: 9px 9px;
}

.op .op-bigflow {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    max-width: calc(var(--n) * 200px);
}

.op .op-bigflow li { position: relative; text-align: center; padding: 0 8px; }

.op .op-tile {
    position: relative;
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--kt);
    color: var(--k);
    border: 1px solid rgba(0, 0, 0, .06);
    border-color: color-mix(in srgb, var(--k) 24%, transparent);
    box-shadow: 0 10px 20px -12px var(--k);
}

.op .op-tile .ms { font-size: 30px; }

.op .op-no {
    position: absolute;
    top: -9px;
    right: -9px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--k);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    font-style: normal;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
}

.op .op-kind { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--k); }
.op .op-bigflow .op-kind { display: block; margin-bottom: 4px; }
.op .op-bigflow strong { display: block; font-size: 15px; letter-spacing: -0.015em; line-height: 1.3; }
.op .op-bigflow .op-sub { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 4px; }

.op .op-bigflow li:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 32px;
    height: 2px;
    left: calc(50% + 46px);
    right: calc(-50% + 46px);
    background: repeating-linear-gradient(90deg, #c4bdb5 0 6px, transparent 6px 11px);
}

.op .op-bigflow li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: calc(-50% + 45px);
    width: 9px;
    height: 9px;
    border-top: 2px solid #aaa299;
    border-right: 2px solid #aaa299;
    transform: rotate(45deg);
}

/* Compact numbered strip under screenshots */
.op .op-flowhead {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 26px 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.op .op-flowhead .ms { font-size: 17px; }
.op .op-strip { display: flex; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.op .op-strip li { flex: 1 1 0; min-width: 0; position: relative; padding: 14px 14px 15px 18px; }
.op .op-strip li + li { border-left: 1px solid var(--line); }

.op .op-strip li + li::before {
    content: 'arrow_forward';
    font-family: 'Material Symbols Outlined';
    font-feature-settings: 'liga';
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: #8f8983;
    position: absolute;
    left: -11px;
    top: 50%;
    margin-top: -11px;
    width: 20px;
    height: 20px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    z-index: 1;
}

.op .op-st-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }

.op .op-sn {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--k);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-grid;
    place-items: center;
}

.op .op-strip strong { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.op .op-strip .op-sub { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 3px; }

/* Possible paths (phone agent) */
.op .op-branches { margin-top: 10px; border: 1px dashed #d8d1c9; border-radius: 14px; padding: 14px 16px 16px; background: var(--soft); }

.op .op-branches-h {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.op .op-branches-h .ms { font-size: 17px; }
.op .op-branches ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.op .op-branches li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.op .op-branches strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.op .op-branches li span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 3px; }

/* Summary and details */
.op .op-summary { font-size: 18px; line-height: 1.6; color: var(--ink2); max-width: 68ch; margin: 26px 0 20px; }
.op .op-details { display: grid; gap: 16px; }
.op .op-details.has-ex { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: start; }
.op .op-details.has-pair { grid-template-columns: minmax(0, 1fr); }
.op .op-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 18px 20px 20px; }
.op .op-card h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.op .op-card h3 .ms { font-size: 19px; color: var(--muted); }
.op .op-control { background: var(--soft); }
.op .op-control ul { margin: 14px 0 0; display: grid; gap: 9px; }
.op .op-details:not(.has-ex) .op-control ul, .op .op-details.has-pair .op-control ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.op .op-control li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.op .op-control li .ms { font-size: 18px; color: var(--green); margin-top: 2px; }
.op .op-examples { display: grid; gap: 16px; }
.op .has-pair .op-examples { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.op .op-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }

.op .op-ex {
    flex: none;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8a4b00;
    background: #fff4e0;
    border: 1px solid #f1d6a6;
    border-radius: 999px;
    padding: 3px 9px;
}

.op .op-msgs { display: flex; flex-direction: column; gap: 10px; }
.op .op-msg { max-width: 88%; align-self: flex-start; }
.op .op-who { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 0 0 4px 3px; }
.op .op-msg p { padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.op .op-msg.customer p { background: var(--soft2); color: var(--ink); border-bottom-left-radius: 4px; }
.op .op-msg.agent { align-self: flex-end; }
.op .op-msg.agent .op-who { text-align: right; margin: 0 3px 4px 0; }
.op .op-msg.agent p { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.op .op-log li { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 10px; padding: 5px 0; font-size: 13.5px; line-height: 1.45; }

.op .op-t {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--muted);
    padding-top: 1px;
    font-variant-numeric: tabular-nums;
}

.op .op-e { position: relative; padding-left: 17px; color: var(--ink2); }
.op .op-e::before { content: ''; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 2px solid var(--red); }
.op .op-log li:not(:last-child) .op-e::after { content: ''; position: absolute; left: 3.5px; top: 16px; bottom: -11px; width: 1px; background: var(--line); }

/* Coming soon */
.op .op-soon { margin-top: 64px; padding-top: 52px; border-top: 1px solid var(--line); }
.op .op-soon .op-f-icon { color: var(--muted); background: var(--soft2); }
.op .op-soon-grid { margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.op .op-soon-grid li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px dashed #d6cfc7;
    border-radius: 12px;
    background: var(--soft);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.op .op-soon-grid .ms { font-size: 22px; color: #8f8983; }
.op .op-tag { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* Call to action */
.op .op-cta {
    margin-top: 56px;
    color: #fff;
    border-radius: 20px;
    padding: 40px;
    background-color: #161616;
    background-image: radial-gradient(520px 220px at 100% 0%, rgba(215, 20, 26, .28), transparent 70%),
        radial-gradient(circle, #2b2b2b 1.1px, transparent 1.4px);
    background-size: auto, 18px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 32px;
    flex-wrap: wrap;
}

.op .op-cta h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; max-width: 17ch; }
.op .op-cta .op-btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.op .op-cta .op-btn-line:hover { border-color: #fff; color: #fff; }
.op .op-cta :focus-visible { outline-color: #fff; }

/* ---------- Narrow content column ---------- */
@container opmain (max-width: 600px) {
    .op .op-legend { grid-template-columns: minmax(0, 1fr); }
}

@container opmain (max-width: 760px) {
    .op .op-branches ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .op .op-details.has-ex { grid-template-columns: minmax(0, 1fr); }
    .op .has-pair .op-examples { grid-template-columns: minmax(0, 1fr); }
    .op .op-soon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container opmain (max-width: 640px) {
    .op .op-strip { flex-direction: column; }
    .op .op-strip li { padding: 13px 14px 13px 16px; }
    .op .op-strip li + li { border-left: 0; border-top: 1px solid var(--line); }
    .op .op-strip li + li::before { content: 'arrow_downward'; left: 18px; top: -11px; margin-top: 0; }
    .op .op-st-top { margin-bottom: 5px; }
    .op .op-bigflow { grid-template-columns: minmax(0, 1fr); row-gap: 24px; max-width: none; }
    .op .op-bigflow li { text-align: left; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; padding: 0; }
    .op .op-bigflow li > * { grid-column: 2; }
    .op .op-bigflow .op-tile { grid-column: 1; grid-row: 1 / span 3; width: 52px; height: 52px; margin: 0; border-radius: 15px; }
    .op .op-tile .ms { font-size: 26px; }
    .op .op-no { width: 22px; height: 22px; top: -7px; right: -7px; font-size: 11px; }
    .op .op-bigflow .op-kind { margin-top: 2px; }

    .op .op-bigflow li:not(:last-child)::before {
        top: 60px;
        bottom: -20px;
        left: 25px;
        right: auto;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(180deg, #c4bdb5 0 5px, transparent 5px 9px);
    }

    .op .op-bigflow li:not(:last-child)::after { display: none; }
    .op .op-dg-body { padding: 28px 18px 26px; }
    .op .op-details:not(.has-ex) .op-control ul, .op .op-details.has-pair .op-control ul { grid-template-columns: minmax(0, 1fr); }
    .op .op-tip { display: none; }
}

@container opmain (max-width: 480px) {
    .op .op-branches ul { grid-template-columns: minmax(0, 1fr); }
    .op .op-soon-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Screen widths ---------- */
@media (max-width: 1199px) {
    .op .op-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
    .op .op-toc { display: none; }
}

/* Small screens: the features menu becomes a "Browse features" bar under the site nav */
@media (max-width: 991px) {
    .op { --top: 72px; --bar: 52px; margin-top: 110px; }
    .op .op-layout { grid-template-columns: minmax(0, 1fr); padding: 0 16px; gap: 0; }

    .op .op-browsebar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: sticky;
        top: var(--top);
        z-index: 50;
        height: var(--bar);
        padding: 0 16px;
        background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--line);
    }

    .op .op-browse-btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        flex: none;
        cursor: pointer;
        background: #fff;
        color: var(--ink);
        border: 1px solid #d9d3cc;
        border-radius: 9px;
        padding: 6px 10px 6px 11px;
        font-size: 14px;
        font-weight: 600;
    }

    .op .op-browse-btn .ms { font-size: 19px; }
    .op .op-chev { transition: transform .2s; color: var(--muted); }
    .op .op-browse-btn[aria-expanded="true"] .op-chev { transform: rotate(180deg); }
    .op .op-browse-now { min-width: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .op .op-sidebar {
        display: none;
        position: fixed;
        z-index: 49;
        top: calc(var(--top) + var(--bar));
        left: 0;
        right: 0;
        height: auto;
        max-height: calc(100vh - var(--top) - var(--bar));
        padding: 18px 16px 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -20px rgba(22, 22, 22, .35);
    }

    .op .op-sidebar.open { display: block; }
    .op .op-main { padding-top: 32px; }
    .op .op-stage { padding: 18px 18px 16px; border-radius: 16px; }
    .op .op-stage-dg { padding-bottom: 18px; }
}

@media (max-width: 600px) {
    .op .op-stage { padding: 10px 10px 12px; border-radius: 14px; margin: 0 -4px; }
    .op .op-chrome { height: 32px; padding: 0 10px; gap: 10px; }
    .op .op-dots i { width: 8px; height: 8px; }
    .op .op-ghost { display: none; }
    .op .op-addr { height: 21px; font-size: 11.5px; }
    .op .op-pin { width: 24px; height: 24px; font-size: 11.5px; border-width: 2px; }
    .op .op-capline { margin-top: 10px; padding: 0 4px; font-size: 12.5px; }
    .op .op-legend { margin-top: 10px; }
    .op .op-legend li { padding: 10px 12px; font-size: 13.5px; }
    .op .op-f-title { gap: 12px; margin-bottom: 18px; }
    .op .op-f-icon { width: 40px; height: 40px; border-radius: 11px; }
    .op .op-f-icon .ms { font-size: 22px; }
    .op .op-feat { margin-top: 44px; padding-top: 40px; }
    .op .op-summary { font-size: 16.5px; }
    .op .op-card { padding: 16px 16px 18px; }
    .op .op-rk-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .op .op-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
    .op .op-kinds li { align-items: flex-start; font-size: 13px; line-height: 1.35; }
    .op .op-kinds li > span:last-child b { display: block; }
    .op .op-kdot { margin-top: 4px; }
    .op .op-stage-dg { padding: 10px; }
    .op .op-cta { padding: 30px 22px; }
    .op .op-cta .op-btns { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .op *, .op *::before, .op *::after { animation: none !important; transition: none !important; }
}
