:root {
  --paper: #f3f0e5;
  --ink: #182522;
  --muted: #5a6760;
  --line: #d2d7cc;
  --blue: #275447;
  --blue-soft: #e9efe8;
  --green: #2c6747;
  --accent: #f3ce35;
  --ease: cubic-bezier(.22,.75,.24,1);
}
.site-header { background: rgba(243,240,229,.97); }
.brand { font-weight: 700; letter-spacing: -.02em; gap: .26em; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; color: currentColor; overflow: visible; flex: none; }
.brand .brand-mark { width: 1.26em; height: 1.26em; }
.btn { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.secondary:hover { color: var(--ink); }
.btn.light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn.light:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(4px); }
.text-link .arrow { transition: transform .25s var(--ease); }
.header-cta { min-height: 44px; }
.text-link[data-analytics-cta="demo"] { min-height: 44px; }
.preview-ribbon { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 6px var(--gutter); text-align: left; }
.preview-tools { display: flex; align-items: center; gap: 20px; flex: none; }
.preview-tools a { color: #e6e9db; text-decoration-color: #89958e; }
.preview-tools button { border: 0; background: none; color: #e6e9db; font: inherit; min-height: 24px; padding: 0; display: inline-flex; align-items: center; gap: 7px; }
.preview-tools button::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.preview-tools button[aria-pressed=true]::before { background: transparent; border: 1px solid #b5c1b6; }
.preview-tools button:focus-visible { outline-color: var(--accent); }
.hero h1 span { color: var(--blue); }
.hero .overline .small-square { clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); width: 9px; height: 9px; }
.hero-aside { display: block; margin-top: 13px; color: var(--ink); }
.hero-copy { z-index: 3; }
.territory { padding-bottom: 60px; }
.territory-world { position: relative; }
.territory-world img { width: 100%; height: auto; }
.territory-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.territory-route { fill: none; stroke: #3b655e; opacity: .38; stroke-width: 1; stroke-dasharray: 4 5; }
.territory-packet { fill: #c69b12; }
.site-pin { position: absolute; width: 40px; height: 40px; padding: 10px; border: 0; background: none; transform: translate(-50%,-50%); z-index: 2; }
.site-pin span { display: block; width: 20px; height: 20px; clip-path: polygon(25% 7%,75% 7%,100% 50%,75% 93%,25% 93%,0 50%); background: var(--paper); position: relative; transition: background .25s, transform .3s var(--ease); filter: drop-shadow(0 2px 1px #18252233); }
.site-pin span::after { content: ''; position: absolute; inset: 5px; clip-path: inherit; background: var(--ink); }
.site-pin[aria-pressed=true] span { background: var(--accent); transform: scale(1.35); }
.site-pin:hover span { transform: scale(1.45); }
.site-pin:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-radius: 50%; }
.site-pin.one { left: 44%; top: 30%; }
.site-pin.two { left: 71%; top: 44%; }
.site-pin.three { left: 29%; top: 49%; }
.territory-note { left: 41%; bottom: 29px; width: 268px; min-height: 163px; max-width: none; padding: 16px 18px; border-top: 3px solid var(--accent); box-shadow: 2px 7px 0 #1825220c; background: #fffef8; }
.territory-note::before { display: none; }
.territory-note .mono { font-size: 10px; color: var(--muted); }
.territory-note strong { font-size: 15px; line-height: 1.3; margin: 9px 0; letter-spacing: -.025em; max-width: 210px; }
.territory-note p { font-size: 12px; line-height: 1.5; max-width: 210px; }
.scene-status { display: flex; gap: 6px; align-items: center; margin-top: 12px; font-size: 10px; color: var(--green); }
.scene-caption { position: absolute; bottom: 0; left: 13%; right: 12%; display: flex; gap: 20px; justify-content: space-between; align-items: center; }
.scene-caption .caption { font-size: 10px; line-height: 1.5; }
.scene-pagination { display: flex; gap: 5px; }
.scene-pagination i { display: block; width: 5px; height: 5px; background: #b5bcae; }
.scene-pagination i.active { background: var(--ink); }
.scene-caption .caption { margin: 0; }
.hero-floor { margin-top: 30px; }
.hero-floor .services span { display: flex; align-items: center; gap: 9px; }
.hero-floor .services span::before { content: ''; width: 5px; height: 5px; background: var(--ink); }
.demo-nav .play-day { background: var(--ink); color: var(--paper); min-height: 40px; padding: 8px 14px; font-size: 12px; gap: 9px; }
.play-day svg { width: 15px; height: 15px; }
.play-day[aria-pressed=true] svg { opacity: .5; }
.play-day:disabled { opacity: .55; }
.demo-nav > .text-link { margin-left: auto; }
.demo-nav > button[data-next-day] { margin-left: 10px; }
.day-step { transition: color .18s, background .18s; }
.day-step[aria-selected=true] { background: linear-gradient(90deg,#f3ce3530,transparent 90%); }
.day-step::before { clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); border: 0; background: #8a968c; }
.day-step[aria-selected=true]::before { background: var(--blue); }
.field-slip { border-top: 2px solid var(--accent); }
.field-slip .receipt-check svg { width: 21px; height: 21px; }
.care-console { background: #203831; border-color: #4b6659; box-shadow: 18px 18px 0 #101e19; }
.care-console .screen-head, .care-action { border-color: #496357; }
.care-console .caption, .care-console .sample-label, .chart-labels { color: #c1cbbf; }
.care-grid p { color: #c7d0c4; }
.care-console .trend-chart path:last-of-type { stroke: var(--accent); }
.care-console .trend-chart circle { fill: var(--accent); }
.owner-question:hover { padding-left: 8px; }
.owner-question { transition: padding .25s var(--ease), color .2s; }
.bar-fill { background: var(--blue); transform-origin: left; }
.mini-bar:nth-child(2) .bar-fill { background: #a6bba4; }
.mini-bar:nth-child(3) .bar-fill { background: #cfdbbd; }
.closing { background: var(--accent); color: var(--ink); position: relative; overflow: hidden; }
.closing h2 { max-width: 820px; }
.closing p { color: #465142; }
.closing .btn.light { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.closing .btn.light:hover { background: #365345; border-color: #365345; }
.site-footer .brand { font-size: 28px; }
.identity-proof { display: grid; grid-template-columns: 1.15fr .85fr; gap: 75px; align-items: center; padding: 20px 0 75px; }
.identity-hero { background: var(--accent); min-height: 420px; padding: 45px; display: flex; align-items: center; justify-content: center; }
.identity-hero .brand { font-size: clamp(32px,4vw,56px); }
.identity-notes h2 { font-size: 34px; margin-bottom: 24px; }
.identity-notes p { font-size: 16px; color: var(--muted); }
.identity-notes .text-link { margin-top: 24px; }
.identity-scale { display: grid; grid-template-columns: .8fr 1fr 1.2fr; gap: 35px; align-items: center; border-top: 1px solid var(--line); padding-top: 50px; }
.identity-sizes { display: flex; gap: 25px; align-items: baseline; padding-top: 25px; }
.identity-sizes .brand-mark:nth-child(1) { height: 16px; width: 16px; }
.identity-sizes .brand-mark:nth-child(2) { height: 24px; width: 24px; }
.identity-sizes .brand-mark:nth-child(3) { height: 32px; width: 32px; }
.identity-favicons { display: flex; align-items: center; gap: 20px; margin-top: 25px; }
.identity-favicons img { flex: none; }
.identity-reverse { background: var(--ink); color: var(--paper); padding: 35px; }
.identity-reverse .brand { font-size: 25px; }
.identity-reverse .brand-mark { color: var(--paper); }
.identity-swatches { display: flex; margin-top: 15px; }
.identity-swatches span { flex: 1; font: 10px/1.6 PlexMono,monospace; padding: 18px 13px; }
html[data-motion=on] [data-reveal] { transition: opacity .65s var(--ease), transform .65s var(--ease); }
html[data-motion=on] [data-reveal]:not(.is-revealed) { opacity: 0; transform: translateY(22px); }
html[data-motion=on] .territory-world { animation: arrive-on-site .9s var(--ease) both; }
html[data-motion=on] .hero-copy { animation: arrive-copy .7s var(--ease) both; }
html[data-motion=on] .care-console.is-revealed .trend-chart path:last-of-type { animation: trace-reading 1.7s var(--ease) both; }
html[data-motion=on] .care-console.is-revealed .care-action { animation: answer-reading .6s .9s var(--ease) both; }
html[data-motion=on] .field-frame.is-revealed .field-slip { animation: set-down-note .65s .25s var(--ease) both; }
html[data-motion=on] .field-frame.is-revealed .receipt-check svg { animation: answer-reading .35s .75s both; }
html[data-motion=on] .owner-board.is-revealed .bar-fill { animation: read-capacity .65s .25s var(--ease) both; }
html[data-motion=off] *, html[data-motion=off] *::before, html[data-motion=off] *::after { animation: none !important; transition: none !important; }
html[data-motion=off] [data-reveal] { opacity: 1; transform: none; }
@keyframes arrive-on-site { from { opacity: .25; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes arrive-copy { from { opacity: .5; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes trace-reading { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes answer-reading { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes set-down-note { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes read-capacity { from { transform: scaleX(.01); } to { transform: scaleX(1); } }
@media(min-width:701px) and (max-width:1000px) {
  .territory { padding-bottom: 160px; }
  .territory-note { width: 236px; left: 7%; bottom: 57px; }
  .scene-caption { left: 6%; right: 80px; }
  .scene-caption .caption { max-width: 200px; }
  .demo-nav { flex-wrap: wrap; }
  .demo-nav > .text-link { font-size: 12px; }
}
@media(max-width:700px) {
  .preview-ribbon { font-size: 8px; gap: 14px; padding: 4px var(--gutter); }
  .preview-ribbon>span:first-child { max-width: 180px; }
  .preview-tools { gap: 12px; }
  .preview-tools button { min-height: 30px; white-space: nowrap; }
  .preview-tools button::before { width: 4px; height: 4px; }
  .preview-tools a { white-space: nowrap; }
  .brand { font-size: 22px; }
  .header-cta { min-height: 39px; }
  .hero-aside { margin-top: 12px; }
  .territory { margin-top: 26px; padding-bottom: 160px; }
  .territory-note { width: 235px; min-height: 159px; left: auto; right: 20px; bottom: 39px; padding: 14px 16px; }
  .territory-note strong { font-size: 14px; }
  .scene-caption { left: 20px; right: 20px; }
  .scene-caption .caption { max-width: 245px; font-size: 9px; }
  .site-pin { width: 36px; height: 36px; padding: 10px; }
  .site-pin span { width: 16px; height: 16px; }
  .site-pin span::after { inset: 4px; }
  .hero-floor .services span { gap: 6px; }
  .hero-floor .services span::before { width: 3px; height: 3px; }
  .demo-nav { gap: 18px; flex-wrap: wrap; }
  .demo-nav>.text-link { order: 3; margin-left: 0; max-width: none; flex-basis: auto; font-size: 13px; }
  .demo-nav>button[data-next-day] { margin-left: auto; }
  .demo-nav .play-day { font-size: 11px; }
  .day-step[aria-selected=true] { background: none; }
  .care-console { box-shadow: 8px 8px 0 #101e19; }
  .closing h2 { font-size: 40px; }
  .identity-proof { grid-template-columns: 1fr; gap: 35px; padding-bottom: 45px; }
  .identity-hero { min-height: 300px; padding: 25px; }
  .identity-scale { grid-template-columns: 1fr; padding-top: 30px; }
  .identity-swatches span { padding: 18px; }
}
@media(max-width:370px) {
  .brand { font-size: 19px; }
  .preview-ribbon { gap: 7px; }
  .preview-tools { gap: 9px; }
  .preview-ribbon>span:first-child { max-width: 120px; }
  .hero-floor .services { flex-wrap: wrap; }
  .demo-nav { flex-direction: row; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html[data-motion=on] [data-reveal] { opacity: 1; transform: none; }
}
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; } }
html[data-page-visible=false] *, html[data-page-visible=false] *::before, html[data-page-visible=false] *::after { animation-play-state: paused !important; }
html[data-motion=on] .day-demo[data-playing=true] .day-step[aria-selected=true]::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--blue); transform-origin: left; animation: visit-progress 5.8s linear both; }
@keyframes visit-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* The construction stays on the internal identity sheet, off the marketing pages. */
.identity-page .page-hero { padding-top: 65px; padding-bottom: 45px; }
.identity-page .page-hero h1 { font-size: clamp(40px,5vw,64px); }
.identity-page .page-hero .lead { max-width: 750px; font-size: 20px; }
.identity-construction { margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.identity-construction>summary { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 26px 0; font-size: 24px; font-weight: 600; letter-spacing: -.035em; cursor: pointer; list-style: none; }
.identity-construction>summary::-webkit-details-marker { display: none; }
.construction-hint { display: inline-flex; align-items: center; gap: 25px; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.construction-hint span { display: block; font-size: 28px; font-weight: 300; color: var(--ink); }
.identity-construction[open] .construction-hint span { transform: rotate(45deg); }
.identity-construction summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.construction-body { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; padding: 30px 0 55px; align-items: center; }
.construction-body figure { margin: 0; }
.construction-body img { width: 100%; max-width: 480px; height: auto; margin: 0 auto; }
.construction-body figcaption { font: 11px/1.6 PlexMono,monospace; max-width: 340px; margin: 15px auto 0; color: var(--muted); }
.construction-notes h2 { font-size: 35px; margin-bottom: 28px; }
.construction-notes p { font-size: 16px; color: var(--muted); }
.construction-notes a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.math-aside { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 22px; }
.math-aside summary { cursor: pointer; font-size: 16px; font-weight: 600; }
.math-aside p:first-of-type { margin-top: 20px; }
.math-formula { white-space: nowrap; font-family: PlexMono,monospace; color: var(--ink); font-size: 14px; }
@media(max-width:1000px) {
  .identity-proof { gap: 35px; }
  .construction-body { gap: 35px; }
  .construction-notes h2 { font-size: 29px; }
}
@media(max-width:700px) {
  .identity-page .page-hero { padding-top: 40px; padding-bottom: 25px; }
  .identity-page .page-hero .lead { font-size: 18px; }
  .identity-construction { margin-top: 45px; }
  .identity-construction>summary { font-size: 21px; padding: 20px 0; gap: 15px; }
  .construction-hint { font-size: 0; gap: 0; }
  .construction-body { grid-template-columns: 1fr; padding-top: 0; }
  .construction-body img { max-width: 370px; }
  .construction-body figcaption { font-size: 10px; max-width: 280px; }
}

/* Public site: controls and worked report proof. */
.motion-control { border: 0; padding: 8px 0; color: inherit; background: none; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.motion-control:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.report-proof .proof-document { justify-self: center; display: block; width: min(100%, 350px); transform: rotate(2deg); box-shadow: 15px 18px 0 #0e1c1866; transition: transform .25s var(--ease); }
.report-proof .proof-document:hover { transform: rotate(0); }
.report-proof .proof-document img { width: 100%; height: auto; }
.report-proof .proof-caption { margin-top: 28px; max-width: 48ch; color: #c1cbbf; }
.offer-terms h3 { font-size: 25px; margin: 0 0 14px; }
.offer-terms h3:not(:first-child) { margin-top: 36px; }
.offer-terms p { color: var(--muted); }
.anchor-target { display: block; scroll-margin-top: 110px; }
@media(max-width:700px) {
  .report-proof .proof-document { width: min(80%, 310px); margin-top: 18px; }
  .footer-bottom .motion-control { padding: 0; }
}
