:root {
  color-scheme: light;
  --ink: #22241f;
  --muted: #55584e;
  --paper: #f7f5ee;
  --white: #fffdf7;
  --line: #dcd9cb;
  --dark: #191b19;
  --orange: #b64816;
  --bright: #ff9c69;
  --focus: #3063ad;
  --shell: min(1160px, 100% - 64px);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1rem; line-height: 1.65; }
h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2.05rem, 4.5vw, 3.5rem); }
h3 { font-size: 1.35rem; letter-spacing: -.025em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 7.25rem); }
.section-intro { display: grid; gap: .9rem; align-content: start; }
.section-intro p:not(.eyebrow) { max-width: 36rem; color: var(--muted); font-size: 1.08rem; }
.skip { position: fixed; left: 1rem; top: 1rem; padding: .75rem; transform: translateY(-150%); z-index: 2; background: var(--white); }
.skip:focus { transform: none; }
.header { background: var(--dark); color: var(--white); border-bottom: 1px solid #44453b; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header nav { display: flex; align-items: center; gap: 1.65rem; }
.header nav a, .footer a { text-underline-offset: .25em; }
.header nav a { color: #e0dfd3; text-decoration: none; }
.header nav a:hover, .brand:hover span { color: var(--bright); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.03rem; white-space: nowrap; font-weight: 780; text-decoration: none; letter-spacing: -.035em; }
.brand img { width: 28px; height: 28px; image-rendering: pixelated; border-radius: 5px; }
.brand-accent { color: var(--bright); }
.button, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 48px; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: .45rem; font-weight: 720; line-height: 1.25; text-decoration: none; text-align: center; }
.button { background: var(--orange); color: #fff; }
.button:hover { background: #92360d; }
.button-small { min-height: 42px; padding-inline: .9rem; font-size: .88rem; }
.secondary { background: var(--white); border-color: var(--line); color: var(--ink); }
.secondary:hover { background: #f1eee4; }
button:disabled { opacity: .65; cursor: wait; }
.hero { background: var(--dark); color: var(--white); }
.hero-inner { min-height: 550px; display: grid; grid-template-columns: 1.02fr .98fr; gap: 1.5rem; align-items: center; padding: 2.9rem 0 3.4rem; }
.hero-copy { display: grid; gap: 1.35rem; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: .55rem; margin: 0; color: var(--orange); font-size: .73rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; line-height: 1.4; }
.eyebrow span { width: .45rem; height: .45rem; background: currentColor; border-radius: .1rem; flex: none; }
.hero .eyebrow, .hero h1 em { color: var(--bright); }
.hero h1 em { font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 31rem; color: #dfded2; font-size: clamp(1.02rem, 2vw, 1.2rem); margin: 0; }
.hero-image { margin: 0; border: 1px solid #515044; border-radius: .65rem; overflow: hidden; min-height: 440px; height: 100%; position: relative; }
.hero-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 54% center; }
.actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.text-link, .contact-link { font-size: .93rem; font-weight: 750; text-underline-offset: .3em; }
.hero .text-link { color: #ebe6d9; margin: .5rem 0 .5rem .15rem; }
.terms-strip { background: #eae5d8; border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-grid > div { display: grid; align-content: start; gap: .32rem; padding: 1.2rem 1.2rem; border-right: 1px solid #d6d0c0; }
.strip-grid > :first-child { padding-left: 0; }
.strip-grid > :last-child { border: 0; }
.strip-grid strong { font-size: .97rem; }
.strip-grid span { color: var(--muted); font-size: .85rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.steps li { padding: 1.5rem 1rem 0 0; }
.steps li + li { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.steps p { color: var(--muted); margin: .65rem 0 0; }
.fit { background: #eae5d8; padding-block: clamp(2rem, 6vw, 5rem); }
.fit-grid { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: clamp(1.5rem, 6vw, 5rem); }
.fit-grid img { width: 100%; border-radius: .6rem; aspect-ratio: 1.6; object-fit: cover; }
.fit h2, .faq-grid h2 { margin-top: .8rem; }
.fit ul { display: grid; gap: .4rem; line-height: 1.55; padding-left: 1.15rem; margin-bottom: 0; }
.fit li::marker { color: var(--orange); }
.apply-grid, .faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.75rem, 5vw, 5rem); }
.apply-grid h1 { font-size: clamp(2.7rem, 5vw, 4.5rem); }
.form-card { border: 1px solid var(--line); background: var(--white); border-radius: .65rem; padding: clamp(1.05rem, 3vw, 2rem); min-width: 0; }
.intake, .field-grid { display: grid; gap: .9rem; }
.field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.intake label, .toolbar label, .migration label { display: grid; gap: .35rem; font-weight: 650; font-size: .89rem; }
.intake .optional { color: var(--muted); display: inline; font-weight: 420; }
input:not([type=checkbox]), textarea, select { display: block; width: 100%; min-width: 0; min-height: 44px; padding: .62rem .75rem; color: var(--ink); background: #fff; border: 1px solid #b9b5a8; border-radius: .38rem; }
textarea { resize: vertical; }
.intake .check { grid-template-columns: 1.1rem 1fr; align-items: start; gap: .4rem; font-weight: 450; line-height: 1.45; }
input[type=checkbox] { margin: .22rem 0 0; accent-color: var(--orange); }
.intake .trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fine { margin: 0; font-size: .83rem; color: var(--muted); }
.form-feedback { margin: 0; color: #166346; font-size: .93rem; font-weight: 640; }
.form-feedback:empty { display: none; }
.form-feedback.error { color: #a12924; }
.faq-grid { border-top: 1px solid var(--line); }
.faq-items details { padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.faq-items summary { font-weight: 730; }
.faq-items p { margin: .75rem 0 0; color: var(--muted); }
.footer { background: var(--dark); color: #f4f0e4; }
.footer-inner { min-height: 160px; display: grid; grid-template-columns: 1.3fr 1fr .5fr; gap: 1rem; align-items: start; padding: 2.3rem 0; }
.footer p, .footer a:not(.brand) { font-size: .88rem; color: #dfdcd0; }
.footer p { margin: .65rem 0 0; }
.footer-links { display: grid; gap: .8rem; justify-items: start; }
.prose { max-width: 730px; }
.prose h1 { margin: 0 0 1.5rem; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.prose h2 { margin: 1.8rem 0 .55rem; font-size: 1.65rem; }
.admin-main { padding: 2rem 0 4rem; }
.admin-main h1 { font-size: clamp(2rem, 5vw, 3rem); }
.login-card { max-width: 390px; margin: 2rem auto; }
.login-card h1 { margin-bottom: 1.1rem; }
#admin-alert { margin-bottom: 1rem; }
.admin-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.admin-heading p { margin: .5rem 0 0; color: var(--muted); }
.admin-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); gap: .5rem; margin-bottom: 1rem; }
.admin-tabs button { background: transparent; color: var(--ink); border: 0; border-bottom: 3px solid transparent; padding: .65rem .5rem; font-weight: 650; text-align: left; }
.admin-tabs button[aria-pressed=true] { border-color: var(--orange); color: var(--orange); }
.toolbar { display: flex; gap: .8rem; margin-bottom: .9rem; }
.toolbar label:first-child { flex: 1; max-width: 450px; }
.inbox-grid { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr); align-items: start; gap: 1rem; }
.lead-list { display: grid; gap: .5rem; }
.lead-list button { display: grid; gap: .22rem; text-align: left; width: 100%; border: 1px solid var(--line); border-radius: .45rem; padding: .8rem; background: var(--white); color: var(--ink); overflow-wrap: anywhere; }
.lead-list button[aria-pressed=true] { border-color: var(--orange); }
.lead-list button span, .record dt { color: var(--muted); font-size: .85rem; }
.record h2 { font-size: 1.6rem; overflow-wrap: anywhere; }
.record form { margin-top: 1rem; }
.record dl { display: grid; grid-template-columns: minmax(5rem, .45fr) 1fr; gap: .45rem 1rem; overflow-wrap: anywhere; }
.record dd { margin: 0; white-space: pre-wrap; }
.record .actions { margin: 1rem 0; }
.migration { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; }
.migration p { margin: .65rem 0; }
#load-more { margin-top: .9rem; }
@media (max-width: 760px) {
  :root { --shell: calc(100% - 36px); }
  .header nav { display: none; }
  .header-inner { min-height: 62px; }
  .hero-inner, .fit-grid, .apply-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { min-height: initial; gap: 1.3rem; padding-top: 2.6rem; padding-bottom: 1.35rem; }
  .hero-image { width: 100%; height: auto; min-height: 200px; aspect-ratio: 1.8; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .header-inner { gap: .45rem; }
  .brand { font-size: .92rem; gap: .35rem; }
  .brand img { width: 22px; height: 22px; }
  .header .button-small { font-size: .75rem; min-height: 39px; padding: .55rem; }
  .strip-grid, .steps, .field-grid, .inbox-grid { grid-template-columns: minmax(0, 1fr); }
  .strip-grid > div, .strip-grid > :first-child { padding: .7rem 0; border-right: 0; border-bottom: 1px solid #d6d0c0; }
  .steps li, .steps li + li { border-left: 0; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
  .admin-heading { flex-wrap: wrap; }
  .toolbar label:first-child { flex: 1 1 55%; }
  .toolbar label:last-child { flex: 1 1 45%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
