/* Jobsite Scheduler: safety orange on slate, blueprint grid. Shared layout, brand tokens on top. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
}

:root {
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-soft: #fff1e8;
  --accent: #0ea5e9;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --error: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -12px rgba(15, 23, 42, .18);
  --hero-bg: linear-gradient(180deg, #fff7f1 0%, #ffffff 70%);
  --grid-line: rgba(15, 23, 42, .045);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small, .fine { font-size: .85rem; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; padding: 5px; border-radius: 8px; background: var(--brand); color: #fff; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-header nav a:not(.btn):hover { color: var(--brand-dark); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 13px 20px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; }
.btn-primary, .btn-small { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(234, 88, 12, .55); }
.btn-primary:hover, .btn-small:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-small { padding: 8px 14px; font-size: .9rem; white-space: nowrap; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn[disabled] { opacity: .65; cursor: wait; }

/* Hero */
.hero {
  padding: 64px 0 72px;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px), var(--hero-bg);
  background-size: 28px 28px, 28px 28px, auto;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-areas: "copy form" "art form"; column-gap: 48px; row-gap: 8px; align-items: start; }
.hero-copy { grid-area: copy; }
.hero-grid > .form-card { grid-area: form; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 650; font-size: .85rem; padding: 6px 12px; border-radius: 999px; }
.lead { font-size: 1.15rem; color: #334155; max-width: 62ch; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--brand); margin-top: .3em; }
.hero-art { grid-area: art; margin: 0; }
.hero-art img { width: 100%; border-radius: var(--radius); }

/* Cards and forms */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.form-card { position: sticky; top: 88px; }
.form-title { font-size: 1.45rem; margin-bottom: .25em; }
.signup { display: grid; gap: 14px; margin-top: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
input[type=email], input[type=text], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 12px;
}
textarea { resize: vertical; min-height: 80px; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid rgba(234, 88, 12, .18); outline-offset: 0; }
[aria-invalid=true] { border-color: var(--error) !important; }
.consent { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.consent label { font-weight: 400; font-size: .85rem; color: var(--muted); }
.error { color: var(--error); font-size: .85rem; margin: 0; min-height: 0; }
.error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fine { margin: 0; text-align: center; }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand-dark); margin-bottom: .6em; }
.section-intro { color: #475569; max-width: 70ch; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.benefit p { color: #475569; font-size: .96rem; margin: 0; }
.icon-badge { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); margin-bottom: 14px; }
.icon-badge.big { width: 64px; height: 64px; padding: 14px; margin: 0 auto 16px; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step p { color: #475569; margin: 0; }
.step-num { position: absolute; top: 20px; right: 22px; font-size: 2.6rem; font-weight: 800; color: var(--brand-soft); -webkit-text-stroke: 1px #fdba74; line-height: 1; }
.step-icon { width: 28px; height: 28px; color: var(--brand); margin-bottom: 12px; }

.table-wrap { overflow-x: auto; margin: 28px 0 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 680px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--bg-alt); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tr.us { background: var(--brand-soft); }
.compare a { color: var(--text); text-decoration-color: #cbd5e1; text-underline-offset: 3px; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--brand); color: #fff; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.section .fine { text-align: left; }
.signup .fine { text-align: center; }

.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.price-card { border: 2px solid var(--brand); }
.price-label { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--muted); margin: 0; }
.price { margin: 4px 0 8px; color: var(--ink); }
.amount { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.03em; }
.per { color: var(--muted); font-weight: 600; margin-left: 4px; }
.founding { display: flex; gap: 8px; align-items: center; background: var(--brand-soft); color: var(--brand-dark); border-radius: 10px; padding: 10px 12px; font-size: .95rem; }
.price-card .checks { margin: 18px 0 22px; }

.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 650; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chevron { transition: transform .2s; color: var(--muted); }
.faq-item[open] .chevron { transform: rotate(180deg); }
.faq-item p { padding: 0 20px 18px; margin: 0; color: #475569; }

.final { background: var(--ink); color: #cbd5e1; }
.final h2 { color: #fff; }
.final .lead { color: #cbd5e1; }
.final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.final .card { color: var(--text); }

/* Thanks, legal */
.thanks { padding-top: 96px; }
.bonus { text-align: left; margin: 32px 0; }
.bonus h2 { font-size: 1.25rem; }
.bonus-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.notice { display: inline-flex; gap: 8px; align-items: center; background: var(--brand-soft); color: var(--brand-dark); padding: 12px 16px; border-radius: 10px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.errors { color: var(--error); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 24px; background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-inner nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-inner nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-inner nav a:hover { color: var(--brand-dark); }

@media (max-width: 980px) {
  .hero-grid, .pricing-grid, .final-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-areas: "copy" "form" "art"; row-gap: 32px; }
  .form-card { position: static; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-header nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand span { font-size: .95rem; }
  .btn-small { padding: 7px 10px; font-size: .82rem; }
  .grid-4, .field-row, .bonus-options { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 56px; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Free resource pages */
[hidden] { display: none !important; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.resource-card { display: flex; flex-direction: column; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.resource-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.resource-card p { color: #475569; font-size: .96rem; flex: 1; }
.resource-card .more { color: var(--brand-dark); font-weight: 650; display: inline-flex; gap: 6px; align-items: center; }
.resource-hero { padding: 48px 0 40px; }
.container.content { width: min(920px, 100% - 40px); }
.crumbs { color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 16px; }
.toc { margin-top: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; margin-bottom: 4px; }
.toc .kicker { margin-bottom: .4em; }
.resource-section { padding: 44px 0; }
.resource-section h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.resource-section h3 { margin-top: 1.4em; }
.resource-section ul, .resource-section ol:not(.howto):not(.gantt-rows) { padding-left: 1.3em; }
.resource-section li { margin-bottom: .4em; }
.callout { display: flex; gap: 12px; align-items: flex-start; background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; margin: 0 0 1em; }
.callout .icon { color: var(--brand-dark); margin-top: .25em; }
.callout p { margin: 0; }
.howto { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: howto; display: grid; gap: 12px; }
.howto li { counter-increment: howto; position: relative; padding: 16px 18px 16px 62px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.howto li::before { content: counter(howto); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.howto h3 { margin: 0 0 .3em; }
.howto p { margin: 0; color: #475569; }
.compare.compact { min-width: 560px; }
.compare caption { text-align: left; padding: 12px 16px; font-weight: 650; color: var(--ink); }
.formula { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; overflow-x: auto; }
.formula code { font-size: .95rem; white-space: pre-wrap; }
.downloads { display: grid; gap: 16px; margin: 0 0 1em; }
.download { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.download .icon-badge { margin: 0; }
.download h3 { margin: 0 0 .3em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Gantt chart: bars placed by --s (start day) and --d (length) over --n days */
.gantt { margin: 8px 0 1em; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: #fff; overflow-x: auto; }
.gantt-scale, .gantt-row { display: grid; grid-template-columns: minmax(150px, 30%) 1fr; gap: 12px; align-items: center; min-width: 560px; }
.gantt-rows { list-style: none; padding: 0; margin: 0; }
.gantt-row { padding: 5px 0; border-top: 1px solid var(--border); }
.gantt-label { display: grid; font-size: .85rem; line-height: 1.3; }
.gantt-label .muted { font-size: .78rem; }
.gantt-track { position: relative; height: 22px; background-image: linear-gradient(90deg, var(--grid-line, rgba(15, 23, 42, .06)) 1px, transparent 1px); background-size: calc(100% / var(--n) * 5) 100%; }
.gantt-scale .gantt-track { height: 18px; background: none; }
.gantt-scale .gantt-track span { position: absolute; left: calc(var(--s) / var(--n) * 100%); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.gantt-bar { position: absolute; top: 3px; bottom: 3px; left: calc(var(--s) / var(--n) * 100%); width: max(6px, calc(var(--d) / var(--n) * 100%)); border-radius: 5px; background: var(--accent); opacity: .85; }
.gantt-row.critical .gantt-bar { background: var(--brand); opacity: 1; }

/* Cleaning price calculator */
.calculator { display: grid; gap: 14px; margin: 0 0 1em; }
.calculator fieldset { border: 0; padding: 0; margin: 0; }
.calculator legend { font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.calculator input[type=number] { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 12px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choice label { font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.choice input { accent-color: var(--brand); width: 18px; height: 18px; }
.hint { font-size: .8rem; margin: 0; }
.assumptions { border: 1px dashed #cbd5e1; border-radius: 12px; padding: 12px 14px; }
.assumptions summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.assumptions .field-row { margin-top: 12px; }
.calc-result { display: grid; gap: 12px; background: var(--brand-soft); border-radius: 12px; padding: 18px; }
.calc-result[hidden] { display: none; }
.calc-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.calc-price strong { font-size: 2.2rem; color: var(--ink); letter-spacing: -0.02em; }
.calc-result dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 0; }
.calc-result dt { font-size: .8rem; color: var(--muted); }
.calc-result dd { margin: 0; font-weight: 650; color: var(--ink); }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .toc ol { columns: 1; }
  .calc-result dl { grid-template-columns: 1fr; }
  .download { grid-template-columns: 1fr; }
}
