/* Arro brand tokens — Engineering department palette + typefaces, matching the other
   engineering tool pages on arrolabs.com/resources/ (technical-delivery-readiness,
   sdlc-readiness): --arro-green-brand #102542 / --sage-500 #E8EEF5, Ceraph + Hanken Grotesk. */
@font-face {
  font-family: "Ceraph";
  src: url("assets/fonts/ceraph/Ceraph-Roman.woff2") format("woff2"), url("assets/fonts/ceraph/Ceraph-Roman.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ceraph";
  src: url("assets/fonts/ceraph/Ceraph-Italic.woff2") format("woff2"), url("assets/fonts/ceraph/Ceraph-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --dark: #0b1b30;
  --accent: #102542;
  --light: #c3d1e3;
  --lightest: #e8eef5;
  --black: #0d120e;
  --white: #ffffff;
  --white-10: rgba(255, 255, 255, 0.1);
  --white-60: rgba(255, 255, 255, 0.6);
  --ink-60: rgba(13, 18, 14, 0.6);
  --ink-80: rgba(13, 18, 14, 0.8);
  --rule: rgba(13, 18, 14, 0.12);
  --serif: "Ceraph", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --measure: 1150px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--lightest);
  color: var(--black);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 32px; }

/* Type */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: 60px; line-height: 1.1; letter-spacing: 0.12em; }
h2 { font-size: 36px; line-height: 1.2; letter-spacing: 0.06em; }
h3 { font-size: 24px; line-height: 1.3; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-60); }
.on-dark .muted { color: var(--white-60); }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand svg { width: 44px; height: 44px; }
.site-header .eyebrow { font-weight: 600; }

/* Dark surfaces */
.on-dark { background: var(--accent); color: var(--white); }
.on-darker { background: var(--dark); color: var(--white); }

/* Hero */
.hero { padding: 96px 0 120px; position: relative; overflow: hidden; }
.hero-inner { position: relative; max-width: 620px; }
.hero h1 { margin: 24px 0 24px; }
.hero .lede { font-size: 22px; max-width: 520px; }

/* Form */
.audit-form { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.audit-form .row { display: flex; gap: 0; }
.audit-form input[type="url"], .audit-form input[type="text"] {
  flex: 1; min-width: 0;
  font-family: var(--sans); font-size: 20px; color: var(--white);
  background: transparent; border: 1px solid var(--white); border-right: 0;
  padding: 12px 16px; outline: none; border-radius: 0;
}
.audit-form input::placeholder { color: var(--white-60); }
.audit-form input:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.btn {
  font-family: var(--serif); font-size: 20px; letter-spacing: 0.04em;
  padding: 12px 40px; border: 1px solid currentColor; background: transparent;
  color: inherit; cursor: pointer; border-radius: 0; text-decoration: none; display: inline-block;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--white); color: var(--accent); }
.btn.solid { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn.solid:hover { background: var(--dark); border-color: var(--dark); }
.btn:disabled { opacity: 0.5; cursor: wait; }
.check { display: flex; align-items: center; gap: 10px; font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.check input { accent-color: var(--white); width: 16px; height: 16px; margin: 0; }
.form-error { color: #f3c9c0; font-size: 16px; }
.notice { border: 1px solid var(--white-10); background: var(--white-10); padding: 12px 16px; font-size: 16px; }

/* Sections */
.section { padding: 96px 0; }
.on-light { background: var(--white); }
.section-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 40px; }
.section-head .head-medal { width: 44px; height: 44px; object-fit: contain; align-self: center; margin-left: auto; filter: drop-shadow(0 4px 8px rgba(17, 17, 17, 0.2)); }
.section-head .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.rule { height: 1px; background: var(--rule); position: relative; margin: 24px 0 40px; }
.rule::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.on-dark .section-head .num { color: var(--white-60); }
.on-dark .rule { background: var(--white-10); }
.on-dark .rule::before { background: var(--white); }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.cols-3 h3 { margin-bottom: 12px; }

/* Report */
.report-hero { padding: 72px 0 64px; }
.report-hero .grid { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; }
.report-hero h1 { font-size: 44px; letter-spacing: 0.06em; margin: 16px 0 24px; }
.report-hero .url { font-family: var(--mono); font-size: 13px; color: var(--white-60); word-break: break-all; }
.score-ring { width: 220px; height: 220px; margin-left: auto; position: relative; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring .value { font-family: var(--serif); font-size: 64px; line-height: 1; }
.score-ring .eyebrow { font-size: 12px; margin-top: 8px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--white-10); }
.tile .big { font-family: var(--serif); font-size: 44px; line-height: 1; margin: 8px 0 12px; }
.on-dark .bar { background: var(--white-10); }
.on-dark .bar i { background: var(--white); }

.prose { max-width: 720px; font-size: 22px; }

.impression { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.impression .eyebrow { color: var(--accent); margin-bottom: 8px; }
.impression .value { font-size: 22px; }
.clarity { --light: var(--ink-60); }
.clarity.good { --light: #2f7a4f; }
.clarity.mid { --light: #c2891f; }
.clarity.bad { --light: #b3341f; }
.clarity .pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border: 1px solid var(--light); color: var(--light); font-family: var(--sans); font-size: 15px; letter-spacing: 0.15em; text-transform: uppercase; background: var(--white); }
.clarity .light { width: 11px; height: 11px; background: var(--light); transform: rotate(45deg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--light) 18%, transparent); }
.clarity .small { margin: 10px 0 0; max-width: 32ch; }

.group-grid { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
.group-score .big { font-family: var(--serif); font-size: 96px; line-height: 1; }
.group-score .bar { margin: 16px 0 20px; }
.bar { height: 3px; background: var(--light); }
.bar i { display: block; height: 100%; background: var(--accent); }
.group-body .verdict { font-family: var(--serif); font-size: 26px; line-height: 1.35; margin: 0 0 32px; }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.two-col .eyebrow { color: var(--accent); margin-bottom: 12px; }
.working, .obs { list-style: none; padding: 0; margin: 0; }
.working li { padding: 12px 0; border-top: 1px solid var(--rule); font-size: 18px; }
.obs li { padding: 16px 0; border-top: 1px solid var(--rule); }
.obs h4 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin: 0 0 6px; }
.obs p { font-size: 17px; margin: 0; color: var(--ink-80); }

.help { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--white-10); }
.offerings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 20px; }
.offering { display: block; background: var(--white); color: var(--black); padding: 32px; text-decoration: none; border-top: 2px solid transparent; }
.offering.fit { border-top-color: var(--accent); }
.offering h3 { margin-bottom: 10px; }
.offering p { font-size: 17px; color: var(--ink-80); }
.offering .eyebrow { color: var(--accent); font-size: 12px; }

.shots { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.shot { background: var(--white); padding: 16px; }
.shot .eyebrow { margin-bottom: 12px; color: var(--ink-60); }
.shot img { border: 1px solid var(--rule); }

.checks { columns: 2; column-gap: 48px; font-size: 16px; }
.checks h3 { break-after: avoid; margin: 0 0 12px; }
.checks ul { list-style: none; padding: 0; margin: 0 0 32px; break-inside: avoid; }
.checks li { padding: 6px 0; border-top: 1px solid var(--rule); display: flex; gap: 12px; }
.checks .st { font-family: var(--mono); font-size: 11px; min-width: 40px; padding-top: 4px; }
.st.pass { color: var(--accent); } .st.warn { color: #7a5a12; } .st.fail { color: #8a2f1e; } .st.info { color: var(--ink-60); }

/* Progress */
.progress { max-width: 640px; }
.report-hero.progress { padding: 80px 0 72px; max-width: none; }
.progress-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.carousel-wrap { padding-top: 8px; }
.carousel { position: relative; border: 1px solid var(--white-10); min-height: 400px; overflow: hidden; background: rgba(0, 0, 0, 0.12); }
.carousel .slide { position: absolute; inset: 40px 40px 72px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.7s ease; }
.carousel .slide.active { opacity: 1; pointer-events: auto; }
.carousel .medal { display: flex; align-items: center; justify-content: center; }
.carousel .medal img { width: 100%; height: auto; max-height: 240px; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35)); transform: rotate(-8deg) scale(0.92); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.carousel .slide.active .medal img { transform: none; }
.carousel .text { transform: translateY(12px); transition: transform 0.7s ease; }
.carousel .slide.active .text { transform: none; }
.carousel .line { font-family: var(--serif); font-size: 26px; line-height: 1.3; margin: 12px 0 12px; }
.carousel .receipt { color: var(--white-60); font-size: 16px; line-height: 1.5; margin: 0; }
.carousel .dots { position: absolute; left: 40px; bottom: 32px; display: flex; gap: 12px; }
.carousel .dots button { width: 9px; height: 9px; padding: 0; border: 1px solid var(--white); background: transparent; transform: rotate(45deg); cursor: pointer; opacity: 0.6; }
.carousel .dots button.on { background: var(--white); opacity: 1; }
.carousel .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--white); animation: carousel-bar 6s linear forwards; }
.carousel.paused .bar { animation-play-state: paused; }
@keyframes carousel-bar { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .carousel .slide, .carousel .text, .carousel .medal img { transition: none; transform: none; }
  .carousel .bar { animation: none; }
}
.captured .shots { margin-top: 8px; }
.captured { scroll-margin-top: 24px; }
.progress-note a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.captured-facts { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); max-width: 820px; }
.captured-facts p { margin: 0 0 12px; font-size: 18px; }
.captured-facts .eyebrow { margin-right: 12px; }
.working { padding: 56px 0; position: relative; overflow: hidden; }
/* A light that travels along the top edge, so the band reads as moving even at a glance. */
.working .sweep { position: absolute; top: 0; left: 0; height: 2px; width: 28%; background: linear-gradient(90deg, transparent, var(--white) 40%, var(--white) 60%, transparent); animation: sweep 2.6s ease-in-out infinite; }
.working-row { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.working-row .dot { position: relative; width: 14px; height: 14px; background: var(--white); transform: rotate(45deg); animation: pulse 1s infinite alternate; }
/* Rings that grow out of the diamond and fade, one after another. */
.working-row .dot::before, .working-row .dot::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--white); animation: ring 2s ease-out infinite; }
.working-row .dot::after { animation-delay: 1s; }
.working-row .label { font-family: var(--serif); font-size: 24px; margin: 6px 0 8px; }
.working-row .small { margin: 0; }
.ticking::after { content: ""; display: inline-block; width: 1.6em; text-align: left; animation: ticking 1.6s steps(1) infinite; }
@keyframes sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(360%); } }
@keyframes ring { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes ticking { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@media (prefers-reduced-motion: reduce) {
  .working .sweep, .working-row .dot, .working-row .dot::before, .working-row .dot::after, .ticking::after { animation: none; }
  .working .sweep { width: 100%; opacity: 0.4; }
}
.waiting .group-weights { list-style: none; padding: 0; margin: 32px 0 0; }
.waiting .group-weights li { padding: 14px 0; border-top: 1px solid var(--rule); }
.waiting .group-weights .eyebrow { margin-right: 16px; }
.waiting .group-weights .w { font-family: var(--serif); font-size: 20px; }
.waiting .criteria-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.waiting .criteria-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); break-inside: avoid; font-size: 18px; }
.waiting .criteria-list .w { font-family: var(--mono); font-size: 13px; color: var(--ink-60); }
.steps { list-style: none; padding: 0; margin: 32px 0; }
.steps li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--white-10); font-size: 22px; font-family: var(--serif); color: var(--white-60); }
.steps li.active { color: var(--white); }
.steps li.done { color: var(--white); }
.steps .dot { width: 10px; height: 10px; border: 1px solid currentColor; transform: rotate(45deg); }
.steps li.done .dot { background: var(--white); }
.steps li.active .dot { animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: 0.3; } to { opacity: 1; } }
.log { font-family: var(--mono); font-size: 12px; color: var(--white-60); white-space: pre-wrap; max-height: 200px; overflow: auto; }

footer { padding: 48px 0; font-size: 14px; }
footer .eyebrow { color: var(--white-60); }

details summary { cursor: pointer; font-family: var(--serif); font-size: 24px; }

@media (max-width: 900px) {
  body { font-size: 18px; }
  h1 { font-size: 36px; }
  .hero { padding: 64px 0 80px; }
  .cols-3, .impression, .shots, .report-hero .grid, .group-grid, .two-col, .offerings, .tiles, .progress-grid { grid-template-columns: 1fr; }
  .carousel { min-height: 560px; }
  .working-row { grid-template-columns: auto 1fr; }
  .working-row .btn { grid-column: 2; justify-self: start; }
  .carousel .slide { grid-template-columns: 1fr; gap: 20px; align-content: start; }
  .carousel .medal img { max-height: 180px; }
  .carousel .line { font-size: 22px; }
  .waiting .criteria-list { columns: 1; }
  .score-ring { margin-left: 0; }
  .checks { columns: 1; }
  .audit-form .row { flex-direction: column; }
  .audit-form input[type="url"], .audit-form input[type="text"] { border-right: 1px solid var(--white); }
}

/* House */
.house { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--white-10); display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: baseline; }
.house-name { font-family: var(--serif); font-size: 44px; line-height: 1.1; letter-spacing: 0.06em; }
.house-line { font-size: 22px; margin: 0; }
.offering .eyebrow { display: block; margin-bottom: 12px; }
.offering-note { padding: 32px; border: 1px solid var(--white-10); }
.offering-note p { font-size: 18px; margin: 0; }
@media (max-width: 900px) { .house { grid-template-columns: 1fr; } }

/* Design criteria strip */
.criteria { margin-top: 32px; }
.criteria .eyebrow { color: var(--accent); margin-bottom: 8px; }
.criteria ul { list-style: none; padding: 0; margin: 0; }
.criteria li { display: block; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.criteria .dots { display: inline-flex; gap: 4px; }
.criteria .dots i { width: 8px; height: 8px; border: 1px solid var(--accent); transform: rotate(45deg); display: block; }
.criteria .dots i.on { background: var(--accent); }

.prose { max-width: none; }
.prose ul.plain { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prose ul.plain li { background: var(--white); padding: 32px 32px 36px; font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--black); }
@media (max-width: 900px) { .prose ul.plain { grid-template-columns: 1fr; gap: 16px; } }

/* Charts */
.chart-figure { margin: 0 0 40px; }
.chart-figure figcaption { color: var(--accent); margin-bottom: 12px; }
.chart-wrap { position: relative; }
.chart-wrap svg.chart { width: 100%; display: block; }
.chart .c-grid { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .c-track { fill: var(--light); }
.chart .c-bar { fill: var(--accent); }
.chart .c-hit { fill: transparent; }
.chart .c-row:hover .c-bar { fill: var(--dark); }
.chart-labels { position: absolute; left: 0; right: 0; pointer-events: none; }
.chart-row { position: relative; display: flex; align-items: center; }
.chart-label { font-size: 15px; color: var(--ink-80); padding-right: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-value { position: absolute; font-family: var(--mono); font-size: 12px; color: var(--black); white-space: nowrap; }
.chart-ticks { position: absolute; left: 0; right: 0; height: 16px; }
.chart-ticks span { position: absolute; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--ink-60); }
.chart-table { margin-top: 12px; }
.chart-table summary { font-family: var(--sans); font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-60); cursor: pointer; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.chart-table th { text-align: left; font-weight: 400; padding: 8px 12px 8px 0; border-top: 1px solid var(--rule); white-space: nowrap; }
.chart-table td { padding: 8px 12px 8px 0; border-top: 1px solid var(--rule); vertical-align: top; }

/* Two-tier report */
.obs .evidence { font-family: var(--mono); font-size: 12px; color: var(--ink-60); margin: 8px 0; }
.obs .detail { font-size: 16px; color: var(--ink-80); margin: 8px 0; }
.obs .rec { font-size: 16px; margin: 8px 0; padding-left: 12px; border-left: 2px solid var(--accent); }
.obs .effort { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-60); }
.criteria .crit-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.criteria.with-notes li { display: block; }
.criteria .crit-note { font-size: 13px; color: var(--ink-60); margin: 4px 0 0; }
.full-cta { margin-top: 48px; }
a.internal { display: inline-block; margin-left: 24px; font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--white-60); }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 32px; }
.gallery .thumb { display: block; text-decoration: none; color: var(--ink-60); }
.gallery img { border: 1px solid var(--rule); background: var(--white); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.gallery .eyebrow { display: block; margin-top: 6px; font-size: 11px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.areas li { font-family: var(--serif); font-size: 22px; }
.help-line { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); }
.help-line .eyebrow { color: var(--accent); margin-bottom: 8px; }
.help-line p { font-size: 18px; margin: 0; max-width: 560px; }

.areas .area { display: block; }
.areas .proof { display: block; font-family: var(--sans); font-size: 15px; color: var(--ink-60); margin-top: 4px; }

/* Sales summary: how-we-help panels and primary CTAs */
.btn.primary { background: var(--white); color: var(--accent); border-color: var(--white); }
.btn.primary:hover { background: var(--light); border-color: var(--light); color: var(--dark); }
.btn.large { font-size: 24px; padding: 18px 48px; }
.help-panel { margin-top: 40px; background: var(--accent); color: var(--white); padding: 40px; position: relative; }
.help-panel .panel-medal { position: absolute; top: 32px; right: 40px; width: 132px; height: 132px; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35)); transform: rotate(-6deg); }
.help-panel p, .help-panel .eyebrow { padding-right: 160px; }
.help-panel .eyebrow { color: var(--white-60); margin-bottom: 16px; }
.help-panel p { font-family: var(--serif); font-size: 24px; line-height: 1.4; margin: 0 0 28px; max-width: 640px; }
.closing-cta { margin: 8px 0 56px; }
.closing .offerings { grid-template-columns: minmax(0, 520px); }
@media (max-width: 900px) { .help-panel { padding: 28px; } .help-panel p { font-size: 21px; } .btn.large { font-size: 20px; padding: 14px 32px; } .help-panel .panel-medal { position: static; width: 88px; height: 88px; display: block; margin-bottom: 20px; transform: none; } .help-panel p, .help-panel .eyebrow { padding-right: 0; } }

/* Sales summary: closing section */
.closing-lede { font-family: var(--serif); font-size: 26px; line-height: 1.4; max-width: 760px; margin: 0 0 40px; }
.next-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.next-card { background: var(--white); color: var(--black); padding: 40px; }
.next-card .eyebrow { color: var(--accent); margin-bottom: 14px; }
.next-card h3 { font-size: 30px; line-height: 1.2; margin-bottom: 16px; }
.next-card p { font-size: 18px; color: var(--ink-80); margin: 0 0 20px; }
.next-card .plain-list { list-style: none; padding: 0; margin: 0 0 28px; }
.next-card .plain-list li { padding: 8px 0 8px 22px; position: relative; font-size: 17px; border-top: 1px solid var(--rule); }
.next-card .plain-list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.next-card p.small { font-size: 14px; margin: 16px 0 0; }
.next-card.outline { background: transparent; color: var(--white); border: 1px solid var(--white-10); }
.next-card.outline .eyebrow { color: var(--white-60); }
.next-card.outline .fit-line { color: var(--white); margin-top: -6px; }
.next-card.outline p { color: var(--white-60); }
@media (max-width: 900px) { .next-grid { grid-template-columns: 1fr; } .next-card { padding: 28px; } .next-card h3 { font-size: 26px; } }

/* Services that fit */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { display: block; background: var(--white); color: var(--black); padding: 28px; text-decoration: none; }
.service .eyebrow { display: block; color: var(--accent); margin-bottom: 10px; font-size: 12px; }
.service h3 { font-size: 24px; margin-bottom: 10px; }
.service p { font-size: 16px; color: var(--ink-80); margin: 0; }
.service:hover { background: var(--lightest); }
.closing .next-grid { grid-template-columns: minmax(0, 720px); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

/* Screenshots framed as a browser and a phone, scrollable */
.shots { align-items: start; }
.device { margin: 0; }
.device figcaption { color: var(--ink-60); margin-bottom: 12px; }
.device .frame { background: var(--white); border: 1px solid var(--rule); box-shadow: 0 24px 48px rgba(17, 17, 17, 0.08); }
.device .chrome { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #e8edec; border-bottom: 1px solid var(--rule); }
.device .dots { display: inline-flex; gap: 6px; }
.device .dots i { width: 10px; height: 10px; border-radius: 50%; background: #c8d1cf; display: block; }
.device .urlbar { flex: 1; font-family: var(--mono); font-size: 12px; color: var(--ink-60); background: var(--white); border: 1px solid var(--rule); padding: 5px 10px; }
.device .viewport { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.device .viewport img { display: block; width: 100%; height: auto; }
.device.desktop .viewport { height: 460px; }
.device.mobile { width: 320px; max-width: 100%; margin: 0 auto; }
.device.mobile .frame { border-radius: 32px; border: 6px solid #1a1a1a; overflow: hidden; box-shadow: 0 24px 48px rgba(17, 17, 17, 0.14); }
.device.mobile .chrome { justify-content: center; padding: 10px; background: var(--white); border-bottom: 0; }
.device.mobile .notch { width: 96px; height: 8px; border-radius: 4px; background: #1a1a1a; display: block; }
.device.mobile .viewport { height: 560px; }
.device .hint { font-size: 13px; margin: 10px 0 0; }
@media (max-width: 900px) { .device.desktop .viewport { height: 360px; } }

/* Email gate modal */
body.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(30, 55, 53, 0.72); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 50; }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; background: var(--lightest); color: var(--black); width: 100%; max-width: 520px; padding: 44px 44px 36px; box-shadow: 0 32px 64px rgba(17, 17, 17, 0.25); }
.modal .eyebrow { color: var(--accent); }
.modal h2 { font-size: 34px; margin: 12px 0 12px; }
.modal p { font-size: 17px; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--ink-60); cursor: pointer; }
.modal .field { display: block; margin: 24px 0 16px; }
.modal .field .eyebrow { display: block; margin-bottom: 8px; font-size: 12px; }
.modal input[type="email"] { width: 100%; font-family: var(--sans); font-size: 20px; color: var(--black); background: var(--white); border: 1px solid var(--rule); padding: 12px 14px; border-radius: 0; outline: none; }
.modal input[type="email"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.modal .turnstile { margin: 8px 0 12px; min-height: 65px; }
.modal .btn.solid { width: 100%; text-align: center; margin-top: 8px; }
.modal .form-error { color: #8a2f1e; min-height: 1.4em; margin-bottom: 8px; }
.modal p.small { font-size: 14px; margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Print (used for the PDF versions of both reports) */
@media print {
  body { background: #fff; }
  .site-header a[href="/"]:not(.brand), a.internal, .chart-table, .device .hint { display: none !important; }
  .section { padding: 36px 0; }
  .on-dark, .on-darker, .help-panel { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .section-head, .rule { break-after: avoid; }
  .next-card, .help-panel, .service, .obs li, .device, .group-score, .shots, .tiles { break-inside: avoid; }
  .shots { grid-template-columns: 1fr 1fr; gap: 24px; }
  .device .viewport { height: 380px !important; overflow: hidden !important; }
  .device.mobile { width: 240px; }
  .device.mobile .viewport { height: 380px !important; }
  .device .frame { box-shadow: none; }
  .gallery { display: none; }
}

/* Built with + Then and now (full report) */
.stack { margin: 8px 0 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.stack-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 16px; }
.stack-row .eyebrow { font-size: 11px; padding-top: 4px; color: var(--ink-60); }
.then-now { margin-top: 40px; }
.then-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.then { margin: 0; }
.then img { border: 1px solid var(--rule); background: var(--white); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.then.now img { border-color: var(--accent); }
.then figcaption { margin-top: 6px; font-size: 13px; }
@media (max-width: 900px) { .then-grid { grid-template-columns: repeat(2, 1fr); } .stack-row { grid-template-columns: 1fr; gap: 4px; } }
