/* brentdemartini.com. Tokens first; every color and type choice comes from here. Structure: research/BLUEPRINT.md. */
:root {
  --paper: #F3F2EF;      /* matches the portrait backdrop, so the photo sits on the page */
  --card: #FFFFFF;
  --ink: #141A17;
  --ink-2: #4D5651;
  --pine: #1F4B3F;       /* the one action color: buttons, links, the pricing band */
  --pine-deep: #153529;
  --brass: #C59A3E;      /* small marks only: step numbers, the featured flag */
  --stone: #DCDBD5;      /* hairlines */
  --mist: #E8E7E2;
  --field-line: #8C958F;
  --error: #A3261B;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;

  --r: 16px;
  --gutter: 16px;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
picture { display: block; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--pine-deep); }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
.band.dark :focus-visible, .btn:not(.ghost):focus-visible { outline-color: var(--brass); }
::placeholder { color: #6A736E; opacity: 1; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow > * { max-width: 820px; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
h1 { font-size: clamp(42px, 10.5vw, 86px); line-height: 0.98; letter-spacing: -0.03em; font-variation-settings: "wdth" 86; }
h2 { font-size: clamp(32px, 6vw, 54px); line-height: 1.02; letter-spacing: -0.025em; font-variation-settings: "wdth" 90; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; font-variation-settings: "wdth" 92; }
h1, h2, h3 { text-wrap: balance; }
.lede, .faq details p, .about-text p { text-wrap: pretty; }
p { margin: 0; }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.cta-note { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.label { font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.small { font-size: 15px; color: var(--ink-2); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px;
  border: 2px solid var(--pine); background: var(--pine); color: #fff; font: 600 17px/1 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--pine-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--pine); }
.btn.ghost:hover { background: var(--mist); color: var(--pine-deep); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.text-link { font-weight: 600; color: var(--pine); display: inline-flex; align-items: center; min-height: 44px; }
.text-btn { background: none; border: 0; padding: 10px 0; font: 600 16px var(--body); color: var(--ink-2); text-decoration: underline; cursor: pointer; min-height: 44px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--stone); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.mark { color: var(--ink); text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -0.015em; padding: 12px 0; }
.head-nav { display: flex; align-items: center; gap: 24px; }
.head-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; display: none; }
.head-nav a:not(.btn):hover { color: var(--pine); }
.head-nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.head-nav a.back { display: inline; padding: 12px 0; }
@media (max-width: 759px) { .head-nav .btn { display: none; } }
@media (min-width: 900px) { .head-nav a:not(.btn) { display: inline; } }

/* Hero */
.hero { padding: 28px 0 48px; }
.hero-grid { display: grid; gap: 28px; align-items: end; }
.hero h1 { margin-top: 14px; max-width: 12ch; }
.hero .lede { margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; }
.strip { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--stone); }
.strip li { padding: 12px 0; border-bottom: 1px solid var(--stone); font-size: 16px; color: var(--ink-2); }
.strip strong { color: var(--ink); font-weight: 600; }
.hero-media { justify-self: center; width: min(100%, 460px); }
.hero-photo img { width: 100%; border-radius: var(--r); }
@media (max-width: 959px) {
  /* phones: a small round photo above the headline, so the first screen shows who, what and the button */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; width: 88px; justify-self: start; margin-bottom: -8px; }
  .hero-photo img { aspect-ratio: 1; object-fit: cover; object-position: 50% 14%; border-radius: 999px; }
}
@media (min-width: 640px) { .strip { grid-template-columns: repeat(3, 1fr); } .strip li { padding: 14px 16px 14px 0; border-bottom: 0; } }
@media (min-width: 960px) {
  .hero { padding: 48px 0 0; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero-copy { padding-bottom: 64px; }
}

/* Sections */
section { scroll-margin-top: 72px; }
.band { padding: 72px 0; }
.band.white { background: var(--card); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.band.dark { background: var(--pine); color: #fff; }
.band.dark .label { color: color-mix(in srgb, #fff 75%, var(--pine)); }
.band.dark .lede { color: color-mix(in srgb, #fff 82%, var(--pine)); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
@media (min-width: 960px) { .band { padding: 112px 0; } }

/* Sound familiar */
.familiar { background: var(--card); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.fam-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; }
.fam-list li { padding: 20px 0; border-top: 1px solid var(--stone); font-size: 20px; line-height: 1.45; color: var(--ink-2); }
.fam-list li:last-child { border-bottom: 1px solid var(--stone); }
.fam-list strong { color: var(--ink); font-weight: 600; }
.fam-close { margin-top: 26px; font: 600 20px/1.4 var(--body); }

/* Steps: a real sequence with time cost and outcome per step */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--stone); border-radius: var(--r); padding: 20px 18px; }
.step-n { font: 800 34px/1 var(--display); color: var(--brass); }
@media (max-width: 559px) {
  .steps li { grid-template-columns: 1fr; gap: 4px; padding: 18px 18px 16px; }
  .step-n { font: 600 13px/1 var(--mono); letter-spacing: .06em; }
  .step-n::before { content: "Step "; }
  .step-body p { font-size: 16px; }
  .step-meta div { grid-template-columns: 76px 1fr; }
}
.step-body h3 { margin-bottom: 8px; }
.step-body p { color: var(--ink-2); }
.step-meta { display: grid; gap: 6px; margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--stone); }
.step-meta div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: baseline; }
.step-meta dt { font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.step-meta dd { margin: 0; font-weight: 600; font-size: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 18px; } .steps li { padding: 28px; grid-template-columns: 56px 1fr; } .step-n { font-size: 44px; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Work */
.case { display: grid; gap: 28px; align-items: center; }
.case-shots { position: relative; padding-bottom: 40px; }
.case-shots > picture img { width: 100%; border-radius: 12px; border: 1px solid var(--stone); }
.phone-frame { position: absolute; right: -2%; bottom: -8px; width: 30%; max-width: 180px; border: 5px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px var(--stone), 0 24px 40px -24px rgba(20,26,23,.6); }
@media (max-width: 959px) { .case-shots { padding: 0 0 24px 18%; } .phone-frame { left: 0; right: auto; width: 34%; } }
.phone-frame img { border-radius: 20px; }
.case-text { display: grid; gap: 12px; }
.case-text h3 { font-size: clamp(30px, 5vw, 40px); }
.case-text p { color: var(--ink-2); }
.brands { margin-top: 64px; display: grid; gap: 18px; }
.brands-head { display: grid; gap: 8px; max-width: 640px; }
.brands-head p { color: var(--ink-2); }
.brand { display: grid; gap: 12px; text-decoration: none; color: var(--ink); }
.brand { align-content: start; }
.brand img { border-radius: 12px; border: 1px solid var(--stone); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.brand span { font-size: 15px; color: var(--ink-2); }
.brand-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.brand strong { display: block; color: var(--ink); font-size: 18px; }
.brand:hover strong { color: var(--pine); }
@media (min-width: 760px) { .brand-row { gap: 18px; } .brand span { font-size: 16px; } }
@media (min-width: 960px) { .case { grid-template-columns: 1.4fr 1fr; gap: 56px; } }

/* About */
.about { display: grid; gap: 28px; align-items: center; }
.about-photo img { border-radius: var(--r); }
.about-text { display: grid; gap: 16px; }
.about-text p:not(.label) { font-size: 19px; color: var(--ink-2); max-width: 54ch; }
.about-head { display: grid; gap: 14px; }
.about-photo { margin-top: 10px; max-width: 360px; }
.about-text .brand-row { margin-top: 10px; }
@media (min-width: 900px) { .about { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; } }

/* Pricing */
.prices { display: grid; gap: 16px; }
.price { background: var(--card); color: var(--ink); border-radius: 20px; padding: 28px 22px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.price.feature { box-shadow: 0 0 0 3px var(--brass); }
.price .flag { position: absolute; top: -13px; left: 22px; background: var(--brass); color: var(--ink); font: 600 12px/1 var(--mono); letter-spacing: .03em; padding: 7px 12px; border-radius: 999px; }
.price .amt { font: 800 46px/1 var(--display); letter-spacing: -0.03em; font-variation-settings: "wdth" 86; }
.price .btn.ghost { border-width: 1.5px; border-color: var(--stone); color: var(--ink); }
.price .who { font-weight: 600; }
.price .pages { color: var(--ink-2); font-size: 16px; }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.price li, .incl li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 16px; }
.price li::before, .incl li::before { content: ""; width: 12px; height: 7px; border-left: 2.5px solid var(--pine); border-bottom: 2.5px solid var(--pine); transform: rotate(-45deg) translate(1px, 6px); }
.price .btn { margin-top: auto; }
.price-foot { margin-top: 36px; display: grid; gap: 28px; }
.price-foot h3 { margin-bottom: 12px; }
.price-foot p { color: color-mix(in srgb, #fff 85%, var(--pine)); font-size: 17px; margin-bottom: 10px; max-width: 56ch; }
.price-foot a { color: #fff; }
.incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.incl li::before { border-color: var(--brass); }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, 1fr); } .price-foot { grid-template-columns: 1fr 1.3fr; gap: 48px; } }

/* FAQ */
.faq { display: grid; }
.faq details { border-top: 1px solid var(--stone); }
.faq details:last-child { border-bottom: 1px solid var(--stone); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 600 19px/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 500 26px/1 var(--body); color: var(--pine); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* Closing band */
.close-band { background: var(--ink); color: #fff; }
.close-band .lede, .close-band .small { color: color-mix(in srgb, #fff 78%, var(--ink)); }
.close-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.close-band .btn:hover { background: var(--mist); }
.close { display: grid; gap: 18px; text-align: left; }

/* Footer */
.site-foot { padding: 40px 0 112px; font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--stone); }
.site-foot .wrap { display: grid; gap: 18px; }
.site-foot strong { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-flex; min-height: 44px; align-items: center; }
@media (min-width: 760px) { .site-foot { padding-bottom: 48px; } .site-foot .wrap { grid-template-columns: 1fr auto; align-items: start; } }

/* Bottom bar (phones only): one action, appears after the hero */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--paper);
  box-shadow: 0 -1px 0 var(--stone); transform: translateY(110%); visibility: hidden; transition: transform .25s, visibility .25s; }
.bar.on { visibility: visible; }
.bar.on { transform: none; }
.bar .btn { width: 100%; }
@media (min-width: 760px) { .bar { display: none; } }

/* ===== Intake (/start/) ===== */
.intake-hero { padding: 32px 0 20px; }
.intake-hero h1 { margin-top: 12px; font-size: clamp(38px, 8vw, 64px); }
.small-link { font-size: 15px; white-space: nowrap; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 480px) { .gate-actions .btn { width: 100%; } }
.intake-hero .lede { margin-top: 14px; max-width: 52ch; }
.intake { padding-bottom: 80px; }
.progress { position: sticky; top: 64px; z-index: 10; background: var(--paper); padding: 12px 0 14px; }
.progress ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.progress li { height: 6px; border-radius: 99px; background: var(--stone); transition: background .2s; }
.progress li.done, .progress li.now { background: var(--pine); }
.progress li.now { background: var(--brass); }
.progress .where { margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; }
.form-card { background: var(--card); border: 1px solid var(--stone); border-radius: 20px; padding: 24px 18px; }
@media (min-width: 700px) { .form-card { padding: 36px; } }
.step { display: none; }
.step.on { display: block; }
.step > h2 { font-size: clamp(28px, 5vw, 40px); }
.step > .help { margin-top: 8px; color: var(--ink-2); max-width: 60ch; }
.fields { display: grid; gap: 22px; margin-top: 28px; }
.row2 { display: grid; gap: 22px; }
@media (min-width: 700px) { .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field > label, .field > .q, fieldset > legend { font-weight: 600; font-size: 17px; }
.field .opt, legend .opt { font-weight: 400; color: var(--ink-2); font-size: 14px; margin-left: 6px; }
.field .hint, fieldset > .hint { font-size: 14px; color: var(--ink-2); margin-top: -2px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url], .field select, .field textarea {
  width: 100%; min-height: 50px; border: 1.5px solid var(--field-line); border-radius: 12px; padding: 12px 14px;
  font: 400 17px/1.4 var(--body); color: var(--ink); background: var(--paper);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--pine) 18%, transparent); background: #fff; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--error); }
.err { color: var(--error); font-size: 14px; font-weight: 600; display: none; }
.field.bad .err, fieldset.bad .err { display: block; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
fieldset > legend { padding: 0; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--field-line); background: var(--paper); font-weight: 500; font-size: 16px; user-select: none; }
.chip input:checked + span { background: var(--pine); border-color: var(--pine); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.radios { display: grid; gap: 8px; }
.radio { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1.5px solid var(--field-line); border-radius: 12px; background: var(--paper); cursor: pointer; }
.radio input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pine); }
.radio:has(input:checked) { border-color: var(--pine); background: #fff; box-shadow: 0 0 0 1px var(--pine); }
.radio b { display: block; font-weight: 600; }
.radio small { display: block; color: var(--ink-2); font-size: 14px; margin-top: 2px; }

/* Repeaters: customer types and sites they like */
.rep { display: grid; gap: 14px; }
.rep-item { border: 1.5px dashed var(--stone); border-radius: 16px; padding: 16px; display: grid; gap: 16px; background: #fff; }
.rep-item .rep-top { display: flex; justify-content: space-between; align-items: center; }
.rep-item .rm { background: none; border: 0; color: var(--ink-2); font: 500 14px var(--body); text-decoration: underline; cursor: pointer; padding: 6px 8px; min-height: 44px; }
.rep-add { justify-self: start; min-height: 44px; font-size: 15px; }

.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.nav-row .btn { min-width: 140px; }
.form-msg { margin-top: 16px; font-weight: 600; color: var(--error); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.review dl { display: grid; gap: 0; margin: 24px 0 0; }
.review dl > div { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--stone); }
.review dt { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.review dl > div.rv-head { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; border-top: 2px solid var(--ink); }
.review dl > div.rv-head dt { font: 700 18px/1.3 var(--display); text-transform: none; letter-spacing: -0.01em; color: var(--ink); }
.review dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review .edit { font-size: 15px; display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 480px) { .review .nav-row { flex-direction: column-reverse; align-items: stretch; } .review .nav-row .btn { width: 100%; } }
@media (min-width: 700px) { .review dl > div { grid-template-columns: 220px 1fr; gap: 16px; } }

.done-card { text-align: left; display: grid; gap: 18px; }
.done-card .keytag { justify-self: start; }
body:has(#intake) { scroll-padding-top: 150px; }
html:has(#intake) { scroll-padding-top: 150px; }
.step > h2 { scroll-margin-top: 150px; }
.done-card .folder { display: grid; gap: 10px; padding: 20px; background: var(--paper); border-radius: 16px; border: 1px solid var(--stone); }
.done-card ul { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
