/* Homepage only: the hero, the demos and the sections below them. Shared styles are in styles.css. */

/* Handwriting: Caveat cut down to the letters on the mess's sticky note and the form's scrawl. After changing either,
   rebuild it from fonts/caveat-0.woff2 with fontTools:
   pyftsubset caveat-0.woff2 --text="<the note and the scrawl>" --layout-features="calt,liga,kern" --no-hinting --flavor=woff2
   or the subset-font package from npm with the same text. Until then a new letter falls back to the full Caveat. */
@font-face { font-family: 'Caveat Notes'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/caveat-notes-1.woff2') format('woff2'); }

/* Nav */
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a:not(.btn) { font-size: .9rem; color: var(--dim); text-decoration: none; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* Phone menu */
.menu-toggle { display: none; position: relative; width: 2.6rem; height: 2.6rem; margin-left: .6rem; border-radius: 50%; border: 1px solid rgba(242, 240, 233, .2); background: none; cursor: pointer; }
.menu-toggle span { position: absolute; left: 50%; width: 1rem; height: 2px; margin-left: -.5rem; border-radius: 2px; background: var(--text); transition: transform .3s, top .3s; }
.menu-toggle span:first-child { top: calc(50% - 4px); }
.menu-toggle span:last-child { top: calc(50% + 2px); }
.menu-toggle[aria-expanded="true"] span { top: calc(50% - 1px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--nav) 0 0; z-index: 29; padding: 1.4rem 16px 2rem; background: rgba(10, 10, 11, .97); backdrop-filter: blur(14px); overflow-y: auto; animation: menuIn .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu nav { display: grid; }
.mobile-menu a:not(.btn) { padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.9rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.mobile-menu .btn { justify-self: start; margin-top: 1.6rem; }
body.menu-open { overflow: hidden; }

/* Hero: the headline, centred, then a before and after side by side with an arrow between. Each side is a tag, a
   heading, one line, then its picture. The two lines are about the same length, so both pictures start level, and
   the sides stretch to the row's height, so the mess is as tall as the demo beside it. */
.hero { padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(1.2rem, 2.4vw, 1.8rem); }
.hero-head { text-align: center; }
.hero h1 { max-width: 15em; margin: 0 auto 1.2rem; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; }
.hero h1 .hl { color: var(--red); }
.hero-head p { max-width: 28em; margin: 0 auto; font-size: 1.15rem; line-height: 1.65; color: var(--dim); text-wrap: balance; }
.ba { display: grid; grid-template-columns: minmax(0, 1fr) 4.4rem minmax(0, 1fr); align-items: stretch; margin-top: clamp(2.2rem, 4.5vw, 3.4rem); }
.ba-side { display: flex; flex-direction: column; min-width: 0; }
.ba-tag { margin: 0 0 .6rem; font: 500 .78rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.ba h2 { margin-bottom: .45rem; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.1; }
.ba-line { margin: 0 0 1.2rem; font-size: 1.05rem; line-height: 1.65; color: var(--dim); }
.ba-arrow { display: grid; place-items: center; }
.ba-arrow svg { box-sizing: border-box; width: 2.8rem; height: 2.8rem; padding: .78rem; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* The board under the demo */
.ba-board { flex: 1; padding: clamp(1.1rem, 1.8vw, 1.4rem); border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }

/* The demo, top to bottom: the website, the bridge running down, then the CRM. Each window is its own card, with a
   numbered line above it saying what's happening. */
.duo { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 3.4rem auto; width: 100%; max-width: 33rem; margin-inline: auto; }
.duo-pane { min-width: 0; }
/* A little run-up between the website and the chip, so the pulse is seen leaving the website */
.duo-pane:first-child { position: relative; padding-bottom: .3rem; }
.pane-label { display: flex; align-items: start; gap: .55rem; margin: 0 0 .6rem; font-size: .92rem; line-height: 1.45rem; color: var(--text); }
/* Room for the Pause button at the end of the first line */
.duo-pane:first-child .pane-label { padding-right: 2.4rem; }
.pane-no {
  display: grid; place-items: center; flex: none; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  border: 1px solid rgba(var(--red-rgb), .5); color: var(--red); font: 500 .72rem/1 var(--mono);
}

/* The windows run a touch small, so the board sits beside the note without towering over it */
.offer-visual { position: relative; container-type: inline-size; font-size: clamp(9.5px, 2.6cqi, 14px); }
.tap { position: absolute; width: 2.4em; height: 2.4em; margin: -1.2em 0 0 -1.2em; border-radius: 50%; border: 2px solid #fff; background: rgba(255, 255, 255, .35); opacity: 0; pointer-events: none; }
.tap.go { animation: tap .7s ease-out; }
@keyframes tap { 0% { opacity: 0; transform: scale(1.6); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.8); } }

/* The bridge: a booking travels down from the website to the CRM. Without JavaScript, a plain dashed line. */
.bridge { position: relative; }
.bridge::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed rgba(242, 240, 233, .2); }
.bridge-chip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); font-size: 2.3rem; z-index: 1; }
.bridge-chip .reticle { margin: 0; vertical-align: 0; }
/* script.js draws the dashed line in SVG so a pulse can run along it. The border stays off once it's there. */
.bridge.drawn::before { display: none; }
/* Under the logo chip (z-index 1), and free to run past the bridge into the windows */
.bridge-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.bridge-line path, .bridge-line line { fill: none; stroke-linecap: butt; }
/* The resting line, matching the 2px dashed border it replaces */
.bridge-rest line { stroke: rgba(242, 240, 233, .2); stroke-width: 2; stroke-dasharray: 6 6; }
/* The pulse: a faint lit line, a fading tail, a soft glow and a bright head */
.pulse-lit { stroke: rgba(var(--red-rgb), .3); stroke-width: 2; }
.pulse-tail { stroke: rgba(var(--red-rgb), .16); stroke-width: 2; }
.pulse-halo { stroke: rgba(var(--red-rgb), .75); stroke-width: 6; filter: url(#bridge-glow); }
.pulse-head { stroke: #ff8a7a; stroke-width: 2; }
/* The lock: the reticle's ring turns and its dot pulses, each about its own centre */
.bridge-chip .reticle .ring, .bridge-chip .reticle .dot { transform-box: fill-box; transform-origin: center; }

/* The CRM's window: titled "Requests", with you signed in. It uses the CRM demo's light styles. */
.hero-crm { position: relative; }
.hero-crm .crm-top { gap: .7em; padding: .55em .9em; }
.hero-crm .crm-app { margin-right: auto; font-size: 1.05em; letter-spacing: -.015em; }
.hero-crm .crm-me svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.crm-list { margin: .8em; border-radius: .5em; background: #fff; border: 1px solid #e5e5e5; overflow: hidden; }
.crm-list-head, .crm-list li { display: grid; grid-template-columns: 1.5fr 1fr .8fr; align-items: center; gap: .6em; padding: .55em .8em; }
.crm-list-head { background: #f3f3f3; font-size: .72em; font-weight: 700; color: #5c5c5c; text-transform: uppercase; letter-spacing: .04em; }
.crm-list ul { margin: 0; padding: 0; list-style: none; }
.crm-list li { position: relative; isolation: isolate; border-top: 1px solid #ededed; font-size: .86em; color: #181818; }
/* A new row's highlight is a layer that fades out, which is cheaper to animate than the background */
.crm-list li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff4d6; opacity: 0; transition: opacity 1.2s; }
.crm-list li b { color: #0b5cab; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-list li small { color: #5c5c5c; font-size: .9em; white-space: nowrap; }
.crm-list li.new { animation: rowIn .6s cubic-bezier(.2, .8, .2, 1); }
.crm-list li.new::before { opacity: 1; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-.8em); } }
/* The rows share one grid cell and translate puts each in its slot. A new request still pushes the older rows down
   at the same moment, but a transform isn't a layout shift, so the hero's CLS stays 0. Every row is one line:
   .55em + 1.55em + .55em of its .86em text, plus a 1px border. */
#feed { display: grid; align-content: start; align-items: start; height: calc(3 * (.86 * 2.65em + 1px)); }
#feed > li { grid-area: 1 / 1; }
#feed > li:nth-child(2) { translate: 0 100%; }
#feed > li:nth-child(3) { translate: 0 200%; }
.st { justify-self: start; font-style: normal; font-size: .82em; font-weight: 600; padding: .15em .6em; border-radius: .35em; white-space: nowrap; }
.st.lead { background: #e5f2ff; color: #0b5cab; }
.st.quote { background: #fef1e6; color: #a45200; }
.st.won { background: #e3f4e8; color: #1f6b38; }

/* Pause: a small round icon level with the first numbered line, its right edge on the window's. 28px to see, 44px to tap
   (the padding). top centres it on the 1.45rem label row. Placed absolutely, so it moves nothing. */
.pause { position: absolute; top: calc(.725rem - 22px); right: -8px; display: block; width: 44px; height: 44px; margin: 0; padding: 8px; border: 0; border-radius: 50%; background: none; color: var(--dim); line-height: 0; cursor: pointer; transition: color .2s; }
.pause svg { display: block; width: 28px; height: 28px; overflow: visible; }
.pi-ring { fill: rgba(242, 240, 233, .04); stroke: rgba(242, 240, 233, .3); stroke-width: 1.5; transition: fill .2s, stroke .2s; }
.pi-pause { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pi-play { display: none; fill: currentColor; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.pause[aria-pressed="true"] .pi-pause { display: none; }
.pause[aria-pressed="true"] .pi-play { display: inline; }
.pause:hover { color: var(--red); }
.pause:hover .pi-ring { fill: rgba(var(--red-rgb), .08); stroke: rgba(var(--red-rgb), .7); }
/* The focus ring hugs the circle: 44px less 6px a side */
.pause:focus-visible { outline: 2px solid var(--red); outline-offset: -6px; }
.paused .mess > * { animation-play-state: paused !important; }

/* Before: the mess, filling the height the demo beside it gives it */
.ba .mess { position: relative; flex: 1; min-height: 20rem; border-radius: 22px; border: 1px solid var(--line); background: #0d0d0f; overflow: hidden; }
.corner { position: absolute; width: 1.1rem; height: 1.1rem; z-index: 4; border-color: var(--red); border-style: solid; border-width: 0; }
.corner.tl { top: .8rem; left: .8rem; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: .8rem; right: .8rem; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: .8rem; left: .8rem; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: .8rem; right: .8rem; border-bottom-width: 2px; border-right-width: 2px; }

/* The mess. Everything drifts a little, like a cluttered desk. Each piece is a different problem, laid out in two
   loose columns down the box: the form, the note and the old website on the left, the rest on the right. */
.mess { container-type: inline-size; font-size: clamp(10.5px, 2.45cqi, 17px); }
.mess > :not(.corner) { position: absolute; animation: fidget 6s ease-in-out infinite; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .6); }
@keyframes fidget { 50% { translate: 0 -3px; } }
.mess > :nth-child(3n) { animation-delay: -2s; } .mess > :nth-child(3n+1) { animation-delay: -4s; }
/* Lost paperwork: a form with its last page gone */
.form { left: 6%; top: 6%; width: 34%; display: grid; gap: .45em; padding: .7em .75em .6em; background: #fbfaf6; color: #222; font-size: .72em; rotate: -4deg; }
.form b { font-size: .95em; }
.form span { border-bottom: 1px solid #999; color: #666; font-size: .85em; }
.form em { font: 600 1.35em/1 "Caveat Notes", var(--hand); color: #c00; }
.dm { left: 45%; top: 6%; width: 48%; display: grid; gap: .2em; padding: .65em .8em; border-radius: .8em; background: #f4f4f4; color: #222; font-size: .8em; rotate: 2deg; }
.dm b { font-size: .85em; color: #666; }
.sheet { left: 54%; top: 27%; width: 39%; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #555; background: #e9e9e9; font: .64em var(--mono); color: #333; rotate: 3deg; }
.sheet span { border: 1px solid #bbb; padding: .55em .2em; text-align: center; overflow: hidden; white-space: nowrap; }
.sheet span:nth-child(2), .sheet span:nth-child(7) { color: #c00; font-weight: 700; }
.note { left: 5%; top: 34%; width: 42%; padding: .5em .65em; background: #efe3a0; color: #3a3420; font: 600 1.3em/1.08 "Caveat Notes", var(--hand); rotate: -6deg; }
.missed { left: 52%; top: 47%; padding: .6em .9em; border-radius: .9em; background: #2a2a2e; font-weight: 600; font-size: .95em; rotate: -4deg; white-space: nowrap; }
.missed b { color: #ff6a6a; font-size: 1.5em; margin-right: .2em; }
/* An old website, the way they looked: grey box, blue underlined link, a serif */
.oldsite { left: 7%; top: 62%; width: 40%; display: grid; gap: .15em; padding: .55em .7em; background: #d4d0c8; border: 2px outset #eee; color: #000; font: .74em/1.3 "Times New Roman", Times, serif; rotate: 4deg; }
.oldsite b { color: #00c; text-decoration: underline; }
.oldsite small { color: #444; }
.mail { left: 50%; top: 70%; width: 46%; display: grid; gap: .3em; padding: .9em 1em; background: #f4f4f4; color: #222; font: .74em var(--mono); rotate: 1.5deg; box-shadow: none; }
.mail b { font-weight: 700; }
.mail span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The website's window in the hero: a browser bar with its address in the middle, the way browsers show it */
.mini-site { border-radius: .9em; overflow: hidden; background: #fbf9f4; color: #1d2733; box-shadow: 0 1.4em 2.8em -1.6em rgba(0, 0, 0, .9); }
.ms-bar { display: flex; align-items: center; gap: .4em; padding: .55em .75em; background: #e9e7e1; border-bottom: 1px solid #dcd9d1; font: 500 .74em/1.31 var(--sans); color: #2f353c; }
.ms-bar i { flex: none; width: .72em; height: .72em; border-radius: 50%; }
.ms-bar i:nth-child(1) { background: #ec6a5e; }
.ms-bar i:nth-child(2) { background: #f4bf4f; }
.ms-bar i:nth-child(3) { background: #61c554; }
.ms-url { display: flex; flex: 0 1 17em; align-items: center; justify-content: center; gap: .35em; min-width: 0; margin: 0 auto; padding: .3em .9em; border-radius: .45em; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); white-space: nowrap; }
.ms-url svg { flex: none; width: 1.05em; height: 1.05em; fill: none; stroke: #6b7079; stroke-width: 1.5; }
/* An empty box as wide as the three dots, so the address sits in the true middle of the bar */
.ms-bar::after { content: ""; flex: none; width: 2.96em; }
.ms-page { padding: .9em 1.1em 1.1em; }
.ms-nav { display: flex; align-items: center; gap: 1em; font-size: .78em; margin-bottom: 1.1em; }
.ms-nav strong { margin-right: auto; font-size: 1.15em; letter-spacing: -.02em; }
.ms-nav span { color: #5f6670; }
/* Buttons in the drawings: corners in proportion to the real ones, about a quarter of their height, never pills */
.ms-nav em { font-style: normal; padding: .35em .9em; border-radius: .5em; background: #1f5f8b; color: #fff; }
.ms-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1em; align-items: center; }
.ms-copy { display: grid; gap: .4em; justify-items: start; }
.ms-copy b { font-size: 1.5em; line-height: 1.05; letter-spacing: -.035em; color: #13324a; text-wrap: balance; }
.ms-copy small { font-size: .78em; color: #5f6670; }
/* An orange deep enough for its small white text (4.7:1) */
.ms-btn { margin-top: .3em; padding: .45em 1em; border-radius: .55em; background: #c94a1c; color: #fff; font-size: .74em; font-weight: 600; transition: transform .15s, box-shadow .15s; }
/* A shadow, not a fading layer, so the press ring grows out from the button as designed */
.ms-btn.pressed { transform: scale(.94); box-shadow: 0 0 0 .5em rgba(201, 74, 28, .25); }
/* The website's form: three fields and its button */
.ms-form { display: grid; gap: .4em; padding: .65em; border-radius: .6em; background: #fff; box-shadow: inset 0 0 0 1px #e2ded5; font-size: .7em; color: #5f6670; }
.ms-form span:not(.ms-btn) { padding: .35em .55em; border: 1px solid #d6d2c9; border-radius: .35em; }
.ms-form .ms-msg { padding-bottom: 1.5em; }
.ms-form .ms-btn { justify-self: start; margin-top: .1em; font-size: 1em; }


/* What we build: one demo at a time, picked with tabs */
.gallery { padding: clamp(2.2rem, 4.4vw, 3.8rem) 0; }
.gallery-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.gallery h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.spec-tabs { display: inline-flex; gap: .3rem; padding: .3rem; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.spec-tabs button { padding: .55em 1.2em; border: 0; border-radius: 12px; background: none; color: var(--dim); font: 600 .95rem var(--sans); cursor: pointer; user-select: none; transition: background .2s, color .2s; }
.spec-tabs button:hover { color: var(--text); }
.spec-tabs button[aria-selected="true"] { background: var(--red); color: #0a0a0b; }
.track { width: min(72rem, 100% - 32px); margin-inline: auto; }
.specimen {
  display: none; height: min(36rem, calc(100vh - var(--nav) - 9rem)); min-height: 28rem;
  grid-template-columns: 1fr 1.65fr; gap: 2rem; padding: 2rem;
  border-radius: 26px; background: rgba(18, 18, 20, .92); border: 1px solid var(--line);
}
.specimen.active { display: grid; animation: specIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes specIn { from { opacity: 0; transform: translateY(12px); } }
.spec-copy { display: flex; flex-direction: column; justify-content: center; }
.spec-top { display: flex; align-items: flex-start; gap: .5rem; }
.spec-top .spec-no { margin-top: .3rem; }
.spec-no { font: 500 .85rem var(--mono); color: var(--red); }
.specimen h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.05em; margin: .5rem 0 1rem; }
.spec-copy p { color: var(--dim); font-size: 1.05rem; text-wrap: balance; }
.spec-list { display: grid; gap: .55rem; margin-top: .4rem; }
.spec-list li { color: var(--dim); font-size: 1rem; padding-left: 1.2rem; position: relative; }
.spec-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: .45rem; height: .45rem; background: var(--hi); }
.spec-stage { position: relative; display: grid; place-items: center; min-height: 0; border-radius: 18px; background: #0d0d0f; border: 1px solid var(--line); overflow: hidden; padding: 1.4rem; }

/* Website demo */
.device-switch { display: inline-flex; align-self: flex-start; gap: .25rem; padding: .25rem; margin-top: .6rem; border-radius: 16px; border: 1px solid var(--line); }
.device-switch button { color: var(--dim); background: none; border: 0; padding: .5em 1.1em; border-radius: 12px; font-size: .88rem; font-weight: 600; cursor: pointer; user-select: none; transition: background .2s, color .2s; }
.device-switch button[aria-pressed="true"] { background: var(--hi); color: #0a0a0b; }
.device { width: 100%; max-height: 100%; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); transition: width .9s cubic-bezier(.4, 0, .2, 1), border-radius .9s; }
/* Each size is narrower than the one before at every screen width, so the three always look different */
.device[data-size="tablet"] { width: min(86%, 28rem); }
.device[data-size="phone"] { width: min(100%, max(70%, 11rem), 15rem); border-radius: 26px; }
.device-bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .9rem; background: #efede7; font: 500 .66rem var(--mono); color: #6b675f; }
.device-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: #d9d4c9; }
.device-bar span { margin-left: .5rem; }
.device-bar b { margin-left: auto; font-weight: 500; color: #4d6b1f; }
/* A phone shows just the address, centered, the way a phone browser does */
.device[data-size="phone"] .device-bar { justify-content: center; }
.device[data-size="phone"] .device-bar :is(i, b) { display: none; }
.device[data-size="phone"] .device-bar span { margin: 0; }
.site { container-type: inline-size; color: #23201b; background: #fbf8f3; }
.site-nav { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.1rem; font-size: .74rem; }
.site-nav strong { font-size: .9rem; letter-spacing: -.02em; margin-right: auto; }
.site-nav em { font-style: normal; padding: .35em .9em; border-radius: .5em; background: #2f4a3a; color: #fff; }
.site-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem; padding: .6rem 1.1rem 1rem; align-items: center; }
.site-hero .sh-title { font-size: 1.55rem; letter-spacing: -.04em; line-height: 1.02; margin-bottom: .4rem; color: #2f4a3a; }
.site-hero p { color: #6b665c; font-size: .74rem; margin-bottom: .7rem; }
.site-btn { display: inline-block; padding: .55em 1.1em; border-radius: .55em; background: #b04530; color: #fff; font-weight: 600; font-size: .7rem; }
.site-hero-art { aspect-ratio: 3 / 2; border-radius: 14px; background: radial-gradient(circle at 30% 35%, #f2b5a4 0 18%, transparent 19%), radial-gradient(circle at 62% 30%, #e98a6f 0 16%, transparent 17%), radial-gradient(circle at 48% 62%, #f6d1c0 0 20%, transparent 21%), linear-gradient(160deg, #a8c3a0, #6f8f6a); }
.site-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; padding: 0 1.1rem .9rem; }
.site-card { display: grid; align-content: start; gap: .1rem; padding: .5rem; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px -12px rgba(0, 0, 0, .35); font-size: .72rem; }
.site-card .ph { aspect-ratio: 16 / 10; border-radius: 7px; margin-bottom: .3rem; }
.p1 { background: linear-gradient(140deg, #f3c1a7, #e07a5f); } .p2 { background: linear-gradient(140deg, #efe3d3, #c9b79c); } .p3 { background: linear-gradient(140deg, #b9d4b1, #5e8a5a); }
.site-card small { color: #7a756a; }
@container (max-width: 420px) {
  .site-nav span { display: none; }
  .site-hero { grid-template-columns: 1fr; }
  .site-hero-art { order: -1; aspect-ratio: 16 / 7; }
  .site-hero .sh-title { font-size: 1.3rem; }
}
/* Three cards need about 340px to read well; narrower, two equal cards look better than three squeezed ones */
@container (max-width: 340px) {
  .site-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-card:last-child { display: none; }
}
@container (max-width: 260px) {
  .site-hero .sh-title { font-size: 1.1rem; }
}

/* CRM demo: a light enterprise-style app, the way real CRMs look. The hero's CRM window shares these styles. */
.crm {
  width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 12px; background: #f3f3f3; color: #181818; font-size: .8rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.crm-top { display: flex; align-items: center; gap: .8rem; padding: .5rem .8rem; background: #fff; border-bottom: 1px solid #e5e5e5; }
.crm-launch { display: grid; grid-template-columns: repeat(3, 4px); gap: 2px; }
.crm-launch i { width: 4px; height: 4px; border-radius: 1px; background: #706e6b; }
.crm-app { font-size: .9rem; letter-spacing: -.01em; }
.crm-search { flex: 1; max-width: 16rem; margin: 0 auto; padding: .3rem .7rem; border: 1px solid #c9c9c9; border-radius: 4px; color: #939393; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-me { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #0b5cab; color: #fff; font-size: .62rem; font-weight: 700; }
.crm-tabs { display: flex; gap: 1.1rem; padding: 0 .9rem; background: #fff; border-bottom: 1px solid #e5e5e5; font-size: .74rem; color: #444; white-space: nowrap; overflow: hidden; }
.crm-tabs span { padding: .55rem 0; border-bottom: 3px solid transparent; }
.crm-tabs .on { color: #0b5cab; font-weight: 700; border-color: #0b5cab; }
.crm-head { display: flex; align-items: center; gap: .7rem; margin: .7rem .7rem .55rem; padding: .65rem .8rem; border-radius: 6px; background: #fff; border: 1px solid #e5e5e5; }
.crm-icon { width: 1.9rem; height: 1.9rem; border-radius: 6px; background: #ff5d2d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 17V9m5 8V5m5 12v-6m4 6H3' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 62% no-repeat; }
.crm-title { display: grid; line-height: 1.2; margin-right: auto; }
.crm-title small { font-size: .66rem; color: #5c5c5c; }
.crm-title b { font-size: .92rem; }
.kpi { font-size: .68rem; color: #5c5c5c; white-space: nowrap; }
.kpi b { color: #2e844a; font-weight: 700; margin-left: .25rem; }
.crm-btn { padding: .25rem .8rem; border-radius: 4px; border: 1px solid #c9c9c9; background: #fff; color: #0b5cab; font-size: .7rem; font-weight: 600; }
.cols { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; padding: 0 .7rem .7rem; min-height: 0; }
.col { display: flex; flex-direction: column; min-height: 0; padding: .5rem; border-radius: 6px; background: #eaeaea; overflow: hidden; }
.col .col-head { display: flex; justify-content: space-between; align-items: center; padding: .45rem .55rem .35rem; border-radius: 4px 4px 0 0; background: #fff; border-top: 3px solid #0176d3; font: 700 .72rem var(--sans); letter-spacing: 0; color: #181818; }
.col[data-col="1"] .col-head { border-top-color: #f38303; }
.col[data-col="2"] .col-head { border-top-color: #2e844a; }
.col .col-head i { font-style: normal; font-weight: 600; color: #5c5c5c; }
.col-sum { margin: 0 0 .45rem; padding: 0 .55rem .45rem; background: #fff; border-radius: 0 0 4px 4px; font-size: .66rem; color: #5c5c5c; }
.deal { display: grid; gap: .15rem; padding: .5rem .6rem; border-radius: 4px; background: #fff; border: 1px solid #dddbda; margin-bottom: .4rem; animation: dealIn .5s cubic-bezier(.2, .8, .2, 1); }
.deal b { font-size: .76rem; font-weight: 600; color: #0b5cab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal .acct { font-size: .66rem; color: #5c5c5c; }
.deal .meta { display: flex; align-items: center; gap: .4rem; margin-top: .15rem; font-size: .66rem; color: #444; }
.deal .meta em { font-style: normal; font-weight: 700; color: #181818; margin-right: auto; }
.deal .meta i { display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #c2e4ff; color: #0b5cab; font-style: normal; font-size: .52rem; font-weight: 700; }
.col[data-col="2"] .deal { border-left: 3px solid #2e844a; }
.deal.leaving { animation: dealOut .35s ease forwards; }
@keyframes dealIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes dealOut { to { opacity: 0; transform: translateX(14px) scale(.96); } }


/* How it works, with the draft review demo */
.review { padding: clamp(2.2rem, 4.4vw, 3.8rem) 0; }
.review-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.paper .steps li { color: #5d5850; }
.paper .steps b { color: var(--ink); }
.paper .steps li::before { color: var(--red-ink); }
.draft { position: relative; border-radius: 20px; background: #fff; border: 1px solid rgba(18, 17, 15, .08); padding: 1rem; box-shadow: 0 30px 60px -34px rgba(18, 17, 15, .45); }
.draft-bar { display: flex; justify-content: space-between; font: 400 .74rem var(--mono); color: #77726a; margin-bottom: .8rem; }
.draft-bar em { font-style: normal; color: var(--red-ink); }
.draft-page { border-radius: 12px; background: #f6f4ee; color: #1b2a3a; padding: 1rem 1.2rem 1.4rem; }
.d-nav { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; min-height: 1.7rem; } /* fits the enlarged logo, so the demo never moves the page below */
.d-logo { font-size: .95rem; line-height: 1.2; letter-spacing: -.02em; margin-right: auto; white-space: nowrap; transition: font-size .5s cubic-bezier(.2, .8, .2, 1); }
.draft.big-logo .d-logo { font-size: 1.35rem; }
.d-nav span { font-size: .72rem; color: #55606b; }
.d-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: .9rem; align-items: center; padding: 1.2rem; border-radius: 10px; background: linear-gradient(135deg, #e3eef5, #c9dce9); margin-bottom: .8rem; }
.d-copy .d-title { font-size: 1.15rem; font-weight: 800; color: #1b2a3a; line-height: 1.08; letter-spacing: -.03em; margin-bottom: .35rem; }
.d-copy p { font-size: .72rem; color: #4d5b68; margin-bottom: .2rem; }
.d-photo { aspect-ratio: 1; border-radius: 50% 50% 12px 12px; background: radial-gradient(circle at 50% 38%, #f6e3d3 0 22%, transparent 23%), radial-gradient(ellipse 60% 40% at 50% 100%, #3f6f8f 0 98%, transparent 100%), linear-gradient(160deg, #b8d3e4, #8fb5cc); }
.d-btn { justify-self: start; margin-top: .4rem; padding: .45em 1em; white-space: nowrap; border-radius: .55em; background: #1b2a3a; color: #fff; font-size: .74rem; font-weight: 600; transition: background .4s; }
.draft.new-btn .d-btn { background: #2a7a5b; }
.d-row { display: flex; gap: .6rem; } .d-row i { flex: 1; display: grid; gap: .1rem; padding: .6rem .7rem; border-radius: 8px; background: #fff; border: 1px solid #e4e0d6; font: normal .66rem var(--sans); color: #6b7580; }
.d-row b { font-size: .78rem; color: #1b2a3a; }
.pin { position: absolute; display: flex; align-items: flex-start; gap: .5rem; opacity: 0; transform: scale(.6); transition: opacity .35s, transform .35s cubic-bezier(.2, .8, .2, 1.4); }
.pin.show { opacity: 1; transform: none; }
.pin > b { display: grid; place-items: center; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50% 50% 50% 4px; background: var(--red); color: #0a0a0b; font: 500 .75rem var(--mono); }
.bubble { display: grid; gap: .3rem; max-width: 12rem; padding: .55rem .75rem; border-radius: 10px; color: var(--text); background: #1f1f24; border: 1px solid var(--line); font-size: .8rem; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .8); }
.bubble em { font: 500 .66rem var(--mono); font-style: normal; color: var(--hi); opacity: 0; transition: opacity .3s; }
.pin.done .bubble em { opacity: 1; }
.p-a { left: 34%; top: 7%; } .p-b { left: 30%; top: 50%; }
.review h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); margin-bottom: 1.6rem; }
.steps { counter-reset: s; display: grid; gap: 1rem; }
.steps li { counter-increment: s; position: relative; padding-left: 2.8rem; color: var(--dim); white-space: nowrap; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .1rem; font: 500 .82rem var(--mono); color: var(--hi); }
.steps b { color: var(--text); font-weight: 600; }

/* Skip link, visible only when tabbed to */
.skip { position: absolute; left: -9999px; top: .6rem; z-index: 100; padding: .6rem 1rem; border-radius: 12px; background: var(--red); color: #0a0a0b; font-weight: 600; text-decoration: none; }
.skip:focus { left: 16px; }

/* FAQ */
.faq { padding: clamp(2.2rem, 4.4vw, 3.8rem) 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.6rem, 5vw, 4rem); align-items: start; }
/* The heading and the email line stay in view while the questions scroll past */
.faq-head { position: sticky; top: calc(var(--nav) + 2rem); }
.faq h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.faq-head p { margin: 1.6rem 0 0; color: var(--dim); font-size: 1.2rem; line-height: 1.5; }
/* "Email us at" and the address keep to one line where they fit */
.faq-head p span { display: inline-block; }
.faq-head a { color: var(--text); text-underline-offset: 3px; transition: color .2s; }
.faq-head a:hover { color: var(--red); }
.faq-list { display: grid; gap: .6rem; }
.faq details { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: rgba(242, 240, 233, .2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .65rem; height: .65rem; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--dim); text-wrap: balance; }

/* Sections ease in as you reach them */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Closing: one centered column. The question, the intake form's own choices, and the button that takes them along. */
.start { padding: clamp(2.8rem, 5.6vw, 4.6rem) 0; }
.start-col { max-width: 52rem; container-type: inline-size; text-align: center; }
.start h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; margin-bottom: .45em; }
.start-sub { max-width: 34em; margin: 0 auto 2rem; color: var(--dim); font-size: 1.1rem; text-wrap: balance; }

/* The choices, in the intake form's card style: an icon, a name and a line about it, with a box that ticks red.
   script.js toggles each card's aria-pressed and carries the picks to the form through the Get started link. */
.asks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 0 0 2rem; }
.asks button {
  position: relative; display: grid; gap: .35rem; align-content: start; justify-items: start; padding: 1.1rem 1.1rem 1.2rem;
  border-radius: 16px; border: 1px solid rgba(242, 240, 233, .4); background: #0d0d0f; color: var(--text);
  font-weight: 400; text-align: left; cursor: pointer; user-select: none; transition: border-color .2s, background .2s, transform .2s;
}
.asks svg { width: 1.8rem; height: 1.8rem; margin-bottom: .35rem; fill: none; stroke: var(--dim); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.asks b { padding-right: 1.6rem; font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
/* A set measure, so the three lines under the names break alike when the cards sit three across */
.asks small { max-width: 15em; color: var(--dim); font-size: .86rem; line-height: 1.4; text-wrap: balance; }
.asks button::after { content: ""; position: absolute; top: .9rem; right: .9rem; width: 1.2rem; height: 1.2rem; border-radius: 6px; border: 1.5px solid rgba(242, 240, 233, .5); transition: background .2s, border-color .2s; }
.asks button:hover { border-color: rgba(242, 240, 233, .6); transform: translateY(-2px); }
.asks button[aria-pressed="true"] { border-color: var(--red); background: rgba(var(--red-rgb), .07); color: var(--text); }
.asks button[aria-pressed="true"] svg { stroke: var(--red); }
.asks button[aria-pressed="true"]::after { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%230a0a0b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; border-color: var(--red); }
.asks button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
/* Too narrow for three across: one card per row, the icon beside the words */
@container (max-width: 40rem) {
  .asks { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
  .asks button { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .9rem; row-gap: .1rem; padding: .9rem 3rem .9rem 1rem; }
  .asks svg { grid-row: span 2; margin: 0; }
  .asks b { padding-right: 0; }
  .asks small { max-width: none; }
  .asks button::after { top: 50%; margin-top: -.6rem; }
}
/* The page's main action: solid red with the same gentle corners as the cards, so it never reads as a pill */
.btn-main { padding: .9em 1.6em; border-radius: 16px; font-size: 1.05rem; }
/* One card wide, centered under the middle card. With one card per row, sized to its words with room around them. */
.start .btn-main { width: calc((100% - 1.4rem) / 3); }
@container (max-width: 40rem) { .start .btn-main { width: auto; min-width: 14rem; } }

/* The letters come from CSS so screen readers and checkers treat the wordmark as decoration */
.giant span::before { content: attr(data-t); }
.giant .reticle .ring { stroke: rgba(var(--red-rgb), .22); }
.giant .reticle .dot { fill: rgba(var(--red-rgb), .22); }
.giant { font-weight: 900; font-size: min(25vw, 26rem); white-space: nowrap; letter-spacing: -.07em; line-height: .78; text-align: center; color: #141417; margin: 2rem 0 -4vw; user-select: none; }

/* Tablet and phone */
@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .menu-toggle { display: block; }
  .review-grid { grid-template-columns: minmax(0, 1fr); } /* minmax lets the review demo shrink to fit 320px phones */
  .specimen { height: auto; min-height: 0; grid-template-columns: 1fr; padding: 1.4rem; }
  /* One height for every demo size, so the page below never moves when the website demo changes size */
  .spec-stage { min-height: 20rem; height: clamp(31rem, 60vw + 18rem, 37rem); }
}
/* Before on top, the arrow pointing down, then After, in one phone-like column on tablets. The mess gets a shape of
   its own, since nothing beside it sets its height. */
@media (max-width: 860px) {
  .ba { width: min(36rem, 100% - 32px); grid-template-columns: minmax(0, 1fr); }
  .ba-arrow { height: 4rem; }
  .ba-arrow svg { rotate: 90deg; }
  .ba .mess { flex: none; aspect-ratio: 1; min-height: 0; }
  .ba-board { padding: .9rem; }
  .duo { max-width: none; }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .faq-head p { margin-top: 1.2rem; font-size: 1.1rem; }

  .start h2 { font-size: min(2.3rem, 8.4vw); } /* one line from the smallest phone up */
}
@media (max-width: 560px) {
  .start .btn-main { width: 100%; }
  /* Too narrow for one line: title on top, detail underneath, the same for every step */
  .steps li { white-space: normal; }
  .steps b { display: block; }
  .cols { grid-template-columns: 1fr 1fr; }
  .col[data-col="0"] { display: none; }
  .crm .kpi, .crm-search, .crm-tabs span:nth-child(n+4) { display: none; }
}
/* The draft folds the way a phone site does: its nav keeps just its logo and two services show, so nothing runs
   out of the card. From 412px the links fit beside the grown logo. */
@media (max-width: 411px) {
  .d-nav span, .d-row i:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .deal, .mess > * { animation: none !important; }
  .specimen.active, .mobile-menu { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .device, .pin, .bubble em, .d-logo, .asks button { transition: none; }
  .asks button:hover { transform: none; }
  .pause { display: none; } /* nothing loops, so nothing to pause */
  /* The bridge line only lights in place */
  .pulse-tail, .pulse-halo, .pulse-head { display: none; }
}
