:root {
  --ink: #1a1a1a; --ink-2: #4a4a50; --ink-3: #686871;
  --accent: #1d4ed8; --accent-deep: #1e40af;
  --tint-1: #f1f5fe; --tint-2: #dbe5fb; --tint-3: #b5c8f5;
  --paper: #ffffff; --line: #e3e8f4;
  --radius: 16px; --wrap: 1120px;
  --shadow: 0 1px 2px rgba(29, 78, 216, .06), 0 14px 34px -16px rgba(29, 78, 216, .28);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 Inter, 'Segoe UI', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.icon { width: 1em; height: 1em; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--tint-3); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip:focus { left: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand .mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.brand b { display: block; font-size: 15px; line-height: 1.2; }
.brand small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.3; }
.site-header nav { display: flex; gap: 6px; }
.site-header nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.site-header nav a:hover { background: var(--tint-1); color: var(--accent); }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 1.5px solid var(--accent); border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background .15s, color .15s, transform .15s; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.ghost { background: var(--paper); color: var(--accent); }
.btn.ghost:hover { background: var(--tint-1); }
.btn .icon { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--tint-2); color: var(--accent-deep); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 4px 12px; border: 1px solid var(--tint-2); border-radius: 999px; background: var(--tint-1); color: var(--ink-2); font-size: 13px; font-weight: 500; }

/* Hero */
.hero { padding: 56px 0 8px; background: linear-gradient(180deg, var(--tint-1) 0%, var(--paper) 100%); }
.hero h1 { max-width: 18ch; font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; overflow-wrap: anywhere; }
.hero.hub h1 { max-width: 24ch; }
.lede { max-width: 62ch; margin-top: 18px; color: var(--ink-2); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; }
.lede strong, .content p strong { color: var(--ink); font-weight: 700; }
.hero .actions { margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--ink-3); font-size: 14px; }
.crumbs a { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; margin-top: 36px; overflow: hidden; border: 1px solid var(--tint-2); border-radius: var(--radius); background: var(--tint-2); }
.facts div { padding: 16px 20px; background: var(--paper); }
.facts dt { color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin-top: 4px; font-size: 15px; font-weight: 600; }
.browser { margin-top: 40px; overflow: hidden; border: 1px solid var(--tint-2); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.browser .chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--tint-2); background: var(--tint-1); }
.browser .chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--tint-3); }
.browser .url { flex: 1; max-width: 360px; margin-left: 12px; padding: 4px 14px; border-radius: 999px; background: var(--paper); color: var(--ink-3); font-size: 12.5px; text-align: center; }
.browser img { width: 100%; }

/* Page layout with contents list */
.layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; padding-top: 56px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc p { margin-bottom: 12px; color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.toc ol { border-left: 2px solid var(--tint-2); }
.toc a { display: block; margin-left: -2px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.toc a:hover { color: var(--accent); }
.toc a.active { border-left-color: var(--accent); color: var(--accent); font-weight: 600; }

/* Content blocks */
.block { padding-bottom: 72px; }
.content { counter-reset: section; }
.block h2 { counter-increment: section; margin-bottom: 18px; font-size: clamp(1.7rem, 3.2vw, 2.2rem); font-weight: 750; line-height: 1.15; letter-spacing: -.025em; }
.block h2::before { content: counter(section, decimal-leading-zero); display: block; margin-bottom: 8px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.block h3 { margin: 36px 0 14px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.block p { max-width: 68ch; color: var(--ink-2); }
.block p + p { margin-top: 12px; }
.block h3 + p { margin-top: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 22px; }
.stats li { display: flex; flex-direction: column; gap: 2px; padding: 20px 22px; border: 1px solid var(--tint-2); border-radius: var(--radius); background: var(--tint-1); }
.stats strong { color: var(--accent); font-size: 2.3rem; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.stats span { color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.stats small { margin-top: 6px; color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.block h3 + .stats { margin-top: 0; }
.block p + .stats { margin-top: 18px; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.features li { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.features h4 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; }
.features h4::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); }
.features p { margin-top: 8px; font-size: 15px; line-height: 1.6; }
.features li:first-child { grid-column: 1 / -1; background: var(--tint-1); border-color: var(--tint-2); }

.table-wrap { overflow-x: auto; border: 1px solid var(--tint-2); border-radius: var(--radius); }
.stack { width: 100%; border-collapse: collapse; font-size: 15px; }
.stack th, .stack td { padding: 13px 18px; text-align: left; vertical-align: top; }
.stack thead th { background: var(--tint-1); color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stack tbody tr + tr > * { border-top: 1px solid var(--line); }
.stack tbody th { width: 150px; color: var(--ink-3); font-weight: 600; }
.stack td strong { color: var(--ink); font-weight: 650; white-space: nowrap; }
.stack td { color: var(--ink-2); }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.swatches li { padding: 8px 8px 12px; border: 1px solid var(--line); border-radius: 14px; }
.swatch { display: block; height: 64px; margin-bottom: 10px; border: 1px solid rgba(15, 23, 42, .08); border-radius: 9px; }
.swatches b { display: block; padding: 0 6px; font-size: 14px; font-weight: 650; line-height: 1.3; }
.swatches code { display: block; padding: 0 6px; color: var(--ink-3); font: 500 12.5px ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.swatches + p { margin-top: 16px; }

.steps { position: relative; counter-reset: step; }
.steps::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--tint-2); }
.steps li { position: relative; counter-increment: step; padding: 4px 0 22px 56px; color: var(--ink-2); }
.steps li:last-child { padding-bottom: 4px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--paper); border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 0 0 1px var(--tint-3); }
.steps strong { color: var(--ink); font-weight: 700; }

.checks li { position: relative; padding: 14px 0 14px 40px; border-top: 1px solid var(--line); color: var(--ink-2); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ''; position: absolute; left: 0; top: 17px; width: 24px; height: 24px; border-radius: 50%; background: var(--tint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks strong { color: var(--ink); font-weight: 650; }
.block p + .checks { margin-top: 22px; }

/* Screenshots */
.shots, .reports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
.reports { margin-top: 26px; }
.shot a { position: relative; display: block; overflow: hidden; border: 1px solid var(--tint-2); border-radius: 14px; background: var(--tint-1); box-shadow: var(--shadow); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .35s; }
.shot a:hover img { transform: scale(1.025); }
.shot .zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(26, 26, 26, .82); color: #fff; font-size: 12.5px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.shot a:hover .zoom, .shot a:focus-visible .zoom { opacity: 1; transform: none; }
figcaption { margin-top: 10px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.phones { display: flex; flex-wrap: wrap; gap: 28px; }
.phone { width: min(100%, 230px); }
.phone-frame { overflow: hidden; border: 7px solid var(--ink); border-radius: 32px; background: var(--ink); box-shadow: var(--shadow); }
.phone-frame img { width: 100%; aspect-ratio: 390 / 844; border-radius: 24px; object-fit: cover; object-position: top; }
.phone figcaption { text-align: center; }

/* Next case study */
.next { padding: 8px 0 72px; }
.next-card { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 18px; border: 1px solid var(--tint-2); border-radius: 20px; background: var(--tint-1); color: var(--ink); text-decoration: none; transition: box-shadow .2s; }
.next-card:hover { box-shadow: var(--shadow); }
.next-card img { border: 1px solid var(--tint-2); border-radius: 12px; }
.next-card b { display: block; font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; }
.next-card span > span { display: block; margin-top: 6px; color: var(--ink-2); }
.next-card em { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--accent); font-style: normal; font-weight: 650; }
.next .eyebrow { margin-bottom: 16px; }

/* Hub */
.hero.hub { padding-bottom: 36px; }
.block-hub { padding: 24px 0 72px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--tint-2); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); transition: transform .2s; }
.card:hover { transform: translateY(-3px); }
.card-shot { display: block; border-bottom: 1px solid var(--tint-2); background: var(--tint-1); }
.card-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 24px 26px 28px; }
.card-body h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.card-body h2 a { color: var(--ink); text-decoration: none; }
.card-body h2 a:hover { color: var(--accent); }
.card-body p { color: var(--ink-2); }
.card-body .actions { margin-top: auto; padding-top: 6px; }
.about { padding: 72px 0; border-top: 1px solid var(--line); background: var(--tint-1); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; }
.about h2 { margin-bottom: 14px; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.about p { color: var(--ink-2); }
.about strong { color: var(--ink); }
.about .actions { margin-top: 26px; }
.skills h3 { margin: 18px 0 8px; font-size: 14px; font-weight: 700; }
.skills .eyebrow + h3 { margin-top: 0; }
.skills .tags li { background: var(--paper); }

/* Footer and lightbox */
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer b { display: block; color: var(--ink); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer .links a { color: var(--ink-2); text-decoration: none; }
.site-footer .links a:hover { color: var(--accent); text-decoration: underline; }
dialog#lightbox { width: min(1240px, 96vw); max-width: none; max-height: 92vh; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: var(--paper); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
dialog#lightbox::backdrop { background: rgba(15, 23, 42, .74); }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--tint-2); background: var(--tint-1); }
.lb-bar p { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.lb-bar button { padding: 7px 16px; border: 1.5px solid var(--accent); border-radius: 999px; background: var(--paper); color: var(--accent); font: 600 14px Inter, sans-serif; cursor: pointer; }
.lb-bar button:hover { background: var(--tint-1); }
.lb-body { max-height: calc(92vh - 58px); overflow: auto; background: #fff; }
.lb-body img { width: 100%; }

@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
  .toc { position: sticky; top: 68px; z-index: 10; margin: 0 -20px 28px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); }
  .toc p { display: none; }
  .toc ol { display: flex; gap: 6px; overflow-x: auto; border: 0; scrollbar-width: none; }
  .toc a { margin: 0; padding: 7px 14px; border: 1px solid var(--tint-2); border-radius: 999px; white-space: nowrap; }
  .toc a.active { border-color: var(--accent); background: var(--tint-1); }
  html { scroll-padding-top: 132px; }
  .features, .shots, .reports, .cards { grid-template-columns: minmax(0, 1fr); }
  .features li:first-child { grid-column: auto; }
  .about .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .next-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .hero { padding-top: 36px; }
  .site-header nav a:first-child { display: none; }
  .brand small { display: none; }
  .stack thead { display: none; }
  .stack, .stack tbody, .stack tr, .stack th, .stack td { display: block; width: 100%; }
  .stack tbody tr { padding: 14px 18px; }
  .stack tbody tr + tr { border-top: 1px solid var(--line); }
  .stack th, .stack td { padding: 0; border: 0 !important; }
  .stack tbody th { width: auto; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
  .stack td strong { white-space: normal; }
  .phones { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .toc, .skip, dialog, .actions { display: none !important; }
  .hero { background: none; }
}
