/* Workwell platform styles. Brand tokens only (brand/tokens.css → var(--ww-*)); no raw colors here.
   Orange (accent) is reserved for the single primary action on each screen. Light and dark come from the tokens. */
:root { color-scheme: light dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--ww-surface); color: var(--ww-on-surface); font: var(--ww-fw-regular) var(--ww-fs-body)/1.55 var(--ww-font-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ww-secondary); }
a:focus-visible, button:focus-visible, .drop:focus-within { outline: 3px solid var(--ww-secondary); outline-offset: 2px; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--ww-space-3); max-width: 720px; margin: 0 auto; padding: var(--ww-space-4) var(--ww-space-5); }
.brand { display: inline-flex; align-items: center; gap: var(--ww-space-2); color: var(--ww-on-surface); text-decoration: none; font-weight: var(--ww-fw-bold); letter-spacing: -.01em; font-size: var(--ww-fs-lead); }
.brand img { display: block; }
.notice { font-size: var(--ww-fs-caption); font-weight: var(--ww-fw-semibold); color: var(--ww-accent-text); background: var(--ww-accent-container); padding: 4px 10px; border-radius: var(--ww-radius-pill); }

main { max-width: 720px; margin: 0 auto; padding: var(--ww-space-4) var(--ww-space-5) var(--ww-space-7); }
h1 { font-size: clamp(1.9rem, 5.5vw, var(--ww-fs-display)); font-weight: var(--ww-fw-bold); line-height: 1.1; letter-spacing: -.025em; margin: var(--ww-space-3) 0 var(--ww-space-3); }
h2 { font-weight: var(--ww-fw-bold); letter-spacing: -.015em; }
.sub { color: var(--ww-on-surface-muted); font-size: var(--ww-fs-lead); margin: 0 0 var(--ww-space-4); }

.points { list-style: none; display: flex; flex-wrap: wrap; gap: var(--ww-space-2) var(--ww-space-5); padding: 0; margin: 0 0 var(--ww-space-6); }
.points li { position: relative; padding-left: 26px; font-weight: var(--ww-fw-semibold); }
.points li::before { content: ""; position: absolute; left: 0; top: .22em; width: 18px; height: 18px; border-radius: 50%; background: var(--ww-primary-container); }
.points li::after { content: ""; position: absolute; left: 6px; top: calc(.22em + 4px); width: 5px; height: 9px; border: solid var(--ww-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.card { background: var(--ww-surface-raised); border: 1px solid var(--ww-outline); border-radius: var(--ww-radius-lg); padding: var(--ww-space-5); box-shadow: var(--ww-shadow-1); }

/* Upload: the drop zone's button is the screen's one orange action. */
.drop { display: flex; flex-direction: column; align-items: center; gap: var(--ww-space-2); text-align: center; padding: var(--ww-space-6) var(--ww-space-4); border: 2px dashed var(--ww-outline); border-radius: var(--ww-radius-md); cursor: pointer; transition: border-color var(--ww-motion-fast), background var(--ww-motion-fast); }
.drop:hover, .drop.over { border-color: var(--ww-primary); background: var(--ww-primary-container); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop strong { display: inline-block; background: var(--ww-accent); color: var(--ww-on-accent); padding: 12px 24px; border-radius: var(--ww-radius-pill); font-weight: var(--ww-fw-bold); font-size: var(--ww-fs-lead); }
.drop span { color: var(--ww-on-surface-muted); font-size: var(--ww-fs-caption); }
.drop.busy { opacity: .55; pointer-events: none; }
.fine, .fine-print { color: var(--ww-on-surface-muted); font-size: var(--ww-fs-caption); text-align: center; margin: var(--ww-space-3) 0 0; }

#status { margin-top: var(--ww-space-3); min-height: 1.5em; text-align: center; }
#status.error { color: var(--ww-danger); font-weight: var(--ww-fw-semibold); }
#status.working::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: var(--ww-space-2); vertical-align: -2px; border: 2px solid var(--ww-outline); border-top-color: var(--ww-primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #status.working::before { animation: none; } }

/* Result: headline first, detail layered below. */
#result { outline: none; }
#result h2 { margin: 0 0 var(--ww-space-3); font-size: var(--ww-fs-h2); }
.change { border: 1px solid var(--ww-outline); border-radius: var(--ww-radius-md); padding: var(--ww-space-4); margin: 0 0 var(--ww-space-4); background: var(--ww-surface-sunken); }
.label { font-size: .75rem; font-weight: var(--ww-fw-semibold); text-transform: uppercase; letter-spacing: .06em; color: var(--ww-on-surface-muted); margin: var(--ww-space-3) 0 2px; }
.change .label:first-child { margin-top: 0; }
.before { margin: 0; color: var(--ww-on-surface-muted); text-decoration: line-through; text-decoration-color: var(--ww-danger); }
.after { margin: 0; color: var(--ww-primary); font-weight: var(--ww-fw-semibold); }
.why { margin: var(--ww-space-3) 0 0; color: var(--ww-on-surface-muted); font-size: .92rem; }
.more { margin: var(--ww-space-1) 0 var(--ww-space-5); padding-left: 20px; }
.more li { margin: var(--ww-space-1) 0; }
.note { color: var(--ww-on-surface-muted); }
.filename { font-weight: var(--ww-fw-semibold); word-break: break-word; }

button { font: inherit; cursor: pointer; }
.primary { display: block; width: 100%; border: 0; border-radius: var(--ww-radius-pill); padding: 14px 20px; background: var(--ww-accent); color: var(--ww-on-accent); font-weight: var(--ww-fw-bold); font-size: var(--ww-fs-lead); text-align: center; transition: filter var(--ww-motion-fast); }
.primary:hover { filter: brightness(1.06); }
.primary:disabled { opacity: .6; cursor: wait; }
.secondary { background: transparent; color: var(--ww-primary); border: 0; box-shadow: inset 0 0 0 1.5px var(--ww-outline); border-radius: var(--ww-radius-pill); padding: 10px 18px; margin-top: var(--ww-space-2); font-weight: var(--ww-fw-semibold); }
.link { display: block; margin: var(--ww-space-4) auto 0; background: none; border: 0; color: var(--ww-secondary); text-decoration: underline; padding: var(--ww-space-1); }

footer { margin-top: var(--ww-space-6); color: var(--ww-on-surface-muted); font-size: var(--ww-fs-caption); text-align: center; }
.links { margin-top: var(--ww-space-2); }
.links a { color: var(--ww-on-surface-muted); }

.services { list-style: none; padding: 0; display: grid; gap: var(--ww-space-3); }
.services a { display: block; background: var(--ww-surface-raised); border: 1px solid var(--ww-outline); border-radius: var(--ww-radius-lg); padding: var(--ww-space-4) var(--ww-space-5); color: var(--ww-on-surface); text-decoration: none; box-shadow: var(--ww-shadow-1); }
.services a:hover { border-color: var(--ww-primary); }
.services strong { font-weight: var(--ww-fw-bold); }
.services span { display: block; color: var(--ww-on-surface-muted); }

/* Terms and guides */
.terms { background: var(--ww-surface-raised); border: 1px solid var(--ww-outline); border-radius: var(--ww-radius-lg); padding: var(--ww-space-1) var(--ww-space-5) var(--ww-space-5); }
.terms h2 { font-size: var(--ww-fs-h3); margin: var(--ww-space-5) 0 var(--ww-space-2); }
.terms ul, .terms ol { padding-left: 22px; }
.terms li { margin: 6px 0; }
.guide .change { margin: var(--ww-space-3) 0; }
.crumbs { color: var(--ww-on-surface-muted); font-size: .9rem; margin: 0; }
.crumbs a { color: var(--ww-on-surface-muted); }
.cta { margin-top: var(--ww-space-5); text-align: center; }
.cta h2 { margin: 0 0 6px; font-size: var(--ww-fs-h3); }
.cta .primary { display: inline-block; width: auto; text-decoration: none; margin-top: var(--ww-space-2); padding: 12px 24px; }

[hidden] { display: none !important; }

/* Marketing sections (config.marketing). Neutral surfaces, green labels, blue links; orange stays the one CTA. */
.eyebrow { display: inline-block; margin: var(--ww-space-2) 0 0; padding: 4px 12px; border-radius: var(--ww-radius-pill); background: var(--ww-primary-container); color: var(--ww-primary); font-size: var(--ww-fs-caption); font-weight: var(--ww-fw-semibold); }
@media (prefers-color-scheme: dark) { .eyebrow { background: transparent; border: 1px solid var(--ww-primary); } }
.works { display: grid; grid-template-columns: 1.3fr auto 1fr; align-items: center; gap: var(--ww-space-3); margin: 0 0 var(--ww-space-4); padding: var(--ww-space-3) var(--ww-space-4); border: 1px solid var(--ww-outline); border-radius: var(--ww-radius-lg); background: var(--ww-surface-raised); }
.works p { margin: 2px 0 0; color: var(--ww-on-surface-muted); font-size: .95rem; line-height: 1.4; }
.works .arrow { font-size: 1.5rem; color: var(--ww-primary); font-weight: var(--ww-fw-bold); }
.works .label, .more .label { display: block; font-size: var(--ww-fs-caption); font-weight: var(--ww-fw-semibold); text-transform: uppercase; letter-spacing: .06em; color: var(--ww-primary); }
.chips { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 3px 10px; border-radius: var(--ww-radius-pill); border: 1px solid var(--ww-outline); font-weight: var(--ww-fw-semibold); font-size: var(--ww-fs-caption); }
@media (max-width: 560px) { .works { grid-template-columns: 1fr; } .works .arrow { transform: rotate(90deg); justify-self: start; } }
.price-line { text-align: center; margin: var(--ww-space-3) 0 0; font-weight: var(--ww-fw-semibold); }
.more { margin: var(--ww-space-7) 0 0; }
.more h2 { font-size: var(--ww-fs-h2, 1.5rem); margin: 0 0 var(--ww-space-3); }
.sample-table { margin: 0 0 var(--ww-space-4); }
.sample-table figcaption { margin: 0 0 6px; }
.sample-table figcaption span { color: var(--ww-on-surface-muted); font-size: var(--ww-fs-caption); }
.sample-table .scroll { overflow-x: auto; border: 1px solid var(--ww-outline); border-radius: var(--ww-radius-md); background: var(--ww-surface-raised); }
.sample-table table { border-collapse: collapse; width: 100%; font-size: .875rem; font-variant-numeric: tabular-nums; }
.sample-table th, .sample-table td { padding: 6px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--ww-outline); }
.sample-table th { font-family: var(--ww-font-mono, ui-monospace, monospace); font-weight: var(--ww-fw-semibold); font-size: .8rem; color: var(--ww-on-surface-muted); }
.sample-table tr:last-child td { border-bottom: 0; }
.files { padding-left: 1.2em; margin: 6px 0 0; }
.files li { margin: 4px 0; color: var(--ww-on-surface-muted); }
.files strong { color: var(--ww-on-surface); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: var(--ww-space-3); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.steps li { counter-increment: s; padding: var(--ww-space-4); border: 1px solid var(--ww-outline); border-radius: var(--ww-radius-lg); background: var(--ww-surface-raised); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ww-primary-container); color: var(--ww-primary); font-weight: var(--ww-fw-bold); margin-bottom: 6px; }
.steps strong { display: block; }
.steps span { color: var(--ww-on-surface-muted); }
details { border-bottom: 1px solid var(--ww-outline); padding: var(--ww-space-3) 0; }
summary { cursor: pointer; font-weight: var(--ww-fw-semibold); }
details p { margin: var(--ww-space-2) 0 0; color: var(--ww-on-surface-muted); }
