/* Shared design system for the service pages (/ai, /portals, /devops,
 * /telecom). Same palette and typographic scale as /untangle, factored
 * out so four pages do not carry four drifting copies of it.
 *
 * Page sources: designs/services/*.html - built by scripts/build_services.py.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Aligned to the home page (www-root/index.html + the Webflow bundle):
     same dark surface, card border, muted tone, blue and body colour, so a
     visitor moving from the home page to a service or market page stays in
     one design system rather than two. */
  --blue:      #0D38D8;   /* .button on the home page */
  --ink:       #0f1118;   /* .team-rectangles dark surface */
  --ink-line:  #37383f;   /* card border on the dark surface */
  --ink-muted: #b1b2b8;   /* .callout / .text-14 muted label */
  --navy:      #14151c;   /* .contact_button ink - headings on light */
  --yellow:    #FFBD59;   /* accent, as on the home page's contact heading */
  --white:     #FFFFFF;
  --light:     #E8E6E6;
  --gray:      #F7F7F9;
  --text:      #373946;   /* .text-7 body on light */
  --muted:     #6b6b7b;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* the shared site navbar is position:fixed and overlays the page -
     offset the flow by its rendered height (86-93px across widths) */
  padding-top: 86px;
}
@media (max-width: 860px) { body { padding-top: 93px; } }
@media (max-width: 478px) { body { padding-top: 77px; } }

code, .mono {
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(13, 56, 216, 0.07);
  color: var(--blue);
  padding: 1px 6px;
  border-radius: 4px;
}
.on-dark code, .on-dark .mono {
  background: rgba(255, 189, 89, 0.14);
  color: var(--yellow);
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: Lato, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.btn:hover { background: #0a2eb0; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
  transform: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.btn-row .btn { text-align: center; }

/* ── HERO ── */
.hero-outer { background: var(--ink); }
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 92px 60px 84px;
  display: grid;
  grid-template-columns: 1fr 400px;
  column-gap: 72px;
  row-gap: 40px;
  align-items: start;
}
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker::before { content:''; width:28px; height:2px; background:var(--yellow); display:inline-block; }
.hero h1 {
  font-family: Lato, sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.4px;
  color: var(--white);
  margin-bottom: 26px;
}
.hero h1 em { font-style: normal; color: var(--yellow); }
.lede {
  font-size: 16px;
  color: rgba(255,255,255,0.68);
  line-height: 1.78;
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-note { margin-top: 18px; font-size: 11.5px; color: rgba(255,255,255,0.5); letter-spacing: 0.3px; }

/* proof panel — what we already run, stated plainly */
.proof-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  padding: 30px 28px;
}
.proof-card-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}
.proof-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.proof-list li {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.62;
  padding-left: 16px;
  position: relative;
}
.proof-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.proof-list strong { color: rgba(255,255,255,0.9); font-weight: 700; }

/* ── FIT BADGE ──
 * Every market page states how well our record actually fits that market,
 * using the capability register's four ratings. This is not decoration:
 * a market we would ramp into must never read as one we have shipped, and
 * scripts/check_pages.py fails any market page that carries no badge.
 */
.fit {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 30px;
}
.fit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, 0.03);
  max-width: 430px;
}
.fit-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; margin-top: 6px;
}
.fit-rating {
  display: block;
  font-family: Lato, sans-serif;
  font-size: 15px; font-weight: 700; color: var(--white);
  letter-spacing: 0.2px;
}
.fit-scope { display: block; font-size: 12.5px; color: var(--ink-muted); line-height: 1.55; margin-top: 3px; }

.fit-shipped  .fit-dot { background: #5de08a; }
.fit-adjacent .fit-dot { background: var(--yellow); }
.fit-learning .fit-dot { background: #7aa2ff; }
.fit-no       .fit-dot { background: #ff7070; }

/* Same badge on a light surface, for the markets index rows. */
.fit-item.on-light {
  border-color: var(--light);
  background: var(--white);
}
.fit-item.on-light .fit-rating { color: var(--navy); }
.fit-item.on-light .fit-scope { color: var(--muted); }

/* ── MARKETS INDEX ── */
.market-group { margin-top: 44px; }
.market-group > h3 {
  font-family: Lato, sans-serif;
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin-bottom: 6px;
}
.market-group > p { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 720px; }
.market-list { list-style: none; margin-top: 20px; border-top: 1px solid var(--light); }
.market-row {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 28px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--light);
}
.market-row h4 { margin: 0 0 4px; font-family: Lato, sans-serif; font-size: 17px; font-weight: 700; }
.market-row h4 a { color: var(--navy); text-decoration: none; }
.market-row h4 a:hover { color: var(--blue); }
.market-row p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.market-row .fit-item { padding: 9px 13px; max-width: none; }
.market-row .fit-item + .fit-item { margin-top: 8px; }
.market-row .fit-scope { font-size: 12px; }
.market-row .fit-rating { font-size: 13px; }
.market-row .fit-dot { width: 8px; height: 8px; margin-top: 5px; }
@media (max-width: 700px) {
  .market-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ── BRIDGE ── */
.bridge {
  background: var(--blue);
  padding: 20px 60px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
.bridge strong { color: var(--yellow); font-weight: 800; }

/* ── SECTION SHELL ── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 78px 60px; }
.section-gray { background: var(--gray); }
.section-dark { background: var(--ink); }
.label {
  font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.label::before { content:''; width:24px; height:2px; background:var(--blue); display:inline-block; }
.label.on-dark { color: var(--ink-muted); }
.label.on-dark::before { background: var(--ink-muted); }
h2.title {
  font-family: Lato, sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 18px;
}
h2.title em { font-style: normal; color: var(--blue); }
h2.title.on-dark { color: var(--white); }
h2.title.on-dark em { color: var(--yellow); }
.section-intro { font-size: 15px; line-height: 1.78; max-width: 720px; color: var(--text); }
.section-intro.on-dark { color: rgba(255,255,255,0.62); }
.section-intro + .section-intro { margin-top: 14px; }

/* ── CARD GRID ── */
.cards { display: grid; gap: 20px; margin-top: 44px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: 12px;
  padding: 30px 26px;
}
.section-gray .card { background: var(--white); }
.card-num {
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.card h3 {
  font-family: Lato, sans-serif;
  font-size: 17px; font-weight: 700; color: var(--navy);
  margin-bottom: 10px; line-height: 1.35;
}
.card p { font-size: 13.5px; color: var(--muted); line-height: 1.68; }
.card p + p { margin-top: 10px; }
.card ul { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.card li {
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
  padding-left: 14px; position: relative;
}
.card li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--yellow);
}

.card.dark {
  background: rgba(255,255,255,0.03);
  border-color: var(--ink-line);
}
.card.dark h3 { color: var(--white); }
.card.dark p, .card.dark li { color: rgba(255,255,255,0.5); }
.card.dark .card-num { color: var(--yellow); }

/* ── FINDINGS (a measured thing, stated as found) ── */
.finds { display: flex; flex-direction: column; gap: 2px; margin-top: 44px; }
.find {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ink-line);
  padding: 26px 28px;
}
.find:first-child { border-radius: 10px 10px 0 0; }
.find:last-child  { border-radius: 0 0 10px 10px; }
.find-tag {
  display: inline-block;
  font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--navy); background: var(--yellow);
  padding: 3px 9px; border-radius: 3px; margin-bottom: 12px;
}
.find h3 {
  font-family: Lato, sans-serif;
  font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px;
}
.find p { font-size: 13.5px; color: rgba(255,255,255,0.55); line-height: 1.7; }
.find strong { color: rgba(255,255,255,0.88); }

/* ── DEFINITION ROWS (area | what that means here) ── */
.rows { margin-top: 40px; border-top: 1px solid var(--light); }
.row-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--light);
  align-items: start;
}
.row-item dt {
  font-family: Lato, sans-serif;
  font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.4;
}
.row-item dd { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.row-item dd strong { color: var(--navy); }
.rows.on-dark { border-top-color: rgba(255,255,255,0.1); }
.rows.on-dark .row-item { border-bottom-color: rgba(255,255,255,0.1); }
.rows.on-dark dt { color: var(--white); }
.rows.on-dark dd { color: rgba(255,255,255,0.55); }
.rows.on-dark dd strong { color: rgba(255,255,255,0.88); }

/* ── NUMBERED METHOD ── */
.steps { display: flex; flex-direction: column; gap: 0; margin-top: 40px; }
.step {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--light);
}
.step:last-child { border-bottom: none; }
.step-n {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.step h4 {
  font-family: Lato, sans-serif;
  font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px;
}
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.step p strong { color: var(--navy); }

/* ── PULL QUOTE ── */
.pull {
  margin-top: 40px;
  padding: 26px 30px;
  border-left: 3px solid var(--yellow);
  background: rgba(255,189,89,0.09);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--navy);
}
.pull.on-dark { background: rgba(255,189,89,0.07); color: rgba(255,255,255,0.85); }

/* ── COMMITMENT TABLE ── */
.spec { width: 100%; border-collapse: collapse; margin-top: 40px; }
.spec th {
  text-align: left; font-size: 10px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue);
  padding: 0 0 12px; border-bottom: 2px solid var(--light);
}
.spec td {
  padding: 15px 24px 15px 0;
  border-bottom: 1px solid var(--light);
  font-size: 13.5px; color: var(--muted); line-height: 1.6;
  vertical-align: top;
}
.spec td:first-child { color: var(--navy); font-weight: 600; width: 46%; }
.spec td strong { color: var(--navy); }

/* On a dark section the light-surface colours above are navy-on-navy -
   the label column and every <strong> disappear. Inverted here rather
   than at the call site so any page can drop a .spec into .section-dark. */
.section-dark .spec th {
  color: var(--yellow);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}
.section-dark .spec td {
  color: rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.section-dark .spec td:first-child { color: var(--white); }
.section-dark .spec td strong { color: rgba(255, 255, 255, 0.9); }

/* ── WHAT WE DON'T SELL ── */
.nosell { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.nosell-item {
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  padding: 26px 24px;
  background: rgba(255,255,255,0.03);
}
.nosell-item h3 {
  font-family: Lato, sans-serif;
  font-size: 17px; font-weight: 700; color: var(--white);
  margin-bottom: 9px; line-height: 1.4;
}
.nosell-item h3::before {
  content: '\00d7';
  color: var(--yellow);
  font-weight: 800;
  margin-right: 9px;
}
.nosell-item p { font-size: 13px; color: rgba(255,255,255,0.52); line-height: 1.7; }

/* ── CROSS-LINKS TO THE OTHER SERVICE PAGES ── */
.crosslinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.crosslink {
  display: block;
  border: 1px solid var(--light);
  border-radius: 10px;
  padding: 22px 22px;
  text-decoration: none;
  background: var(--white);
  transition: border-color 0.15s, transform 0.12s;
}
.crosslink:hover { border-color: var(--blue); transform: translateY(-2px); }
.crosslink span {
  display: block;
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.crosslink strong {
  display: block;
  font-family: Lato, sans-serif;
  font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 7px;
}
.crosslink em { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── FORM ── */
.form-outer { background: var(--gray); }
.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.form-left-head p { font-size: 15px; color: var(--text); line-height: 1.78; margin-top: 16px; }
.trust-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.trust-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; color: var(--navy);
}
.trust-list li svg { color: var(--blue); flex-shrink: 0; }
.form-box {
  background: var(--white);
  border-radius: 12px;
  padding: 38px 34px;
  box-shadow: 0 2px 32px rgba(8,8,53,0.07);
}
.form-box h3 {
  font-family: Lato, sans-serif;
  font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px;
}
.form-sub { font-size: 13px; color: #888; margin-bottom: 24px; line-height: 1.5; }
.form-group { margin-bottom: 15px; }
.form-group label {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--navy); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--light); border-radius: 6px;
  font-family: 'Montserrat', sans-serif; font-size: 13px;
  color: var(--navy); background: var(--white);
  outline: none; transition: border-color 0.15s;
}
.form-group textarea { min-height: 104px; resize: vertical; line-height: 1.6; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-box .btn { width: 100%; text-align: center; margin-top: 8px; padding: 15px; }
.form-disclaimer { font-size: 11px; color: #bbb; text-align: center; margin-top: 14px; line-height: 1.5; }
.form-done {
  margin-top: 16px; padding: 16px 18px; border-radius: 8px;
  background: rgba(13, 56, 216, 0.06); border: 1.5px solid var(--blue);
  color: var(--blue); font-size: 14px; font-weight: 600; text-align: center;
}
.form-fail {
  margin-top: 16px; padding: 16px 18px; border-radius: 8px;
  background: rgba(211, 47, 47, 0.06); border: 1.5px solid #d32f2f;
  color: #d32f2f; font-size: 14px; font-weight: 600; text-align: center;
}

/* ── FOOTNOTE ── */
.footnote-outer { background: var(--ink); }
.footnote {
  max-width: 1100px; margin: 0 auto; padding: 26px 60px;
  font-size: 11.5px; line-height: 1.75; color: rgba(255,255,255,0.46);
}
.footnote a { color: rgba(255,255,255,0.6); }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; row-gap: 40px; }
  .lede { max-width: none; }
  .proof-card { max-width: 560px; }
  .cards.c4 { grid-template-columns: repeat(2, 1fr); }
  .cards.c3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding: 62px 24px 66px; }
  .wrap { padding: 56px 24px; }
  .bridge { padding: 16px 24px; }
  .footnote { padding: 24px 24px; }
  .cards.c2, .cards.c3, .cards.c4 { grid-template-columns: 1fr; }
  .nosell, .crosslinks { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; gap: 40px; }
  .row-item { grid-template-columns: 1fr; gap: 8px; }
  .spec td:first-child { width: auto; }
}
@media (max-width: 560px) {
  .hero { padding: 46px 20px 54px; }
  .wrap { padding: 44px 20px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; padding: 16px 20px; }
  .card, .find, .nosell-item, .proof-card { padding: 24px 20px; }
  .form-box { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .spec td { display: block; padding: 8px 0; border-bottom: none; }
  .spec tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--light); }
  .section-dark .spec tr { border-bottom-color: rgba(255, 255, 255, 0.1); }
  .spec thead { display: none; }
}
