:root {
  color-scheme: light;
  --night: #172335;
  --pale: #bccadc;
  --lime: #dcf78a;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff;
  background: var(--night);
}
* { box-sizing: border-box; }
body, h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
:is(a, button, summary):focus-visible { outline: 3px solid #309aff; outline-offset: 3px; }
.sr, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wrap { width: min(calc(100% - 2.5rem), 74rem); margin-inline: auto; }
.mast { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding-block: .8rem; border-bottom: 1px solid #435168; }
.mast b { color: var(--lime); font-size: 1.45rem; }
.mast a, .micro { font-size: .875rem; color: var(--pale); }
.mast a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .25rem; }
.hero, .case, .contact { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2.25rem, 6vw, 5rem); }
.eyebrow { color: var(--lime); font-size: .875rem; font-weight: 650; margin-bottom: .85rem; }
h1, h2 { line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.65rem); letter-spacing: -.045em; }
h1 em { font-style: normal; color: var(--lime); }
h2 { font-size: clamp(1.55rem, 3vw, 2.65rem); }
p, dd { line-height: 1.75; }
li { line-height: 1.65; }
li + li { margin-top: .3rem; }
ul { padding-left: 1.25rem; }
.lede { margin: 1.25rem 0; max-width: 30em; color: #dce5f0; font-size: 1.1rem; }
.cta { display: inline-flex; align-items: center; gap: 1.6rem; padding: .8rem 1.15rem; border-radius: .45rem; background: var(--lime); color: #202c19; text-decoration: none; font-weight: 700; }
.cta:hover { background: #edffc1; }
.micro { margin-top: .65rem; }
.sample { margin: 0; min-width: 0; padding: clamp(1.15rem, 2.5vw, 2rem); border: 1px solid #c3d2e6; border-radius: 1rem; color: #152438; background: #f8fbff; box-shadow: .45rem .45rem 0 #35455c; }
.sample-head { display: flex; align-items: center; gap: .55rem; font-weight: 700; margin-bottom: .9rem; }
.sample-head small { margin-left: auto; font-weight: 500; color: #526279; }
.sample video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #172335; }
.caption { margin: .65rem 0 1rem; color: #526279; font-size: .875rem; }
.caption-spaced { margin-top: 2rem; }
.case p + p { margin-top: .75rem; }
.paper { color: var(--night); background: #f0f4f7; }
.paper .eyebrow { color: #445f37; }
.case h2 + p, .contact .cta { margin-top: 1rem; }
.paper + .paper .case { border-top: 1px solid #c3d2de; }
.receipt figcaption { display: grid; gap: .4rem; }
.receipt figcaption strong { font-size: clamp(1.25rem, 2.3vw, 1.8rem); }
.receipt small, blockquote small { display: block; font: 600 .875rem/1.5 ui-monospace, monospace; letter-spacing: .07em; }
.receipt dl { margin: 1rem 0; }
.receipt dl div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .8rem; padding: .85rem 0; border-bottom: 1px dashed #aab8c5; }
.receipt dt { color: #526279; font-size: .875rem; }
.receipt dd strong { white-space: nowrap; color: #365728; }
.sample > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.case h3, .contact h3 { margin: 0 0 .65rem; }
.case h3:not(:first-child) { margin-top: 1.5rem; }
blockquote { margin: 1.5rem 0 0; padding: 1.1rem 1.25rem; border: 1px solid #526279; border-radius: .5rem; line-height: 1.75; }
blockquote small { color: var(--pale); margin-bottom: .4rem; }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: .65rem; }
.email-line button { background: transparent; border: 0; color: var(--lime); padding: .4rem; min-height: 44px; text-decoration: underline; text-underline-offset: .25em; font: inherit; cursor: pointer; }

/* Case-study callouts: verified offline test vs. client pilot */
.callout { margin: 1rem 0 1.25rem; padding: 1rem 1.15rem; border-left: 3px solid #445f37; background: #f8fbff; }
.callout > p:first-child { margin-bottom: .35rem; color: #152438; font-size: 1rem; }
.callout p { color: #3f4c5e; font-size: .9rem; }
.callout ul { margin: .35rem 0 0; padding-left: 1.2rem; }
.callout li { color: #3f4c5e; font-size: .9rem; line-height: 1.65; }
.callout .note { margin-top: .55rem; color: #5a6779; font-size: .8rem; line-height: 1.6; }

.sample-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .9rem; margin-top: .2rem; }
.sample-actions > a { display: inline-flex; align-items: center; min-height: 44px; }
.text-cta { font-weight: 650; color: #365728; }

/* Capability matrix: scrolls on narrow screens instead of squeezing four columns */
.table-scroll { margin: 1.5rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 3px solid #309aff; outline-offset: 3px; }
.table-hint { margin: -.75rem 0 0; color: #526279; font-size: .8rem; }
table { width: 100%; border-collapse: collapse; margin: 0; font-size: .9rem; }
thead { background: #d5e3f2; }
th, td { padding: .75rem; text-align: left; border: 1px solid #c3d2de; }
th { font-weight: 700; color: #152438; }
tbody tr:nth-child(even) { background: #f8fbff; }

/* Details/summary styles for case studies */
details { margin: 1rem 0; border: 1px solid #526279; border-radius: .5rem; overflow: hidden; }
details + details { margin-top: .75rem; }
summary { padding: 1rem 1.25rem; cursor: pointer; list-style: none; background: #1f2d42; color: #fff; font-weight: 700; transition: background .2s; }
summary::-webkit-details-marker { display: none; }
summary::before { content: '▶ '; display: inline-block; margin-right: .5rem; transition: transform .2s; }
details[open] summary::before { transform: rotate(90deg); }
summary:hover { background: #2a3b52; }
details blockquote { margin: 0; border: 0; border-radius: 0; background: #f8fbff; color: #152438; }
details ul { margin: .5rem 0; line-height: 1.65; }
details ul li { margin: .35rem 0; }

@media (max-width: 51.99rem) {
  .table-scroll { border: 1px solid #c3d2de; border-radius: .5rem; }
  table { min-width: 640px; }
}

@media (min-width: 52rem) {
  .hero, .case, .contact { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
  .case--wide { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
  .case--wide > div:first-child { max-width: 48rem; }
  .table-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  summary, summary::before { transition: none; }
}
