/* Run Rail landing: page CSS. Only what sits inside a visual, plus the few layout rules the
   client's fixed copy needs. Tokens, grid, type, buttons, nav and footer come from assets/system.css. */

/* the logo: the client's own file, never redrawn */
.rr-logo { display: block; height: 34px; width: auto; }
.rr-logo--lg { height: 48px; }

/* the one coloured word of the page, in the logo's rail teal */
.hero h1 em { font-style: normal; color: var(--accent); }

/* heads */
.rr-head-wide { max-width: 1040px; }
.rr-head { margin-bottom: var(--s-7); }
.rr-head h2 { margin: 0; }
.rr-head > p { margin: 0; align-self: end; }

/* ---------------------------------------------------------------- hero window */
.hero--centred .hero__window { background: linear-gradient(180deg, #cfe3e4 0%, #dcebea 55%, #eaf2f1 100%); }
.rw { background: #fff; color: #14181b; border-radius: 14px; overflow: hidden; text-align: left;
      font: 400 14px/1.45 var(--font-text);
      box-shadow: 0 0 0 1px rgb(20 24 27 / .08), 0 30px 70px -34px rgb(20 60 68 / .55); }
.rw__bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid rgb(20 24 27 / .08); font-size: 13px; color: #606466; }
.rw__bar b { font-weight: 500; color: #14181b; }
.rw__sp { flex: 1; }
.rw__dots { display: flex; gap: 6px; } .rw__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfe5e5; }
.rw__body { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 380px; }
.rw__acct { padding: 18px 18px; border-right: 1px solid rgb(20 24 27 / .08); background: #f6f8f8; }
.rw__label { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: #1f6f7c; }
.rw__acct dl { margin: 0; display: grid; }
.rw__acct dl > div { padding: 9px 0; border-top: 1px solid rgb(20 24 27 / .08); }
.rw__acct dt { font-size: 13px; color: #606466; }
.rw__acct dd { margin: 0; font-weight: 500; }
.rw__chat { display: grid; gap: 10px; align-content: start; padding: 18px 20px; }
.rw__msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; }
.rw__msg--me { justify-self: end; background: #14181b; color: #f6f8f8; border-bottom-right-radius: 6px; }
.rw__msg--bot { background: #e8eeee; border-bottom-left-radius: 6px; }
.rw__tool { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #606466; }
.rw__tool::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #1f6f7c; border-right-color: transparent; }
.rw__acts { display: flex; gap: 8px; }
.rw__acts span { height: 30px; padding: 0 12px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; background: #1f6f7c; color: #f6f8f8; }
.rw__acts span + span { background: none; color: #14181b; box-shadow: inset 0 0 0 1px rgb(20 24 27 / .18); }
@media (max-width: 1023px) { .rw__body { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 639px) {
  .rw__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .rw__acct, .rw__meta, .rw__tool { display: none; }
  .rw__chat { padding: 12px 14px; font-size: 13px; }
}

/* ---------------------------------------------------------------- app frame (sections-library.md, app-frame) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); overflow: hidden; }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
/* the handover summary at the top of the open case */
.rr-summary { margin: 0 0 14px; padding: 14px 16px; border-radius: 12px; background: color-mix(in oklab, #1f6f7c 9%, var(--u-bg)); font-size: 14px; line-height: 1.5; }
.rr-summary p { margin: 0; }
.rr-summary__label { font-size: 13px; font-weight: 500; color: #1f6f7c; margin-bottom: 4px !important; }
.rr-summary ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rr-summary li { font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--u-bg); box-shadow: inset 0 0 0 1px rgb(20 24 27 / .1); }

/* ---------------------------------------------------------------- the shift */
.rr-shift__col { padding: var(--s-6) var(--s-7) var(--s-5); border-radius: var(--r-lg); }
.rr-shift__col--old { background: var(--g-alt, var(--p-surface)); color: var(--muted); }
.rr-shift__col--new { background: var(--p-ink); color: var(--p-bg); }
.rr-shift__col h3 { margin: 0 0 var(--s-3); font: 500 13px/1.3 var(--font-text); letter-spacing: 0; }
.rr-shift__col--new h3 { color: #7fc3cd; }
.rr-shift__col ul { list-style: none; margin: 0; padding: 0; }
.rr-shift__col li { position: relative; min-height: 62px; padding: 9px 0 9px 32px; font-size: 16px; line-height: 1.4; border-top: 1px solid color-mix(in oklab, currentColor 16%, transparent); display: flex; align-items: center; }
.rr-shift__col li::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: currentColor;
  -webkit-mask: var(--rr-ico) center / contain no-repeat; mask: var(--rr-ico) center / contain no-repeat; }
.rr-shift__col--old li::before { --rr-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 5l8 8M13 5l-8 8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); opacity: .6; }
.rr-shift__col--new li::before { --rr-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.4l3.2 3.2L14 5.6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background: #7fc3cd; }

/* ---------------------------------------------------------------- capabilities */
#capabilities .panel { --p-h: 250px; }
#capabilities .card > p { font-size: 16px; }
.rr-row2 { display: flex; flex-direction: column; gap: var(--s-7); }
.rr-marquee { font: var(--display-weight) clamp(28px, 3.2vw, 44px)/1.1 var(--font-display); letter-spacing: var(--display-tracking); color: var(--muted); }
.rr-brand ul { list-style: none; margin: 0; padding: 4px 16px 10px; }
.rr-brand li { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; border-top: 1px solid var(--u-line); font-size: 14px; color: var(--u-muted, #606466); }
.rr-brand li:first-child { border-top: 0; }
.rr-brand b { font-weight: 500; color: var(--u-ink, #14181b); }
.rr-brand__sw { display: flex; gap: 6px; }
.rr-brand__sw i { width: 18px; height: 18px; border-radius: 50%; background: #1f6f7c; box-shadow: inset 0 0 0 1px rgb(20 24 27 / .12); }
.rr-brand__sw i + i { background: #14181b; } .rr-brand__sw i + i + i { background: #e8eeee; }
@media (max-width: 639px) { #capabilities .panel { --p-h: 200px; } }

/* ---------------------------------------------------------------- AI band */
.rr-ai__lead { display: flex; flex-direction: column; gap: var(--s-5); }
.rr-ai__lead h2, .rr-ai__lead p { margin: 0; }
.rr-trace { margin-top: var(--s-4); width: 100%; }
.rr-trace ol { list-style: none; margin: 0; padding: 4px 16px 10px; counter-reset: t; }
.rr-trace li { counter-increment: t; display: flex; align-items: center; gap: 12px; height: 42px; border-top: 1px solid var(--u-line); font-size: 14px; }
.rr-trace li:first-child { border-top: 0; }
.rr-trace li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4fa5b2; flex: none; }
.rr-trace li span { flex: 1; }
.rr-trace time { font: 400 13px/1 var(--font-mono); color: var(--u-muted, #979a9c); }
.rr-points { list-style: none; margin: 0; padding: 0; display: grid; }
.rr-points > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: var(--s-5) 0; border-top: 1px solid color-mix(in oklab, currentColor 16%, transparent); }
.rr-points > li:first-child { padding-top: 0; border-top: 0; }
.rr-points > li:last-child { padding-bottom: 0; }
.rr-points__n { font: 400 13px/26px var(--font-mono); color: #7fc3cd; }
.rr-points h3 { margin: 0 0 6px; font: 500 18px/1.35 var(--font-text); letter-spacing: 0; }
.rr-points p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------------------------------------------------------------- team */
.rr-cred { align-items: stretch; }
.rr-cred__card { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); min-height: 300px; padding: var(--s-6); }
.rr-cred__card p { margin: 0; }
.rr-cred__card .t-stat { font-size: clamp(40px, 4.4vw, 64px); line-height: 1; color: var(--accent); }
.rr-cred__card .rr-cred__words { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; }

/* ---------------------------------------------------------------- contact */
.rr-talk { display: flex; flex-direction: column; gap: var(--s-5); }
.rr-talk h2, .rr-talk p { margin: 0; }
.rr-contact { margin: var(--s-4) 0 0; display: grid; }
.rr-contact > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); padding: 14px 0; border-top: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); }
.rr-contact dt { font-size: 14px; color: var(--muted); }
.rr-contact dd { margin: 0; font-weight: 500; }
.rr-formbox { background: var(--g-alt, var(--p-surface)); border-radius: var(--r-lg); padding: var(--s-7); }
.rr-form2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.rr-formbox select, .rr-formbox textarea { width: 100%; font: inherit; }
@media (max-width: 639px) { .rr-form2 { grid-template-columns: minmax(0, 1fr); } .rr-formbox { padding: var(--s-5); } }

/* ---------------------------------------------------------------- fixes after the first shots */
/* the lit ground behind UI, turned from the kit's sky blue to the logo's rail teal */
html[data-ground="sky"] { --ground-bg: #c3dadb; --ground-surface: #d6e6e6; --ground-ink: #14282c; --ground-muted: #45595c; --ground-accent: #1f6f7c; }
/* the client's headline on two lines, so the window keeps its room */
.hero--centred h1 { max-width: 20ch; }
/* a two-screen section's rows never grow past the wrap */
#capabilities > .wrap { grid-template-columns: minmax(0, 1fr); }
#capabilities .group, .rr-row2 { min-width: 0; }

/* ---------------------------------------------------------------- second round */
#capabilities .panel { --p-h: 310px; }
#capabilities .card > p { min-height: 104px; }
.rr-marquee { font-size: clamp(32px, 4vw, 56px); }
.rr-trace li { height: 50px; font-size: 15px; }
.rr-cred__card { min-height: 380px; }
.rr-cred__card .t-stat { white-space: normal; }
.rr-cred__card .rr-cred__words { font-size: clamp(26px, 2.5vw, 36px); }
.footer .nav__logo img.rr-logo--lg { height: 44px; }
.nav__logo img.rr-logo { height: 30px; }
.rr-formbox .field textarea { min-height: 132px; }
@media (max-width: 639px) { #capabilities .panel { --p-h: 200px; } #capabilities .card > p { min-height: 0; } .rr-cred__card { min-height: 0; } }
.rr-cred__card .t-stat.rr-cred__words { white-space: normal !important; overflow-wrap: anywhere; max-width: 100%; }
.rr-cred__card { overflow: hidden; }
.rr-cred__card .rr-cred__words { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); color: var(--accent); font-size: clamp(28px, 2.7vw, 40px); line-height: 1.08; }

/* ---------------------------------------------------------------- after the gate's first round */
.rr-head > p { align-self: start; padding-top: 6px; }
.rr-shift { align-items: stretch; }
.rr-shift__col .rr-shift__h { margin: 0 0 var(--s-3); }
.rr-shift__col--new .rr-shift__h { color: #7fc3cd; }
.rr-points > li { display: block; }
.rr-points__n { display: block; line-height: 1; margin-bottom: 8px; }
.rr-cred__card { min-height: 260px; }
.rr-cred__card .t-stat { font-size: clamp(34px, 4vw, 60px); }
p.pill { margin: 0; }
.rr-cred__card { min-height: 330px; }
@media (max-width: 639px) { .rr-cred__card { min-height: 0; gap: var(--s-4); } .rr-cred__card .t-stat { font-size: 28px; } .rr-cred__card .rr-cred__words { font-size: 24px; } }
@media (max-width: 1023px) { .rr-points { margin-top: var(--s-7); } }

/* ---------------------------------------------------------------- team placeholders */
.rr-cred__card { min-height: 196px; gap: var(--s-4); padding: var(--s-5) var(--s-6); }
.rr-cred__card .t-stat { font-size: clamp(30px, 3.2vw, 46px); }
.rr-cred__card .rr-cred__words { font-size: clamp(24px, 2.1vw, 30px); }
.rr-people { list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.rr-person { display: grid; gap: 2px; }
.rr-person__photo { position: relative; display: block; width: 100%; height: 190px; margin-bottom: var(--s-3); border-radius: var(--r-lg); object-fit: cover; overflow: hidden;
  background: linear-gradient(160deg, #cfe2e3, #b9d3d5); }
/* a plain head-and-shoulders outline in the rail teal, until the real portrait arrives */
div.rr-person__photo::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 150px; height: 160px; transform: translateX(-50%); background: #1f6f7c; opacity: .32;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 160'%3E%3Ccircle cx='75' cy='52' r='34'/%3E%3Cpath d='M8 160c0-40 30-62 67-62s67 22 67 62z'/%3E%3C/svg%3E") center bottom / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 160'%3E%3Ccircle cx='75' cy='52' r='34'/%3E%3Cpath d='M8 160c0-40 30-62 67-62s67 22 67 62z'/%3E%3C/svg%3E") center bottom / contain no-repeat; }
.rr-person p { margin: 0; }
.rr-person__name { font-weight: 500; }
.rr-person__role { font-size: 14px; color: var(--muted); }
@media (max-width: 1023px) { .rr-people > .rr-person { grid-column: auto / span 6; } }
@media (max-width: 639px) { .rr-person__photo { height: 150px; } div.rr-person__photo::after { width: 118px; height: 126px; } .rr-cred__card { min-height: 0; } }

/* ---------------------------------------------------------------- the word row on tablet and phone */
/* the row stands still and wraps below desktop: smaller type and a tighter gap, so the six words
   stay inside the section, and the section grows with its content instead of spilling into the next */
@media (max-width: 1023px) {
  .rr-marquee { font-size: 22px; }
  .rr-marquee.mo-mq { --mo-gap: 12px 28px; padding-block: 0; }
  .rr-marquee .mo-mq__track { font-size: 22px; gap: 12px 28px; }
  main > section#capabilities, main > section#platform, main > section#ai, main > section#team, main > section#talk { height: auto; min-height: 100svh; }
}
@media (max-width: 1023px) { .rr-marquee .mo-mq__track { font-size: 22px !important; gap: 10px 24px !important; } }

/* ---------------------------------------------------------------- third round (the client's notes) */
/* the six words: one still row across the wrap, drawn with CSS alone, so it holds without script */
.rr-words ul { list-style: none; margin: 0; padding: var(--s-5) 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  border-top: 1px solid color-mix(in oklab, var(--ink) 14%, transparent);
  font: var(--display-weight) clamp(22px, 2.4vw, 34px)/1.15 var(--font-display); letter-spacing: var(--display-tracking); color: var(--muted); }
@media (max-width: 1023px) { .rr-words ul { justify-content: flex-start; font-size: 22px; } }

/* sections end where their content ends: no screen-high gap under a short one */
main > section#team, main > section#talk, main > section#ai { height: auto; min-height: 0; }
main > section#talk { padding-bottom: var(--s-9); }

/* the footer: the close as a head row with an ordinary button, then the links, no stretched gap */
footer.closing { height: auto; min-height: 0; padding-block: var(--s-9) var(--s-6); }
footer.closing > .wrap { display: block; }
.rr-close .section-head--split { align-items: center; gap: var(--s-7); }
.rr-close .section-head--split > div { max-width: 820px; }
.rr-close h2, .rr-close p { margin: 0; }
.rr-close__btn { --btn-h: 56px; height: 56px; padding-inline: 32px; font-size: 18px; flex: none; }
footer.closing .closing__links { margin-top: var(--s-9); }

/* ---------------------------------------------------------------- fourth round (the client's notes) */
/* no loops: every product picture stands still. The hero's tool line is a finished step, not a spinner */
.rw__tool::before { width: 8px; height: 8px; border: 0; background: #1f6f7c; }

/* the network picture, drawn in plain markup */
.rr-net { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto auto; align-content: center; justify-items: center; row-gap: 26px; padding: 20px; font: 500 13px/1.2 var(--font-text); color: #14282c; }
.rr-net svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rr-net__node { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgb(20 24 27 / .08), 0 10px 24px -14px rgb(20 60 68 / .5); white-space: nowrap; }
.rr-net__core { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: 14px; background: #14181b; color: #f6f8f8; font-size: 15px; box-shadow: 0 0 0 4px rgb(31 111 124 / .22); }
.rr-net__lanes { position: relative; display: flex; gap: 12px; }
/* the connecting lines: one down into the core, one down out of it, a bar across the three lanes */
.rr-net__core::before, .rr-net__core::after { content: ""; position: absolute; left: 50%; width: 1.5px; height: 26px; background: #1f6f7c; }
.rr-net__core::before { bottom: 100%; } .rr-net__core::after { top: 100%; height: 13px; }
.rr-net__lanes::before { content: ""; position: absolute; top: -13px; left: 14%; right: 14%; height: 1.5px; background: #1f6f7c; }
.rr-net__lanes .rr-net__node::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1.5px; height: 13px; background: #1f6f7c; }
@media (max-width: 639px) { .rr-net { row-gap: 20px; } .rr-net__node { padding: 0 10px; height: 36px; gap: 6px; } .rr-net__lanes { gap: 8px; }
  .rr-net__core::before { height: 20px; } .rr-net__core::after { height: 10px; } .rr-net__lanes::before { top: -10px; } .rr-net__lanes .rr-net__node::before { height: 10px; } .rr-net__lanes svg { display: none; } }

/* capabilities: the section ends under the word row instead of filling two whole screens */
main > section#capabilities { height: auto; min-height: 0; padding-bottom: var(--s-9); }
#capabilities > .wrap { display: block; }
#capabilities .group { margin-bottom: var(--s-8); }
main > section#platform { height: auto; min-height: 0; padding-bottom: var(--s-9); }
.rr-net__lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rr-net__lanes .rr-net__node { justify-content: center; }
.rr-net__lanes::before { left: calc((100% - 24px) / 6); right: calc((100% - 24px) / 6); }
@media (max-width: 639px) { .rr-net__lanes::before { left: calc((100% - 16px) / 6); right: calc((100% - 16px) / 6); } }
@media (max-width: 639px) { .app .ui-chat__online { display: none; } }
/* two lanes: broadband and mobile */
.rr-net__lanes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rr-net__lanes--2::before { left: calc((100% - 12px) / 4); right: calc((100% - 12px) / 4); }
.rr-net__lanes--2 .rr-net__node { padding: 0 18px; }
@media (max-width: 639px) { .rr-net__lanes--2::before { left: calc((100% - 8px) / 4); right: calc((100% - 8px) / 4); } .rr-net__lanes--2 svg { display: block; } }
