/* Tessmer Web Design: "The front window"
   Contrast (WCAG 2.2 AA): ink on paper 15:1 · gold-text #8A5A00 on paper 5.7:1 · white on gold-text 5.9:1
   sign gold #E3A72F on navy 6.1:1 · muted #55606B on paper 6.1:1 · paper on navy 13:1 */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/fonts/bricolagegrotesque-normal-500-800.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/atkinsonhyperlegible-normal-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/atkinsonhyperlegible-normal-700.woff2") format("woff2"); }
/* Atkinson's zero is slashed (Ø), which reads oddly in prices, so digits come from Bricolage instead */
@font-face { font-family: "Body Digits"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/fonts/bricolagegrotesque-normal-500-800.woff2") format("woff2"); unicode-range: U+0030-0039; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/atkinsonhyperlegible-italic-400.woff2") format("woff2"); }

:root {
  --navy: #17324d;
  --navy-deep: #0f2438;
  --navy-soft: #23445f;
  --gold: #e3a72f;
  --gold-soft: #f2cf85;
  --gold-text: #8a5a00;
  --gold-text-dark: #6d4700;
  --paper: #fbfaf7;
  --white: #ffffff;
  --glass: #e6eef3;
  --ink: #1e2329;
  --muted: #55606b;
  --line: #dcdfe3;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Body Digits", "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: var(--paper); padding-bottom: 5rem; }
img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 750; line-height: 1.1; margin: 0 0 0.5em; color: var(--navy); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.1rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--gold-text); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--gold-text-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--navy-deep); padding: 0.75rem 1rem; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* Placeholder marker: anything in a .ph must be replaced before launch */
.ph { background: #ffe08a; color: #4a3300; padding: 0 0.25em; border-radius: 4px; outline: 2px dashed #b07d00; outline-offset: 1px; font-weight: 700; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--paper); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; min-height: 4.5rem; padding-block: 0.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--paper); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1; }
.brand:hover { color: var(--gold-soft); }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.78rem; letter-spacing: 0.04em; color: #c9d4de; margin-top: 0.2rem; }

.nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.9rem; background: transparent; color: var(--paper); border: 2px solid rgba(251, 250, 247, 0.4); border-radius: var(--radius); font: 700 1rem var(--body); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav { width: 100%; display: none; }
/* Menu starts collapsed on phones (no layout jump while main.js loads); footer links cover no-JS visitors */
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0.25rem 0 0.75rem; }
.site-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 0.25rem; color: var(--paper); text-decoration: none; font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid rgba(251, 250, 247, 0.12); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.site-header .header-cta { display: none; }

@media (min-width: 60rem) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; margin-left: auto; }
  .site-nav ul { display: flex; gap: 0.25rem; padding: 0; }
  .site-nav a { border: 0; padding: 0 0.8rem; font-size: 1.05rem; }
  .site-header .header-cta { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.35rem; border-radius: 10px; border: 2px solid transparent; font: 700 1.05rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy-deep); }
.btn-solid { background: var(--gold-text); color: #fff; }
.btn-solid:hover { background: var(--gold-text-dark); color: #fff; }
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--paper); }
.on-dark .btn-line { color: var(--paper); border-color: rgba(251, 250, 247, 0.65); }
.on-dark .btn-line:hover { background: var(--paper); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--paper); overflow: hidden; }
.hero-inner { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 7vw, 5rem); align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 .gold { color: var(--gold); }
.eyebrow { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 0.75rem; }
.on-dark .eyebrow { color: var(--gold); }
.lede { font-size: 1.22rem; max-width: 34rem; }
.hero .lede { color: #dbe3ea; }
.hero-note { font-size: 0.98rem; color: #c9d4de; margin-top: 1rem; }
@media (min-width: 60rem) { .hero-inner { grid-template-columns: 1.1fr 0.9fr; } }

/* The front window: awning + gold-framed window holding a phone */
.window { position: relative; max-width: 26rem; margin-inline: auto; width: 100%; }
.awning { height: 2.75rem; border-radius: 10px 10px 4px 4px; background: repeating-linear-gradient(90deg, var(--gold) 0 2.25rem, var(--paper) 2.25rem 4.5rem); position: relative; }
.awning::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.9rem; height: 0.9rem; background: radial-gradient(circle at 1.125rem 0, var(--gold) 1.125rem, transparent 1.15rem) 0 0 / 4.5rem 0.9rem repeat-x, radial-gradient(circle at 3.375rem 0, var(--paper) 1.125rem, transparent 1.15rem) 0 0 / 4.5rem 0.9rem repeat-x; }
.pane { margin-top: 0.9rem; border: 3px solid var(--gold); outline: 1px solid rgba(227, 167, 47, 0.45); outline-offset: 5px; border-radius: 6px; background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep)); padding: 1.75rem 1.25rem 0; display: grid; place-items: center; }
.pane-sign { font-family: var(--display); font-weight: 800; color: var(--gold); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.pane-sign::before, .pane-sign::after { content: ""; width: 1.5rem; height: 2px; background: var(--gold); }

/* Phone frame */
.phone { width: min(16.5rem, 100%); border: 10px solid #0b1a29; border-bottom-width: 0; padding-top: 20px; border-radius: 34px 34px 0 0; background: #0b1a29; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); overflow: hidden; position: relative; }
.phone::before { content: ""; position: absolute; top: 2px; left: 50%; width: 30%; height: 14px; transform: translateX(-50%); background: #0b1a29; border-radius: 0 0 10px 10px; z-index: 1; }
.phone img { border-radius: 24px 24px 0 0; width: 100%; aspect-ratio: 600 / 1100; object-fit: cover; object-position: top; }
.phone.full { border-bottom-width: 10px; border-radius: 34px; }
.phone.full img { border-radius: 24px; aspect-ratio: 600 / 1298; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-white { background: var(--white); }
.section-glass { background: var(--glass); }
.section-navy { background: var(--navy); color: var(--paper); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy a:not(.btn) { color: var(--gold); }
.section-head { max-width: 42rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.section-head .eyebrow { color: var(--gold-text); font-size: 0.85rem; }
.section-navy .section-head .eyebrow { color: var(--gold); }
.section-navy .section-head p { color: #c9d4de; }
.center { text-align: center; margin-inline: auto; }

.benefits { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.benefit { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.5rem; }
.benefit p { color: var(--muted); margin: 0; }
.benefit-icon { width: 2.75rem; height: 2.75rem; margin-bottom: 0.85rem; color: var(--navy); }

/* Mockup offer band */
.offer { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .offer { grid-template-columns: 1.2fr 0.8fr; } }
.offer-box { border: 3px solid var(--gold); outline: 1px solid rgba(227, 167, 47, 0.45); outline-offset: 5px; border-radius: 6px; padding: 1.5rem; }
.offer-box ol { margin: 0; padding-left: 1.25rem; }
.offer-box li { margin-bottom: 0.5rem; }

/* Work */
.work-grid { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-card { display: grid; gap: 1.25rem; align-content: start; }
.work-card .phone-stage { background: var(--glass); border-radius: var(--radius); padding: 2rem 1rem 0; display: grid; place-items: center; overflow: hidden; }
.work-card h3 { margin-bottom: 0.25rem; }
.work-meta { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.75rem; }
.chip { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); background: var(--glass); border: 1px solid #c3d2dd; border-radius: 999px; padding: 0.1rem 0.65rem; margin-right: 0.35rem; }
.placeholder-shot { width: 100%; aspect-ratio: 600 / 1100; display: grid; place-items: center; text-align: center; padding: 1.5rem; background: repeating-linear-gradient(135deg, #1b5e9b 0 18px, #1a5893 18px 36px); color: #fff; font-weight: 700; border-radius: 24px 24px 0 0; }
.placeholder-shot span { background: #f6c400; color: #222; padding: 0.4rem 0.7rem; border-radius: 6px; font-family: "Courier New", monospace; }
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: 0.45rem; }
.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.45em; width: 0.7rem; height: 0.4rem; border-left: 3px solid var(--gold-text); border-bottom: 3px solid var(--gold-text); transform: rotate(-45deg); }
.section-navy .ticks li::before { border-color: var(--gold); }
.crosses li::before { border: 0; width: auto; height: auto; transform: none; content: "–"; top: 0; color: var(--muted); font-weight: 700; }

/* Pricing */
.price-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; position: relative; }
.price-card.featured { border: 3px solid var(--gold); }
.price-card .flag { position: absolute; top: -0.85rem; left: 1.5rem; background: var(--gold); color: var(--navy-deep); font-weight: 700; font-size: 0.85rem; padding: 0.15rem 0.75rem; border-radius: 999px; }
.price { font-family: var(--display); font-weight: 800; font-size: 3rem; color: var(--navy); line-height: 1; margin: 0.25rem 0; }
.price small { font-family: var(--body); font-size: 1.05rem; font-weight: 400; color: var(--muted); }
.price-sub { color: var(--muted); margin-bottom: 1.25rem; }
.price-card h3 { margin-bottom: 0; }
.price-card h4 { font-size: 1rem; margin: 1.25rem 0 0.5rem; color: var(--navy); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; background: var(--navy-soft); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: 0.85rem; }
.steps h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.steps p { margin: 0; color: #dbe3ea; }

/* About */
.about { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .about { grid-template-columns: 0.7fr 1.3fr; gap: 3.5rem; } }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); border: 3px solid var(--gold); outline: 1px solid rgba(227, 167, 47, 0.5); outline-offset: 5px; background: var(--glass); display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--muted); max-width: 22rem; width: 100%; }

.portrait.no-photo { background: var(--navy); color: var(--gold-soft); gap: 1.25rem; align-content: center; aspect-ratio: auto; min-height: 16rem; padding: 2rem 1.5rem; }
.portrait.no-photo img { width: 6rem; height: 6rem; }
.portrait.no-photo p { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.3; margin: 0; max-width: 16rem; }

/* Promise strip */
.promises { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.promises li { border-left: 4px solid var(--gold); padding: 0.25rem 0 0.25rem 1rem; }
.promises strong { display: block; font-family: var(--display); color: var(--navy); font-size: 1.15rem; }
.promises span { color: var(--muted); }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; min-height: 56px; display: flex; align-items: center; gap: 0.75rem; color: var(--navy); list-style: none; font-size: 1.1rem; padding: 0.5rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--glass); color: var(--navy); font-family: var(--display); font-size: 1.2rem; }
.faq details[open] summary::before { content: "–"; background: var(--gold); }
.faq details p { padding-left: 2.5rem; color: var(--muted); }

/* Page head */
.page-head { background: var(--navy); color: var(--paper); padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { color: var(--white); margin-bottom: 0.4rem; }
.page-head p { color: #dbe3ea; max-width: 42rem; margin: 0; font-size: 1.18rem; }

/* Forms */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.form { display: grid; gap: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.req { color: var(--gold-text); }
.hint { font-weight: 400; font-size: 0.92rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0.65rem 0.8rem; font: 400 1.05rem var(--body); color: var(--ink); background: #fff; border: 2px solid #9aa5b1; border-radius: 8px; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(227, 167, 47, 0.6); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #a12a1e; }
.error { display: block; color: #a12a1e; font-weight: 700; font-size: 0.95rem; margin-top: 0.3rem; }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 700; margin: 0; }
.form-status:empty { display: none; }
.form-status.ok { background: #e4f1e8; border: 2px solid #2f6b45; color: #1d4a2e; }
.form-status.bad { background: #fbe9e7; border: 2px solid #a12a1e; color: #7a1d14; }
.form-note { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* Prose */
.prose > * { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }

/* Scores strip */
.scores { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.scores li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; }
.scores strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--navy); }
.scores span { font-size: 0.95rem; color: var(--muted); }
.updated { font-size: 0.95rem; color: var(--muted); margin-top: 1rem; max-width: 46rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c9d4de; padding-block: 3rem 2rem; font-size: 1rem; }
.site-footer a { color: var(--gold); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer h2 { font-family: var(--body); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(251, 250, 247, 0.15); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* Mobile action bar */
.action-bar { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: 1fr 1.25fr; gap: 0.5rem; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(15, 36, 56, 0.97); border-top: 1px solid rgba(251, 250, 247, 0.15); }
.action-bar .btn { width: 100%; padding-inline: 0.5rem; font-size: 1rem; }
@media (min-width: 60rem) { .action-bar { display: none; } body { padding-bottom: 0; } }

.mt-2 { margin-top: 2rem; }
.notfound { text-align: center; padding-block: 5rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-header, .action-bar, .site-footer { display: none; } body { padding: 0; } }
