/* Integrations, Velo No-code and Atlas IQ No-code sections. Loads after a.css, velo-adds.css, atlas-adds.css, about.css and demo.css.
   Every rule is scoped to #integrations, #no-code or #atlas-no-code; shared globals (.sec, .vx-*, .kicker, .tiny, .strong, .chip, .card) come from the existing sheets.
   Animates transform and opacity only. */

/* ================= 5e. INTEGRATIONS (day) ================= */
#integrations { --tw: 132px; --th: 104px; --gap: 12px; }
@media (min-width: 761px) { #integrations { --tw: 168px; --th: 120px; --gap: 14px; } }
#integrations > .wrap, #integrations .rows, #integrations .stk-foot { position: relative; z-index: 1; }

#integrations .rows { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
#integrations .row-label { margin: 6px 0 0; }
#integrations .rows > .wrap:nth-of-type(2) { margin-top: 18px; }

/* Marquee */
#integrations .marquee {
  overflow: clip; padding-block: 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
#integrations .track { display: flex; width: max-content; will-change: transform; animation: stk-left 47s linear infinite; }
#integrations .marquee-r .track { animation-name: stk-right; animation-duration: 67.2s; }
#integrations .set { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
/* --dist = exactly one set width, written by stack.js; 50% is the no-JS fallback (two sets). */
@keyframes stk-left  { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(var(--dist, 50%) * -1), 0, 0); } }
@keyframes stk-right { from { transform: translate3d(calc(var(--dist, 50%) * -1), 0, 0); } to { transform: translate3d(0, 0, 0); } }
#integrations .marquee:hover .track, #integrations .marquee:focus-within .track, #integrations.is-paused .track { animation-play-state: paused; }

/* Logo tiles: one centred full-colour logo per tile, optically balanced via --h (set inline per logo). */
#integrations .stk-tile {
  flex: none; width: var(--tw); height: var(--th); margin-right: var(--gap); padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 160ms var(--ease);
}
#integrations .stk-tile:hover { border-color: var(--accent); }
#integrations .stk-tile img {
  display: block; height: var(--h, 34px); width: auto; max-width: var(--mw, 72%); max-height: 56px;
  object-fit: contain; object-position: center; user-select: none; -webkit-user-drag: none;
}
#integrations .row-label .lbl-short { display: none; }
@media (max-width: 520px) {
  #integrations .row-label .lbl-long { display: none; }
  #integrations .row-label .lbl-short { display: inline; }
}

/* Foot: pause + connector line + demo button */
#integrations .stk-foot { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
#integrations .stk-foot .tiny { flex: 1 1 260px; max-width: 52ch; color: var(--ink-muted); }
#integrations .stk-pause {
  min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  background: transparent; color: var(--ink-muted); border: 1px solid var(--line); cursor: pointer;
  font: 500 var(--t-2xs)/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
  order: -1;
}
#integrations .stk-pause:hover { border-color: var(--accent); color: var(--ink); }
#integrations .stk-pause[aria-pressed="true"] { background: var(--accent-soft); color: var(--ok-ink); border-color: transparent; }
#integrations .stk-foot .btn { margin-left: auto; min-height: 44px; }
@media (max-width: 760px) { #integrations .stk-foot .btn { margin-left: 0; } }

/* Reduced motion: no animation, scrollable rows, single set */
@media (prefers-reduced-motion: reduce) {
  #integrations .track { animation: none !important; transform: none; width: auto; }
  #integrations .marquee { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; padding-inline: var(--gutter); scrollbar-width: thin; }
  #integrations .marquee .set + .set { display: none; }
  #integrations .stk-tile { scroll-snap-align: start; }
  #integrations .stk-pause { display: none; }
}

/* ================= 5f. VELO NO-CODE (day) ================= */
#no-code .nc-grid { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 960px) { #no-code .nc-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: stretch; } }

/* Say it. See it. */
#no-code .ask { padding: 16px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 761px) { #no-code .ask { padding: 24px; gap: 16px; } }
#no-code .ask-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
#no-code .ask-top .strong { margin: 0; }
#no-code .ask-pills { display: flex; flex-wrap: wrap; gap: 6px; }
#no-code .pill {
  min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  background: var(--panel); color: var(--ink-muted); border: 1px solid var(--line);
  font: 500 var(--t-2xs)/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
  position: relative; overflow: hidden;
}
#no-code .pill:hover { border-color: var(--accent); color: var(--ink); }
#no-code .pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* 5-second hold timer: a hairline that scales across the active pill. Transform only. */
#no-code .pill::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent-soft); transform: scaleX(0); transform-origin: left center; opacity: 0; }
#no-code .ask.holding .pill[aria-pressed="true"]::after { opacity: 1; animation: ask-hold var(--hold, 5s) linear forwards; }
#no-code .ask.is-paused .pill::after { animation-play-state: paused; }
@keyframes ask-hold { from { transform: scaleX(0); } to { transform: scaleX(1); } }

#no-code .ask-prompt { background: var(--inset); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
#no-code .ask-prompt .kicker { display: block; margin-bottom: 6px; }
#no-code .ask-q { margin: 0; display: grid; font-size: 14px; line-height: 1.5; }
#no-code .ask-q > * { grid-area: 1 / 1; min-width: 0; }
#no-code .ask-q .g { visibility: hidden; }
#no-code .ask-q .typed { color: var(--ink); }
#no-code .ask-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent); animation: ask-caret 1s steps(1) infinite; }
@keyframes ask-caret { 50% { opacity: 0; } }
#no-code .ask.pre .typed { opacity: 0; }

#no-code .ask-out { position: relative; display: grid; min-width: 0; }
#no-code .out {
  grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease), visibility 0s linear 320ms;
}
#no-code .out.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
#no-code .ask.pre .out.is-on, #no-code .ask.building .out { opacity: 0; transform: translateY(8px); }
#no-code .out-h { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
#no-code .out-h b { font: 700 13px/1.35 var(--font-body); }
#no-code .out-h .kicker { color: var(--ink-muted); }

/* Building shimmer */
#no-code .build { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 160ms var(--ease); }
#no-code .ask.building .build { opacity: 1; visibility: visible; }
#no-code .build-t { font: 500 var(--t-2xs)/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
#no-code .sk { position: relative; display: block; flex: 1 1 0; max-height: 26px; width: var(--w); border-radius: 6px; background: var(--line); overflow: hidden; }
#no-code .sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); transform: translateX(-100%); animation: ask-shim 1s linear infinite; }
@keyframes ask-shim { to { transform: translateX(100%); } }

/* Output 1: bars */
#no-code .nc-bars { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
#no-code .nc-bars li { display: grid; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr) 44px; align-items: center; gap: 10px; min-height: 36px; font-size: inherit; }
#no-code .b-n { font-size: 12.5px; line-height: 1.3; font-weight: 500; }
#no-code .b-t { display: block; height: 14px; border-radius: 4px; background: var(--inset); border: 1px solid var(--line); overflow: hidden; }
#no-code .b-t i { display: block; height: 100%; width: var(--w); background: var(--accent); transform-origin: left center; transform: scaleX(0); transition: transform 700ms var(--ease) 200ms; }
#no-code .nc-bars .bad .b-t i { background: var(--warn); }
#no-code .out.is-on .b-t i { transform: scaleX(1); }
#no-code .b-v { font: 500 12px/1 var(--font-mono); text-align: right; }
#no-code .nc-bars .bad .b-v { color: var(--warn-ink); }

/* Output 2: ranked list */
#no-code .rank { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
#no-code .rank li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); min-height: 48px; }
#no-code .rank li:first-child { border-top: 0; padding-top: 2px; }
#no-code .r-n { font: 500 12px/1 var(--font-mono); color: var(--ink-muted); }
#no-code .r-name { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
#no-code .r-name small { display: block; font: 400 11px/1.4 var(--font-mono); color: var(--ink-muted); margin-top: 1px; }
#no-code .rank .chip { font-size: 11.5px; padding: 3px 10px; }

/* Output 3 + email table */
#no-code .out-wrap { position: relative; flex: 1; display: flex; }
#no-code .out-wrap > .out-scroll { flex: 1; min-width: 0; }
#no-code .out-wrap::after { content: ""; position: absolute; top: 1px; right: 1px; bottom: 1px; width: 36px; border-radius: 0 var(--radius) var(--radius) 0; background: linear-gradient(90deg, rgba(255,255,255,0), var(--panel)); pointer-events: none; opacity: 0; transition: opacity 160ms var(--ease); }
#no-code .out-wrap.can-scroll::after { opacity: 1; }
#no-code .out-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
#no-code .rpt-table { border-collapse: collapse; width: 100%; min-width: 430px; font-size: 12.5px; }
#no-code .rpt-table th, #no-code .rpt-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
#no-code .rpt-table thead th { font: 500 var(--t-2xs)/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); background: var(--inset); }
#no-code .rpt-table tbody tr:last-child th, #no-code .rpt-table tbody tr:last-child td { border-bottom: 0; }
#no-code .rpt-table tbody th { font-weight: 700; }
#no-code .rpt-table .same { color: var(--ink-muted); font-weight: 500; }
#no-code .rpt-table td b { font: 500 12px/1.3 var(--font-mono); display: block; }
#no-code .rpt-table .cid { font: 400 10.5px/1.3 var(--font-mono); color: var(--ink-muted); }
#no-code .rpt-table .chip { font-size: 11px; }

/* Output 4: scheduled email */
#no-code .nc-mail { flex: 1; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--inset); }
#no-code .mail-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--accent); }
#no-code .mail-top .mail-next { margin-left: auto; color: var(--ink-muted); }
#no-code .mail-meta { margin: 0; display: grid; gap: 4px; }
#no-code .mail-meta > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; align-items: baseline; }
#no-code .mail-meta dt, #no-code .mail-meta dd { margin: 0; }
#no-code .mail-meta dd { font-size: 13px; font-weight: 500; }
#no-code .mail-table { min-width: 0; }
#no-code .mail-table th, #no-code .mail-table td { padding: 9px 8px; }
#no-code .mail-table thead th { letter-spacing: 0.04em; }
#no-code .mail-body { margin: 2px 0 0; font-size: 13px; color: var(--ink-muted); }
#no-code .nc-mail .mail-foot { margin: auto 0 0; color: var(--ink-muted); }

#no-code .ask-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding-top: 12px; border-top: 1px solid var(--line); }
#no-code .ask-sum { flex: 1 1 220px; min-width: 0; }
#no-code .rpt-chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* Not this. This. */
#no-code .nt { padding: 16px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 761px) { #no-code .nt { padding: 24px; } }
#no-code .nt .strong { margin: 0; }
#no-code .nt-cols { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#no-code .nt-hd { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); gap: 0 8px; }
#no-code .nt-hd .kicker:first-child { color: var(--ink-muted); }
#no-code .nt-hd .kicker:last-child { grid-column: 3; color: var(--ok-ink); }
#no-code .nt-list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; }
#no-code .nt-list li { flex: 1 1 0; max-height: 84px; min-height: 48px; display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); align-items: stretch; gap: 0 8px; }
#no-code .nt-list li > * { display: flex; align-items: center; min-width: 0; }
#no-code .nt-list s { text-decoration: none; position: relative; padding: 0 10px; border: 1px dashed #cfc8b9; border-radius: var(--radius); background: var(--inset); font: 500 12px/1.3 var(--font-mono); color: #4f4b44; overflow-wrap: anywhere; }
/* the site's cut line, on every back-end name */
#no-code .nt-list s::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1.5px; background: var(--warn); opacity: .7; transform: rotate(-4.5deg); pointer-events: none; }
#no-code .nt-list svg { justify-self: center; align-self: center; color: var(--accent); }
#no-code .nt-y { padding: 0 10px; border-radius: var(--radius); background: var(--accent-soft); font: 700 14px/1.3 var(--font-body); color: var(--ink); }
#no-code .nt-cap { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }

#no-code .nc-chips { list-style: none; margin: clamp(24px, 3vw, 36px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
#no-code .nc-chips li { font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.03em; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-muted); background: var(--panel); }
#no-code .nc-note { margin-top: 14px; color: var(--ink-muted); }

/* Reduced motion: no typing, cycling, shimmer or caret. Pills still switch instantly. */
@media (prefers-reduced-motion: reduce) {
  #no-code .out { transition: none; transform: none; }
  #no-code .b-t i { transition: none; }
  #no-code .out.is-on .b-t i { transform: scaleX(1); }
  #no-code .ask-caret, #no-code .build, #no-code .ask .pill::after { display: none !important; }
  #no-code .ask.pre .typed, #no-code .ask.pre .out.is-on { opacity: 1; }
}

/* ================= 9. ATLAS IQ NO-CODE (night) ================= */
#atlas-no-code .ncn-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin: 4px 0 36px; }
#atlas-no-code .ncn-head .huge-atlas { font-size: min(27vw, 9rem); }
#atlas-no-code .ncn-head .ln { display: block; }
#atlas-no-code .ncn-lede { max-width: 40ch; }
#atlas-no-code .ncn-lede .tiny { color: var(--night-muted); }
@media (min-width: 880px) {
  #atlas-no-code .ncn-head { grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: clamp(32px, 6vw, 96px); margin-bottom: 56px; }
  #atlas-no-code .ncn-head .huge-atlas { font-size: clamp(7rem, 1rem + 12.5vw, 15rem); }
  #atlas-no-code .ncn-lede { padding-bottom: 1.4vw; }
}
#atlas-no-code .chip { background: var(--night-raised); color: var(--night-text); border-color: var(--night-line); white-space: nowrap; }
#atlas-no-code .chip-ok { background: var(--glow-soft); color: var(--glow); border-color: transparent; }

#atlas-no-code .ncn-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 880px) { #atlas-no-code .ncn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; } }
#atlas-no-code .ncn-card { padding: 20px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 880px) { #atlas-no-code .ncn-card { padding: 28px; } }
#atlas-no-code .ncn-card .strong { margin: 0; }
#atlas-no-code .ncn-step { color: var(--glow); }
#atlas-no-code .ncn-card .tiny, #atlas-no-code .ncn-portal .tiny { color: var(--night-muted); }

/* Agent builder */
#atlas-no-code .agent { background: linear-gradient(180deg, rgba(95,184,159,.07), transparent 38%), var(--night-surface); border-color: rgba(95,184,159,.28); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 60px -26px rgba(95,184,159,.5), 0 0 0 1px rgba(95,184,159,.05); }
#atlas-no-code .ag-box { margin-top: 6px; flex: 1; display: flex; flex-direction: column; gap: 14px; background: var(--night-raised); border: 1px solid var(--night-line); border-radius: 12px; padding: 14px; }
#atlas-no-code .ncn-ag-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--night-line); }
#atlas-no-code .ncn-ag-top .mark-quill { width: 12px; color: var(--glow); }
#atlas-no-code .ag-title { font: italic 400 22px/1 var(--font-atlas); letter-spacing: -0.02em; }
#atlas-no-code .ag-state { margin-left: auto; color: var(--night-muted); }
#atlas-no-code .ag-form { margin: 0; display: grid; gap: 12px; }
#atlas-no-code .ag-f { display: grid; gap: 6px; margin: 0; }
#atlas-no-code .ag-f dt, #atlas-no-code .ag-f dd { margin: 0; }
#atlas-no-code .ag-input { background: var(--night); border: 1px solid var(--night-line); border-radius: 8px; padding: 9px 12px; font-size: 13.5px; line-height: 1.5; color: var(--night-text); }
#atlas-no-code .ag-area { color: var(--night-muted); }
#atlas-no-code .ag-select { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#atlas-no-code .ag-select svg { color: var(--night-muted); flex: none; }
#atlas-no-code .ag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#atlas-no-code .ag-log { margin: auto 0 0; padding: 9px 12px; border-radius: 8px; background: var(--night); border: 1px solid var(--night-line); font: 400 11.5px/1.5 var(--font-mono); color: var(--night-muted); overflow-wrap: anywhere; }
#atlas-no-code .ag-log span { color: var(--glow); margin-right: 6px; }

/* Digital twin card */
#atlas-no-code .tw-copy { max-width: 46ch; }
#atlas-no-code .tw-pair { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); align-items: center; gap: 0; margin: 6px 0 2px; }
#atlas-no-code .tw-n { border: 1px solid var(--night-line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; background: var(--night-raised); min-width: 0; }
#atlas-no-code .tw-n .kicker { color: var(--night-muted); }
#atlas-no-code .tw-n b { font: 500 12px/1.35 var(--font-mono); overflow-wrap: anywhere; }
#atlas-no-code .tw-n-a { border-color: var(--glow); box-shadow: 0 0 0 1px rgba(95,184,159,.25), 0 0 32px -6px rgba(95,184,159,.45); }
#atlas-no-code .tw-n-a .kicker, #atlas-no-code .tw-n-a b { color: var(--glow); }
#atlas-no-code .tw-l { position: relative; height: 0; border-top: 1px dashed var(--glow); }
#atlas-no-code .tw-l::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px 1px var(--glow); animation: ncn-tw-go 2.6s var(--ease) infinite; }
@keyframes ncn-tw-go { 0% { transform: translateX(0); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateX(29px); opacity: 0; } }
#atlas-no-code .ncn-persona { margin-top: 4px; padding: 14px 16px; border: 1px solid var(--night-line); border-radius: 12px; background: var(--night-raised); }
#atlas-no-code .ncn-persona dl { margin: 0; }
#atlas-no-code .ncn-persona dl > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--night-line); font: 400 12px/1.6 var(--font-mono); }
#atlas-no-code .ncn-persona dl > div:first-child { border-top: 0; padding-top: 0; }
#atlas-no-code .ncn-persona dl > div:last-child { padding-bottom: 0; }
#atlas-no-code .ncn-persona dt { color: var(--night-muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding-top: 2px; }
#atlas-no-code .ncn-persona dd { margin: 0; }
#atlas-no-code .ncn-persona dl > div:first-child dd { color: var(--glow); }
#atlas-no-code .ncn-builder { margin-top: 4px; }
#atlas-no-code .ncn-builder .kicker { color: var(--night-muted); margin: 0 0 4px; }
#atlas-no-code .ncn-skills { list-style: none; margin: 0; padding: 0; }
/* .sw / .sw-k / .sw-t keep the homepage switch styles and the a.js toggle; only the row height differs here. */
#atlas-no-code .ncn-skills .sw { min-height: 48px; }
#atlas-no-code .ncn-skills li:first-child .sw { border-top: 0; }
#atlas-no-code .ncn-note { margin-top: 8px; }

/* Teach a portal by showing it once */
#atlas-no-code .ncn-portal { margin-top: 12px; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 880px) { #atlas-no-code .ncn-portal { margin-top: 14px; padding: 28px; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 40px; align-items: center; } }
#atlas-no-code .np-head { display: grid; gap: 6px; align-content: start; }
#atlas-no-code .np-head .strong { margin: 0; }
#atlas-no-code .np-head .tiny { max-width: 34ch; }
#atlas-no-code .np-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
#atlas-no-code .np-steps li { position: relative; padding: 14px 16px; border: 1px solid var(--night-line); border-radius: 12px; background: var(--night-raised); display: grid; gap: 4px; }
#atlas-no-code .np-steps b { font: 500 12px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
#atlas-no-code .np-steps .tiny { max-width: 30ch; }
#atlas-no-code .np-n { font: 500 var(--t-2xs)/1 var(--font-mono); letter-spacing: .14em; color: var(--glow); }
#atlas-no-code .np-go { border-color: var(--glow); background: linear-gradient(180deg, rgba(95,184,159,.12), var(--night-raised)); box-shadow: 0 0 0 1px rgba(95,184,159,.25), 0 0 36px -8px rgba(95,184,159,.45); }
#atlas-no-code .np-go b { color: var(--glow); }
#atlas-no-code .np-steps li:not(:last-child)::after { content: ""; position: absolute; left: 24px; bottom: -11px; width: 1px; height: 10px; background: var(--glow); opacity: .6; }
@media (min-width: 640px) {
  #atlas-no-code .np-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  #atlas-no-code .np-steps li:not(:last-child)::after { left: auto; right: -29px; bottom: auto; top: 50%; width: 28px; height: 1px; }
}
#atlas-no-code .ncn-gov { margin: 28px 0 0; display: flex; align-items: center; gap: 10px; color: var(--night-muted); padding-top: 18px; border-top: 1px solid var(--night-line); }
#atlas-no-code .ncn-gov .mark-quill { width: 9px; color: var(--glow); }

@media (prefers-reduced-motion: reduce) {
  #atlas-no-code .tw-l::before { animation: none; opacity: 1; left: 50%; }
}

/* ============ TITLES PREVIEW: headline refresh + head layout fix ============ */
/* Squeeze fix. The two-column section heads used `grid-template-columns: auto minmax(0, 1fr)`:
   the giant word's column grew to its full max-content width and the lede got whatever was left
   (97px at 1440, 0px at 1920 for the Native head). Flex-wrap instead: the lede keeps at least
   20rem beside the giant word, or drops below it at full width when there is no room. */
@media (min-width: 880px) {
  .native-head, .vx-head, .twin-head, .gov-head, .where-head, .sec-head, .r2v-head, .tla-head,
  #atlas-no-code .ncn-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px clamp(32px, 6vw, 96px);
  }
  .native-head > :first-child, .vx-head > :first-child, .twin-head > :first-child, .gov-head > :first-child,
  .where-head > :first-child, .sec-head > :first-child, .r2v-head > :first-child, .tla-head > :first-child,
  #atlas-no-code .ncn-head > :first-child { flex: 0 0 auto; max-width: 100%; }
  .native-head > :not(:first-child), .vx-head > :not(:first-child), .twin-head > :not(:first-child), .gov-head > :not(:first-child),
  .where-head > :not(:first-child), .sec-head > :not(:first-child), .r2v-head > :not(:first-child), .tla-head > :not(:first-child),
  #atlas-no-code .ncn-head > :not(:first-child) { flex: 1 1 20rem; min-width: 0; }
}

/* two-line giants */
.native-head .huge-velo .ln, .vx-split .vx-giant .ln, #ed-h .ln { display: block; }

/* Carrier self-serve (inside the copy column) */
#cp-h { font-size: min(13vw, 4.4rem); }
@media (min-width: 880px) { #cp-h { font-size: clamp(3rem, 5.8vw, 5.3rem); } }

/* Your [Freight] Agents. : editor's insertion */
#fa-h { font-size: min(10.6vw, 5rem); padding-top: .8em; }
@media (min-width: 880px) { .vx-fa .vx-head #fa-h { font-size: clamp(3.4rem, 6.1vw, 7.2rem); } }
.fa-ins { position: relative; z-index: 1; display: inline-block; width: .3em; height: 1em; vertical-align: baseline; }
.fa-caret { position: absolute; left: 50%; bottom: -.17em; width: .42em; height: .3em; transform: translateX(-50%); overflow: visible; fill: none; stroke: var(--warn-ink); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.fa-note { position: absolute; left: 50%; bottom: .54em; transform: translateX(-38%) rotate(-6deg); transform-origin: left bottom; white-space: nowrap; font: 600 .76em/1 "Caveat", "Segoe Print", "Bradley Hand", cursive; letter-spacing: 0; text-transform: none; color: var(--warn-ink); }

/* EDI and APIs, your way. (inside the copy column) */
#ed-h { font-size: min(12.5vw, 5rem); }
@media (min-width: 880px) { #ed-h { font-size: clamp(2.6rem, 4.6vw, 4.2rem); } }

/* Splits. */
@media (min-width: 880px) { #agent-network .vx-head #ag-h { font-size: clamp(5rem, 11.5vw, 11rem); } }

/* Integrations. */
#int-h { font-size: min(10.8vw, 5.6rem); }
@media (min-width: 880px) { #integrations .vx-head #int-h { font-size: clamp(3.4rem, 6.2vw, 7rem); } }

/* Rail Reservations. (Truckload section) */
#tl-h { font-size: 17.5vw; }
@media (min-width: 880px) { .tla-head #tl-h { font-size: clamp(4.5rem, 9.8vw, 12rem); } }

/* Atlas IQ hero: "Brokerage, / simplified." two lines on phones, one line from 880px so it sits where "Rail Reservations." did */
.ha-stage { --hf: min(21vw, 5.5rem); }
#ha-h { font-size: var(--hf); }
#ha-h .ln { display: block; }
.ha-stage #ha-h ~ .ha-cardwrap { margin-top: calc(var(--hf) * .2); }
@media (min-width: 880px) {
  .ha-stage { --hf: clamp(4.4rem, 11.2vw, 11.2rem); }
  .ha-back#ha-h .ln { display: inline; }
  .ha-stage #ha-h ~ .ha-cardwrap { margin-top: calc(var(--hf) * -.14); }
}

/* Keep the plural "s" lowercase so "APIs" doesn't read as "APIS" in the all-caps headline */
#ed-h .lc { text-transform: none; }

/* "Border to border." map backdrop: slightly more visible than live (.055) */
.bmap-type .huge-atlas { opacity: .13; }

/* Split credit. (two lines) */
#ag-h .ln { display: block; }

/* Sales rep + agent commission split, below the credit-line card */
#agent-network .rc-head { margin: clamp(48px, 7vw, 88px) 0 18px; max-width: 52ch; }
#agent-network .rc-head .strong { margin: 0 0 8px; }
#agent-network .rc-head .tiny { margin: 0; }
#agent-network .rc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
#agent-network .rc-row { display: grid; gap: 8px; }
#agent-network .rc-role { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; }
#agent-network .rc-pool { font: 900 clamp(1.15rem, 1rem + .6vw, 1.5rem)/1 var(--font-velo); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#agent-network .rc-bar { position: relative; height: 14px; border-radius: 4px; background: var(--ink); overflow: hidden; }
#agent-network .rc-bar i { position: absolute; inset: 0 auto 0 0; width: var(--a); background: var(--accent); border-right: 2px solid var(--panel, #fff); }
#agent-network .rc-ppl { display: flex; justify-content: space-between; gap: 12px; margin: 0; font: 400 13px/1.35 var(--font-body); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
#agent-network .rc-ppl span:last-child { text-align: right; }
#agent-network .rc-ppl b { color: var(--ink); font-weight: 700; }
