/* Without a resolved theme the homepage stays light; the tokens resolve through light-dark(). */
:root:not([data-theme=dark]) { color-scheme: light; }

body { background: var(--paper); }
html { scroll-padding-top: 28px; }
.skip-link { position: absolute; top: -70px; left: 24px; z-index: 20; padding: 12px 20px; background: var(--ink); color: light-dark(var(--light-surface), var(--paper)); }
.skip-link:focus { top: 12px; }
.top nav a { position: relative; }
.top nav a:not(:last-child)::after { content: ''; position: absolute; bottom: 8px; left: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.top nav a:not(:last-child):hover::after { transform: scaleX(1); }
/* All headings inherit the original typography and responsive scale from base.css. */
.hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: 56px; padding: 64px var(--page-gutter) 72px; border: 0; }
.hero-copy { padding: 0; }
.hero h1 span { color: var(--accent); }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.hero-cta { gap: 32px; min-height: 52px; padding: 14px 20px; }
.hero-trial { margin-top: 22px; }
.hero-check { position: relative; isolation: isolate; padding: 24px 28px 17px; background: linear-gradient(180deg, color-mix(in srgb, var(--light-action) 75%, var(--light-dark)) 0%, var(--light-dark) 55%, var(--dark-canvas) 100%); border: 0; outline: 1px solid light-dark(transparent, var(--line)); outline-offset: -1px; border-radius: 6px; min-height: 492px; overflow: hidden; justify-content: flex-start; }
.visual-stage { width: 100%; flex: 1; min-height: 206px; display: grid; place-items: center; container-type: inline-size; }
/* Two steps, as in the owner's mockup (2026-11-02): upload once, then every call. */
.model-flow { width: 100%; display: flex; flex-direction: column; padding: 4px 0 18px; color: var(--light-surface); }
.flow-step { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0 16px; }
.flow-step + .flow-step { border-top: 1px solid color-mix(in srgb, var(--mint) 35%, transparent); }
.flow-title { align-self: flex-start; display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.flow-title span { font: 500 12px var(--font-mono); letter-spacing: .06em; color: var(--mint); }
.flow-row { display: flex; align-items: flex-start; justify-content: center; gap: 16px; }
.flow-item { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 64px; font-size: 13px; line-height: 1.3; }
.flow-item>svg { width: 32px; height: 40px; stroke: var(--light-surface); stroke-width: 1.2; }
.flow-item>.flow-gear { width: 36px; stroke-width: .9; }
.flow-item text { fill: var(--light-surface); stroke: none; font: italic 500 15px Georgia, "Times New Roman", serif; }
.flow-item .flow-tag { font: 600 8px ui-monospace, SFMono-Regular, Consolas, monospace; }
.flow-arrow { flex: 0 1 52px; min-width: 28px; height: 12px; margin-top: 14px; stroke: var(--mint); stroke-width: 1.4; }
.flow-note { margin: 0; font-size: 12px; color: var(--mint); text-align: center; }
@container (max-width: 380px) { .flow-row { gap: 8px; } .flow-item { min-width: 52px; } }
.check-card { position: relative; width: 100%; padding: 9px; background: var(--white); color: var(--ink); border-radius: 5px; animation: card-glow 2.4s ease-in-out .5s 1 both paused; }
/* One sweep around the check card when it first comes into view, to point at the upload (owner, 2026-11-02); home.js adds .seen. */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.check-card::before { content: ""; position: absolute; inset: -3px; padding: 3px; border-radius: 8px; pointer-events: none; opacity: 0; background: conic-gradient(from var(--sweep), var(--light-accent), var(--light-signal) 100deg, var(--light-mint) 160deg, #fff 180deg, var(--light-mint) 200deg, var(--light-signal) 260deg, var(--light-accent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: card-sweep 2.4s cubic-bezier(.45, 0, .25, 1) .5s 1 both paused; }
.check-card.seen, .check-card.seen::before { animation-play-state: running; }
@keyframes card-sweep { 0% { --sweep: 0deg; opacity: 0; } 15%, 75% { opacity: 1; } 100% { --sweep: 360deg; opacity: 0; } }
@keyframes card-glow { 0%, 100% { box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent; } 45% { box-shadow: 0 0 32px 6px light-dark(color-mix(in srgb, var(--light-signal) 80%, transparent), color-mix(in srgb, var(--light-signal) 40%, transparent)), 0 0 72px 20px light-dark(color-mix(in srgb, var(--light-mint) 45%, transparent), transparent); } }
.drop { max-width: none; min-height: 173px; padding: 24px 10px 20px; border-color: var(--control-border); background: var(--white); }
.drop:hover, .drop.over { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px light-dark(var(--light-accent-glow), var(--dark-glow)); }
.drop>span:last-child { font-size: 13px; margin-top: 7px; }
.upload-mark { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; color: var(--action); }
.upload-mark svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.sample { color: var(--dark-muted); font-size: var(--font-caption); margin: 9px 0 0; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; justify-content: center; }
.sample button { color: var(--light-surface); min-height: 44px; gap: 7px; text-underline-offset: 4px; text-decoration-color: var(--control-border); font-size: var(--font-support); }
.sample button:hover, .sample button:active { color: var(--light-surface); text-decoration-color: var(--light-surface); }
.sample button:focus-visible { outline-color: var(--light-surface); }
#status { padding: 0 6px 6px; margin-top: 10px; }
.cards { padding: 44px var(--page-gutter) 72px; border: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.cards .grid { border-radius: 5px; border: 1px solid var(--line); background: var(--white); }
.cards article { position: relative; padding: 30px 30px 21px; min-height: 260px; }
.cards article+article { border-left: 1px solid var(--line); }
.feature-icon { width: 40px; height: 40px; margin-bottom: 24px; background: var(--soft); color: var(--accent); }
.feature-icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.cards article p { font-size: 14px; max-width: 260px; margin: 12px 0 21px; }
.cards .button, .cards article>button { font-size: 13px; font-weight: 600; }
.cards .button svg, .cards article>button svg { width: 17px; height: 17px; }
.cards .button:hover, .cards article>button:hover { text-decoration: underline; text-underline-offset: 5px; }
.why { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); padding: 0; gap: 0; margin: 0 var(--page-gutter); background: var(--dark); color: var(--light-surface); border-radius: 6px; overflow: hidden; align-items: stretch; }
.why-art { position: relative; isolation: isolate; min-height: 400px; }
.why-art::after { content: ''; position: absolute; inset: 0; background: light-dark(var(--light-shadow-pressed), var(--dark-shadow)); z-index: -1; }
.why-art>img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 50% 54%; z-index: -2; }
.why-title { padding: 42px; }
.why .grid { padding: 22px 40px; grid-template-columns: 1fr; gap: 0; }
.why .grid>div { display: block; padding: 26px 0 25px; grid-row: auto; }
.why .grid>div+div { border-top: 1px solid light-dark(var(--light-line-inverse), var(--dark-line)); }
.why h3::before { display: none; }
.why p { margin-top: 10px; color: var(--dark-muted); font-size: 14px; }
.pricing { padding: 86px var(--page-gutter) 66px; border: 0; }
.pricing .section-heading { margin-bottom: 32px; }
.pricing .section-heading>.muted { font-size: 13px; padding-bottom: 5px; }
.pricing .grid { margin-top: 0; gap: 20px; }
.pricing article { --focus: color-mix(in srgb, var(--accent), light-dark(var(--light-surface), var(--dark-inverse)) var(--plan-emphasis)); border-radius: 4px; padding: 28px; }
.price { margin-top: 26px; }
.pricing ul { font-size: 14px; padding-top: 23px; padding-bottom: 27px; }
.pricing li { margin-bottom: 11px; }
.pricing .button { font-size: 13px; font-weight: 600; }
.pricing .grid.pricing-flow { --pricing-gap: 20px; }
.pricing .button:hover { background-color: var(--soft); }
.pricing .button:active { background-color: var(--soft-pressed); }
.pricing-flow>article:has(>.button:hover) .pricing-flow-layer .button { background-color: var(--soft); }
.pricing-flow>article:has(>.button:active) .pricing-flow-layer .button { background-color: var(--soft-pressed); }
.trial-note { margin-top: 25px; font-size: 12px; }
.faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); padding: 66px var(--page-gutter) 78px; gap: 0 70px; border-top: 1px solid var(--line); }
.faq summary { min-height: 67px; padding: 20px 0; gap: 18px; }
.faq summary::before { display: block; left: -20px; top: calc(20px + .825em - 3px); background: var(--accent); }
.faq details p { font-size: 14px; line-height: 1.85; padding: 0 25px 22px 0; }
footer { padding: 30px var(--page-gutter) 24px; gap: 12px 23px; font-size: 12px; background: var(--paper); }
footer>span { font-size: 10px; }
.report { background: var(--white); padding: 45px 64px; margin: 0 var(--page-gutter) 30px; border: 1px solid var(--line); border-radius: 5px; }
dialog { background: var(--surface-raised); border-radius: 5px; }
dialog::backdrop { background: light-dark(var(--light-overlay), var(--dark-overlay)); backdrop-filter: blur(2px); }
dialog .close { border-radius: 4px; }

@media (max-width: 1200px) {
  .hero { padding-top: 52px; padding-bottom: 58px; gap: 35px; }
  .hero-actions { gap: 20px; }
  .hero-check { padding-left: 20px; padding-right: 20px; }
  .cards { padding-top: 42px; padding-bottom: 62px; }
  .cards article { padding-right: 24px; padding-left: 24px; }
  .why-title { padding: 35px; }
  .why .grid { padding: 15px 32px; }
  .pricing { padding-top: 70px; padding-bottom: 58px; }
  .pricing article { padding: 24px; }
  .faq { padding-top: 58px; padding-bottom: 65px; gap: 0 40px; }
  footer { gap: 10px 19px; }
  .report { padding: 32px; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .hero { gap: 26px; }
  .hero-actions { flex-wrap: wrap; gap: 4px 18px; }
  .hero-cta { gap: 22px; }
  .hero-check { padding: 20px 15px 13px; min-height: 462px; }
  .sample { gap: 5px; line-height: 1.5; }
  .cards article { padding-left: 20px; padding-right: 20px; }
  .pricing article { padding: 20px; }
  .pricing .grid { gap: 14px; }
  .pricing .grid.pricing-flow { --pricing-gap: 14px; }
  .pricing ul { font-size: 12px; }
}

@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 34px; padding: 42px 24px 45px; }
  .hero-copy { padding: 0; }
  .hero-actions { gap: 24px; flex-wrap: wrap; }
  .hero-cta { gap: 26px; min-height: 50px; padding: 13px 17px; }
  .hero-trial { margin-top: 18px; }
  .hero-check { min-height: 450px; padding: 21px 20px 13px; border: 0; }
  .visual-stage { min-height: 185px; }
  .drop { min-height: 166px; }
  .sample { margin-top: 9px; gap: 3px; }
  .sample button { min-height: 44px; }
  .section-heading { display: block; margin-bottom: 26px; }
  .cards { padding: 12px 24px 46px; }
  .cards .grid { grid-template-columns: 1fr; }
  .cards article, .cards article:first-child, .cards article:last-child { padding: 26px 24px 17px; min-height: 0; }
  .cards article+article { border-left: 0; }
  .feature-icon { margin-bottom: 20px; }
  .cards article p { max-width: none; font-size: 14px; margin: 10px 0 12px; }
  .cards .button, .cards article>button { font-size: 13px; min-height: 48px; }
  .why { display: block; margin: 0 24px; border-radius: 5px; }
  .why-art { min-height: 240px; }
  .why-title { padding: 28px; }
  .why-art>img { object-position: 50% 46%; }
  .why .grid { display: block; padding: 4px 28px 7px; }
  .why .grid>div { padding: 23px 0; }
  .why p { margin-top: 9px; font-size: 13px; }
  .pricing { padding: 50px 24px 45px; }
  .pricing .section-heading { margin-bottom: 25px; }
  .pricing .section-heading>.muted { margin-top: 14px; }
  .pricing .grid { margin: 0; gap: 14px; }
  .pricing article { padding: 27px; }
  .pricing ul { font-size: 14px; padding-bottom: 22px; }
  .trial-note { text-align: left; font-size: 11px; line-height: 1.8; }
  .faq { display: block; padding: 42px 24px 45px; }
  .faq summary { padding: 20px 0 20px 20px; }
  .faq summary::before { left: 0; }
  .faq details p { font-size: 14px; padding-left: 20px; }
  footer { padding: 28px 24px 24px; gap: 8px 24px; }
  .footer-brand { margin-bottom: 9px; }
  footer>a:not(.footer-brand) { font-size: 12px; }
  .report { margin: 0 24px 35px; padding: 24px; }
}

@media (max-width: 380px) {
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-actions { gap: 18px; }
  .hero-cta { gap: 20px; }
  .hero-check { padding-left: 14px; padding-right: 14px; }
  .drop>span:last-child { font-size: 12px; }
  .sample { gap: 5px; }
  .cards, .pricing, .faq, footer { padding-left: 20px; padding-right: 20px; }
  .why, .report { margin-left: 20px; margin-right: 20px; }
  .why-title, .why .grid { padding-left: 24px; padding-right: 24px; }
}

/* Keep the build's plain-text CTA markup; arrows are decorative. */
.cards article>button::after, .cards .button::after, .pricing .button::after {
  content: ''; flex: 0 0 17px; width: 17px; height: 17px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero-copy, .hero-check, .check-card, .model-flow { min-width: 0; }
#status { overflow-wrap: anywhere; }
#status:not(:empty) { display: flex; align-items: center; gap: 10px; }
#status:not(:empty)::before {
  content: ''; flex: 0 0 16px; width: 16px; height: 16px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: home-spin .8s linear infinite;
}
.drop.checking { border-style: solid; background: var(--soft); }
.drop.checking input { cursor: wait; }
.sample button:disabled { opacity: .65; cursor: wait; }
.report { scroll-margin-top: 28px; }
.report-error { border-color: var(--danger); }
.report .table-wrap { max-width: 100%; overflow-x: auto; }
.report table { min-width: 650px; }
@media (max-width: 760px) {
  .report { margin-inline: 12px; padding: 16px 12px; }
  .report table { min-width: 0; table-layout: fixed; font-size: 12px; }
  .report th, .report td { padding: 8px 4px; overflow-wrap: anywhere; }
  .report th:nth-child(1) { width: 16%; }
  .report th:nth-child(2) { width: 24%; }
  .report th:nth-child(3), .report th:nth-child(4) { width: 20%; }
}
.report th { text-align: left; }
.report td { overflow-wrap: anywhere; }
.report .bad { color: var(--danger); }
#waitlist [type=submit]:disabled { cursor: wait; opacity: .65; }
#waitlist-done:focus { outline: none; }
@keyframes home-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  #status:not(:empty)::before, .check-card, .check-card::before { animation: none; }
}
.home-page .footer-brand[aria-current=page] { font-weight: 800; text-decoration: none; }
