/* Converting Engine site styles. Shared by index.html, start/ (ads) and hello/ (cold email).
   Colours: the brand kit in ../brand/assets (Adil, 2026-10-20): navy, gold, brass, off-white. Gold never carries words on light paper. */
:root {
  --ground: #1a2332;
  --ground-2: #232f43;
  --paper: #f4f1ea;
  --paper-2: #e6e1d6;
  --ink: #1a2332;
  --ink-soft: #4a5466;
  --on-ground: #f4f1ea;
  --on-ground-soft: #c9ccd3;
  --accent: #d4a017;
  --accent-hover: #e2b232;
  --accent-ink: #1a2332;
  --brass: #b8860b;
  --tape: #dcbd5c;

  /* Type: Archivo, narrow and heavy for headlines, normal width for text. Five sizes. */
  --step-small: 0.9375rem;
  --step-body: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);
  --step-lead: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --step-head: clamp(2.5rem, 1.55rem + 3.9vw, 4.5rem);
  --step-display: clamp(2.6rem, 1.2rem + 5vw, 5.25rem);

  --margin: clamp(16px, 2.4vw, 36px);
  --section: clamp(64px, 7.4vw, 112px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --zig-bottom: polygon(0 0, 100% 0, 100% 100%, 97.917% calc(100% - 12px), 95.833% 100%, 93.75% calc(100% - 12px), 91.667% 100%, 89.583% calc(100% - 12px), 87.5% 100%, 85.417% calc(100% - 12px), 83.333% 100%, 81.25% calc(100% - 12px), 79.167% 100%, 77.083% calc(100% - 12px), 75% 100%, 72.917% calc(100% - 12px), 70.833% 100%, 68.75% calc(100% - 12px), 66.667% 100%, 64.583% calc(100% - 12px), 62.5% 100%, 60.417% calc(100% - 12px), 58.333% 100%, 56.25% calc(100% - 12px), 54.167% 100%, 52.083% calc(100% - 12px), 50% 100%, 47.917% calc(100% - 12px), 45.833% 100%, 43.75% calc(100% - 12px), 41.667% 100%, 39.583% calc(100% - 12px), 37.5% 100%, 35.417% calc(100% - 12px), 33.333% 100%, 31.25% calc(100% - 12px), 29.167% 100%, 27.083% calc(100% - 12px), 25% 100%, 22.917% calc(100% - 12px), 20.833% 100%, 18.75% calc(100% - 12px), 16.667% 100%, 14.583% calc(100% - 12px), 12.5% 100%, 10.417% calc(100% - 12px), 8.333% 100%, 6.25% calc(100% - 12px), 4.167% 100%, 2.083% calc(100% - 12px), 0 100%);
  --zig-top: polygon(0 12px, 2.083% 0, 4.167% 12px, 6.25% 0, 8.333% 12px, 10.417% 0, 12.5% 12px, 14.583% 0, 16.667% 12px, 18.75% 0, 20.833% 12px, 22.917% 0, 25% 12px, 27.083% 0, 29.167% 12px, 31.25% 0, 33.333% 12px, 35.417% 0, 37.5% 12px, 39.583% 0, 41.667% 12px, 43.75% 0, 45.833% 12px, 47.917% 0, 50% 12px, 52.083% 0, 54.167% 12px, 56.25% 0, 58.333% 12px, 60.417% 0, 62.5% 12px, 64.583% 0, 66.667% 12px, 68.75% 0, 70.833% 12px, 72.917% 0, 75% 12px, 77.083% 0, 79.167% 12px, 81.25% 0, 83.333% 12px, 85.417% 0, 87.5% 12px, 89.583% 0, 91.667% 12px, 93.75% 0, 95.833% 12px, 97.917% 0, 100% 12px, 100% 100%, 0 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--on-ground);
  font: 400 var(--step-body)/1.55 "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-stretch: 100%;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.card :focus-visible, .coupon :focus-visible, .refer :focus-visible, .sheet :focus-visible, .price :focus-visible, .fix :focus-visible, .note :focus-visible, .ticket :focus-visible, .rcard :focus-visible, .back :focus-visible, .about :focus-visible { outline-color: var(--ink); }
strong { font-weight: 700; }

/* Headlines: the estimate pad's blunt narrow capitals */
.display, .head {
  font-weight: 800; font-stretch: 62%; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 0.88; text-wrap: balance;
}
.display { font-size: var(--step-display); }
.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.3; }
.small { font-size: var(--step-small); }
.num { font-variant-numeric: tabular-nums; }
p { text-wrap: pretty; }

/* One button shape everywhere: square, flat, gold, navy text */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 16px 28px;
  background: var(--accent); color: var(--accent-ink);
  font: 700 var(--step-body)/1.1 "Archivo", ui-sans-serif, system-ui, sans-serif;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color .2s ease, transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 22px; height: 22px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.textlink { font-weight: 600; }
.textlink:hover { text-decoration-thickness: 4px; }
.faq .textlink:hover, .reply .textlink:hover, .qa summary:hover { color: var(--accent-hover); }

/* Painter's tape: the one ornament. Two strips hold each paper sheet to the wall. */
.tape { position: absolute; top: -14px; width: 116px; height: 34px; background: var(--tape); opacity: .9;
  clip-path: polygon(3% 0, 97% 0, 100% 18%, 96% 34%, 99% 52%, 95% 70%, 100% 86%, 97% 100%, 3% 100%, 0 84%, 4% 66%, 1% 48%, 5% 30%, 0 14%);
  transform-origin: center; z-index: 2; }
.tape.l { left: 28px; transform: rotate(-4deg); }
.tape.r { right: 28px; transform: rotate(3deg); }

/* Dot leaders: real line items, so they live inside tables */
table.items { width: 100%; border-collapse: collapse; }
table.items th, table.items td { padding: 0; text-align: left; vertical-align: bottom; font-weight: 400; }
.items .row-name { font-weight: 700; width: 100%; }
.items .line { display: flex; align-items: flex-end; gap: 10px; }
.items .nm { flex: 0 1 auto; }
.items .dots { flex: 1 1 28px; min-width: 28px; }
.items .dots span { display: block; height: 0; border-bottom: 4px dotted currentColor; opacity: .55; margin-bottom: 0.4em; transform-origin: left center; }
.items .val { white-space: nowrap; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: 10px; }
.items .desc { padding-top: 4px; font-size: var(--step-body); color: var(--ink-soft); max-width: 46ch; }
.src { white-space: nowrap; }

/* 1. Hero: the estimate card beside the wall being painted */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 26px 12px 12px; min-height: 100svh; }
.card { position: relative; background: var(--paper); color: var(--ink); padding: clamp(28px, 3.4vw, 56px); display: flex; flex-direction: column; }
.letterhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
/* The real logo (brand/assets). Only the cog moves: one tooth on hover, once on load. */
.logo { display: block; width: clamp(188px, 17vw, 250px); line-height: 0; }
.logo svg { width: 100%; height: auto; display: block; overflow: visible; }
.logo #gear, .logo #arrow { transform-box: fill-box; transform-origin: 50% 50%; }
.logo #gear { transition: transform .55s cubic-bezier(.34,1.56,.64,1); }
.logo #arrow { transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.logo:hover #gear, .logo:focus-visible #gear { transform: rotate(45deg); }
.logo:hover #arrow, .logo:focus-visible #arrow { transform: translateX(5px); }
.js .logo #gear { animation: crank 1.2s cubic-bezier(.22,.9,.3,1.12) .2s backwards; }
@keyframes crank { from { transform: rotate(-135deg); } to { transform: rotate(0deg); } }
.addr { font-size: var(--step-small); line-height: 1.4; text-align: right; color: var(--ink-soft); }
.addr a { text-decoration: none; }
.addr a:hover { text-decoration: underline; }
.for { margin-top: clamp(24px, 4.5svh, 52px); display: flex; align-items: baseline; gap: 12px; font-size: var(--step-body); }
.for b { font-weight: 700; padding-bottom: 2px; border-bottom: 3px solid var(--ink); }
.hero h1 { margin-top: 14px; }
.hero .sub { margin-top: 22px; max-width: 34ch; }
.hero .terms { margin-top: 26px; max-width: 30rem; }
.hero .terms th, .hero .terms td { padding-block: 5px; }
.hero-cta { margin-top: 28px; display: grid; gap: 12px; justify-items: start; }
.hero-cta .small { color: var(--ink-soft); max-width: 34ch; font-size: var(--step-body); }
.card-foot { margin-top: auto; padding-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--step-body); }
.card-foot a { font-weight: 600; text-decoration: none; padding-block: 8px; }
.card-foot a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
/* The hero graphic: the fixed quote page on a phone, with the work it does popping in around it (data-ui) */
.engine { position: relative; overflow: hidden; background: var(--ground-2); color: var(--on-ground); display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 20px; padding: clamp(24px, 3vw, 44px); }
.engine-stage { position: relative; display: grid; place-items: center; min-height: 480px; }
.hero-phone { width: min(250px, 62%); aspect-ratio: 9 / 16.2; }
.notif { position: absolute; z-index: 2; display: flex; gap: 10px; align-items: flex-start; width: min(268px, 56%); background: #ffffff; color: #1a2332; border-radius: 14px; padding: 12px 14px; box-shadow: 0 16px 36px rgba(0, 0, 0, .35); font-size: 14px; line-height: 1.3; } /* taste-skill-ignore: notifications float over the phone */
.notif b { display: block; font-size: 15px; }
.notif small { display: block; margin-top: 2px; font-size: 13px; color: #4a5466; }
.ni { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #d4a017; color: #1a2332; display: grid; place-items: center; }
.ni svg { width: 17px; height: 17px; }
.n1 { top: 6%; left: 0; }
.n2 { top: 42%; right: 0; }
.n3 { bottom: 4%; left: 3%; }
.js .notif { animation: pop .7s var(--ease) both; }
.js .n1 { animation-delay: .5s; } .js .n2 { animation-delay: 1.1s; } .js .n3 { animation-delay: 1.7s; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.gains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gains li { background: var(--ground); padding: 14px 16px; }
.gains b { display: block; color: var(--accent); font-size: var(--step-body); }
.gains span { display: block; margin-top: 4px; font-size: var(--step-small); color: var(--on-ground-soft); line-height: 1.4; }
.engine-note { font-size: var(--step-small); color: var(--on-ground-soft); }
.js .hero .tape { animation: press .7s var(--ease) .25s both; }
@keyframes press { from { opacity: 0; transform: translateY(-10px) rotate(-8deg) scale(1.08); } }

/* 2. Where jobs slip away: big plain statements on the navy wall */
.slips { padding: var(--section) var(--margin); }
.slips h2 { color: var(--on-ground); }
.slip-list { margin-top: clamp(40px, 5vw, 72px); display: grid; }
.slip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: baseline; padding-block: clamp(18px, 2vw, 28px); }
.slip + .slip { padding-top: clamp(18px, 2vw, 28px); }
.slip h3 { grid-column: 1 / 8; font-size: var(--step-lead); font-weight: 700; line-height: 1.2; }
.slip p { grid-column: 8 / 13; color: var(--on-ground-soft); max-width: 38ch; }
.slip h3::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.5em; background: var(--accent); vertical-align: 0.08em; transition: transform .5s var(--ease), opacity .5s ease; }
.js .slip h3::before { opacity: 0; transform: scale(.6); }
.js .slip.is-in h3::before { opacity: 1; transform: scale(1); }

/* 3. See the fix on a phone: the live thing */
.fix { background: var(--paper-2); color: var(--ink); padding: var(--section) var(--margin); }
.fix-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: 24px; align-items: center; }
.fix-copy { grid-column: 1 / 7; grid-row: 1; align-self: end; }
.fix-list { grid-column: 1 / 7; grid-row: 2; align-self: start; }
.fix-copy > p { margin-top: 20px; max-width: 40ch; }
.switch { margin-top: 28px; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--paper); padding: 6px; }
.switch button { min-height: 56px; min-width: 132px; padding: 0 22px; border: 0; background: transparent; color: var(--ink); font: 700 var(--step-body)/1 "Archivo", sans-serif; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.switch button:hover:not([aria-pressed="true"]) { background: var(--paper-2); }
.changes { margin-top: 28px; display: grid; gap: 10px; }
.changes li { padding-left: 30px; position: relative; }
.changes li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 10px; border-left: 4px solid var(--brass); border-bottom: 4px solid var(--brass); transform: rotate(-45deg); }
.fix-note { margin-top: 24px; color: var(--ink-soft); max-width: 44ch; }
.fix-phone { grid-column: 8 / 13; grid-row: 1 / 3; display: grid; justify-items: center; }

/* The phone mock-up is a real interface fragment (data-ui), so it keeps its own frame and fields */
.phone { width: min(340px, 100%); aspect-ratio: 9 / 18.5; background: #101418; border-radius: 40px; padding: 11px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .45); } /* taste-skill-ignore: the phone is a data-ui fragment that floats */
.screen { position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: #ffffff; color: #1d232b; font-size: 14px; line-height: 1.4; }
.state { position: absolute; inset: 0; overflow: hidden; transition: opacity .35s ease, transform .45s var(--ease); }
.js .phone[data-show="after"] .before, .js .phone[data-show="before"] .after { opacity: 0; transform: translateY(8px); pointer-events: none; }
.no-mock .before { display: none; }
/* before */
.b-bar { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: #ffffff; }
.b-logo { font: 600 13px/1 Georgia, serif; letter-spacing: .06em; color: #6c7480; }
.b-burger { width: 22px; height: 16px; border-top: 3px solid #6c7480; border-bottom: 3px solid #6c7480; position: relative; }
.b-burger::after { content: ""; position: absolute; left: 0; right: 0; top: 3.5px; border-top: 3px solid #6c7480; }
.b-hero { position: relative; height: 46%; }
.b-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: saturate(.6); }
.b-hero p { position: absolute; left: 14px; right: 14px; bottom: 30px; color: #f1f1f1; font: 300 22px/1.15 Georgia, serif; letter-spacing: .02em; }
.b-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.b-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); }
.b-body { padding: 18px 16px; color: #6b7380; font-size: 13px; }
.b-body .b-h { margin: 0 0 8px; font: 400 17px/1.2 Georgia, serif; color: #6c7480; }
.b-body p { margin: 0 0 10px; }
.b-body a { color: #3f6fa8; font-size: 13px; }
.b-chat { position: absolute; right: 12px; bottom: 14px; display: flex; align-items: center; gap: 8px; background: #1f63c4; color: #ffffff; padding: 10px 14px; border-radius: 22px; font-size: 13px; box-shadow: 0 6px 16px rgba(0,0,0,.25); } /* taste-skill-ignore: a floating chat bubble, part of the "before" screen */
/* after */
.a-bar { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; background: #1a2332; color: #ffffff; }
.a-bar b { font-size: 15px; }
.a-call { display: inline-flex; align-items: center; gap: 6px; background: #d4a017; color: #1a2332; font-weight: 700; font-size: 14px; padding: 8px 12px; }
.a-call svg { width: 14px; height: 14px; }
.a-main { padding: 16px 16px 0; }
.a-stars { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #1d232b; }
.a-stars svg { width: 82px; height: 15px; }
.a-main .a-h { margin: 10px 0 4px; font: 800 26px/0.95 "Archivo", sans-serif; font-stretch: 70%; text-transform: uppercase; color: #1a2332; }
.a-main p:not(.a-h) { margin: 0; font-size: 14px; color: #3d4d63; }
.a-btn { margin-top: 12px; display: block; background: #d4a017; color: #1a2332; text-align: center; font-weight: 700; font-size: 15px; padding: 13px; }
.a-form { margin-top: 12px; display: grid; gap: 7px; }
.a-form span { display: block; border: 2px solid #c9d1db; padding: 9px 10px; color: #6b7686; font-size: 13px; }
.a-pics { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.a-pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.a-pics small { grid-column: 1 / -1; font-size: 13px; color: #3d4d63; }

/* 4. What you get: the line items, on a sheet with a cut bottom edge */
.get { padding: var(--section) var(--margin); }
.get-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.get-head h2 { grid-column: 1 / 7; }
.get-intro { grid-column: 7 / 13; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.get-intro p { color: var(--on-ground-soft); max-width: 30ch; }
.sheet-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 5vw, 80px); }
.sheet { position: relative; background: var(--paper); color: var(--ink); padding: clamp(28px, 3.6vw, 56px) clamp(22px, 3.2vw, 52px) clamp(44px, 5vw, 72px); clip-path: var(--zig-bottom); }
.sheet h3 { font-size: var(--step-lead); font-weight: 800; line-height: 1.15; }
.sheet h3 + table { margin-top: 18px; }
.sheet table + h3 { margin-top: 44px; }
.sheet-cols > div > h3:first-child { margin-top: 0; }
.sheet-end { margin-top: 44px; width: calc(50% - clamp(20px, 2.5vw, 40px)); }
.sheet .items tr.name-row th, .sheet .items tr.name-row td { padding-top: 22px; }
.sheet .items tr:first-child th, .sheet .items tr:first-child td { padding-top: 0; }

/* 5. The price: priced like a menu, heading left, two columns right */
.price { background: var(--paper); color: var(--ink); padding: var(--section) var(--margin); }
.price-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: start; }
.price-head { grid-column: 1 / 4; }
.price-intro { margin-top: 20px; max-width: 26ch; color: var(--ink-soft); }
.price-head figure { margin-top: 32px; }
.price-head figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.price-cols { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 48px; }
.group h3 { font-size: var(--step-lead); font-weight: 700; line-height: 1.15; margin-bottom: 18px; }
.group + .group { margin-top: 44px; }
.pline { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 700; }
.pline .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pline.big { font-size: var(--step-lead); }
.pdesc { margin-top: 4px; color: var(--ink-soft); max-width: 36ch; }
.pitem + .pitem { margin-top: 22px; }
.price-cta { grid-column: 5 / 13; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.price-cta p { color: var(--ink-soft); max-width: 36ch; }

/* 6. How the 2 weeks go: an itinerary slip */
.how { padding: var(--section) var(--margin); }
.how-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.how-copy { grid-column: 1 / 6; }
.how-copy p { margin-top: 22px; color: var(--on-ground-soft); max-width: 32ch; }
.how-copy figure { margin-top: 44px; width: min(100%, 420px); }
.how-copy figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.slipsheet { grid-column: 7 / 13; position: relative; background: var(--paper); color: var(--ink); padding: 44px clamp(22px, 3vw, 44px) 56px; clip-path: var(--zig-bottom); }
.slipsheet h3 { font-size: var(--step-body); font-weight: 800; }
.slipsheet h3:not(:first-child) { margin-top: 28px; }
.slipsheet table { margin-top: 8px; }
.slipsheet .items th, .slipsheet .items td { padding-top: 8px; }
.slipsheet .items .row-name { font-weight: 400; }
.total { margin: 32px calc(-1 * clamp(22px, 3vw, 44px)) 0; padding: 14px clamp(22px, 3vw, 44px); background: var(--ink); color: var(--paper); display: flex; justify-content: space-between; gap: 16px; font-weight: 700; }

/* 6b. For franchise owners: a second ticket on the gold field */
.franchise { background: var(--accent); color: var(--ink); padding: var(--section) var(--margin); }
.franchise :focus-visible { outline-color: var(--ink); }
.fr-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.fr-copy { grid-column: 1 / 6; }
.fr-copy .lead { margin-top: 22px; max-width: 24ch; }
.fr-copy p:not(.lead) { margin-top: 16px; max-width: 36ch; }
.fr-copy figure { margin-top: 36px; width: min(100%, 440px); overflow: hidden; }
.fr-copy figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.ticket { grid-column: 7 / 13; position: relative; background: var(--paper); color: var(--ink); padding: 52px clamp(22px, 3vw, 44px) 40px; }
.ticket h3 { font-size: var(--step-lead); font-weight: 800; line-height: 1.15; }
.ticket table { margin-top: 18px; }
.ticket .items tr.name-row th, .ticket .items tr.name-row td { padding-top: 22px; }
.fr-price { margin-top: 36px; }
.ticket .btn { margin-top: 28px; width: 100%; }
.fr-refer { margin-top: 16px; color: var(--ink-soft); }

/* 7. A note from Adil: a letter with a tear-off strip */
.note { background: var(--paper-2); color: var(--ink); padding: var(--section) var(--margin); }
.note-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.letter { grid-column: 2 / 8; position: relative; background: var(--paper); padding: clamp(32px, 4.4vw, 64px); }
.letter h2 { margin-bottom: 28px; }
.letter p + p { margin-top: 1em; }
.sign { margin-top: 32px; }
.sign { display: flex; align-items: center; gap: 16px; }
.face { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.sign .who b { display: block; font-size: var(--step-lead); font-weight: 700; }
.sign .who span { color: var(--ink-soft); }
.stub { margin-top: 36px; padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; border-top: 5px dotted var(--paper-2); }
.stub a.mail { font-weight: 700; }
.note-side { grid-column: 9 / 13; }
.note-side figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 22% 50%; }
.note-side figcaption { margin-top: 12px; color: var(--ink-soft); font-size: var(--step-small); }
.fit { margin-top: 28px; }
.fit h3 { font-size: var(--step-lead); font-weight: 700; line-height: 1.15; }
.fit ul { margin-top: 12px; display: grid; gap: 8px; }
.fit li { padding-left: 22px; position: relative; }
.fit li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; background: var(--brass); }

/* 8. Questions beside a tall photograph */
.faq { padding: var(--section) var(--margin); }
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.faq-copy { grid-column: 1 / 7; }
.facts { margin-top: 24px; display: grid; gap: 6px; color: var(--on-ground); }
.facts b { font-weight: 700; }
.qa { margin-top: 36px; display: grid; gap: 4px; }
.qa details { background: var(--ground-2); }
.qa summary { list-style: none; cursor: pointer; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 22px; font-weight: 700; font-size: var(--step-body); line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }

.chev { width: 14px; height: 14px; flex: none; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.qa details[open] .chev { transform: rotate(225deg) translate(-3px, -3px); }
.qa details p { padding: 0 22px 22px; color: var(--on-ground-soft); max-width: 56ch; }
.faq-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.faq-pics { grid-column: 8 / 13; position: relative; }
.faq-pics .tall img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); }
.faq-pics .square { position: absolute; left: -40px; bottom: -40px; width: 38%; padding: 8px; background: var(--ground); }
.faq-pics .square img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(1) contrast(1.05); }

/* 9. The reply card */
.reply { background: var(--ground-2); padding: var(--section) var(--margin) 0; overflow: hidden; }
.reply-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.reply-side { grid-column: 1 / 5; padding-bottom: 96px; }
.reply-side p + p { margin-top: 16px; }
.reply-side .lead { color: var(--on-ground); }
.reply-side p:not(.lead) { color: var(--on-ground-soft); }
.rcard { grid-column: 6 / 13; position: relative; background: var(--paper); color: var(--ink); padding: clamp(36px, 4.6vw, 64px) clamp(28px, 4vw, 60px) clamp(80px, 9vw, 120px); transform: rotate(-1deg); transform-origin: bottom center; margin-bottom: -40px; text-align: center; }
.rcard .for { justify-content: center; margin-top: 0; }
.rcard h2 { margin-top: 16px; }
.rcard p.lead { margin: 18px auto 0; max-width: 28ch; }
.rcard .btn { margin-top: 32px; width: 100%; }
.rcard .small { margin-top: 16px; color: var(--ink-soft); font-size: var(--step-body); }

/* 10. Footer: the back of the card */
footer { background: var(--ground-2); padding: 0 var(--margin) var(--margin); }
.back { position: relative; background: var(--paper); color: var(--ink); padding: clamp(56px, 6vw, 88px) clamp(24px, 4vw, 64px) 32px; clip-path: var(--zig-top); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.back-msg { grid-column: 1 / 7; }
.back-msg p { margin-top: 16px; max-width: 40ch; }
.back-addr { grid-column: 8 / 13; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.back-addr ul { display: grid; gap: 10px; font-size: var(--step-body); }
.back-addr a { font-weight: 600; }
.stamp { width: 96px; padding: 6px; background: var(--paper-2); transform: rotate(4deg); }
.stamp img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.imprint { grid-column: 1 / -1; display: grid; gap: 10px; color: var(--ink-soft); font-size: var(--step-small); }
.imprint p { max-width: 75ch; }
.imprint a { text-decoration: underline; }

/* Pictures settle in once; text never waits on a script */
.js [data-pic] { transform: scale(1.05); transition: transform 1.4s var(--ease); }
.js [data-pic].is-in { transform: none; }
figure:has(> [data-pic]) { overflow: hidden; }
.js [data-reveal] .dots span { transform: scaleX(0); transition: transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in .dots span { transform: scaleX(1); }

/* Tablet */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .engine { order: 2; }
  .card { min-height: 0; }
  .slip h3 { grid-column: 1 / 13; }
  .slip p { grid-column: 1 / 13; margin-top: 8px; padding-left: 0.95em; }
  .fix-copy, .fix-list { grid-column: 1 / 8; }
  .fix-phone { grid-column: 8 / 13; }
  .get-head h2 { grid-column: 1 / 13; }
  .get-intro { grid-column: 1 / 13; margin-top: 20px; }
  .sheet-cols { grid-template-columns: 1fr; }
  .sheet-cols > div + div > h3:first-child { margin-top: 44px; }
  .sheet-end { width: auto; }
  .price-head { grid-column: 1 / 13; display: grid; grid-template-columns: 1fr 200px; column-gap: 32px; align-items: end; }
  .price-head h2, .price-head .price-intro { grid-column: 1; }
  .price-head figure { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
  .price-cols, .price-cta { grid-column: 1 / 13; }
  .how-copy { grid-column: 1 / 13; display: grid; grid-template-columns: 1fr 280px; column-gap: 32px; margin-bottom: 48px; }
  .how-copy h2, .how-copy p { grid-column: 1; }
  .how-copy figure { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
  .slipsheet { grid-column: 1 / 13; }
  .fr-copy { grid-column: 1 / 13; display: grid; grid-template-columns: 1fr 260px; column-gap: 32px; margin-bottom: 48px; }
  .fr-copy h2, .fr-copy p { grid-column: 1; }
  .fr-copy figure { grid-column: 2; grid-row: 1 / 4; margin-top: 0; width: 100%; }
  .ticket { grid-column: 1 / 13; }
  .letter { grid-column: 1 / 9; }
  .note-side { grid-column: 9 / 13; }
  .faq-copy { grid-column: 1 / 8; }
  .faq-pics { grid-column: 8 / 13; }
  .faq-pics .square { left: -24px; }
  .reply-side { grid-column: 1 / 13; padding-bottom: 48px; }
  .rcard { grid-column: 1 / 13; }
  .back-msg, .back-addr { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 700px) {
  .hero { padding: 8px; gap: 8px; }
  .card { padding: 30px 20px 24px; }
  .letterhead { flex-direction: column; gap: 10px; }
  .addr { text-align: left; }
  .logo { width: 200px; }
  .for { margin-top: 26px; }
  .hero h1 { font-size: 2.6rem; max-width: none; }
  .hero .sub { margin-top: 16px; }
  .hero .terms { margin-top: 20px; }
  .hero-cta { margin-top: 22px; }
  .hero-cta .btn { width: 100%; }
  .card-foot { padding-top: 24px; gap: 4px 20px; }
  .tape { width: 84px; height: 28px; top: -10px; }
  .tape.l { left: 18px; } .tape.r { right: 18px; }
  .engine { padding: 22px 16px; }
  .engine-stage { min-height: 440px; }
  .hero-phone { width: min(220px, 60%); }
  .notif { width: 64%; padding: 10px 12px; }
  .n1 { top: auto; bottom: 36%; left: 0; }
  .n2 { top: auto; bottom: 19%; right: 0; }
  .n3 { bottom: 2%; left: 2%; }
  .gains { grid-template-columns: 1fr; }
  .slip { padding-block: 16px; }
  .fix-grid { display: flex; flex-direction: column; align-items: stretch; }
  .fix-phone { order: 2; }
  .fix-list { order: 3; }
  .switch { display: grid; width: 100%; }
  .switch button { min-width: 0; }
  .fix-phone { margin-top: 36px; }
  .phone { width: min(320px, 92vw); }
  .changes { margin-top: 32px; }
  .get-intro .btn { width: 100%; }
  .sheet { padding: 28px 18px 48px; }
  .items .dots { padding: 0 6px; }
  .price-head { display: block; }
  .price-head figure { display: none; }
  .price-cols { grid-template-columns: 1fr; row-gap: 44px; }
  .price-cta .btn { width: 100%; }
  .how-copy { display: block; }
  .how-copy figure { margin-top: 32px; width: 100%; }
  .slipsheet { padding: 32px 18px 48px; }
  .total { margin-inline: -18px; padding-inline: 18px; }
  .fr-copy { display: block; margin-bottom: 40px; }
  .fr-copy figure { margin-top: 28px; }
  .ticket { padding: 40px 18px 32px; }
  .note-grid { display: block; }
  .letter { padding: 32px 22px; }
  .stub .btn { width: 100%; }
  .note-side { margin-top: 40px; display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: end; }
  .faq-grid { display: flex; flex-direction: column-reverse; }
  .faq-pics { width: 100%; margin-bottom: 72px; }
  .faq-pics .tall img { aspect-ratio: 4 / 5; }
  .faq-pics .square { left: auto; right: -6px; bottom: -48px; width: 40%; }
  .faq-cta .btn { width: 100%; }
  .qa summary { padding: 16px 18px; }
  .qa details p { padding: 0 18px 20px; }
  .reply-side { padding-bottom: 40px; }
  .rcard { transform: rotate(-1deg); padding: 40px 20px 88px; }
  .back { padding: 52px 20px 28px; }
  .back-addr { grid-template-columns: 1fr 76px; }
  .stamp { width: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-pic] { transform: none; }
  .js [data-reveal] .dots span, .js .slip h3::before { transform: none; opacity: 1; }
}

/* The founder note on the navy wall (used where the note follows the hero, as on hello/) */
.note.on-ground { background: var(--ground); }
.note.on-ground .note-side { color: var(--on-ground); }
.note.on-ground .fit li::before { background: var(--accent); }

/* 8b. Referral: a coupon on the light wall */
.refer { background: var(--paper-2); color: var(--ink); padding: var(--section) var(--margin); }
.refer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.refer-copy { grid-column: 1 / 7; }
.refer-copy .lead { margin-top: 22px; max-width: 30ch; }
.refer-copy p:not(.lead) { margin-top: 16px; max-width: 42ch; color: var(--ink-soft); }
.coupon { grid-column: 8 / 13; position: relative; background: var(--paper); padding: 48px clamp(22px, 3vw, 40px) 32px; text-align: center; }
.coupon-amt { font-weight: 800; font-stretch: 62%; font-size: var(--step-display); line-height: .9; color: var(--ink); }
.coupon-what { margin-top: 8px; font-size: var(--step-body); color: var(--ink-soft); }
.coupon .btn { margin-top: 24px; width: 100%; }
.coupon .small { margin-top: 14px; }
.coupon-terms { margin-top: 18px; padding-top: 16px; border-top: 5px dotted var(--paper-2); font-size: var(--step-small); color: var(--ink-soft); }
@media (max-width: 1080px) {
  .refer-copy, .coupon { grid-column: 1 / 13; }
  .coupon { margin-top: 40px; }
}
