/* Mackey Web Studio homepage (2026-11-25 redesign, approved by David 2026-11-24).
   Tokens from knowledge/brand.md, arranged by the Apple web rules
   (knowledge/design/apple-website-design.md): one accent that only means "action",
   full-bleed tiles where the color change is the divider, 17px body, tight 600 headlines,
   pill buttons, no card shadows, one soft shadow under the work itself, 14px text floor.
   The other pages keep style.css; this file is the homepage's only stylesheet besides
   privacy-controls.css. */
:root {
  --canvas: #ffffff;
  --parchment: #fafaf8;
  --ink: #0a0a0a;
  --text: #1a1a18;
  --muted: #5c5b56;
  --border: #e6e4dd;
  --cobalt: #1d4fd8;
  --cobalt-press: #1740b8;
  --on-dark: #ffffff;
  --muted-on-dark: rgba(255, 255, 255, 0.72);
  --error: #b42318;
  --display: "Inter Tight", system-ui, -apple-system, sans-serif;
  --body: Inter, system-ui, -apple-system, sans-serif;
  --serif: Fraunces, Georgia, serif;
  --work-shadow: rgba(20, 18, 12, 0.22) 3px 5px 30px 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font: 400 17px/1.47 var(--body); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cobalt); }
:focus-visible { outline: 2px solid var(--cobalt-press); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: #fff; }
.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; }

/* Nav: slim, frosted, one action */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(250, 250, 248, 0.82);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(20, 18, 12, 0.08); }
.nav-in { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 17px/1 var(--display); letter-spacing: -0.01em; min-height: 44px; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 14px; padding: 12px 0; }
.nav-links a:hover { color: var(--cobalt); }

/* Buttons: pill = action. Cobalt is used for nothing else. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px;
  border-radius: 999px; font: 400 17px/1 var(--body); text-decoration: none; border: 1px solid var(--cobalt);
  background: var(--cobalt); color: #fff; cursor: pointer; transition: transform .12s ease; }
.btn:hover { background: var(--cobalt-press); border-color: var(--cobalt-press); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { background: transparent; color: var(--cobalt); }
.btn-ghost:hover { background: var(--cobalt); color: #fff; }
.btn-sm { min-height: 36px; padding: 8px 16px; font-size: 14px; }
.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }
.link-more { font-size: 17px; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.link-more:hover { text-decoration: underline; }

/* Tiles: full-bleed, edge to edge, the color change is the divider */
.tile { padding: 96px 24px; text-align: center; }
.tile.parchment { background: var(--parchment); }
.tile.dark { background: var(--ink); color: var(--on-dark); }
.tile.dark.deep { background: #141413; }
.wrap { max-width: 980px; margin: 0 auto; }
.wrap-wide { max-width: 1080px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: inherit; margin: 0; text-wrap: balance; }
.lead, .letter p { text-wrap: pretty; }
h1 { font-size: 56px; line-height: 1.07; letter-spacing: -0.025em; }
h2 { font-size: 48px; line-height: 1.08; letter-spacing: -0.022em; }
h3 { font-size: 24px; line-height: 1.17; letter-spacing: -0.015em; }
.lead { font-size: 24px; line-height: 1.38; color: var(--muted); max-width: 720px; margin: 20px auto 0; letter-spacing: -0.012em; }
.dark .lead, .dark .muted { color: var(--muted-on-dark); }
.muted { color: var(--muted); }
.actions { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.facts { margin-top: 22px; font-size: 14px; color: var(--muted); }
.facts span + span::before { content: "·"; margin: 0 10px; }

/* The work is the product: big, framed, one soft shadow under it */
.screen { margin: 56px auto 0; max-width: 940px; border-radius: 14px; overflow: hidden; background: #111;
  padding: 10px; box-shadow: var(--work-shadow); }
.screen img { border-radius: 6px; width: 100%; }
.dark .screen { background: #1c1c1c; }
.screen.flush { margin-top: 0; }
.caption { margin-top: 16px; font-size: 14px; color: var(--muted); }
.dark .caption { color: var(--muted-on-dark); }
.sample-name { margin-top: 36px; }
.sample-note { max-width: 560px; margin: 10px auto 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 56px; text-align: left; }
.step-n { font: 600 17px/1 var(--display); color: var(--muted); }
.steps h3 { font-size: 21px; margin: 12px 0 8px; }
.steps p { margin: 0; color: var(--muted); }

/* Fields (shared by both forms) */
.field { display: flex; flex-direction: column; text-align: left; gap: 6px; font-size: 14px; }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea {
  min-height: 48px; border-radius: 12px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06);
  color: #fff; font: 400 17px/1.2 var(--body); padding: 12px 14px; width: 100%; }
.parchment .field input:not([type=radio]):not([type=checkbox]), .parchment .field select, .parchment .field textarea {
  border-color: #c9c6bc; background: #fff; color: var(--text); }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.field ::placeholder { color: var(--muted); opacity: 1; }

/* Quick mockup form tile (dark) */
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; max-width: 900px; margin: 36px auto 0; }
.form-row .btn { align-self: end; min-height: 48px; }
.form-msg { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: 15px; text-align: left; }
.form-done { max-width: 640px; margin: 36px auto 0; padding: 28px 24px; border-radius: 18px; background: #fff; color: var(--text); }
.form-done h3 { font-size: 21px; margin-bottom: 8px; }
.form-done p { margin: 0; color: var(--muted); }
.fine { font-size: 14px; margin-top: 16px; }
.fine a { color: #fff; }

/* Pricing: white utility cards, hairline, no shadow, no badge */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; text-align: left; }
.card { background: var(--canvas); border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; }
.card h3 { font-size: 21px; }
.price { font: 600 40px/1 var(--display); letter-spacing: -0.02em; margin: 18px 0 4px; color: var(--ink); }
.price .per { font: 400 17px var(--body); color: var(--muted); letter-spacing: -0.01em; }
.care-line { font-size: 15px; color: var(--text); margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.card ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: 15px; color: var(--muted); flex: 1; }
.card li { padding: 5px 0; }
.card .btn { align-self: flex-start; }
.care { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; text-align: left; }
.care .card .price { font-size: 32px; }
.care .card ul { margin-bottom: 0; }
.care-head { margin-top: 64px; }
.care-head h3 { font-size: 28px; }
.care-head p { margin: 8px 0 0; }

/* David's letter: the one place the serif is spent */
.letter { text-align: left; max-width: 680px; margin: 0 auto; }
.letter h2 { font-family: var(--serif); font-weight: 400; font-size: 48px; letter-spacing: -0.01em; }
.letter p { font-size: 19px; line-height: 1.55; margin: 22px 0 0; }
.letter .sig { font-family: var(--serif); font-size: 24px; margin-top: 28px; }
.letter .where { font-size: 15px; margin-top: 4px; }

/* The full project brief: today's 5-step intake form, restyled */
.brief { max-width: 640px; margin: 40px auto 0; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 32px; }
.form-progress { display: flex; gap: 6px; margin-bottom: 20px; }
.form-progress .pseg { flex: 1; height: 4px; border-radius: 4px; background: var(--border); }
.form-progress .pseg.active, .form-progress .pseg.done { background: var(--cobalt); }
.form-step { display: none; }
.form-step.active { display: block; }
.step-eyebrow { display: block; font-size: 14px; color: var(--muted); }
.form-step h3 { margin: 6px 0 20px; }
.brief .field { margin-bottom: 16px; }
.brief .field > label { font-size: 15px; font-weight: 600; color: var(--text); }
.brief .field .opt { font-weight: 400; color: var(--muted); }
.req { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice-list.cols { display: grid; grid-template-columns: 1fr 1fr; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid #c9c6bc;
  border-radius: 12px; background: #fff; color: var(--text); font-size: 16px; font-weight: 400; line-height: 1.3; cursor: pointer; }
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--cobalt); }
.field-error { display: none; color: var(--error); font-size: 14px; font-weight: 600; }
.field-error.show { display: block; }
.brief .field .invalid { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.form-err-banner { display: none; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: #fdecec; color: #a02323; font-size: 15px; font-weight: 600; }
.form-err-banner.show { display: block; }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.form-success { display: none; text-align: center; padding: 8px 0; }
.form-success.show { display: block; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { margin: 0; color: var(--muted); }
.brief-note { max-width: 640px; margin: 16px auto 0; font-size: 14px; color: var(--muted); text-align: center; }

/* FAQ */
.faq { max-width: 760px; margin: 40px auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; font: 600 19px/1.3 var(--display); letter-spacing: -0.01em; padding: 22px 32px 22px 0; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 26px/1 var(--body); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 22px; color: var(--muted); }

/* Footer: dense on purpose */
footer { background: var(--parchment); padding: 56px 24px 40px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); }
.foot { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font: 600 14px/1.3 var(--body); color: var(--text); margin: 0 0 10px; }
.foot a { color: var(--muted); text-decoration: none; display: block; line-height: 2.2; }
.foot a:hover { color: var(--cobalt); text-decoration: underline; }
.foot .brand { display: flex; line-height: 1; color: var(--ink); }
.foot-area { margin: 12px 0 0; max-width: 320px; }
.foot-mail { margin: 8px 0 0; }
.legal { max-width: 1080px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.legal a, .legal button { color: var(--muted); }
.legal button { font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.noscript-note { background: #0b1f3a; color: #fff; padding: 16px 20px; text-align: center; font: 500 15px/1.5 var(--body); }
.noscript-note a { color: #8ab4ff; }

@media (max-width: 1068px) {
  h1 { font-size: 48px; } h2 { font-size: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 734px) {
  .tile { padding: 64px 20px; }
  h1 { font-size: 36px; } h2 { font-size: 32px; }
  h1 br, h2 br { display: none; }
  .lead { font-size: 19px; }
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; padding: 0 16px; }
  .cards, .care, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row .btn { width: 100%; }
  .screen { padding: 6px; border-radius: 10px; margin-top: 40px; }
  .screen.flush { margin-top: 0; }
  .letter h2 { font-size: 36px; }
  .brief { padding: 24px 18px; }
  .grid-2, .choice-list.cols { grid-template-columns: 1fr; }
  .form-nav .btn { padding: 11px 18px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .foot a { line-height: 1.3; min-height: 44px; display: flex; align-items: center; }
  .legal a, .legal button, .fine a, .letter a, .foot p a, .brief-note a, .form-done a, .noscript-note a { display: inline-flex; align-items: center; min-height: 44px; }
  .btn-sm { min-height: 44px; padding: 11px 18px; }
  .facts span { display: block; } .facts span + span::before { content: none; }
}
