/* Odd Jobs design system: drafting-table calm. Navy ink on warm paper, one safety-orange accent. */
:root {
  --ink: #0f2238; --ink-2: #33455c; --muted: #66727f; --paper: #f5f3ee; --card: #ffffff;
  --line: #e2ded4; --line-2: #cfc9bc; --accent: #ef7d22; --accent-ink: #a9520d; --cta: #0f2238; --cta-hover: #1c3a5e;
  --ok: #1f6b4a; --warn-bg: #fff5e1; --warn: #7a4f00; --err-bg: #fdecea; --err: #8a1f11;
  --radius: 10px; --shadow: 0 1px 2px rgba(15,34,56,.06), 0 8px 24px rgba(15,34,56,.06);
  --grid: linear-gradient(rgba(15,34,56,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15,34,56,.045) 1px, transparent 1px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--paper); }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); font-size: .92rem; }
.fine { color: var(--muted); font-size: .82rem; }

/* Header and footer */
.site-header { background: rgba(245,243,238,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand small { font-weight: 600; color: var(--muted); font-size: .8rem; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.site-header nav a { text-decoration: none; color: var(--ink-2); }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.btn, .site-header nav a.btn:hover { color: #fff; }
@media (max-width: 720px) { .site-header nav a:not(.btn) { display: none; } }
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 36px 0 44px; background: #efece5; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; font-size: .92rem; }
.site-footer .fine { grid-column: 1 / -1; margin: 6px 0 0; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } .site-footer nav { justify-content: flex-start; } }

/* Buttons */
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; border: 0; border-radius: 8px; background: var(--cta); color: #fff; padding: 12px 20px; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; }
.btn:hover, button:hover { background: var(--cta-hover); color: #fff; }
.btn:active, button:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
button:disabled { opacity: .45; cursor: not-allowed; }
.btn-link { background: none; color: var(--ink-2); padding: 4px 6px; font-weight: 600; text-decoration: underline; }
.btn-link:hover { background: none; color: var(--err); }

/* Home page */
.hero { background-color: var(--paper); background-image: var(--grid); background-size: 24px 24px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.hero-sheet { background: #fff; border-radius: 6px; box-shadow: 0 2px 4px rgba(15,34,56,.08), 0 24px 60px rgba(15,34,56,.16); transform: rotate(-1.2deg); overflow: hidden; border: 1px solid var(--line); }
.hero-sheet svg { display: block; width: 100%; height: auto; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--ink-2); }
.ticks li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); margin-right: 8px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; } .hero-sheet { transform: none; } }
.section { padding: 72px 0 0; }
.section-head { max-width: 680px; margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card.featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow); }
.card .price { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 2px; }
.card .price small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.card ul { padding-left: 18px; color: var(--ink-2); margin: 10px 0 18px; }
.card .btn { margin-top: auto; align-self: flex-start; }
.badge { align-self: flex-start; display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.badge.soon { background: var(--line-2); color: var(--ink); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; }
.feature { padding-left: 16px; border-left: 3px solid var(--accent); }
.feature p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.honest { background: var(--ink); color: #e9edf3; border-radius: var(--radius); padding: 28px 30px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.honest h3 { color: #fff; }
.honest p { margin: 0; color: #c9d2de; }
.honest svg { width: 40px; height: 40px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
@media (max-width: 860px) { .steps, .cards, .features { grid-template-columns: 1fr; } .honest { grid-template-columns: 1fr; } }

/* Tool pages */
.tool-hero { padding: 34px 0 20px; }
.tool-hero .lead { margin-bottom: 0; }
.tool-grid { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } .preview-col { order: -1; position: static !important; } }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 0 0 14px; padding: 6px 16px 14px; min-width: 0; box-shadow: var(--shadow); }
legend { font-weight: 750; padding: 0 6px; display: flex; align-items: center; gap: 8px; }
legend .num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 800; }
label { display: block; font-weight: 550; font-size: .9rem; margin-top: 10px; color: var(--ink-2); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; margin-top: 4px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(239,125,34,.45); outline-offset: 1px; border-color: var(--accent); }
label.inline { display: inline-flex; align-items: center; gap: 7px; margin: 8px 16px 0 0; font-weight: 650; color: var(--ink); }
label.inline input { width: auto; margin: 0; accent-color: var(--ink); }
.row { display: flex; gap: 10px; align-items: flex-end; }
.row > label { flex: 1; min-width: 0; }
details.more { margin-top: 10px; font-size: .9rem; }
details.more summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.hint { color: var(--muted); font-size: .84rem; margin: 10px 0 0; }
.preview-col { position: sticky; top: 80px; }
.preview-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); background: #fbfaf7; }
.preview-bar strong { color: var(--ink); }
.preview { background: #fff; touch-action: none; }
.preview svg { display: block; width: 100%; height: auto; }
.preview .draggable { cursor: move; }
.buy-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 18px; padding: 16px; border-top: 1px solid var(--line); }
.buy-box .price { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.buy-box .price small { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
#buy { font-size: 1.02rem; padding: 12px 22px; }
.trust { list-style: none; padding: 0 16px 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--muted); }
.trust li::before { content: "\2713"; color: var(--ok); font-weight: 800; margin-right: 6px; }
.msgs { margin: 12px 0 0; padding: 10px 14px 10px 30px; border-radius: 8px; font-size: .9rem; }
.msgs.errors { background: var(--err-bg); color: var(--err); }
.msgs.warnings { background: var(--warn-bg); color: var(--warn); }
.status { min-height: 1.4em; font-size: .9rem; margin: 10px 0 0; }
.status.error { color: var(--err); }
.structure { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 12px; margin-top: 12px; background: #fcfbf8; }
.structure-head { display: flex; justify-content: space-between; align-items: center; font-weight: 750; font-size: .9rem; }
.structure .row { margin-top: 0; }
#add-structure, #add-easement { margin-top: 12px; }
.seg { margin-top: 10px; }
.nudges { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.nudges .muted { margin-right: 4px; font-size: .82rem; }
.nudge { padding: 4px 10px; min-width: 36px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: 1rem; }
.nudge:hover { background: var(--paper); color: var(--ink); }
.file-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.file-open { position: relative; overflow: hidden; margin: 0; color: var(--ink); }
.file-open input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.expect { margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: #eef2f7; color: var(--ink-2); font-size: .86rem; }
.expect strong { color: var(--ink); }
.guide h2 { margin-top: 1.6em; }
.guide ol, .guide ul { padding-left: 22px; color: var(--ink-2); }
.guide li { margin: 6px 0; }
.guide .tip { border-left: 3px solid var(--accent); padding: 8px 14px; background: #fff; border-radius: 0 8px 8px 0; color: var(--ink-2); }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li::before { content: "\2610"; margin-right: 10px; color: var(--ink); }

/* Content pages and feedback */
.page { max-width: 760px; padding-top: 34px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-top: 28px; }
.draft { border-left: 4px solid var(--accent); padding: 10px 14px; background: var(--warn-bg); border-radius: 0 8px 8px 0; }
.feedback textarea { resize: vertical; }
.feedback button { margin-top: 12px; }
.feedback .ts { margin-top: 12px; }
.fb-status { color: var(--muted); font-size: .9rem; margin-left: 10px; }
