/* Refero ClickUp reference: white canvas, geometric display type, rounded actions,
   dense software views. AppRebuilt keeps its navy and lime identity. */
@font-face {
  font-family: 'AppRebuilt Display';
  src: url('/assets/fonts/plus-jakarta-sans-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AppRebuilt Display';
  src: url('/assets/fonts/plus-jakarta-sans-800.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #202020;
  --muted: #61656b;
  --canvas: #ffffff;
  --surface: #f8f9fa;
  --line: #e3e5e7;
  --navy: #102c35;
  --lime: #d5ef7b;
  --body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --display-font: 'AppRebuilt Display', var(--body-font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 16px/1.6 var(--body-font); }
a { color: inherit; text-decoration: none; }
a:focus-visible, input:focus-visible + label { outline: 3px solid var(--navy); outline-offset: 5px; }
button, input, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display-font); }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; top: -80px; left: 20px; padding: 12px; background: var(--ink); color: white; z-index: 10; }
.skip:focus { top: 12px; }
.header { min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 24px/1.2 var(--display-font); letter-spacing: -.6px; }
.brand img { border-radius: 8px; }
.header nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 600; }
.header nav > a:not(.button):hover, footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 24px; border: 1px solid transparent; border-radius: 999px; background: var(--ink); color: #fff; font: 700 14px/1.5 var(--body-font); text-align: center; transition: background-color 150ms; }
.button:hover { background: var(--navy); }
.button-small { padding: 11px 20px; }
.text-link { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #a9adb0; }
.text-link:hover { text-decoration-color: var(--ink); }
.hero { display: grid; grid-template-columns: 1fr 1.12fr; gap: 56px; align-items: center; padding-block: 88px 96px; }
.audience { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
h1 { font-size: clamp(46px, 4.6vw, 64px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; max-width: 9.5em; }
.lead { font-size: 18px; line-height: 1.65; margin-top: 28px; max-width: 480px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }
.hero-note { font-size: 12px; color: var(--muted); margin-top: 16px; max-width: 360px; }
.workspace { min-width: 0; }
.example-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 14px; font-weight: 600; }
.example-label { color: var(--muted); font-size: 12px; font-weight: 400; }
.view-switch { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin: 20px 0 16px; background: var(--surface); width: max-content; }
.view-switch input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.view-switch label { padding: 8px 20px; border-radius: 999px; font-size: 13px; line-height: 1.4; font-weight: 600; cursor: pointer; }
.view-switch input:checked + label { background: var(--ink); color: white; }
.example-preview { border: 1px solid #d4d8dc; border-radius: 12px; overflow: hidden; background: white; }
.app-title { display: flex; align-items: center; gap: 12px; padding: 16px 24px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); }
.sample-label { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: auto; }
.file-name, .legacy-menu { display: none; }
.app-content { padding: 24px; }
.app-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.app-toolbar h2 { font-size: 20px; letter-spacing: -.4px; line-height: 1.3; }
.app-toolbar p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.record-count { font-size: 11px; color: var(--muted); white-space: nowrap; }
.order-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; line-height: 1.5; }
.order-table th, .order-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); }
.order-table th:first-child, .order-table td:first-child { padding-left: 0; }
.order-table th:last-child, .order-table td:last-child { padding-right: 0; }
.order-table thead th { color: var(--muted); font-size: 11px; font-weight: 500; padding-top: 0; padding-bottom: 10px; }
.order-table tbody th { font-weight: 600; font-variant-numeric: tabular-nums; }
.order-table .quantity { text-align: right; font-variant-numeric: tabular-nums; }
.order-status { display: inline-block; padding: 3px 8px; border-radius: 4px; background: #f0f1f2; white-space: nowrap; font-size: 11px; }
.order-status.ready { background: #eaf3d3; color: #314520; }
.report-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; font-size: 11px; }
.report-row > span { color: var(--muted); max-width: 130px; }
.report-row a { border: 1px solid #d4d8dc; border-radius: 999px; padding: 8px 12px; font-weight: 600; text-align: center; }
.report-row a:hover { border-color: var(--ink); background: var(--surface); }
.example-caption { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 16px; }
/* Legacy styling belongs only to the explicitly labeled example. */
.workspace:has(#view-legacy:checked) .example-preview { border-radius: 0; border-color: #858b8e; background: #dededb; font-family: 'Courier New', monospace; }
.workspace:has(#view-legacy:checked) .app-title { background: #475b65; color: white; border-bottom: 0; }
.workspace:has(#view-legacy:checked) .app-name { display: none; }
.workspace:has(#view-legacy:checked) .file-name { display: inline; }
.workspace:has(#view-legacy:checked) .sample-label { color: #fff; }
.workspace:has(#view-legacy:checked) .legacy-menu { display: block; font-size: 12px; padding: 8px 24px 0; }
.workspace:has(#view-legacy:checked) .app-content { padding-top: 12px; }
.workspace:has(#view-legacy:checked) .app-toolbar h2 { font-family: inherit; font-size: 18px; }
.workspace:has(#view-legacy:checked) .order-table { background: #fff; }
.workspace:has(#view-legacy:checked) .order-table th, .workspace:has(#view-legacy:checked) .order-table td { border: 1px solid #a9aeb0; padding: 12px 6px; }
.workspace:has(#view-legacy:checked) .order-table thead { background: #eeeeeb; }
.workspace:has(#view-legacy:checked) .order-status { background: none; color: inherit; padding: 3px 0; }
.workspace:has(#view-legacy:checked) .report-row a { border-radius: 0; background: #efefec; border: 1px solid #858b8e; }
h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.section-intro > p { color: var(--muted); max-width: 480px; padding-top: 4px; }
.services-section { padding-block: 64px 80px; border-top: 1px solid var(--line); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.services article { padding: 0 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.services article:first-child { padding-left: 0; border-left: 0; }
.services article:last-child { padding-right: 0; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: -.3px; }
.services article > p { color: var(--muted); font-size: 14px; margin-top: 16px; }
.services ul { padding-left: 18px; margin: 20px 0 24px; font-size: 14px; flex: 1; }
.services li { padding-left: 2px; margin-block: 7px; }
.services article > .service-context { font-size: 12px; margin-top: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.preserve { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.preserve-copy > p { color: var(--muted); margin-top: 20px; font-size: 15px; }
.preserve-copy > a { display: inline-block; margin-top: 28px; }
.requirements { margin: 0; }
.requirements > div { padding: 20px 0; border-bottom: 1px solid #dfe2e4; }
.requirements > div:first-child { padding-top: 0; }
.requirements > div:last-child { border-bottom: 0; padding-bottom: 0; }
.requirements dt { font-weight: 600; font-size: 16px; }
.requirements dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.process-section { padding-block: 88px 72px; }
.steps { list-style: none; counter-reset: project-step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 0; margin: 48px 0 0; }
.steps li { counter-increment: project-step; position: relative; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(project-step) '.'; font: 700 24px/1.2 var(--display-font); display: block; margin-bottom: 24px; }
.steps p { font-size: 14px; color: var(--muted); margin-top: 12px; }
.steps .step-output { color: var(--ink); font-weight: 600; margin-top: 24px; }
.fit-section { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; border-top: 1px solid var(--line); padding-block: 64px 80px; }
.fit-section ul { padding-left: 20px; margin: 0; }
.fit-section li { padding: 0 0 16px 4px; font-size: 16px; }
.contact-section { background: var(--navy); color: white; border-radius: 20px; padding: 56px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 80px; }
.contact-copy > p { margin-top: 20px; font-size: 17px; max-width: 360px; color: #d0dcdf; }
.button-light { background: var(--lime); color: var(--navy); margin-top: 28px; }
.button-light:hover { background: #e3f5b0; }
.contact-section a:focus-visible { outline-color: var(--lime); }
.contact-copy > .contact-note { font-size: 12px; line-height: 1.6; margin-top: 16px; max-width: 370px; }
.contact-detail { align-self: center; }
.contact-detail h3 { font-size: 18px; }
.contact-detail p { color: #d0dcdf; font-size: 14px; margin-top: 16px; }
.contact-detail p:last-child { padding-top: 20px; border-top: 1px solid #486168; margin-top: 24px; font-size: 12px; }
footer.wrap { display: flex; align-items: start; flex-wrap: wrap; gap: 32px; padding-block: 48px 28px; }
footer .brand { font-size: 22px; }
footer p { margin-top: 8px; font-size: 13px; color: var(--muted); }
footer nav { margin-left: auto; display: flex; gap: 28px; font-size: 14px; }
footer .copyright { width: 100%; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; margin: 0; }
.legal { max-width: 760px; min-height: 65vh; padding-block: 64px; }
.legal h1 { font-size: 48px; margin: 20px 0 24px; }
.legal h2 { font-size: 24px; margin: 32px 0 12px; }
.legal p { color: var(--muted); margin-bottom: 16px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .eyebrow { font-size: 13px; }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 32px; grid-template-columns: 1fr 1.1fr; padding-block: 64px 72px; }
  h1 { font-size: 52px; }
  .hero-actions { gap: 16px; }
  .app-content { padding: 20px 16px; }
  .app-title { padding-inline: 16px; }
  .example-heading { flex-wrap: wrap; gap: 0 12px; }
  .order-table th, .order-table td { padding-inline: 6px; }
  .section-intro, .preserve, .fit-section { gap: 40px; }
  .preserve, .contact-section { padding: 40px; }
  .contact-section { gap: 48px; }
}
@media (max-width: 820px) {
  .header nav { gap: 20px; }
  .header nav > .button { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; }
  h1 { font-size: 64px; max-width: 10em; }
  .lead { max-width: 600px; }
  .workspace { width: 100%; max-width: 640px; }
  .example-heading { justify-content: space-between; }
  .app-content { padding: 24px; }
  .order-table { font-size: 14px; }
  .order-table thead th, .order-status { font-size: 12px; }
  .section-intro { grid-template-columns: 1fr; gap: 20px; }
  .section-intro > p { max-width: 600px; }
  .services { grid-template-columns: 1fr; margin-top: 36px; }
  .services article, .services article:first-child, .services article:last-child { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0; }
  .services article:last-child { padding-bottom: 0; }
  .services ul { margin-bottom: 12px; }
  .services article > .service-context { border: 0; padding-top: 0; }
  .preserve, .contact-section { grid-template-columns: 1fr; gap: 36px; }
  .steps { gap: 24px; }
  .steps h3 { font-size: 18px; }
  .fit-section { gap: 32px; }
  .fit-section h2 { font-size: 30px; }
  .contact-copy > p { max-width: 460px; }
  .contact-detail { max-width: 530px; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 40px); }
  .header { min-height: 80px; gap: 12px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .header nav { gap: 14px; font-size: 12px; }
  .hero { padding-block: 44px 48px; gap: 36px; }
  .audience { font-size: 12px; margin-bottom: 16px; }
  h1 { font-size: clamp(38px, 10.3vw, 52px); line-height: 1.12; letter-spacing: -.025em; }
  .lead { font-size: 16px; margin-top: 24px; }
  .hero-actions { gap: 20px; margin-top: 28px; }
  .button { padding: 14px 20px; }
  .hero-note { font-size: 12px; }
  .example-heading { align-items: start; flex-direction: column; gap: 4px; }
  .view-switch { margin-top: 16px; }
  .app-title { padding: 14px 12px; font-size: 12px; }
  .app-content { padding: 20px 12px; }
  .app-toolbar { margin-bottom: 20px; }
  .app-toolbar h2 { font-size: 18px; }
  .order-table { font-size: 11px; }
  .order-table th, .order-table td { padding-inline: 4px; }
  .order-table thead th, .order-status { font-size: 11px; }
  .order-status { padding: 3px 6px; }
  .report-row { flex-direction: column; align-items: start; gap: 12px; margin-top: 20px; }
  .report-row > span { max-width: none; }
  .report-row a { font-size: 12px; }
  .workspace:has(#view-legacy:checked) .order-table th, .workspace:has(#view-legacy:checked) .order-table td { padding: 12px 3px; }
  h2 { font-size: 30px; }
  .services-section { padding-block: 40px 48px; }
  .section-intro h2 br { display: none; }
  .preserve, .contact-section { width: calc(100% - 24px); padding: 32px 24px; border-radius: 16px; }
  .preserve h2 br { display: none; }
  .process-section { padding-block: 56px 48px; }
  .steps { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .steps li { padding-top: 16px; }
  .steps li::before { font-size: 20px; margin-bottom: 16px; }
  .steps h3 { font-size: 20px; }
  .steps .step-output { margin-top: 12px; }
  .fit-section { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 48px; }
  .fit-section h2 br { display: none; }
  .fit-section li { font-size: 15px; }
  .contact-copy .button { font-size: 12px; padding-inline: 16px; gap: 8px; }
  .contact-copy > p { font-size: 16px; }
  footer.wrap { padding-top: 32px; gap: 24px; }
  footer nav { gap: 20px; font-size: 13px; }
  .legal { padding-block: 40px; }
  .legal h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
