/* Melenica Group inner pages: the drawing-sheet components of the classic site, converted to the dark studio palette.
   Generated from styles.css by role-based colour conversion. Loaded before shell.css. */
/* Melenica Group marketing site (working brand; preview build, not published).
   Fonts are self-hosted (SIL Open Font License 1.1, Fontsource packages; licence texts in fonts/).
   No third-party requests of any kind. */

/* Brand tokens. Base: navy, white and teal (blueprint §02, roadmap 3A.1).
   What makes it ours is the job-site layer: navy is blueprint paper (with a faint drafting grid),
   tape-measure yellow marks every measurement, pin and check, and pages read like drawing sheets
   (title blocks, punch lists, scope sheets, dimension lines). */
:root {
  --navy: #202020;        /* blueprint navy: header, process, footer */
  --navy-2: #2c2c2c;
  --navy-3: #3d3d3d;
  --white: #ffffff;
  --paper: #f5f5f5;       /* drafting paper */
  --grid: #e8e8e8;
  --teal: #5a5a5a;        /* primary action and links (AA on white and paper) */
  --teal-dark: #414141;
  --teal-bright: #b9b9b9; /* on navy only */
  --tape: #e9e9e9;        /* tape-measure marks, pins, rules: silver in the chrome palette (D-074) */
  --tape-soft: rgba(236, 236, 236, .10);
  --ink: #202020;
  --muted: #575757;
  --on-dark: #e3e3e3;
  --on-dark-muted: #b8b8b8;
  --line: #dadada;
  --line-dark: #474747;
  --error: #3c3c3c;
  --focus: #e9e9e9;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: .9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.35rem, 1.2rem + .7vw, 1.7rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.6vw, 3.75rem);

  --wrap: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.25rem, 2.4rem + 4vw, 7rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.55; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 720; line-height: 1.08; letter-spacing: -.018em; margin: 0; font-variation-settings: "opsz" 72; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 780; letter-spacing: -.03em; line-height: 1.02; }
h2 { font-size: var(--step-3); letter-spacing: -.025em; }
h3 { font-size: var(--step-1); letter-spacing: -.01em; line-height: 1.25; font-variation-settings: "opsz" 24; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--teal-dark); text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 700; }
ul, ol { padding: 0; margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 62ch; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 54ch; }
.skip { position: absolute; left: .75rem; top: -4rem; z-index: 50; background: var(--bg); color: var(--ink); padding: .75rem 1rem; border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: .75rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }

/* Drafting surfaces */
.gridpaper { background-color: var(--bg-1); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
.blueprint { background-color: var(--bg-2); background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 28px 28px; }

/* Pins: tape-yellow numbered markers tie a drawing to its notes */
.pin { display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--tape); color: var(--ink-hi); border: 2px solid var(--hair-2); font-family: var(--font-display); font-weight: 760; font-size: .9375rem; line-height: 1; font-variation-settings: "opsz" 24; }
.pin-on { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px rgba(181, 181, 181, .35); }

/* Sections */
.band { padding-block: var(--section); }
.band-tight { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.band-paper { background: var(--bg-1); }
.band-navy { color: var(--on-dark); }
.band-navy h2, .band-navy h3 { color: var(--ink-hi); }
.band-navy a:not(.btn) { color: var(--teal-bright); }
.section-head { display: grid; gap: .9rem; margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 3.25rem); max-width: 46rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.band-navy .section-head p { color: var(--on-dark-muted); }
.sheet-no { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: .9375rem; color: var(--muted); font-variation-settings: "opsz" 24; }
.sheet-no::before { content: ""; width: 1.75rem; height: 3px; background: var(--tape); }
.band-navy .sheet-no { color: var(--on-dark-muted); }

/* Hero */
.hero { position: relative; border-bottom: 1px solid var(--line); background: var(--bg); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center; padding-block: clamp(2rem, 1.5rem + 2.5vw, 4rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.area-line { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.5rem; font-weight: 700; }
.area-line svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .1rem; }
.area-line span span { display: block; font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.hero-aside { margin-top: 1rem; color: var(--muted); font-size: var(--step--1); max-width: 50ch; }

.demo-comp { position: relative; margin: 0; }
.demo-stage { position: relative; aspect-ratio: 100 / 93; }
.demo-stage .browser { position: absolute; top: 0; right: 0; width: 86%; }
.demo-stage .phone { position: absolute; left: 0; bottom: 0; width: 34%; }
.demo-notes { position: absolute; right: 0; bottom: 0; width: 60%; list-style: none; display: grid; gap: .55rem; padding: 1rem 1.1rem; background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--hair-2); border-radius: var(--radius); }
.demo-notes li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: .65rem; align-items: start; font-size: .9375rem; line-height: 1.4; color: var(--muted); }
.demo-notes strong { display: block; color: var(--ink); font-size: 1rem; }
.demo-notes li.demo-notes-head { display: flex; font-family: var(--font-display); font-weight: 700; font-size: .9375rem; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.demo-notes-head span { color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.demo-comp figcaption { margin-top: 2.6rem; font-size: var(--step--1); color: var(--muted); }
.dim-line { position: absolute; left: 0; bottom: -1.75rem; width: 100%; height: 1rem; border-inline: 2px solid var(--teal); }
.dim-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--teal); }
.dim-line span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--bg); padding: 0 .4rem; font-weight: 700; font-size: .875rem; color: var(--teal-dark); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .js .dim-line { animation: dim-in 700ms cubic-bezier(.2,.7,.2,1) 120ms both; transform-origin: center; }
  @keyframes dim-in { from { transform: scaleX(.1); opacity: .2; } to { transform: scaleX(1); opacity: 1; } }
}
.demo-stage .shot .pin-on { width: 1.6rem; height: 1.6rem; font-size: .875rem; }

@media (max-width: 1099px) {
  .demo-comp figcaption { margin-top: .9rem; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .demo-stage { aspect-ratio: auto; display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); column-gap: 1.25rem; }
  .demo-stage .browser { position: relative; grid-column: 1 / -1; width: 86%; margin-left: auto; }
  .demo-stage .phone { position: relative; left: auto; bottom: auto; width: auto; grid-column: 1; margin-top: -52%; }
  .demo-notes { position: relative; grid-column: 2; width: auto; margin-top: 1rem; align-self: start; }
  .dim-line { display: none; }
}
@media (max-width: 560px) {
  .hero .lede { font-size: 1.0625rem; margin-top: 1rem; }
  .hero-actions { margin-top: 1.25rem; }
  .hero-aside { display: none; }
  .area-line { margin-top: 1.1rem; }
  .hero-actions .btn { flex: 1 1 0; padding-inline: .5rem; }
  .demo-stage { column-gap: .85rem; }
  .demo-stage .browser { width: 94%; }
  .demo-stage .phone { padding: 5px; border-radius: 18px; margin-top: -40%; }
  .demo-stage .phone .shot img { border-radius: 13px; }
  .demo-stage .shot .pin-on { width: 1.35rem; height: 1.35rem; font-size: .75rem; border-width: 1.5px; }
  .demo-notes { padding: .7rem .75rem; gap: .45rem; margin-top: .75rem; }
  .demo-notes li { grid-template-columns: 1.45rem minmax(0, 1fr); gap: .45rem; }
  .demo-notes .pin { width: 1.45rem; height: 1.45rem; font-size: .8125rem; }
  .demo-notes strong { font-size: .9375rem; line-height: 1.25; }
  .demo-notes .nd, .demo-notes-head span { display: none; }
}

/* Frames */
.browser { border-radius: 10px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--bg-3); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .55); }
.browser-bar { display: flex; align-items: center; gap: .4rem; height: 1.9rem; padding-inline: .8rem; background: var(--bg-2); }
.browser-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--bg-3); }
.browser-bar span { margin-left: .6rem; font-size: .8125rem; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot { position: relative; }
.browser .shot img { width: 100%; aspect-ratio: 1440 / 544; object-fit: cover; }
.phone { border-radius: 28px; padding: 8px; background: var(--bg-2); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .6); }
.phone .shot img { width: 100%; border-radius: 20px; aspect-ratio: 390 / 736; object-fit: cover; }
.phone .shot.tall img { aspect-ratio: 488 / 863; }
.tag { display: inline-flex; align-items: center; gap: .45rem; min-height: 2rem; padding: .25rem .8rem; border-radius: 999px; background: var(--bg-2); color: var(--ink-hi); font-weight: 700; font-size: .9375rem; }
.tag::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--tape); }
.sample-flag { position: absolute; left: 50%; bottom: .6rem; transform: translateX(-50%); background: var(--tape); color: var(--ink-hi); font-weight: 700; font-size: .8125rem; padding: .2rem .6rem; border-radius: 4px; white-space: nowrap; }

/* Punch list with before/after phones */
.punch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 2vw, 1.5rem); margin: 0; }
.ba-col h3 { font-size: 1.0625rem; margin-bottom: .6rem; display: flex; gap: .5rem; align-items: center; }
.ba-col h3::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: rgba(255,255,255,.3); }
.ba-col.after h3::before { background: var(--teal); }
.ba .phone { padding: 6px; border-radius: 24px; }
.ba .phone svg { width: 100%; border-radius: 18px; background: var(--bg); }
.ba figcaption { grid-column: 1 / -1; font-size: var(--step--1); color: var(--muted); }
.ba-note { font-size: var(--step--1); color: var(--muted); margin-top: .6rem; }
.sheet { background: var(--bg); border: 1px solid var(--line); border-top: 6px solid var(--hair-2); border-radius: var(--radius); box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .45); }
.sheet-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; padding: .9rem 1.25rem; border-bottom: 2px solid var(--hair-2); font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.sheet-head span:last-child { color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: .9375rem; }
.punch-list { list-style: none; }
.punch-list li { display: grid; grid-template-columns: 1.75rem 1.6rem minmax(0, 1fr); gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); align-items: start; }
.punch-list li:last-child { border-bottom: 0; }
.punch-list strong { display: block; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 680; line-height: 1.3; font-variation-settings: "opsz" 24; }
.punch-list p { color: var(--muted); margin-top: .2rem; font-size: 1rem; }
.punch-list .fix { display: block; margin-top: .35rem; color: var(--teal-dark); font-weight: 700; font-size: .9375rem; }
.check { width: 1.6rem; height: 1.6rem; border: 2px solid var(--hair-2); border-radius: 3px; background: var(--bg); margin-top: .1rem; }
.check svg { width: 100%; height: 100%; }
.check path { fill: none; stroke: var(--teal); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
.js .punch-list li:not(.done) .check path { stroke-dashoffset: 24; }
.punch-list li.done strong { text-decoration: line-through; text-decoration-color: rgba(90, 90, 90, .55); text-decoration-thickness: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .check path { transition: stroke-dashoffset 420ms cubic-bezier(.2,.7,.2,1); }
}
.sheet-foot { padding: 1rem 1.25rem; background: var(--bg-1); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); font-size: 1rem; }
@media (max-width: 1023px) { .punch-grid { grid-template-columns: minmax(0, 1fr); } .ba { max-width: 560px; } }
@media (max-width: 480px) { .punch-list li { grid-template-columns: 1.75rem 1.6rem minmax(0, 1fr); padding-inline: .9rem; gap: .6rem; } .sheet-head, .sheet-foot { padding-inline: .9rem; } }

/* Work showcase */
.work { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.shots { position: relative; padding-bottom: 4rem; }
.shots .phone { position: absolute; right: -1rem; bottom: 0; width: 30%; max-width: 230px; }
.facts { margin: 1.25rem 0 1.75rem; display: grid; gap: 1.1rem; }
.facts dt { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; }
.facts dd { margin: .2rem 0 0; color: var(--muted); }
.work h3 { font-size: var(--step-2); margin-top: 1rem; }
@media (max-width: 899px) { .work { grid-template-columns: minmax(0, 1fr); } .shots { padding-bottom: 5.5rem; } .shots .phone { right: .25rem; width: 32%; padding: 5px; border-radius: 18px; } .shots .phone .shot img { border-radius: 14px; } }

/* Process on blueprint */
.tape-rule { position: relative; height: 34px; margin: 0 0 1.5rem; border-radius: 3px; background: var(--tape); border: 2px solid #8a8a8a; background-image: repeating-linear-gradient(90deg, var(--bg-2) 0 1.5px, transparent 1.5px 12px); background-size: 100% 9px; background-repeat: repeat-x; background-position: 0 0; }
.tape-rule::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, var(--bg-2) 0 2px, transparent 2px 60px); background-size: 100% 16px; background-repeat: repeat-x; }
@media (prefers-reduced-motion: no-preference) {
  .js .tape-rule { transform-origin: left center; transform: scaleX(.04); transition: transform 1200ms cubic-bezier(.2,.7,.2,1); }
  .js .tape-rule.in { transform: scaleX(1); }
}
.steps { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 1rem; }
.steps li::before { content: counter(step); position: absolute; top: -2.85rem; left: 0; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--tape); color: var(--ink-hi); font-family: var(--font-display); font-weight: 760; font-size: .9375rem; }
.steps h3 { font-size: 1.125rem; margin: .4rem 0 .4rem; }
.steps p { color: var(--on-dark); font-size: .9375rem; line-height: 1.5; }
.steps .result { display: block; margin-top: .6rem; padding-top: .55rem; border-top: 1px dashed var(--line-dark); color: var(--tape); font-weight: 700; font-size: .875rem; line-height: 1.4; }
.ai-strip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.5rem; align-items: start; margin-top: clamp(2.5rem, 4vw, 3.5rem); padding: 1.25rem 1.4rem; border: 1px solid var(--line-dark); border-left: 4px solid var(--teal-bright); border-radius: var(--radius); background: var(--bg-3); }
.ai-strip h3 { font-size: 1.125rem; }
.ai-strip p { color: var(--on-dark); }
@media (max-width: 1099px) {
  .tape-rule { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; position: relative; padding-left: 3.25rem; }
  .steps::before { content: ""; position: absolute; left: .85rem; top: .5rem; bottom: .5rem; width: 10px; background: var(--tape); border-radius: 2px; background-image: repeating-linear-gradient(180deg, var(--bg-2) 0 1.5px, transparent 1.5px 10px); }
  .steps li { padding: 0 0 1.75rem; }
  .steps li::before { top: .1rem; left: -3.25rem; }
  .steps h3 { margin-top: .35rem; }
  .steps p { font-size: 1rem; }
  .ai-strip { grid-template-columns: minmax(0, 1fr); }
}

/* Scope sheet (services overview) */
.scope { border-top: 2px solid var(--hair-2); }
.scope-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) auto; gap: .75rem 2.5rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.scope-row h3 { font-size: var(--step-2); }
.scope-row h3 a { color: var(--ink); text-decoration: none; }
.scope-row h3 a:hover { color: var(--teal); text-decoration: underline; }
.scope-row p { color: var(--muted); }
.scope-row .for { display: block; color: var(--ink); font-weight: 700; margin-top: .35rem; font-size: 1rem; }
.scope-row .more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; white-space: nowrap; }
.dim { position: relative; margin-top: .9rem; height: 1.6rem; max-width: 100%; }
.dim::before { content: ""; position: absolute; left: 0; top: .8rem; width: var(--w, 50%); border-top: 1.5px solid var(--teal); }
.dim::after { content: ""; position: absolute; left: 0; top: .35rem; width: var(--w, 50%); height: .9rem; border-inline: 2px solid var(--teal); }
.dim span { position: relative; z-index: 1; display: inline-block; margin-left: .6rem; padding: 0 .4rem; background: var(--bg); color: var(--teal-dark); font-size: .875rem; font-weight: 700; line-height: 1.6rem; }
.band-paper .dim span { background: var(--bg-1); }
.price-slot:empty { display: none; }
.price-slot { display: block; font-weight: 700; color: var(--ink); margin-top: .35rem; }
.scope-note { margin-top: 1.5rem; color: var(--muted); max-width: 60ch; }
@media (max-width: 767px) { .scope-row { grid-template-columns: minmax(0, 1fr); gap: .35rem; padding: 1.25rem 0; } }

/* FAQ + service area */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 2px solid var(--hair-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 3.25rem; padding: 1rem 0; font-family: var(--font-display); font-weight: 680; font-size: var(--step-1); line-height: 1.3; font-variation-settings: "opsz" 24; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .8rem; height: .8rem; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(45deg) translate(-3px, -3px); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details > div { padding: 0 0 1.25rem; max-width: 64ch; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .faq summary::after { transition: transform 200ms ease; } }
.area-card { position: sticky; top: 6rem; background: var(--bg); border: 1px solid var(--line); border-top: 6px solid var(--hair-2); border-radius: var(--radius); }
.area-card .sheet-head { border-bottom: 1px solid var(--line); }
.area-card svg { width: 100%; height: auto; }
.area-card .body { padding: 1rem 1.25rem 1.25rem; }
.area-card ul { list-style: none; display: grid; gap: .4rem; margin-bottom: .9rem; }
.area-card li svg { width: 20px; height: 20px; flex: none; }
.area-card li { display: flex; gap: .6rem; align-items: center; font-weight: 700; }
.area-card p { color: var(--muted); font-size: 1rem; }
@media (max-width: 899px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } .area-card { position: static; } }

/* Sample review document */
.review-doc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .45); overflow: hidden; }
.review-doc header { display: grid; gap: .5rem; padding: 1.1rem 1.25rem; background: var(--bg-2); color: var(--on-dark); }
.review-doc header h3 { color: var(--ink-hi); font-size: 1.1875rem; }
.review-doc header p { color: var(--on-dark-muted); font-size: .9375rem; }
.review-doc .flag { justify-self: start; background: var(--tape); color: var(--ink-hi); font-weight: 700; font-size: .875rem; padding: .15rem .55rem; border-radius: 4px; }
.review-doc ol { list-style: none; }
.review-doc li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.review-doc li strong { display: block; font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.3; }
.review-doc dl { margin: .4rem 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .75rem; font-size: .9375rem; }
.review-doc dt { font-weight: 700; color: var(--ink); }
.review-doc dd { margin: 0; color: var(--muted); }
.review-doc footer { padding: .9rem 1.25rem; background: var(--bg-1); font-size: .9375rem; color: var(--muted); }

/* Quote form (preview) */
.quote { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.quote .section-head { margin-bottom: 1.5rem; }
.form-card { background: var(--bg); border: 1px solid var(--line); border-top: 6px solid var(--hair-2); border-radius: var(--radius); padding: clamp(1.15rem, 1rem + 1.5vw, 2.25rem); }
.preview-note { display: flex; gap: .85rem; padding: 1rem 1.15rem; margin-bottom: 1.5rem; border-radius: var(--radius); background: var(--tape-soft); border: 1px solid rgba(236, 236, 236,.35); color: var(--ink); }
.preview-note svg { flex: none; width: 1.4rem; height: 1.4rem; margin-top: .15rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { display: grid; gap: .35rem; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 1rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; padding: .7rem .85rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 2px solid rgba(255,255,255,.22); border-radius: var(--radius); }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink-hi); }
.field [aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-size: .9375rem; font-weight: 700; }
.err:empty { display: none; }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .6rem; align-items: start; }
.consent input { width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; accent-color: var(--teal); }
.consent label { font-weight: 400; }
.hint { display: block; margin-top: .2rem; font-size: .9375rem; color: var(--muted); }
.form-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form-status { margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--bg-1); border-left: 4px solid var(--teal); }
.form-status:empty { display: none; }
@media (max-width: 1023px) { .quote { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } .form-actions .btn { width: 100%; } }

.next-steps { list-style: none; margin-top: 1.25rem; display: grid; gap: .9rem; }
.next-steps li { padding-left: 1.1rem; border-left: 3px solid var(--tape); }
.next-steps strong { display: block; }
.next-steps span { color: var(--muted); }

/* Supporting pages: page head with a drawing title block */
.page-head { border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: end; padding-block: clamp(2.25rem, 2rem + 2.5vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-top: 1.1rem; }
.title-block { border: 2px solid var(--hair-2); border-radius: 2px; background: var(--bg); font-size: .9375rem; }
.title-block dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); }
.title-block dt, .title-block dd { margin: 0; padding: .5rem .8rem; border-bottom: 1px solid var(--line); }
.title-block dt { font-weight: 700; border-right: 1px solid var(--line); color: var(--muted); }
.title-block dd { font-weight: 700; }
.title-block .tb-name { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; background: var(--bg-2); color: var(--ink-hi); font-family: var(--font-display); font-weight: 760; letter-spacing: .08em; font-size: .9375rem; }
.title-block .tb-name svg { width: 26px; height: 26px; }
.title-block .tb-foot { padding: .5rem .8rem; color: var(--muted); }
@media (max-width: 899px) { .page-head .wrap { grid-template-columns: minmax(0, 1fr); } .title-block { max-width: 28rem; } }

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin: 2.25rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.5rem 0 .5rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: .4rem; }
.legal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.toc { position: sticky; top: 6rem; border-left: 3px solid var(--tape); padding-left: 1.1rem; }
.toc h2 { font-size: 1.0625rem; margin-bottom: .5rem; }
.toc ul { list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; font-size: 1rem; }
.toc a:hover { color: var(--teal); text-decoration: underline; }
@media (max-width: 899px) { .legal { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.draft-banner { display: flex; gap: .85rem; align-items: flex-start; margin-top: 1.25rem; padding: 1rem 1.15rem; max-width: 64ch; background: var(--tape-soft); border: 1px solid rgba(236, 236, 236,.35); border-left: 5px solid var(--tape); border-radius: var(--radius); color: var(--ink); }
.draft-banner svg { flex: none; width: 1.4rem; height: 1.4rem; margin-top: .15rem; }

/* Services page */
.svc { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); padding-block: clamp(2.25rem, 2rem + 2vw, 3.75rem); border-top: 1px solid var(--line); }
.svc:first-child { border-top: 2px solid var(--hair-2); }
.svc h2 { font-size: var(--step-3); }
.svc .for { margin-top: .9rem; color: var(--muted); }
.svc .sketch { margin: 1.25rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc .sketch svg { width: 100%; height: auto; }
.svc .sketch figcaption { padding: .5rem .8rem; font-size: .875rem; color: var(--muted); background: var(--bg); border-top: 1px solid var(--line); }
.svc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; align-content: start; }
.svc-cols h3 { font-size: 1.0625rem; margin-bottom: .6rem; }
.svc-cols ul { list-style: none; display: grid; gap: .5rem; }
.svc-cols li { position: relative; padding-left: 1.4rem; }
.svc-cols li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 2px; background: var(--teal); }
.svc-cols .out li::before { background: rgba(255,255,255,.22); }
.svc-cols .out li { color: var(--muted); }
.svc-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; padding-top: .5rem; }
.svc-foot p { color: var(--muted); margin: 0; }
.example { margin: 1.25rem 0 0; }
.example img { border-radius: var(--radius); border: 1px solid var(--line); }
.example figcaption { margin-top: .6rem; font-size: .9375rem; color: var(--muted); }
@media (max-width: 899px) { .svc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .svc-cols { grid-template-columns: minmax(0, 1fr); } }

/* About */
.beliefs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem clamp(1.5rem, 3vw, 3rem); counter-reset: b; }
.beliefs li { border-top: 2px solid var(--hair-2); padding-top: 1.1rem; position: relative; }
.beliefs h3 { margin-bottom: .45rem; }
.beliefs p { color: var(--muted); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.split > div { padding: 1.4rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--bg-3); }
.split h3 { margin-bottom: .75rem; }
.split ul { list-style: none; display: grid; gap: .6rem; }
.split li { padding-left: 1.3rem; position: relative; color: var(--on-dark); }
.split li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--tape); }
.split .person li::before { background: var(--teal-bright); }
.status-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 1023px) { .beliefs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .beliefs, .split, .status-grid { grid-template-columns: minmax(0, 1fr); } }

/* CTA strip */
.cta-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-strip h2 { max-width: 22ch; }
.cta-strip .actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---- Round 3: pre-launch notice, single-device hero, finished example screen, mobile collapse, founder ---- */
.prelaunch { background: var(--tape-soft); border-bottom: 1px solid rgba(236, 236, 236,.35); color: var(--ink); font-size: .9375rem; line-height: 1.45; padding-block: .55rem; }

.hero-comp { margin: 0; }
.hero-device { position: relative; display: grid; grid-template-columns: 300px 230px; column-gap: 2rem; }
.hero-device .phone { position: relative; }
.hero-device .shot .pin-on { width: 1.75rem; height: 1.75rem; }
.callouts { position: relative; list-style: none; }
.callouts li { position: absolute; left: 0; right: 0; top: var(--y); transform: translateY(-50%); display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: .6rem; align-items: start; font-size: .9375rem; line-height: 1.4; color: var(--muted); }
.callouts li::before { content: ""; position: absolute; right: 100%; top: .85rem; width: 1.6rem; border-top: 2px dashed var(--teal); margin-right: .3rem; }
.callouts strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.25; font-variation-settings: "opsz" 24; }
.hero-comp figcaption { margin-top: 2.6rem; font-size: var(--step--1); color: var(--muted); max-width: 300px; }
@media (max-width: 1199px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-comp { justify-self: start; }
}
@media (max-width: 699px) {
  .hero-device { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }
  .hero-device .phone { width: min(80vw, 320px); justify-self: center; }
  .callouts { display: grid; gap: .75rem; }
  .callouts li { position: static; transform: none; }
  .callouts li::before { display: none; }
  .hero-comp { justify-self: stretch; }
  .hero-comp figcaption { margin-top: 1rem; max-width: none; }
  .dim-line { display: none; }
}

.punch-grid { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.after-shot { margin: 0; }
.after-shot .phone { padding: 7px; border-radius: 28px; }
.after-shot .phone svg { width: 100%; border-radius: 21px; }
.after-shot figcaption { margin-top: .9rem; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 1023px) { .after-shot { max-width: 340px; } }

.home-review .review-intro { font-weight: 700; margin-bottom: .9rem; }
.draft-line { margin-top: 1.1rem; padding-left: .9rem; border-left: 4px solid var(--tape); max-width: 60ch; }

.founder-grid { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.founder-grid img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.founder-name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); margin-top: .6rem; }
@media (max-width: 599px) { .founder-grid { grid-template-columns: minmax(0, 1fr); } .founder-grid img { max-width: 220px; } }

/* Phones: keep the essentials, collapse the secondary detail */
@media (max-width: 767px) {
  .home-review { display: none; }
}
@media (max-width: 560px) {
  .punch-list p, .steps p, .scope-row .desc, .area-card .body p, .facts > div:nth-child(3) { display: none; }
  .punch-list li { padding-block: .8rem; }
  .punch-list .fix { margin-top: .15rem; }
  .steps li { padding-bottom: 1.1rem; }
  .steps .result { margin-top: .2rem; padding-top: 0; border-top: 0; }
  .section-head p { font-size: 1.0625rem; }
  .ai-strip { margin-top: 1.5rem; }
  .area-card > svg { display: none; }
}
.hero h1 { font-size: clamp(2.2rem, 1.5rem + 2.3vw, 3.35rem); max-width: 20ch; }
@media (max-width: 1199px) { .hero h1 { max-width: 22ch; } }
@media (max-width: 1023px) { .punch-grid { grid-template-columns: minmax(0, 1fr); } }

/* Dark studio values for the classic tokens */
:root {
  --bg: #0a0a0c; --bg-1: #0f0f0f; --bg-2: #141414; --bg-3: #1c1c1c;
  --ink: #f1f1f1; --ink-hi: #f1f1f1; --muted: #9b9b9b;
  --paper: #0f0f0f; --grid: rgba(255,255,255,.035); --line: rgba(255,255,255,.08); --line-dark: rgba(255,255,255,.14);
  --hair: rgba(255,255,255,.08); --hair-2: rgba(255,255,255,.14);
  --teal: #e9e9e9; --teal-dark: #ffffff; --teal-bright: #e9e9e9; --tape: #e9e9e9; --tape-soft: rgba(236, 236, 236,.10);
  --on-dark: #c8c8c8; --on-dark-muted: #9b9b9b; --error: #a2a2a2; --focus: #e9e9e9;
}

/* Classic button names mapped to the studio buttons (base .btn comes from shell.css) */
.btn-primary { background: var(--accent, #e9e9e9); color: #0a0a0c; }
.btn-primary:hover { box-shadow: 0 10px 40px -8px rgba(236, 236, 236, .55); color: #0a0a0c; }
.btn-ghost { border: 1px solid var(--hair-2); color: var(--ink); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .05); color: var(--ink); }
a { color: var(--teal); }

/* Dark text on silver fills (official chrome palette, D-071) */
.pin, .sample-flag, .review-doc .flag, .flag { color: #0a0a0c; }
