/* Conduit product page — Conduit's own palette (ink, paper, signal orange) under the ARQ nav and footer */
.cd-page { background: var(--c-paper); color: var(--c-ink); }
.cd-page .section p { color: #48536B; }
.cd-page .kicker { color: #C2501D; }
.cd-page .section h2 { color: var(--c-ink); }
.cd-p { margin-top: 18px; font-size: 17.5px; max-width: 620px; }
.btn-ink { background: var(--c-ink); color: #fff; }
.btn-ink:hover { transform: translateY(-2px); }
.cd-page .nav.solid { background: rgba(15,27,45,.9); }
.cd-page .nav:not(.solid) { background: linear-gradient(180deg, rgba(15,27,45,.55), transparent); }

/* hero */
.cd-hero { position: relative; overflow: hidden; padding: calc(140px + env(safe-area-inset-top)) 0 110px; background: var(--c-ink); color: #F3F1EC; isolation: isolate; }
.cd-hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(50% 60% at 90% 20%, rgba(255,106,43,.28), transparent 62%),
  radial-gradient(40% 50% at 0% 100%, rgba(47,107,255,.25), transparent 65%),
  linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 40px 40px; }
.cd-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.back { color: #9AA6BC; text-decoration: none; font-size: 11.5px; }
.back:hover { color: #fff; }
.cd-logo { display: flex; align-items: center; gap: 14px; margin-top: 26px; color: #F3F1EC; }
.cd-logo svg { width: 64px; height: 57px; }
.cd-logo span { font-family: var(--text); font-weight: 700; font-size: 60px; letter-spacing: -.055em; line-height: 1; }
.cd-hero h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 800; letter-spacing: -.04em; margin-top: 22px; color: #fff; }
.cd-lead { margin-top: 20px; font-size: clamp(17px, 1.5vw, 19px); color: #B9C1D0; max-width: 540px; }
.cd-hero .hero-ctas { margin-top: 32px; }
.cd-hero .btn-ink { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.cd-badges { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.cd-badges li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: #D9DEE8; }
.cd-badges svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--c-signal); fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

/* animated builder */
.builder { position: relative; border-radius: 22px; background: #16243A; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 50px 100px -40px rgba(0,0,0,.7); overflow: hidden; }
.b-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.b-bar > i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.b-bar > i:first-child { background: var(--c-signal); }
.b-bar span { margin-left: 8px; font-size: 10.5px; color: #8E99AD; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-live { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6EE7B0; font-weight: 600; }
.b-live i { width: 7px; height: 7px; border-radius: 50%; background: #6EE7B0; animation: pulse 1.6s infinite; }
.b-canvas { position: relative; height: 380px; margin: 14px; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px); background-size: 18px 18px; border-radius: 14px; }
.b-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.b-wires .w { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 2; vector-effect: non-scaling-stroke; transition: stroke .4s; }
.b-wires .w.lit { stroke: var(--c-signal); stroke-dasharray: 6 6; animation: dash .6s linear infinite; }
.b-wires .err { stroke: rgba(229,72,77,.6); stroke-dasharray: 4 5; }
@keyframes dash { to { stroke-dashoffset: -12; } }
.node { position: absolute; left: var(--x); top: var(--y); width: 29%; min-height: 50px; padding: 8px 11px; border-radius: 11px; background: #1E2E47; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: background .35s, box-shadow .35s, transform .35s var(--ease); }
.node .k { display: block; font-size: 9.5px; color: #8E99AD; }
.node .k.ai { color: #8CF542; } .node .k.rec { color: #7DD3FC; }
.node b { display: block; font-size: 13px; font-weight: 600; color: #E8E6E0; margin-top: 2px; line-height: 1.25; }
.node.fb { box-shadow: inset 0 0 0 1px rgba(229,72,77,.5); }
.node.on { background: #2A3B57; box-shadow: inset 0 0 0 1.5px var(--c-signal), 0 0 0 6px rgba(255,106,43,.14); transform: translateY(-2px); }
.node.ok { box-shadow: inset 0 0 0 1.5px rgba(110,231,176,.7); }
.node.ok::after { content: ""; position: absolute; top: 8px; right: 9px; width: 8px; height: 4px; border-left: 2px solid #6EE7B0; border-bottom: 2px solid #6EE7B0; transform: rotate(-45deg); }
.b-note { position: absolute; right: 16px; bottom: 8px; font-size: 9.5px; color: #5E6A80; }

/* structure */
.cd-structure { background: #fff; }
.structure-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.nest .lvl { border-radius: 18px; padding: 16px 18px 18px; position: relative; }
.nest .lvl > span { display: block; font-size: 10.5px; }
.nest .lvl > b { display: block; font-family: var(--display); font-size: 17px; margin-top: 3px; }
.nest .l1 { background: var(--c-ink); color: #fff; }
.nest .l1 > span { color: #FFB08C; }
.nest .l2 { margin-top: 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.nest .l2 > span { color: #9AA6BC; }
.nest .l3 { margin-top: 14px; background: #F3F1EC; color: var(--c-ink); }
.nest .l3 > span { color: #C2501D; }
.steps-row { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.steps-row i { font-style: normal; font-size: 12.5px; font-weight: 600; padding: 7px 11px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px #DED9CE; }
.steps-row i.hot { background: var(--c-signal); color: #fff; box-shadow: none; }
.steps-row em { flex: 1; min-width: 12px; height: 2px; background: linear-gradient(90deg, #DED9CE 40%, var(--c-signal) 50%, #DED9CE 60%); background-size: 300% 100%; animation: pulse-line 2s linear infinite; }
.js .nest[data-reveal] .lvl { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .nest.in .lvl { opacity: 1; transform: none; }
.js .nest.in .l2 { transition-delay: .25s; } .js .nest.in .l3 { transition-delay: .5s; }

/* how it works rows */
.cd-how { background: var(--c-paper); }
.how-rows { display: grid; gap: 30px; margin-top: 60px; }
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 34px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px #E6E1D6; }
.how.flip .how-copy { order: 2; }
.how-n { font-size: 11px; color: #C2501D; }
.how h3 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 12px; color: var(--c-ink); }
.how p { margin-top: 12px; font-size: 16.5px; }
.how p b { color: var(--c-ink); }
.ticks-sm { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ticks-sm li { font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: #FFF1EA; color: #A8441A; }
.how-viz { position: relative; height: 290px; border-radius: 20px; background: var(--c-ink); overflow: hidden; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px); background-size: 18px 18px; }

/* 01 triggers converge on Conduit */
.v-trigger .trig { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; background: #1E2E47; color: #E8E6E0; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); animation: trig 4s var(--ease) infinite; }
.v-trigger .trig svg { width: 16px; height: 16px; fill: none; stroke: var(--c-signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v-trigger .t1 { left: 6%; top: 12%; } .v-trigger .t2 { right: 6%; top: 12%; animation-delay: 1s; }
.v-trigger .t3 { left: 6%; bottom: 12%; animation-delay: 2s; } .v-trigger .t4 { right: 6%; bottom: 12%; animation-delay: 3s; }
@keyframes trig { 0%, 70%, 100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); } 10%, 25% { box-shadow: inset 0 0 0 1.5px var(--c-signal), 0 0 24px rgba(255,106,43,.35); } }
.trig-hub { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 24px; background: #F3F1EC; color: var(--c-ink); display: grid; place-items: center; animation: hub 1s ease-out infinite; }
.trig-hub svg { width: 46px; height: 41px; }
@keyframes hub { 0% { box-shadow: 0 0 0 0 rgba(255,106,43,.5); } 100% { box-shadow: 0 0 0 22px rgba(255,106,43,0); } }

/* 02 build: branching canvas with a moving cursor */
.v-build svg { position: absolute; left: 50%; top: 50%; width: 300px; height: 220px; margin: -110px 0 0 -150px; }
.v-build svg path { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 2; stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw2 5s var(--ease) infinite; }
.v-build svg path:nth-child(2), .v-build svg path:nth-child(3) { animation-delay: .5s; }
.v-build svg path:nth-child(4), .v-build svg path:nth-child(5) { animation-delay: 1s; }
@keyframes draw2 { 0% { stroke-dashoffset: 120; } 30%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.v-build .bn { white-space: nowrap; position: absolute; padding: 7px 13px; border-radius: 10px; background: #1E2E47; color: #E8E6E0; font-size: 12.5px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transform: translate(-50%, -50%); }
.v-build .a { left: 50%; top: calc(50% - 94px); }
.v-build .b { left: 50%; top: calc(50% - 24px); background: var(--c-signal); color: #fff; box-shadow: none; }
.v-build .c { left: calc(50% - 80px); top: calc(50% + 46px); }
.v-build .d { left: calc(50% + 80px); top: calc(50% + 46px); }
.v-build .e { left: 50%; top: calc(50% + 98px); }
.v-build .cursor { position: absolute; width: 16px; height: 16px; left: 30%; top: 30%; border-left: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(-12deg); filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); animation: cursor 5s var(--ease) infinite; }
@keyframes cursor { 0% { left: 20%; top: 70%; } 30% { left: 62%; top: 40%; } 60% { left: 72%; top: 72%; } 100% { left: 20%; top: 70%; } }

/* 03 AI reads a document into fields */
.v-work { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 20px; }
.doc { position: relative; width: 140px; height: 180px; border-radius: 10px; background: #F3F1EC; padding: 16px 14px; display: grid; align-content: start; gap: 9px; overflow: hidden; flex: none; }
.doc .mono { font-size: 9px; color: #7A8499; }
.doc i { display: block; height: 7px; width: var(--w); border-radius: 4px; background: #D9D3C6; }
.doc .scan { position: absolute; left: 0; right: 0; height: 30px; top: -30px; background: linear-gradient(180deg, transparent, rgba(140,245,66,.45)); border-bottom: 2px solid var(--lime); animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 0% { top: -30px; } 70%, 100% { top: 180px; } }
.arrow-r { width: 34px; height: 2px; background: var(--c-signal); position: relative; flex: none; }
.arrow-r::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 8px solid var(--c-signal); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.fields { display: grid; gap: 8px; min-width: 0; }
.fields div { padding: 8px 12px; border-radius: 10px; background: #1E2E47; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); opacity: 0; animation: field 5.2s var(--ease) infinite; }
.fields div:nth-child(2) { animation-delay: .35s; } .fields div:nth-child(3) { animation-delay: .7s; } .fields div:nth-child(4) { animation-delay: 1.05s; }
@keyframes field { 0%, 20% { opacity: 0; transform: translateX(-10px); } 32%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.fields span { display: block; font-size: 9px; color: #8E99AD; }
.fields b { display: block; font-size: 13.5px; color: #E8E6E0; white-space: nowrap; }

/* 04 run panel */
.v-watch { padding: 22px; color: #E8E6E0; }
.rp-head { display: flex; justify-content: space-between; align-items: center; }
.rp-head b { font-size: 15px; }
.rp-head span { font-size: 10px; color: #6EE7B0; }
.rp-bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,.1); margin-top: 12px; overflow: hidden; }
.rp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c-signal), #FFB08C); border-radius: 99px; animation: rp 6s linear infinite; }
@keyframes rp { 0% { width: 0; } 80%, 100% { width: 100%; } }
.v-watch ol { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; }
.v-watch li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 13.5px; opacity: .35; animation: rp-step 6s steps(1) infinite; }
.v-watch li span { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px #6EE7B0; flex: none; }
.v-watch li em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: #8E99AD; }
.v-watch li:nth-child(1) { animation-name: rp1; } .v-watch li:nth-child(2) { animation-name: rp2; } .v-watch li:nth-child(3) { animation-name: rp3; } .v-watch li:nth-child(4) { animation-name: rp4; } .v-watch li:nth-child(5) { animation-name: rp5; }
@keyframes rp1 { 0% { opacity: .35; } 5%, 100% { opacity: 1; } }
@keyframes rp2 { 0%, 18% { opacity: .35; } 20%, 100% { opacity: 1; } }
@keyframes rp3 { 0%, 34% { opacity: .35; } 36%, 100% { opacity: 1; } }
@keyframes rp4 { 0%, 52% { opacity: .35; } 54%, 100% { opacity: 1; } }
@keyframes rp5 { 0%, 70% { opacity: .35; } 72%, 100% { opacity: 1; } }

/* before / after */
.cd-compare { background: #fff; }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); gap: 0; align-items: stretch; margin-top: 50px; }
.cmp { border-radius: 22px; padding: 28px; }
.cmp.before { background: #F6F4EF; box-shadow: inset 0 0 0 1px #E6E1D6; }
.cmp.after { background: var(--c-ink); color: #E8E6E0; }
.cmp-t { font-size: 11px; color: #7A8499; }
.cmp.after .cmp-t { color: #FFB08C; }
.cmp ol { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.cmp li { display: flex; align-items: center; gap: 12px; font-size: 15px; padding: 11px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #E6E1D6; }
.cmp.after li { background: rgba(255,255,255,.06); box-shadow: none; }
.cmp li i { width: 26px; height: 26px; border-radius: 50%; flex: none; position: relative; }
.cmp li i.p { background: #E6E1D6; }
.cmp li i.p::before { content: ""; position: absolute; left: 50%; top: 5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #7A8499; }
.cmp li i.p::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 14px; height: 7px; margin-left: -7px; border-radius: 7px 7px 2px 2px; background: #7A8499; }
.cmp.after li i.p { background: #FFB08C; }
.cmp.after li i.p::before, .cmp.after li i.p::after { background: var(--c-ink); }
.cmp li i.c { background: var(--c-signal); }
.cmp li i.c::after { content: ""; position: absolute; left: 8px; top: 8px; width: 9px; height: 5px; border-left: 2.4px solid #fff; border-bottom: 2.4px solid #fff; transform: rotate(-45deg); }
.js .compare.in .after li { animation: slidein .6s var(--ease) both; }
.js .compare.in .after li:nth-child(2) { animation-delay: .1s; } .js .compare.in .after li:nth-child(3) { animation-delay: .2s; } .js .compare.in .after li:nth-child(4) { animation-delay: .3s; } .js .compare.in .after li:nth-child(5) { animation-delay: .4s; } .js .compare.in .after li:nth-child(6) { animation-delay: .5s; }
@keyframes slidein { from { opacity: 0; transform: translateX(16px); } }
.cmp-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--c-ink); }
.cmp-mid span { width: 2px; flex: 1; max-height: 120px; background: linear-gradient(180deg, transparent, var(--c-signal)); }
.cmp-mid span:last-child { background: linear-gradient(180deg, var(--c-signal), transparent); }
.cmp-mid svg { width: 46px; height: 41px; }
.cmp-note { margin-top: 14px; font-size: 10px; color: #9AA3B5; text-align: right; }

/* features */
.cd-features { background: var(--c-paper); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.feat { position: relative; overflow: hidden; padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px #E6E1D6; transition: transform .45s var(--ease), box-shadow .4s; }
.feat.spot::after, .ex.spot::after { background: radial-gradient(320px circle at var(--mx) var(--my), rgba(255,106,43,.1), transparent 50%); }
.feat:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px rgba(255,106,43,.5), 0 30px 60px -30px rgba(15,27,45,.35); }
.f-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--c-ink); display: grid; place-items: center; transition: transform .5s var(--ease), background .4s; }
.f-ic svg { width: 24px; height: 24px; fill: none; stroke: #FFB08C; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.feat:hover .f-ic { background: var(--c-signal); transform: rotate(-8deg) scale(1.06); }
.feat:hover .f-ic svg { stroke: #fff; }
.feat h3 { font-size: 20px; margin-top: 20px; color: var(--c-ink); }
.feat p { margin-top: 8px; font-size: 15px; }

/* examples */
.cd-examples { background: #fff; }
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.ex { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 28px; border-radius: 20px; background: #F6F4EF; box-shadow: inset 0 0 0 1px #E6E1D6; transition: transform .45s var(--ease), background .4s, box-shadow .4s; }
.ex:hover { transform: translateY(-5px); background: #fff; box-shadow: inset 0 0 0 1px rgba(255,106,43,.5), 0 30px 60px -30px rgba(15,27,45,.35); }
.ex-tag { align-self: flex-start; font-size: 10.5px; padding: 5px 10px; border-radius: 99px; background: #fff; color: #C2501D; box-shadow: inset 0 0 0 1px #F0D3C3; }
.ex h3 { font-size: 20px; margin-top: 16px; color: var(--c-ink); }
.ex p { margin-top: 8px; font-size: 15px; }
.ex.more { background: var(--c-ink); box-shadow: none; }
.ex.more h3 { color: #fff; } .ex.more p { color: #B9C1D0; }
.ex.more .ex-tag { background: rgba(255,106,43,.15); box-shadow: none; color: #FFB08C; }
.ex.more .svc-link { color: #FFB08C; margin-top: auto; padding-top: 18px; }

/* roadmap */
.cd-road { background: var(--c-paper); }
.timeline { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; padding-top: 34px; }
.timeline::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 2px; background: linear-gradient(90deg, #6EE7B0 0 50%, #E6E1D6 50%); }
.tl-item { position: relative; padding: 26px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px #E6E1D6; }
.tl-item .dot { position: absolute; top: -32px; left: 0; width: 24px; height: 24px; border-radius: 50%; background: #6EE7B0; box-shadow: 0 0 0 5px var(--c-paper); }
.tl-item.now .dot { background: var(--c-signal); animation: hub 1.4s ease-out infinite; }
.tl-item.now { box-shadow: 0 0 0 1.5px var(--c-signal); background: #FFF6F1; }
.tl-item small { font-size: 10.5px; color: #7A8499; }
.tl-item.now small { color: #C2501D; }
.tl-item h3 { font-size: 21px; margin-top: 8px; color: var(--c-ink); }
.tl-item p { margin-top: 8px; font-size: 15px; }
.cta-band { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 34px 38px; border-radius: 24px; background: var(--c-ink); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 360px; height: 360px; right: -80px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,106,43,.35), transparent 65%); }
.cta-band > * { position: relative; }
.cta-band h3 { color: #fff; font-size: 26px; }
.cta-band p { color: #B9C1D0 !important; margin-top: 6px; }

@media (max-width: 1020px) {
  .cd-hero-grid, .structure-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .how { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .how.flip .how-copy { order: 0; }
  .feat-grid, .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cmp-mid { flex-direction: row; height: 70px; }
  .cmp-mid span { width: auto; height: 2px; max-width: 120px; flex: 1; }
}
@media (max-width: 640px) {
  .cd-hero { padding-top: calc(112px + env(safe-area-inset-top)); }
  .cd-logo span { font-size: 46px; }
  .b-canvas { height: 400px; }
  .node { width: 31%; padding: 6px 8px; }
  .node b { font-size: 11.5px; }
  .node .k { font-size: 8.5px; }
  .how { padding: 22px; }
  .how-viz { height: 260px; }
  .v-trigger .trig { font-size: 11.5px; padding: 7px 9px; }
  .v-work { gap: 10px; padding: 14px; }
  .doc { width: 100px; height: 150px; }
  .fields b { font-size: 12px; }
  .feat-grid, .ex-grid, .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline::before { display: none; }
  .tl-item .dot { top: 18px; left: auto; right: 18px; width: 14px; height: 14px; box-shadow: none; }
  .timeline { padding-top: 0; }
  .cta-band { padding: 26px; }
  /* run panel: let it grow so all five steps show instead of the last being cut off */
  .how-viz.v-watch { height: auto; padding: 18px; }
  .v-watch li { padding: 7px 10px; font-size: 13px; }
  /* document-to-fields: let field values wrap rather than spill out of their boxes */
  .fields { flex: 1; }
  .fields b { white-space: normal; }
  .arrow-r { width: 20px; }
  /* builder nodes: tighter text so labels stay inside their boxes */
  .node { min-height: 44px; }
  .node b { line-height: 1.2; overflow-wrap: anywhere; }
  .cta-band .btn { width: 100%; }
}
@media (max-width: 360px) {
  .cd-hero h1 { font-size: 34px; }
  .cd-logo span { font-size: 40px; }
  .cd-logo svg { width: 50px; height: 45px; }
  .node { width: 32%; padding: 5px 6px; }
  .node b { font-size: 10.5px; }
}
