:root {
  --bg: #f5f6f8;
  --bg-1: #ffffff;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --border: #e0e3e9;
  --border-strong: #c6cbd4;

  --text: #171a20;
  --text-dim: #424854;
  --text-muted: #5c6370;

  --brand: #1a5bc1;
  --brand-dark: #13438d;
  --brand-tint: #e8f0fa;
  --brand-line: rgba(26,91,193,.22);

  --success: #15803d;
  --success-tint: #e7f5ec;
  --warn: #a14a06;
  --warn-tint: #fdf1e3;
  --danger: #b91c1c;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(23,26,32,.08);
  --shadow: 0 10px 30px -12px rgba(23,26,32,.18);
  --shadow-lg: 0 24px 60px -28px rgba(23,26,32,.24);

  --container: 1180px;
  --header-h: 70px;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1rem; color: var(--text-dim); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--text-dim); max-width: 58ch; }

a { color: var(--text); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.muted { color: var(--text-muted); }
.small { font-size: .87rem; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--brand); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 999px;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: clamp(64px, 9vw, 116px) 0; position: relative; }
section.tight { padding: clamp(40px, 6vw, 80px) 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { display: block; width: 28px; height: 28px; fill: var(--brand); flex: none; }
.brand-text { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.02em; color: var(--text); line-height: 1; }
.brand-text span { color: var(--brand); }
.brand:hover .brand-text { color: var(--text); }

.nav-main { display: flex; align-items: center; gap: 4px; }
.nav-main > a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .95rem;
  color: var(--text-dim);
  font-weight: 700;
  transition: color .15s ease, background .15s ease;
}
.nav-main > a:hover { color: var(--text); background: var(--surface); }
.nav-main > a.active { color: var(--text); background: var(--surface-2); }
.nav-main > a.nav-cta {
  margin-left: 8px;
  padding: 9px 18px;
  background: var(--brand); color: #fff;
}
.nav-main > a.nav-cta:hover { background: var(--brand-dark); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block; position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn .material-symbols-rounded { font-size: 19px; }
.btn-primary { color: #fff; background: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.eyebrow {
  display: inline-block;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}
.hero .eyebrow, .page-hero .eyebrow { margin-bottom: 20px; }

/* Hero */
.hero {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(60px, 8vw, 110px);
  position: relative; overflow: hidden;
}
.hero p.lead { margin-top: 22px; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Screenshot drop-in */
.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.hero .shot { margin-top: 64px; }
.split-visual .shot img, .farea .shot img { box-shadow: var(--shadow); border-radius: var(--radius); }

/* Product illustration (dashboard) */
.hero-visual {
  margin-top: 64px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
.mock {
  border-radius: calc(var(--radius-lg) - 8px);
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 214px 1fr;
  min-height: 440px;
  border: 1px solid var(--border);
}
.mock-side { background: #f9fafb; border-right: 1px solid var(--border); padding: 18px 12px; }
.mock-brand { display: flex; align-items: center; gap: 6px; padding: 2px 10px 18px; }
.mock-brand .brand-mark { width: 20px; height: 20px; }
.mock-brand .brand-text { font-size: 1rem; }
.mock-nav { display: flex; flex-direction: column; gap: 2px; }
.mock-nav span {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 999px;
  color: var(--text-dim); font-size: .9rem; font-weight: 700;
}
.mock-nav span.active { background: var(--brand-tint); color: var(--brand-dark); }
.mock-nav .material-symbols-rounded { font-size: 19px; }

.mock-main { padding: 22px 24px; background: var(--bg); }
.mock-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.mock-toolbar h4 { margin: 0; font-size: 1.15rem; font-weight: 900; }
.mock-toolbar .pill {
  white-space: nowrap; padding: 5px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  font-size: .78rem; font-weight: 700; color: var(--text-dim);
}
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.kpi .label { font-size: .74rem; color: var(--text-muted); font-weight: 700; }
.kpi .value { font-size: 1.45rem; font-weight: 900; margin-top: 2px; letter-spacing: -.02em; color: var(--text); }
.kpi.warn .value { color: var(--warn); }
.kpi.good .value { color: var(--success); }

.mock-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mock-card-h { padding: 12px 16px; font-size: .8rem; font-weight: 700; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.mock-row {
  display: grid; grid-template-columns: 98px 1fr 130px 64px 78px; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  align-items: center; font-size: .88rem;
}
.mock-row:last-child { border-bottom: none; }
.mock-row .when { color: var(--text-muted); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.mock-row .title { color: var(--text); font-weight: 700; }
.mock-row .site { color: var(--text-dim); font-size: .84rem; }
.mock-row .fill { color: var(--text-dim); font-variant-numeric: tabular-nums; text-align: right; font-size: .84rem; }
.tag-s {
  justify-self: end; white-space: nowrap;
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.tag-s.full { background: var(--brand-tint); color: var(--brand-dark); }
.tag-s.open { background: var(--success-tint); color: var(--success); }
.tag-s.held { background: var(--warn-tint); color: var(--warn); }
.tag-s.muted { background: var(--surface-2); color: var(--text-dim); }

.mock-attn {
  margin-top: 14px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  font-size: .88rem; color: var(--text);
}
.mock-attn .material-symbols-rounded { color: var(--brand); }
.mock-attn strong { font-weight: 700; }

/* Section heading */
.section-head { max-width: 740px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lead { margin: 14px auto 0; }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: .97rem; margin-bottom: 0; }
.card .checks { margin-top: 16px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 700; color: var(--brand); }
.card .more:hover { color: var(--brand-dark); }
.card .more .material-symbols-rounded { font-size: 18px; }
.card .ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  margin-bottom: 16px;
}

/* Split feature rows */
.split-rows { display: grid; gap: clamp(48px, 7vw, 96px); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split.flip .split-text { order: 2; }
.split-text h3 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 14px; }
.split-text p { margin-bottom: 18px; max-width: 54ch; }
.split-text .checks { margin-top: 18px; }
.split-text .lede {
  font-size: .82rem; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 14px;
}
.split-visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 24px;
}
.split-visual .vh {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
  font-size: .82rem; font-weight: 700; color: var(--text-muted);
}

/* Steps inside a visual */
.flow-mini { display: grid; gap: 10px; }
.flow-mini .step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px; align-items: center;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .92rem;
}
.flow-mini .step .n {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-tint); color: var(--brand-dark);
  border-radius: 50%; font-size: .78rem; font-weight: 900;
}
.flow-mini .step .label { color: var(--text); }

/* Phone-sized browser frame */
.phone {
  margin: 0 auto;
  max-width: 290px;
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  background: #fff;
  padding: 14px 14px 20px;
  box-shadow: var(--shadow);
}
.phone .ph-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 8px 12px; font-size: .74rem; font-weight: 700; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.phone .ph-bar .lang { display: inline-flex; gap: 4px; }
.phone .ph-bar .lang b { color: var(--brand-dark); background: var(--brand-tint); padding: 1px 7px; border-radius: 999px; }
.phone .ph-bar .lang i { font-style: normal; padding: 1px 4px; }
.ph-org { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--text-dim); margin: 0 4px 14px; }
.ph-org .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.ph-org .dot .material-symbols-rounded { font-size: 16px; }
.ph-title { font-size: 1.2rem; font-weight: 900; margin: 0 4px 6px; color: var(--text); line-height: 1.2; }
.ph-sub { font-size: .84rem; color: var(--text-dim); margin: 0 4px 16px; line-height: 1.45; }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 0 4px 16px; }
.code-boxes span {
  height: 42px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: 10px;
  font-size: 1.15rem; font-weight: 900; color: var(--text); background: #fff;
}
.code-boxes span.cur { border: 2px solid var(--brand); }
.ph-btn { margin: 0 4px; padding: 11px; border-radius: 999px; background: var(--brand); color: #fff; text-align: center; font-weight: 700; font-size: .9rem; }
.ph-note { margin: 12px 4px 0; font-size: .76rem; color: var(--text-muted); text-align: center; }
.ph-item {
  margin: 0 4px 8px; padding: 11px 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
  display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--text);
}
.ph-item .box {
  width: 20px; height: 20px; border-radius: 6px; flex: none;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.ph-item .box .material-symbols-rounded { font-size: 15px; }
.ph-item .meta { margin-left: auto; font-size: .74rem; color: var(--text-muted); font-weight: 700; white-space: nowrap; }
.ph-item.ok { background: var(--success-tint); border-color: transparent; }
.ph-item.ok .material-symbols-rounded { color: var(--success); }

/* Check-in board */
.board-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.board-counts > div { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.board-counts .n { font-size: 1.5rem; font-weight: 900; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.board-counts .l { font-size: .74rem; font-weight: 700; color: var(--text-muted); }
.board-counts .here .n { color: var(--success); }
.board-counts .late .n { color: var(--warn); }
.board-list { display: grid; gap: 6px; }
.board-list .r {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: .88rem; background: #fff;
}
.board-list .r .t { color: var(--text-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.warn-note {
  margin-top: 12px; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--warn-tint); color: var(--warn); font-size: .86rem; font-weight: 700;
}
.warn-note .material-symbols-rounded { font-size: 19px; }

/* Workflow rule */
.rule { display: grid; gap: 8px; }
.rule .rl {
  display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: start;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg);
  font-size: .92rem; color: var(--text);
}
.rule .rl .k { font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); padding-top: 2px; }
.rule .rl.when { background: var(--brand-tint); border-color: var(--brand-line); }
.rule .rl small { display: block; color: var(--text-muted); font-size: .8rem; }
.rule-foot { margin-top: 12px; font-size: .8rem; color: var(--text-muted); font-weight: 700; }

/* Hours card and awards */
.hours-top { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 14px; }
.hours-top .big { font-size: 2rem; font-weight: 900; color: var(--text); line-height: 1; }
.hours-top .lbl { font-size: .78rem; color: var(--text-muted); font-weight: 700; }
.verify { margin: 12px 4px 0; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--border-strong); font-size: .78rem; color: var(--text-dim); }
.verify b { color: var(--text); letter-spacing: .06em; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badges .b {
  text-align: center; padding: 16px 8px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg);
  font-size: .82rem; font-weight: 700; color: var(--text);
}
.badges .b .medal {
  width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff;
}
.badges .b.locked .medal { background: var(--surface-2); color: var(--text-muted); }
.badges .b.locked { color: var(--text-muted); }
.badges .b small { display: block; font-weight: 400; color: var(--text-muted); font-size: .74rem; }
.cert {
  margin-top: 12px; padding: 16px; border-radius: 14px;
  border: 1px solid var(--brand-line); background: var(--brand-tint);
  font-size: .86rem; color: var(--text);
}
.cert strong { display: block; font-size: 1rem; font-weight: 900; margin-bottom: 2px; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .split-text { order: 0; }
}

/* What it replaces */
.diff-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
}
.diff-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.diff-row:last-child { border-bottom: none; }
.diff-row > div { padding: 18px 24px; font-size: .98rem; }
.diff-row .legacy { color: var(--text-muted); border-right: 1px solid var(--border); }
.diff-row .legacy strong { color: var(--text-dim); }
.diff-row .ours { color: var(--text); background: #f6f9fd; }
.diff-row.head > div { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 14px 24px; }
.diff-row.head .ours { color: var(--brand); }

/* Lifecycle card */
.life-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: clamp(28px, 5vw, 56px);
  background: var(--bg-1);
}
.life-card .head {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(20px, 4vw, 56px);
  margin-bottom: 36px;
}
.life-card .head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0; }
.life-card .head p { margin: 0; font-size: 1.04rem; }
.life-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--border);
}
.life-steps li { padding: 24px 18px 0 0; }
.life-steps li + li { padding-left: 18px; border-left: 1px solid var(--border); }
.life-steps h4 { color: var(--brand); margin-bottom: 6px; font-size: 1.02rem; }
.life-steps p { font-size: .9rem; margin: 0; }

/* Audience cards */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.aud-grid .card { padding: 26px; }
.aud-grid .card h3 { font-size: 1.08rem; }
.aud-grid .card p { font-size: .94rem; }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-dim); font-size: .97rem; }
.checks li::before {
  content: 'check';
  font-family: 'Material Symbols Rounded';
  position: absolute; left: 0; top: 1px;
  font-size: 20px; line-height: 1.2;
  color: var(--brand);
}
.checks li strong { color: var(--text); font-weight: 700; }

/* Closing row */
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 48px;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-strong);
}
.cta-band h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 0; }
.cta-band p { grid-column: 1; max-width: 64ch; margin: 0; }
.cta-band .btn { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 720px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}

/* Contact: email only */
.contact-email {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  background: var(--bg-1);
}
.contact-email p { margin: 0 0 10px; font-size: 1.08rem; }
.contact-email .alt { margin: 22px 0 0; font-size: .97rem; }
.contact-email .alt a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.contact-email .addr {
  font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.02em;
  color: var(--text);
  border-bottom: 3px solid var(--brand);
  overflow-wrap: anywhere;
}
.contact-email .addr:hover { color: var(--brand); }

/* Founder note */
.fnote {
  max-width: 760px; margin: 0 auto;
  padding: clamp(26px, 4vw, 40px);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.fnote p { font-size: 1.12rem; line-height: 1.7; color: var(--text); margin: 0 0 1em; }
.fnote p:last-of-type { margin-bottom: 0; }
.fnote-sig { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.fnote-sig img {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; object-position: 48% 22%; flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 3.5px var(--brand);
}
.fnote-sig strong { display: block; font-size: .97rem; font-weight: 900; color: var(--text); }
.fnote-sig span { display: block; font-size: .84rem; color: var(--text-muted); margin-top: 2px; }

/* Footer */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  background: var(--surface-2);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand p { margin-top: 14px; max-width: 36ch; }
.foot-h { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin-bottom: 14px; }
.site-footer a:not(.brand), .site-footer .small { display: block; margin-bottom: 8px; font-size: .93rem; color: var(--text-dim); }
.site-footer a:not(.brand):hover { color: var(--brand); }
.foot-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--border-strong);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* Reveal on scroll, only when scripts run */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Page header (subpages) */
.page-hero { padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 6vw, 70px); text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-hero .lead { max-width: 660px; margin: 18px auto 0; }

/* How it works: numbered steps */
.flow { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; }
.flow-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.flow-num {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff;
  font-size: 1.5rem; font-weight: 900;
}
.flow-body h3 { margin-bottom: 10px; }
.flow-body p { margin-bottom: 16px; max-width: 70ch; }

/* Volunteer steps (compact) */
.vsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: vs; }
.vsteps li {
  counter-increment: vs;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; font-size: .95rem; color: var(--text-dim);
}
.vsteps li::before {
  content: counter(vs);
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-dark);
  font-weight: 900; margin-bottom: 12px;
}
.vsteps li strong { display: block; color: var(--text); margin-bottom: 4px; }

/* Sample week timeline */
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wf-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.wf-time { display: block; font-size: .82rem; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
.wf-step h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wf-step h4 .material-symbols-rounded { color: var(--brand); font-size: 21px; }
.wf-step p { margin: 0; font-size: .95rem; }

/* Features page */
.jump {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 900px; margin: 0 auto;
  list-style: none; padding: 0;
}
.jump a {
  display: inline-block; padding: 8px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .9rem; font-weight: 700; color: var(--text-dim);
}
.jump a:hover { border-color: var(--brand); color: var(--brand); }
.fareas { display: grid; gap: 18px; }
.farea {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
}
.farea .eyebrow { margin-bottom: 12px; }
.farea h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 10px; }
.farea .intro p { margin: 0; }
.farea .shot { grid-column: 1 / -1; }
.farea .note { margin-top: 16px; font-size: .88rem; color: var(--text-muted); }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: 'expand_more';
  font-family: 'Material Symbols Rounded';
  font-size: 24px; font-weight: 400;
  color: var(--brand);
  transition: transform .2s ease;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 26px 24px; font-size: .98rem; }
.faq-item .faq-body p { margin: 0 0 10px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* Inline links in prose-like blocks */
.cta-band p a, .faq-body a, .card p a, .section-head .lead a, .statement a {
  color: var(--brand); text-decoration: underline; text-underline-offset: 3px;
}
.cta-band p a:hover, .faq-body a:hover, .card p a:hover, .section-head .lead a:hover, .statement a:hover { color: var(--brand-dark); }

/* Accessibility statement */
.statement {
  max-width: 820px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
}
.statement h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.statement .checks { margin: 18px 0 20px; }
.statement p:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-main {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    padding: 18px 24px 28px;
    background: var(--bg);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s;
    gap: 4px;
  }
  .nav-main.open { transform: none; opacity: 1; visibility: visible; transition: transform .25s ease, opacity .25s ease; }
  .nav-main > a { padding: 14px; border-radius: 12px; font-size: 1.02rem; }
  .nav-main > a.nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 1020px) {
  .life-steps { grid-template-columns: repeat(3, 1fr); }
  .life-steps li:nth-child(4) { border-left: none; padding-left: 0; }
  .life-steps li { padding-bottom: 20px; }
  .vsteps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .grid-3, .grid-4, .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .mock { grid-template-columns: 1fr; min-height: auto; }
  .mock-side { display: none; }
  .life-card .head { grid-template-columns: 1fr; }
  .farea { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .mock-row { grid-template-columns: 1fr auto; }
  .mock-row .site, .mock-row .fill { display: none; }
  .mock-row .when { grid-column: 1 / -1; }
  .mock-main { padding: 16px; }
  .hero-visual { padding: 8px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .aud-grid { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr; }
  .diff-row { grid-template-columns: 1fr; }
  .diff-row .legacy { border-right: none; padding-bottom: 6px; }
  .diff-row .ours { padding-top: 6px; }
  .diff-row.head { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .flow-step { grid-template-columns: 1fr; gap: 14px; padding: 24px; }
  .flow-num { width: 44px; height: 44px; font-size: 1.2rem; }
  .life-steps { grid-template-columns: 1fr; }
  .life-steps li, .life-steps li + li { border-left: none; padding: 18px 0; border-bottom: 1px solid var(--border); }
  .life-steps li:last-child { border-bottom: none; padding-bottom: 0; }
  .vsteps { grid-template-columns: 1fr; }
  .board-counts { grid-template-columns: repeat(2, 1fr); }
  .split-visual { padding: 16px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Articles */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
}
.article-card {
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.article-card:hover { color: var(--text); }
.article-card:hover h3 { color: var(--brand); }
.article-card .tag {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px;
}
.article-card .tag .sep, .article-feature .meta .sep { color: var(--border-strong); margin: 0 6px; }
.article-card h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: 12px; max-width: 28ch; transition: color .15s ease; }
.article-card p { font-size: .98rem; margin-bottom: 14px; line-height: 1.55; max-width: 52ch; flex-grow: 1; }
.article-card .read { font-size: .9rem; font-weight: 700; color: var(--brand); }
.article-card .read::after { content: ' \2192'; }
@media (min-width: 720px) {
  .article-card { padding: 32px clamp(20px, 3vw, 36px); }
  .article-card:nth-child(2n) { border-left: 1px solid var(--border); }
}
.article-grid.compact { grid-template-columns: repeat(3, 1fr); }
.article-grid.compact .article-card { border-bottom: none; border-left: 1px solid var(--border); padding: 28px clamp(16px, 2.4vw, 28px); }
.article-grid.compact .article-card:first-child { border-left: none; padding-left: 0; }
.article-grid.compact .article-card:last-child { padding-right: 0; }
.article-grid.compact .article-card h3 { font-size: 1.12rem; }
.article-grid.compact .article-card p { font-size: .93rem; }
@media (max-width: 720px) {
  .article-grid, .article-grid.compact { grid-template-columns: 1fr; }
  .article-card { padding: 24px 0; }
  .article-grid.compact .article-card { border-left: none; border-bottom: 1px solid var(--border); padding: 24px 0; }
  .article-grid.compact .article-card:last-child { border-bottom: none; }
}

.article-feature {
  display: block;
  color: var(--text);
  padding: 0 0 clamp(40px, 6vw, 72px);
  margin-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--border);
}
.article-feature:hover { color: var(--text); }
.article-feature:hover h2 { color: var(--brand); }
.article-feature .meta {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 24px;
}
.article-feature .meta .feat { color: var(--brand); }
.article-feature h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; margin-bottom: 22px; max-width: 22ch; transition: color .15s ease; }
.article-feature p { font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.55; max-width: 60ch; margin: 0 0 22px; }
.article-feature .read { font-size: 1rem; font-weight: 700; color: var(--brand); }
.article-feature .read::after { content: ' \2192'; }

.article { padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 70px); }
.article .crumbs { font-size: .88rem; color: var(--text-muted); margin-bottom: 18px; }
.article .crumbs a { color: var(--text-dim); }
.article .crumbs a:hover { color: var(--brand); }
.article .meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .88rem; color: var(--text-muted); margin: 18px 0 0; }
.article .meta .tag { color: var(--brand); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; }
.article h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.03em; max-width: 24ch; }
.prose { max-width: 760px; margin: 40px auto 0; font-size: 1.08rem; line-height: 1.75; color: var(--text-dim); }
.prose > p:first-of-type { font-size: 1.2rem; color: var(--text); line-height: 1.65; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 56px 0 18px; }
.prose h3 { font-size: 1.22rem; margin: 36px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 22px; }
.prose li { margin: 0 0 8px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-color: var(--brand-line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose blockquote { margin: 28px 0; padding: 18px 22px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); font-style: italic; }
.prose .callout { margin: 28px 0; padding: 22px 24px; background: var(--brand-tint); border: 1px solid var(--brand-line); border-radius: var(--radius); color: var(--text); }
.prose .callout p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); font-weight: 700; }
@media (max-width: 560px) { .prose { font-size: 1.02rem; } }

/* terraceIQ additions */
.brand-mark { fill: none; }
.brand-text span { color: var(--brand); }
.nav-main > a.nav-signin { margin-left: 8px; }

.mock-row { grid-template-columns: 70px 1fr 1.1fr auto; }
.mock-row .tag-s { justify-self: end; }
.kpi .sub { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }

.ph-bal { margin: 0 4px 4px; font-size: 2rem; font-weight: 900; color: var(--text); letter-spacing: -.02em; line-height: 1.1; }
.ph-item .material-symbols-rounded { font-size: 19px; color: var(--brand); }

.board-list .r .amt { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.board-list .r small { display: block; color: var(--text-muted); font-size: .78rem; }
.warn-note { align-items: flex-start; font-weight: 400; color: var(--text); }
.warn-note .material-symbols-rounded { color: var(--warn); }
.warn-note strong { font-weight: 700; }

.split-text p a, .fnote p a, .contact-email p a, .about-body a, .page-hero .lead a {
  color: var(--brand); text-decoration: underline; text-underline-offset: 3px;
}
.split-text p a:hover, .fnote p a:hover, .about-body a:hover, .page-hero .lead a:hover { color: var(--brand-dark); }

.home-articles-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.home-articles-h h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 0; }
.home-articles-h a { font-weight: 700; color: var(--brand); white-space: nowrap; }

/* Tenant steps use the shared numbered list at four columns */
.vsteps.four { grid-template-columns: repeat(4, 1fr); }

/* About */
.about { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; max-width: 1000px; margin: 0 auto; }
.about-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.about-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.about-photo figcaption { margin-top: 12px; font-size: .88rem; color: var(--text-muted); }
.about-photo figcaption strong { display: block; color: var(--text); font-size: 1rem; }
.about-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 40px 0 14px; }
.about-body h2:first-child { margin-top: 0; }
.about-body p { font-size: 1.08rem; line-height: 1.75; margin-bottom: 18px; }

/* Article byline and footnote */
.article .byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: .9rem; color: var(--text-muted); }
.article .byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 48% 22%; flex: none; }
.article .byline a { font-weight: 700; color: var(--text); }
.article .byline a:hover { color: var(--brand); }
.article .byline span { display: block; }
.article .dek { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--text-dim); max-width: 60ch; margin: 16px 0 0; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 24px; }
.prose .table-wrap table { margin: 0; min-width: 460px; }
.prose table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prose thead th { background: var(--surface-2); font-size: .86rem; }
.prose tr:last-child td { border-bottom: none; }
.prose .disclaimer { font-size: .9rem; color: var(--text-muted); }

@media (max-width: 1020px) { .vsteps.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 240px; }
}
@media (max-width: 560px) { .vsteps.four { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .mock-row { grid-template-columns: 1fr auto; }
  .mock-row .when { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .hero h1 br { display: none; } }
