/* SmartRM website. Colours and fonts are in tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font: 17px/1.6 var(--font-body);
}
img, svg { max-width: 100%; }
a { color: var(--c-brand); text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: inherit; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; }
/* The deck's green underline, under a word in a title */
.mark { background: linear-gradient(transparent 80%, var(--c-glow) 80%, var(--c-glow) 92%, transparent 92%); padding: 0 .04em; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 650; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
code { font-family: var(--font-mono); font-size: .9em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--c-brand); color: var(--c-brand-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .01em; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo .tld { color: var(--c-accent); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--c-ink-2); text-decoration: none; font-size: .95rem; padding: 8px 11px; border-radius: var(--radius-sm); }
.nav a:hover { color: var(--c-ink); background: var(--c-surface); }
.nav a[aria-current="page"] { color: var(--c-brand); font-weight: 600; }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 8px 10px; color: var(--c-ink); }
.nav-toggle svg { display: block; width: 22px; height: 22px; }
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-bg); border-bottom: 1px solid var(--c-line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1rem; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  background: var(--c-brand); color: var(--c-brand-ink); font-family: inherit;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--c-brand); border-color: var(--c-brand); }
.btn.light { background: var(--c-glow); color: var(--c-glow-ink); }
.btn.outline-light { background: transparent; color: var(--c-hero-ink); border-color: var(--c-hero-line); }
.nav .btn { color: var(--c-brand-ink); padding: 9px 16px; }
.nav .btn:hover { background: var(--c-brand); color: var(--c-brand-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.alt { background: var(--c-surface); }
.dark { background: var(--c-hero-bg); color: var(--c-hero-ink); }
.dark.cta { background: var(--g-cta); }
.dark p, .dark li { color: var(--c-hero-ink-2); }
.dark a:not(.btn) { color: var(--c-hero-ink); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 14px; }
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--c-glow); }
.lede { font-size: 1.18rem; color: var(--c-ink-2); max-width: 60ch; }
.dark .lede { color: var(--c-hero-ink-2); }
.section-head { max-width: 960px; margin-bottom: 48px; }
.section-head .lede { max-width: none; } /* section intros wrap at the section's width, not a fixed line length */
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { background: var(--g-hero); color: var(--c-hero-ink); padding: 80px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--c-hero-ink); }
.hero .lede { color: var(--c-hero-ink-2); }
.hero .mock { filter: drop-shadow(0 24px 48px rgba(0,0,0,.35)); }
.page-hero { background: var(--g-hero); color: var(--c-hero-ink); padding: 72px 0 64px; }
.page-hero .lede { color: var(--c-hero-ink-2); }
.page-hero.split .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) {
  .hero .wrap, .page-hero.split .wrap { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  section { padding: 64px 0; }
}
.badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; padding: 0; list-style: none; font-size: .92rem; }
.badges li { display: flex; align-items: center; gap: 8px; color: var(--c-hero-ink-2); margin: 0; }
.badges svg { width: 18px; height: 18px; color: var(--c-glow); flex: none; }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px; }
.alt .card { background: var(--c-bg); }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p, .card li { color: var(--c-ink-2); font-size: .97rem; }
.dark .card { background: var(--c-hero-surface); border-color: var(--c-hero-line); }
.dark .card p, .dark .card li { color: var(--c-hero-ink-2); }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--c-accent-soft); color: var(--c-accent); margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.dark .icon { background: var(--c-hero-line); color: var(--c-glow); }
.card a.more { font-weight: 600; text-decoration: none; font-size: .95rem; }
.card a.more::after { content: " →"; }

/* Text + figure rows */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row + .row { margin-top: 96px; }
.row.flip > :first-child { order: 2; }
.row.wide-fig { grid-template-columns: .85fr 1.15fr; }
@media (max-width: 900px) {
  .row, .row.wide-fig { grid-template-columns: 1fr; gap: 32px; }
  .row.flip > :first-child { order: 0; }
  .row + .row { margin-top: 64px; }
}
.figure { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; }
.alt .figure { background: var(--c-bg); }
.figure svg { display: block; width: 100%; height: auto; }
figcaption { font-size: .88rem; color: var(--c-ink-3); margin-top: 12px; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .6em; color: var(--c-ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23067a62' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checks li strong { color: var(--c-ink); }
.dark .checks li { color: var(--c-hero-ink-2); }
.dark .checks li strong { color: var(--c-hero-ink); }

/* Steps (workflow) */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.steps > li { position: relative; padding: 0 0 36px 72px; counter-increment: step; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 1.1rem;
  background: var(--c-brand); color: var(--c-brand-ink);
}
.steps > li::after { content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px; width: 2px; background: var(--c-line); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 10px 0 .35em; }
.steps p { color: var(--c-ink-2); }
.steps .who { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--c-ink-3); text-transform: uppercase; letter-spacing: .06em; }

/* Pipeline (transcript orders) */
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: p; }
.pipeline li { position: relative; margin: 0; padding: 54px 12px 0; text-align: center; counter-increment: p; }
.pipeline li::before {
  content: counter(p); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: var(--c-bg); border: 2px solid var(--c-brand); color: var(--c-brand); z-index: 1;
}
.pipeline li::after { content: ""; position: absolute; top: 19px; left: 50%; width: 100%; height: 2px; background: var(--c-brand); opacity: .35; }
.pipeline li:last-child::after { display: none; }
.pipeline li:last-child::before { background: var(--c-brand); color: var(--c-brand-ink); }
.pipeline strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.pipeline span { display: block; font-size: .88rem; color: var(--c-ink-2); line-height: 1.45; }
@media (max-width: 860px) {
  .pipeline { grid-template-columns: 1fr; gap: 18px; }
  .pipeline li { text-align: left; padding: 6px 0 0 60px; min-height: 44px; }
  .pipeline li::before { left: 0; transform: none; }
  .pipeline li::after { top: 44px; left: 19px; width: 2px; height: calc(100% - 26px); }
}

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--c-bg); }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
th { background: var(--c-surface); font-weight: 650; color: var(--c-ink); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td { color: var(--c-ink-2); }
td:first-child { color: var(--c-ink); font-weight: 600; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { border-left: 3px solid var(--c-glow); padding: 4px 0 4px 18px; }
.stat b { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1.1; color: var(--c-ink); }
.dark .stat b { color: var(--c-hero-ink); }
.stat span { font-size: .93rem; color: var(--c-ink-2); }
.dark .stat span { color: var(--c-hero-ink-2); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0; }
.chips li { margin: 0; font-size: .88rem; padding: 5px 12px; border-radius: 999px; background: var(--c-bg); border: 1px solid var(--c-line); color: var(--c-ink-2); }
.dark .chips li { background: var(--c-hero-surface); border-color: var(--c-hero-line); color: var(--c-hero-ink-2); }

/* Notes */
.note { border-left: 3px solid var(--c-brand); background: var(--c-brand-soft); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--c-ink); font-size: .95rem; }
.note p:last-child { margin: 0; }

/* Role cards */
.role { display: flex; flex-direction: column; }
.role .tag { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 6px; }
.role h3 { font-size: 1.3rem; }
.role ul { margin: 0; padding-left: 1.1em; }
.role .reach { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--c-line); font-size: .88rem; color: var(--c-ink-3); }

/* Forms */
.form { display: grid; gap: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .two { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: .92rem; font-weight: 600; color: var(--c-ink); }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--c-ink); background: var(--c-bg);
  border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 11px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--c-brand); outline-offset: 1px; border-color: var(--c-brand); }
textarea { min-height: 130px; resize: vertical; }
.form-status { font-size: .95rem; color: var(--c-ink-2); }

/* Closing call to action */
.cta { text-align: center; }
.cta .lede { margin: 0 auto; }
.cta .actions { justify-content: center; }

/* Footer */
.site-foot { background: var(--c-hero-bg); color: var(--c-hero-ink-2); padding: 64px 0 36px; font-size: .93rem; border-top: 1px solid var(--c-hero-line); }
.site-foot .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-foot h4 { color: var(--c-hero-ink); font-size: .9rem; margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: var(--c-hero-ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--c-hero-ink); }
.site-foot .logo { color: var(--c-hero-ink); margin-bottom: 14px; }
.site-foot .logo .tld { color: var(--c-glow); }
.site-foot .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-hero-line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .cols > :first-child { grid-column: 1 / -1; } }

/*
  Diagram and mockup classes. Shapes in the inline SVGs use these, so they follow tokens.css.
*/
.d-bg { fill: var(--c-bg); }
.d-surface { fill: var(--c-surface); }
.d-surface-2 { fill: var(--c-surface-2); }
.d-line { stroke: var(--c-line); fill: none; }
.d-line-f { fill: var(--c-line); }
.d-ink { fill: var(--c-ink); }
.d-ink-2 { fill: var(--c-ink-2); }
.d-ink-3 { fill: var(--c-ink-3); }
.d-brand { fill: var(--c-brand); }
.d-brand-s { stroke: var(--c-brand); fill: none; }
.d-brand-soft { fill: var(--c-brand-soft); }
.d-brand-ink { fill: var(--c-brand-ink); }
.d-accent { fill: var(--c-accent); }
.d-accent-s { stroke: var(--c-accent); fill: none; }
.d-accent-soft { fill: var(--c-accent-soft); }
.d-glow { fill: var(--c-glow); }
.d-ok { fill: var(--c-ok); }
.d-ok-s { stroke: var(--c-ok); fill: none; }
.d-alert { fill: var(--c-alert); }
.d-alert-s { stroke: var(--c-alert); fill: none; }
.d-warn { fill: var(--c-warn); }
.d-hero { fill: var(--c-hero-bg); }
.d-hero-surface { fill: var(--c-hero-surface); }
.d-hero-ink { fill: var(--c-hero-ink); }
.d-hero-ink-2 { fill: var(--c-hero-ink-2); }
.d-ink-s { stroke: var(--c-ink-2); fill: none; }
.d-ink3-s { stroke: var(--c-ink-3); fill: none; }
svg { font-family: var(--font-body); }
svg .t-head { font-family: var(--font-head); }
svg .t-mono { font-family: var(--font-mono); }
.page-hero .chips li { background: var(--c-hero-surface); border-color: var(--c-hero-line); }
.page-hero .chips a { color: var(--c-hero-ink); text-decoration: none; }
[id] { scroll-margin-top: 80px; }

/* About: team, phased rollout, closing quote */
.person { display: flex; flex-direction: column; }
.person img, .person .initials { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: var(--radius-sm); margin-bottom: 20px; }
.person .initials { display: grid; place-items: center; background: var(--g-cta); color: var(--c-hero-ink); font-family: var(--font-display); font-size: 5rem; }
.person .tag { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 4px; }
.pipeline.five { grid-template-columns: repeat(5, 1fr); }
.phase-groups { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; margin-bottom: 24px; }
.phase-groups span { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); text-align: center; padding: 8px; border-radius: 999px; background: var(--c-accent-soft); }
@media (max-width: 860px) { .pipeline.five { grid-template-columns: 1fr; } .phase-groups { display: none; } }
.dark .quote, .quote { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.25; color: var(--c-hero-ink); max-width: 30ch; margin: 0 auto; text-wrap: balance; }
.quote::before { content: "\201C"; color: var(--c-glow); }
.quote::after { content: "\201D"; color: var(--c-glow); }

/* Who It's For: one person with several roles */
.combo { padding: 28px; display: grid; gap: 20px; }
.combo-person { display: flex; align-items: center; gap: 14px; }
.combo-person strong { display: block; font-size: 1.05rem; }
.combo-person span { font-size: .9rem; color: var(--c-ink-3); }
.combo-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--c-brand); color: var(--c-glow); flex: none; }
.combo-avatar svg { width: 26px; height: 26px; }
.combo-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.combo-roles div { background: var(--c-accent-soft); border-radius: var(--radius-sm); padding: 14px 12px; display: grid; gap: 4px; justify-items: start; }
.combo-roles svg { width: 22px; height: 22px; color: var(--c-accent); }
.combo-roles strong { font-size: .98rem; }
.combo-roles span { font-size: .85rem; color: var(--c-ink-2); line-height: 1.4; }
.combo-note { margin: 0; font-size: .92rem; color: var(--c-ink-2); border-top: 1px dashed var(--c-line); padding-top: 14px; }
@media (max-width: 520px) { .combo-roles { grid-template-columns: 1fr; } }

/* A full-width highlight card under a grid */
.band { display: flex; gap: 20px; align-items: flex-start; margin-top: 24px; background: var(--c-accent-soft); border-color: transparent; }
.band .icon { background: var(--c-bg); flex: none; margin: 0; }
.band p { max-width: 80ch; }
