/* sheetcrest.com: one stylesheet. Light and dark follow the visitor's system setting. */
:root {
  --bg: #ffffff; --bg-2: #faf6f2; --surface: #ffffff; --line: #e8e1da; --text: #1c1917; --muted: #57534e;
  --brand: #c2410c; --brand-2: #9a3412; --brand-soft: #fff1e7; --on-brand: #ffffff; --focus: #1d4ed8;
  --paper: #fffdfa; --ink: #44403c; --red: #dc2626; --blue: #2563eb; --green: #15803d; --violet: #7c3aed; --teal: #0e7490;
  --radius: 12px; --shadow: 0 1px 2px rgba(28, 25, 23, .06), 0 8px 24px rgba(28, 25, 23, .06);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110; --bg-2: #1a1816; --surface: #1f1c1a; --line: #36312d; --text: #f5f2ef; --muted: #b8b0a8;
    --brand: #f07b3f; --brand-2: #ff9b66; --brand-soft: #2b1d15; --on-brand: #1a0c04; --focus: #93c5fd;
    --paper: #23201e; --ink: #d9d2cb; --red: #f87171; --blue: #60a5fa; --green: #4ade80; --violet: #a78bfa; --teal: #22d3ee;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; overflow-wrap: anywhere; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 30px; height: 30px; color: var(--brand); }
.ic-sm { width: 18px; height: 18px; color: var(--brand); margin-top: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--brand); color: var(--on-brand); border: 0; border-radius: 10px;
  padding: .7em 1.15em; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--brand-2); color: var(--on-brand); }
.btn .ic { width: 18px; height: 18px; }
.btn-lg { padding: .85em 1.35em; font-size: 1.05rem; }
.btn-sm { padding: .5em .9em; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 .75em; }
.fine { font-size: .9rem; color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.logo-mark { width: 32px; height: 32px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name .powered { font-size: .58rem; font-weight: 650; letter-spacing: .03em; color: var(--brand); margin-top: 2px; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 550; font-size: .97rem; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--bg-2); }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; padding: 8px; border-radius: 8px; color: var(--text); display: flex; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav-panel { position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; }
.mnav-panel a { color: var(--text); text-decoration: none; padding: 11px 12px; border-radius: 8px; }
.mnav-panel a:hover { background: var(--bg-2); }
.mnav-panel .btn { justify-content: center; margin-top: 8px; color: var(--on-brand); }

/* page heads, hero */
.phead { padding: 64px 0 36px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); }
.phead .lead { max-width: 720px; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-bottom: .8em; }
.lead { font-size: 1.18rem; color: var(--muted); }
.hero { padding: 64px 0 40px; background: radial-gradient(1200px 500px at 80% -10%, var(--brand-soft), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero-art .art { filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .12)); }
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.pt { display: flex; gap: 12px; }
.pt .ic { color: var(--brand); margin-top: 2px; }
.pt h2 { font-size: 1rem; margin: 0 0 .2em; }
.pt p { font-size: .93rem; color: var(--muted); margin: 0; }
.rows { padding: 40px 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.row.flip .row-text { order: 2; }
.row-text p { color: var(--muted); font-size: 1.07rem; }
.row-art { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.more .ic { width: 18px; height: 18px; }
.sec { padding: 64px 0; }
.sec.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-h { text-align: center; margin-bottom: 1.2em; }
.sec-h.left { text-align: left; margin: 2em 0 .8em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--brand); color: var(--text); transform: translateY(-2px); }
.card .ic { color: var(--brand); width: 28px; height: 28px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips-tight { justify-content: flex-start; margin: 28px 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px 8px 12px; color: var(--text); text-decoration: none; font-weight: 550; font-size: .95rem; }
.chip .ic { color: var(--brand); width: 20px; height: 20px; }
.chip:hover { border-color: var(--brand); color: var(--text); }
.band { background: var(--brand); color: var(--on-brand); }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.band h2 { margin-bottom: .2em; }
.band p { margin: 0; opacity: .92; }
.band .btn { background: var(--on-brand); color: var(--brand); }
.band .btn:hover { background: var(--bg); color: var(--brand-2); }

/* features, industries, help: side table of contents */
.with-toc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-top: 40px; padding-bottom: 64px; align-items: start; }
.toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 110px); overflow: auto; }
.toc-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 0 0 6px; }
.toc a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .94rem; display: flex; justify-content: space-between; gap: 8px; }
.toc a:hover { background: var(--bg-2); color: var(--text); }
.ct { color: var(--muted); font-size: .82rem; }
.group { padding: 8px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.group-h, .ind-h { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.group-h p, .ind-h p { color: var(--muted); margin: 0; }
.flist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flist li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.flist h3 { font-size: 1rem; margin-bottom: .3em; }
.flist p { color: var(--muted); font-size: .95rem; margin: 0; }
.note { color: var(--muted); margin-top: 24px; }
.ind { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 18px; }
.ind h3 { font-size: 1.25rem; }
.ilist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.ilist li { display: flex; gap: 10px; font-size: .96rem; }
.ilist span { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.step { position: relative; display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px 22px 70px; }
.step .num { position: absolute; left: 22px; top: 22px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; }
.step h2 { font-size: 1.2rem; margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; }
.steps-sm .step h2 { font-size: 1.08rem; }
.flows { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.flow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.flow ol { margin: 0; padding-left: 1.2em; color: var(--muted); }
.flow li { margin-bottom: .35em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two p { color: var(--muted); }

/* help center, faq */
.hsearch { position: relative; max-width: 640px; margin-top: 24px; }
.hsearch .ic { position: absolute; left: 16px; top: 15px; color: var(--muted); }
.hsearch input { width: 100%; font: inherit; font-size: 1.05rem; padding: 13px 16px 13px 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); }
.hsearch input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.hcount { font-size: .9rem; color: var(--muted); margin: 8px 2px 0; min-height: 1.4em; }
.hcat { margin-bottom: 36px; }
.hcat h2 { font-size: 1.3rem; }
.hq { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-bottom: 8px; }
.hq summary { cursor: pointer; padding: 13px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.hq summary::-webkit-details-marker { display: none; }
.hq summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: 5px; flex: none; transition: transform .15s; }
.hq[open] summary::after { transform: rotate(-135deg); margin-top: 9px; }
.ha { padding: 0 18px 14px; color: var(--muted); }
.ha ol, .ha ul { padding-left: 1.3em; margin: 0 0 .8em; }
.ha li { margin-bottom: .35em; }
.ha strong, .ha em { color: var(--text); }
.where { font-size: .92rem; }
.where span { font-weight: 650; color: var(--text); }
.where code { margin: 2px 2px; display: inline-block; }
.faq { padding-top: 40px; padding-bottom: 56px; }
.ver { padding: 32px 0 8px; border-bottom: 1px solid var(--line); }
.ver ul { padding-left: 1.2em; color: var(--muted); }
.ver li { margin-bottom: .5em; }
.ver strong { color: var(--text); }

/* prose pages */
.prose { padding-top: 40px; padding-bottom: 64px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }
.prose ul ul { margin-top: .4em; }
.draft { background: var(--brand-soft); border: 1.5px solid var(--brand); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 24px; }

/* forms */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding-top: 40px; padding-bottom: 64px; align-items: start; }
.sform { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.fld { margin-bottom: 18px; }
.fld label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .96rem; }
.req { font-weight: 400; color: var(--muted); font-size: .88rem; }
.fld input, .fld select, .fld textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.fld [aria-invalid="true"] { border-color: var(--red); }
.hint { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fstatus { margin: 14px 0 0; font-weight: 600; min-height: 1.5em; }
.fstatus.ok { color: var(--green); }
.fstatus.err { color: var(--red); }
.side { padding-top: 8px; }
.side h2 { font-size: 1.15rem; }
.mini { padding-left: 1.2em; color: var(--muted); margin-bottom: 1.6em; }
.mini li { margin-bottom: .4em; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 48px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); font-size: .95rem; max-width: 320px; margin-top: 12px; }
.foot nav { display: flex; flex-direction: column; gap: 6px; }
.foot h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.foot nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.foot nav a:hover { color: var(--brand); }
.foot-base { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; padding-bottom: 28px; }
.foot-base p { color: var(--muted); font-size: .85rem; margin: 0; }

/* drawn mockups */
.art { display: block; width: 100%; height: auto; }
.art text { font-family: var(--font); }
.a-win { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.a-bar { fill: var(--bg-2); }
.a-t { font-size: 11px; fill: var(--text); }
text.a-tb { font-weight: 700; }
.a-ts { font-size: 10px; fill: var(--muted); }
.a-tx { font-size: 8px; fill: var(--muted); }
.a-tw { font-size: 10px; fill: #fff; font-weight: 700; }
.a-cl { fill: var(--red); }
.a-ln { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.a-ln.a-b { stroke: var(--brand); }
.a-sep { stroke: var(--line); stroke-width: 1; }
.a-tool { fill: none; stroke: var(--line); }
.a-tool.on { fill: var(--brand-soft); stroke: var(--brand); }
.a-side { fill: var(--bg-2); stroke: var(--line); }
.a-sel { fill: var(--brand-soft); }
.a-sheet { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.a-wall { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: square; }
.a-door { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 2; }
.a-fill { fill: color-mix(in srgb, var(--brand) 16%, transparent); stroke: var(--brand); stroke-width: 1.5; }
.a-fill2 { fill: color-mix(in srgb, var(--blue) 16%, transparent); stroke: var(--blue); stroke-width: 1.5; }
.a-fill3 { fill: color-mix(in srgb, var(--green) 16%, transparent); stroke: var(--green); stroke-width: 1.5; }
.a-tag { fill: var(--surface); stroke: var(--brand); }
.a-cloud { fill: none; stroke: var(--red); stroke-width: 1.8; }
.a-dim { fill: none; stroke: var(--blue); stroke-width: 1.2; }
.a-count { fill: var(--blue); }
.a-lead { stroke: var(--text); stroke-width: 1.2; }
.a-callout { fill: var(--surface); stroke: var(--text); stroke-width: 1.2; }
rect.a-tb { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.a-arrow { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.a-old { fill: none; stroke: var(--red); stroke-width: 2; }
.a-new { fill: none; stroke: var(--green); stroke-width: 2; }
.a-key { fill: var(--surface); stroke: var(--line); }
.a-sw0 { fill: var(--muted); } .a-sw1 { fill: var(--brand); } .a-sw2 { fill: var(--blue); } .a-sw3 { fill: var(--green); }
.a-url { fill: var(--bg); stroke: var(--line); }
.a-cur1 { fill: var(--violet); } .a-cur2 { fill: var(--teal); }
text.a-c1 { fill: var(--violet); } text.a-c2 { fill: var(--teal); }

/* smaller screens */
@media (max-width: 1100px) {
  .nav, .top-cta { display: none; }
  .mnav { display: block; margin-left: auto; }
  .hero-in, .row, .split, .two { grid-template-columns: 1fr; gap: 32px; }
  .row.flip .row-text { order: 0; }
  .strip-in { grid-template-columns: 1fr 1fr; }
  .with-toc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; gap: 6px; }
  .toc-h { width: 100%; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .88rem; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero, .phead { padding-top: 40px; }
  .strip-in, .flist, .ilist, .fgrid, .foot-in { grid-template-columns: 1fr; }
  .flows { grid-template-columns: 1fr; }
  .step { padding: 18px 18px 18px 62px; flex-direction: column; gap: 8px; }
  .step .num { left: 16px; top: 18px; }
  .sform { padding: 20px; }
  .band-in { flex-direction: column; align-items: flex-start; }
  .row { padding: 24px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, .foot, .band, .toc, .hsearch { display: none; } .hq { break-inside: avoid; } .hq .ha { display: block; } }
