@font-face { font-family: "Zilla Slab"; font-weight: 700; font-display: swap; src: url("/fonts/zilla-slab-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #14213d;
  --navy-2: #1d2d52;
  --brass: #b8873b;
  --brass-dark: #8a6427; /* brass text on light backgrounds (AA contrast) */
  --sailcloth: #f5f1e8;
  --ink: #1b1b1b;
  --muted: #4f5561;
  --line: #e2dccd;
  --white: #ffffff;
  --radius: 10px;
  --wrap: 1120px;
  --heading: "Zilla Slab", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--brass-dark); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.2vw, 54px); letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 1.4em; }
h3 { font-size: 22px; margin-top: 1.2em; }
p, ul, ol { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.small { font-size: 14px; }
.fine { font-size: 12.5px; opacity: .85; }

/* Header */
.site-header { background: var(--navy); color: var(--sailcloth); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sailcloth); margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.wordmark { line-height: 1; }
.wordmark .name { display: block; font: 700 23px var(--heading); color: var(--sailcloth); }
.wordmark .sub { display: block; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); margin-top: 4px; }
.menu summary { cursor: pointer; list-style: none; padding: 8px 12px; border: 1px solid rgba(245,241,232,.35); border-radius: 8px; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--sailcloth); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass); }
.menu[open] .nav { position: absolute; left: 0; right: 0; top: 72px; background: var(--navy); padding: 8px 16px 16px; border-top: 1px solid rgba(245,241,232,.15); }
.menu[open] .nav li { padding: 10px 0; border-bottom: 1px solid rgba(245,241,232,.1); }
.nav-desktop { display: none; }
.nav-desktop .nav { display: flex; gap: 20px; }

@media (min-width: 1080px) {
  .nav-desktop { display: block; }
  .menu { display: none; }
}
@media (max-width: 1079px) {
  .site-header .header-cta { display: none; }
}

/* Buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn-brass { background: var(--brass); color: var(--navy); }
.btn-brass:hover { background: #c9984c; color: var(--navy); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-navy { background: var(--navy); color: var(--sailcloth); }
.btn-navy:hover { background: var(--navy-2); color: var(--sailcloth); }

/* Sections */
.hero { background: var(--navy); color: var(--sailcloth); padding: 72px 0 80px; }
.hero h1 { color: var(--sailcloth); max-width: 20ch; }
.hero h1 .line { display: block; }
.hero .lead { font-size: 20px; max-width: 58ch; color: #e9e3d4; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.page-head { background: var(--sailcloth); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-head .eyebrow { color: var(--brass-dark); }
.page-head .lead { font-size: 19px; max-width: 780px; color: var(--muted); }
.lead { text-wrap: pretty; }
.section { padding: 56px 0; }
.section.alt { background: var(--sailcloth); }
.section > .wrap > h2:first-child { margin-top: 0; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* Three cards: 1 column, then 3, never 2 + 1 alone */
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); display: flex; flex-direction: column; }
a.card { text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--brass); color: var(--ink); }
a.card:hover .more { text-decoration: underline; }
.card h3 { margin-top: 0; }
.gloss { font-style: italic; color: var(--muted); font-size: 15px; margin-left: 8px; }
.card .gloss { display: block; margin: 2px 0 8px; font-size: 14px; }
.hero .gloss { color: #e9e3d4; }
.card .tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-dark); }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; font-weight: 600; }
.promise h3 { font-size: 20px; }

.price { display: inline-block; background: var(--sailcloth); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 8px 0 16px; }
.price strong { font: 700 26px var(--heading); color: var(--navy); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 0 52px; min-height: 36px; margin-bottom: 18px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--sailcloth); font: 700 18px/36px var(--heading); text-align: center; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq details p { margin: 10px 0 0; }

.callout { background: var(--navy); color: var(--sailcloth); border-radius: var(--radius); padding: 32px; }
.callout h2 { color: var(--sailcloth); margin-top: 0; }
.callout p { color: #e9e3d4; max-width: 62ch; }

.cta-band { background: var(--sailcloth); border-top: 1px solid var(--line); padding: 56px 0; text-align: center; }
.cta-band h2 { margin-top: 0; }
.cta-band p { max-width: 56ch; margin: 0 auto 20px; color: var(--muted); }

.prose { max-width: 780px; }
/* Text columns line up with the page heading on the left, at a readable width */
.wrap.prose, .wrap.narrow { max-width: var(--wrap); }
.wrap.prose > *, .wrap.narrow > * { max-width: 780px; }
.prose li { margin-bottom: .4em; }
.meta { color: var(--muted); font-size: 15px; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sailcloth); color: var(--navy); }
.table-scroll { overflow-x: auto; }

/* Form */
form.contact { display: grid; gap: 16px; max-width: 620px; }
label { font-weight: 600; display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; padding: 12px; border: 1px solid #c9c2b0; border-radius: 8px; background: var(--white); }
textarea { min-height: 160px; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; font-weight: 600; margin: 0; }
.form-status[data-kind="ok"] { color: var(--navy); }
.form-status[data-kind="error"] { border-left: 4px solid var(--brass); padding-left: 10px; }
[aria-invalid="true"] { border: 2px solid var(--brass-dark); }

/* Footer */
.site-footer { background: var(--navy); color: #d9d3c4; padding: 48px 0 24px; }
.site-footer a { color: var(--sailcloth); text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: 24px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand { font: 700 24px var(--heading); color: var(--sailcloth); margin-bottom: 6px; }
.footer-brand span { color: var(--brass); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr; } }

/* Screenshots and diagrams */
.section .eyebrow { color: var(--brass-dark); }
.card.has-shot { padding-top: 0; overflow: hidden; }
.card .shot { display: block; width: calc(100% + 48px); max-width: none; margin: 0 -24px 18px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.shot-frame { margin: 8px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(20, 33, 61, .12); }
.shot-frame img, .diagram img { display: block; width: 100%; height: auto; }
.diagram { margin: 8px 0 28px; }
.diagram-inline { margin: 14px 0 6px; }
.diagram figcaption { color: var(--muted); margin-top: 8px; }
.also { margin-top: 20px; }
.contact-more { margin-top: 40px; }

/* Hero compass */
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-compass { display: none; }
.hero-compass svg { width: 100%; height: auto; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.6fr 1fr; }
  .hero-compass { display: block; justify-self: center; width: 260px; }
}

/* Motion: subtle, CSS only, off for reduced motion */
a.card { transition: translate .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.card:hover { translate: 0 -3px; box-shadow: 0 10px 24px rgba(20, 33, 61, .10); }
@keyframes settle { 0% { transform: rotate(-70deg); } 55% { transform: rotate(16deg); } 75% { transform: rotate(-7deg); } 90% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
.hero-compass .needle { transform-box: view-box; transform-origin: 100px 100px; animation: settle 2.4s cubic-bezier(.3, .7, .3, 1) .4s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-text > * { animation: rise .7s ease both; }
.hero-text > :nth-child(2) { animation-delay: .1s; }
.hero-text > :nth-child(3) { animation-delay: .2s; }
.hero-text > :nth-child(4) { animation-delay: .3s; }
@supports (animation-timeline: view()) {
  .section .card, .shot-frame, .diagram, .callout { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* External links open in a new tab */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
a[target="_blank"]:not(.btn)::after { content: "\2197"; display: inline-block; margin-left: 3px; font-size: .8em; text-decoration: none; }
