/* Clay hosting: the landing page (/hosting) and the setup page (/mcp). lib/hostpages.js serves both.
   The look is clay.site's own (public/studio.css): white, Inter at heavy weights, black pill
   buttons, soft grey bands, the Biro hand in clay for notes and the strokes that draw themselves.
   Pushed bolder: bigger type, real shots on a warm canvas, one black surface per screen.
   The clay colour is for the hand and its strokes only: #C87F5E is 3.16:1 on white, so it paints
   large or decorative things; small clay text is #9C5538 (5.57:1), as on clay.site. */
@font-face { font-family: "Inter"; src: url(/fonts/Inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Biro"; src: url(/fonts/Biro.woff2) format("woff2"); font-display: swap; }

:root {
  /* clay and white: "i told you many times i don't like this soft color.. just make clay + white".
     No warm beige anywhere: the bands are white, the stages a neutral grey, the one colour is clay.
     --clay-btn is clay deep enough to carry white text on a button (4.6:1; #c87f5e is 3.16:1). */
  --ink: #111; --ink-2: #333; --grey: #5f5f5f; --grey-2: #8a8a8a; --line: #e7e7e7; --slot: #f2f2f2;
  --band: #f4f4f4; --canvas: #f3f3f3; --paper: #fff;
  --clay: #c87f5e; --clay-text: #9c5538; --clay-btn: #ab6141;
  --radius: 24px; --radius-l: 32px; --radius-s: 14px; --max: 1200px; --gutter: 20px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hand: "Biro", var(--sans);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.32, .72, 0, 1);
  --shadow: 0 0 0 1px rgba(17,17,17,.06), 0 18px 40px -22px rgba(17,17,17,.22);
  --lift: 0 1px 2px rgba(0,0,0,.04), 0 30px 60px -30px rgba(17,17,17,.35);
  /* the chat, drawn in the colours of the Claude app's light theme */
  --c-bg: #faf9f5; --c-me: #f0eee6; --c-ink: #1f1e1d; --c-dim: #73726c; --c-line: #e8e6dc;
}
@media (min-width: 760px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── the bar ────────────────────────────────────────────────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.bar.scrolled { border-bottom-color: var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.mark { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; text-decoration: none; }
.mark img { width: 24px; height: 24px; }
.nav { display: none; gap: 28px; font-size: 15px; color: var(--ink-2); }
.nav a { text-decoration: none; } .nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }
.bar-r { display: flex; align-items: center; gap: 14px; }
.login { font-size: 15px; text-decoration: none; color: var(--ink-2); }
.login:hover { color: var(--ink); }

/* ── buttons: clay.site's black pills ───────────────────────────────────────────────────────── */
.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font: 600 17px/1 var(--sans); border-radius: 999px; padding: 18px 28px; min-height: 52px; text-decoration: none;
  background: var(--ink); color: #fff; transition: transform .15s var(--ease), background .15s; white-space: nowrap; }
.hbtn:hover { background: #2b2b2b; }
.hbtn:active { transform: scale(.97); }
.hbtn.sm { font-size: 15px; padding: 12px 18px; min-height: 42px; }
.hbtn.lg { font-size: 18px; padding: 20px 32px; min-height: 60px; }
.hbtn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.hbtn.ghost:hover { background: var(--band); }
.hbtn.inv { background: #fff; color: var(--ink); }
.hbtn.inv:hover { background: #ececec; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; cursor: pointer; font-size: 17px; font-weight: 600; }
.linkish:hover { text-decoration-color: var(--clay); }

/* ── type: bigger than clay.site today, same family ─────────────────────────────────────────── */
h1, h2, h3 { margin: 0; letter-spacing: -.04em; line-height: 1; font-weight: 800; }
h2 { font-size: clamp(40px, 7.2vw, 92px); line-height: .98; letter-spacing: -.05em; max-width: 15ch; text-wrap: balance; }
h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.22; font-weight: 700; }
.kicker { font-size: 14px; font-weight: 600; color: var(--clay-text); margin: 0 0 16px; letter-spacing: .01em; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--grey); line-height: 1.45; max-width: 36ch; margin: 24px 0 0; text-wrap: pretty; }
.small { font-size: 15px; color: var(--grey); }
.fine { font-size: 14px; color: var(--grey); margin: 18px 0 0; }
.head { margin-bottom: 48px; }
@media (min-width: 900px) { .head { margin-bottom: 64px; } }
.more { margin: 32px 0 0; }

section { padding: 96px 0; }
@media (min-width: 900px) { section { padding: 144px 0; } }
.band { background: var(--paper); }
/* selected text stays readable on white, on the black screens and on a button */
::selection { background: var(--clay); color: #fff; }

/* ── the hand: Biro, clay, written in as it arrives ─────────────────────────────────────────── */
.hand { font-family: var(--hand); color: var(--clay); font-size: 28px; line-height: 1.1; font-weight: 400; letter-spacing: 0; }
.js .ink-text { clip-path: inset(-20% 100% -20% 0); transition: clip-path 1.1s var(--ease) .2s; }
.js .seen .ink-text, .js .ink-text.seen { clip-path: inset(-20% -4% -20% 0); }
.ink { fill: none; stroke: var(--clay); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.js .ink path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease) .55s; }
.js .seen .ink path, .js .ink.seen path { stroke-dashoffset: 0; }
.note { position: absolute; margin: 0; white-space: nowrap; transform: rotate(-3deg); }
.arrow { position: absolute; }

/* reveal on scroll: clay.site's one motion */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.seen { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

/* ── shared pieces: a browser, a phone, a chat ──────────────────────────────────────────────── */
.browser { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--lift); }
.b-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fff; }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.b-url { flex: 1; min-width: 0; max-width: 360px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: 999px; background: var(--band); font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-url svg { width: 12px; height: 12px; fill: none; stroke: var(--grey); stroke-width: 1.6; flex: none; }
.phone { position: relative; width: 300px; aspect-ratio: 9 / 19.2; border-radius: 48px; border: 10px solid #111; background: #111; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.phone > .chat, .phone > .swap { position: absolute; inset: 0; border-radius: 38px; overflow: hidden; }
/* "there is a little gap": the first picture's light edge showed under the second along the
   rounded bottom. The screen is black and the first picture goes once the second has covered it. */
.phone > .swap { background: #111; }


.chat { text-align: left; background: var(--c-bg); color: var(--c-ink); display: flex; flex-direction: column; font-size: 14px; line-height: 1.42; }
.chat-top { flex: none; height: 64px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; border-bottom: 1px solid var(--c-line); }
.chat-t { font-size: 13px; font-weight: 600; }
.chat-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px 14px 10px; }
.msg { max-width: 86%; }
.msg.me { align-self: flex-end; background: var(--c-me); border-radius: 18px; padding: 9px 13px; }
.msg.ai { align-self: flex-start; padding: 0 2px; }
.msg u { text-decoration-color: var(--c-dim); text-underline-offset: 2px; }
.tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--c-dim); padding: 5px 10px 5px 8px; border-radius: 10px; border: 1px solid var(--c-line); background: #fff; }
.tool i { width: 14px; height: 14px; background: url(/clay-mark.svg) center / 13px no-repeat; }
.tool span { font-family: var(--mono); font-size: 11.5px; color: var(--c-ink); }
.chat-in { flex: none; margin: 0 10px 14px; height: 44px; border-radius: 22px; border: 1px solid var(--c-line); background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 16px; color: var(--c-dim); font-size: 13.5px; }
.chat-in i { width: 32px; height: 32px; border-radius: 50%; background: #d97757 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 12V4M4.5 7.5L8 4l3.5 3.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
/* the chat arrives one line at a time (hosting.js); without script it is simply all there */
.chat.play [data-step] { display: none; }
.chat.play [data-step].on { display: flex; animation: msg-in .5s var(--spring) both; }
.chat.play .msg[data-step].on { display: block; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── 1. hero ─────────────────────────────────────────────────────────────────────────────────── */
.hero { padding: 56px 0 72px; text-align: center; }
@media (min-width: 900px) { .hero { padding: 96px 0 120px; } }
.hero-hand { font-size: clamp(24px, 3vw, 32px); margin: 0 auto 10px; width: max-content; max-width: 100%; transform: rotate(-2deg); }
.hero-h { font-size: clamp(48px, 11.4vw, 156px); line-height: .9; letter-spacing: -.06em; font-weight: 800; }
.hero-h > span { display: block; }
.under { font-style: normal; position: relative; display: inline-block; }
.under .ink { position: absolute; left: -2%; bottom: -.08em; width: 104%; height: .2em; stroke-width: 5; }
.under .ink path { transition-delay: .9s; transition-duration: 1.1s; }
.hero-lead { margin: 28px auto 0; max-width: 34ch; text-wrap: balance; }
@media (min-width: 900px) { .hero-lead { max-width: 44ch; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px; }
.js .hero .wrap:first-child > * { opacity: 0; animation: up .9s var(--ease) forwards; }
.hero .wrap:first-child > :nth-child(2) { animation-delay: .06s; } .hero .wrap:first-child > :nth-child(3) { animation-delay: .16s; }
.hero .wrap:first-child > :nth-child(4) { animation-delay: .24s; } .hero .wrap:first-child > :nth-child(5) { animation-delay: .3s; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.stage { position: relative; margin-top: 64px; border-radius: var(--radius-l); background: var(--canvas); padding: 40px 16px 48px; display: flex; justify-content: center; }
.stage-site { display: none; }
.stage-phone { margin: 0 auto; }
.note-phone { right: -118px; top: 96px; font-size: 26px; }
/* "free subdomain", pointing at the address bar of the site behind the phone. The note's right
   edge is fixed just left of the address pill (the browser is 78% of the stage, the pill 360px
   centred in it), so a longer language grows to the left, away from the arrow. */
.note-sub, .arrow-sub { display: none; }
.arrow-phone { width: 92px; height: 70px; right: -40px; top: 128px; transform: scaleX(-1) rotate(10deg); }
@media (max-width: 559px) {
  .stage { padding: 28px 12px 76px; margin-left: calc(var(--gutter) * -.5); margin-right: calc(var(--gutter) * -.5); }
  .stage-phone { width: min(300px, 80vw); }
  .note-phone { right: auto; left: 50%; top: auto; bottom: -58px; transform: translateX(-50%) rotate(-3deg); }
  .arrow-phone { display: none; }
}
@media (min-width: 900px) {
  .stage { margin-top: 88px; padding: 64px 64px 128px; display: block; }
  .stage-site { display: block; width: 78%; margin-left: auto; }
  .stage-site img { width: 100%; height: auto; }
  .stage-phone { position: absolute; left: 6%; bottom: -48px; margin: 0; width: 320px; }
  .note-phone { right: auto; left: calc(100% + 96px); top: auto; bottom: 92px; font-size: 30px; }
  .note-sub { display: block; top: 12px; right: calc(39% + 270px); font-size: 28px; }
  .arrow-sub { display: block; left: calc(61% - 262px); top: 30px; width: 66px; height: 50px; }
  .arrow-phone { right: auto; left: calc(100% + 8px); top: auto; bottom: 104px; width: 90px; height: 64px; transform: rotate(180deg); }
  .hero { padding-bottom: 168px; }
}

/* ── 2. the problem: four questions, huge ───────────────────────────────────────────────────── */
.problem h2 { max-width: 13ch; }
.qs { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--line); }
.qs li { font-size: clamp(30px, 5.4vw, 68px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); transition: color .8s var(--ease) .3s, opacity .8s var(--ease), transform .8s var(--ease); }
.js .qs li { color: var(--grey-2); } .js .qs li.seen { color: var(--ink); }
@media (min-width: 900px) { .qs li { padding: 30px 0; } }
.answer { margin: 48px 0 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; max-width: 30ch; }
.answer .hand { display: block; font-size: 30px; font-weight: 400; margin-bottom: 6px; transform: rotate(-2deg); width: max-content; }

/* ── 3. how it works ────────────────────────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { background: #fff; border-radius: var(--radius); padding: 14px 14px 28px; box-shadow: 0 0 0 1px var(--line); }
.step-shot { height: 320px; border-radius: 16px; background: var(--canvas); overflow: hidden; position: relative; margin-bottom: 26px; }
.step-shot img { width: 72%; margin: 28px auto 0; border-radius: 22px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.35); }
.step-live img { border: 6px solid #111; border-radius: 28px; }
.step-say { background: var(--c-bg); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 24px 22px; font-size: 15px; line-height: 1.42; color: var(--c-ink); }
.step-say .msg { max-width: 92%; }
.step .num { display: block; font-family: var(--hand); color: var(--clay); font-size: 30px; line-height: 1; padding: 0 12px; }
.step h3 { margin-top: 12px; padding: 0 12px; font-size: 26px; letter-spacing: -.03em; }
.step p { margin: 8px 0 0; padding: 0 12px; color: var(--grey); font-size: 16px; }

/* ── splits: words beside a picture ─────────────────────────────────────────────────────────── */
.split { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.rev > :first-child { order: 2; } }

/* ── 4. change it by talking ────────────────────────────────────────────────────────────────── */
.said { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: var(--c-bg); border-radius: 22px; padding: 20px; max-width: 420px; box-shadow: 0 0 0 1px var(--c-line); font-size: 16px; color: var(--c-ink); }
.said .msg.me { align-self: flex-end; }
.talk-shot { position: relative; display: flex; justify-content: center; padding: 40px 0; background: var(--canvas); border-radius: var(--radius-l); }
.phone-sm { width: min(280px, 72vw); }
.swap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.js .swap .sw-b { clip-path: inset(0 0 100% 0); will-change: clip-path; }
/* the note sits above the phone, never on it: "i cant read the first word" */
.talk-shot { padding-top: 104px; }
.note-undo { right: 24px; top: 26px; transform: rotate(3deg); font-size: 28px; }
.arrow-undo { width: 70px; height: 52px; right: 44px; top: 62px; }
@media (max-width: 559px) { .talk-shot { padding: 76px 0 32px; } .note-undo { right: auto; left: 20px; top: 22px; transform: rotate(-3deg); } .arrow-undo { right: auto; left: 150px; top: 30px; transform: rotate(-30deg) scaleY(-1); width: 56px; height: 42px; } }

/* ── 5. preview: the editor's Desktop | Mobile switch, the frame shrinking and growing ─────── */
.pv { display: grid; gap: 16px; }
@media (min-width: 1000px) { .pv { grid-template-columns: 1fr 280px; align-items: start; } .pv-top { grid-column: 1 / -1; } }
.pv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.seg button { border: 0; background: none; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--grey); cursor: pointer; transition: background .25s, color .25s; }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
.pill-soft { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.pill-soft::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e3a008; }
.frame { position: relative; margin: 0 auto; width: 100%; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--lift);
  transition: width .7s var(--spring), border-radius .7s var(--spring); }
.frame-view { position: relative; height: min(560px, 62vw); transition: height .7s var(--spring); background: #1b1410; }
.frame-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .45s var(--ease); }
.frame .f-fone { opacity: 0; }
.frame[data-dev="fone"] { width: min(340px, 100%); border-radius: 36px; }
.frame[data-dev="fone"] .frame-view { height: min(620px, 150vw); }
.frame[data-dev="fone"] .f-desk { opacity: 0; }
.frame[data-dev="fone"] .f-fone { opacity: 1; }
.frame[data-dev="fone"] .dots { display: none; }
/* "on mobile the corners are weird": a 36px corner around a 44px bar cut into the pill's ends.
   As a phone the bar is taller and the pill sits inside the curve. */
.frame .b-bar { transition: height .7s var(--spring), padding .7s var(--spring); }
.frame[data-dev="fone"] .b-bar { height: 56px; padding: 10px 26px 0; border-bottom: 0; }
@media (max-width: 559px) {
  .frame { border-radius: 16px; }
  .frame[data-dev="fone"] { border-radius: 30px; }
  .frame[data-dev="fone"] .b-bar { padding: 10px 22px 0; }
}
.vers { position: relative; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 0 0 1px var(--line); }
.vers h4 { margin: 0 0 6px; font-size: 13px; color: var(--grey); font-weight: 600; }
.ver { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.ver:nth-of-type(1) { border-top: 0; }
.ver b { display: block; font-size: 16px; } .ver small { display: block; font-size: 14px; color: var(--grey); }
.ver em { font-style: normal; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.ver em.on { background: #e8f7ee; color: #146c3b; box-shadow: none; }
.note-vers { position: static; display: block; margin-top: 14px; font-size: 24px; white-space: normal; }

/* ── 6. looks designed ──────────────────────────────────────────────────────────────────────── */
.rules { background: #fff; border-radius: var(--radius-l); padding: 32px 28px; box-shadow: var(--lift); }
.rules ol { list-style: none; counter-reset: r; margin: 0; padding: 0; }
.rules li { counter-increment: r; position: relative; padding: 18px 0 18px 52px; border-top: 1px solid var(--line); font-size: 17px; color: var(--grey); line-height: 1.4; }
.rules li:first-child { border-top: 0; }
.rules li::before { content: counter(r); position: absolute; left: 0; top: 12px; font-family: var(--hand); color: var(--clay); font-size: 30px; }
.rules li b { display: block; color: var(--ink); font-size: 20px; letter-spacing: -.02em; }
.rules-from { margin: 12px 0 0; font-size: 13px; color: var(--grey-2); }

/* ── 7. the black screen ────────────────────────────────────────────────────────────────────── */
.dark { background: #0d0d0d; color: #fff; }
.dark .kicker { color: var(--clay); }
/* "dont like the animation of this. feels buggy": the hairlines were the grid's own background
   showing through the 1px gaps, so every cell that rose on its reveal dragged a grey seam and a
   rounded corner with it. The lines are now drawn once, standing still, by the list itself, and a
   cell only fades in where it already is. */
.facts { position: relative; list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts::before, .facts::after { content: ""; position: absolute; background: #262626; pointer-events: none; }
  .facts::before { left: 50%; top: 0; bottom: 0; width: 1px; }
  .facts::after { top: 50%; left: 0; right: 0; height: 1px; }
}
.facts li { padding: 32px 4px 36px; }
@media (min-width: 760px) { .facts li { padding: 44px 40px 48px; } }
@media (max-width: 759px) { .facts li { border-top: 1px solid #262626; } }
.js .facts li.rv { transform: none; transition: opacity 1s var(--ease); }
.facts h3 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.045em; line-height: 1; }
.facts p { margin: 12px 0 0; color: #b5b2ae; font-size: 17px; max-width: 32ch; }

/* ── 8. weekly ──────────────────────────────────────────────────────────────────────────────── */
.mailshot { position: relative; background: var(--canvas); border-radius: var(--radius-l); padding: 28px 16px; }
.mail-card { max-width: 400px; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: var(--lift); background: #fff; height: 440px; position: relative; }
/* the letter itself, in real type at phone sizes; the scroll engine slides it up inside the card */
.ml { padding: 26px 24px 30px; color: #1a1a1a; font-size: 15px; line-height: 1.45; }
.ml p { margin: 0 0 12px; }
.ml-from { display: block; font-size: 15px; margin-bottom: 10px; }
.ml-h { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.ml-k { color: #555; margin-top: 18px !important; }
.ml ul { list-style: none; margin: 0 0 6px; padding: 0; }
.ml li { padding: 10px 0; border-bottom: 1px solid #ece7df; font-weight: 600; }
.ml-fix li { display: grid; gap: 3px; }
.ml-fix b { font-weight: 600; }
.ml-fix span { font-weight: 400; color: #777; font-size: 14px; }
.ml-btn { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 10px; padding: 12px 18px; border-radius: 10px; background: #c87f5e; color: #fff; font-weight: 600; }
.ml-btn svg { width: 18px; height: 18px; fill: currentColor; }
.ml-or { color: #777; font-size: 14px; }
/* the whole letter in its sheet: all of it, no window, a hairline instead of the lift */
.mail-card.whole { height: auto; max-width: 560px; box-shadow: none; border: 1px solid #ece7df; }
.note-fix { position: static; display: block; margin: 0 0 12px 8px; font-size: 28px; }
.arrow-fix { display: none; }
@media (min-width: 760px) {
  .mailshot { padding: 48px 32px; }
  .mail-card { margin: 0 0 0 auto; max-width: 380px; }
  .note-fix { position: absolute; left: 28px; top: 92px; margin: 0; width: 120px; white-space: normal; line-height: 1.05; }
  .arrow-fix { display: block; left: 44px; top: 160px; width: 96px; height: 70px; }
}

/* ── 9. domain ──────────────────────────────────────────────────────────────────────────────── */
.dom-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .dom-grid { grid-template-columns: 1fr 1.25fr; gap: 20px; } }
.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.dom-chat { background: var(--c-bg); display: flex; flex-direction: column; gap: 10px; color: var(--c-ink); font-size: 16px; line-height: 1.42; }
.card-k { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--grey); }
.mail-text { margin: 0; font: 13.5px/1.6 var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--band); border-radius: var(--radius-s); padding: 16px 18px; }
.card-foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── 10. agencies ───────────────────────────────────────────────────────────────────────────── */
.agency h2 { max-width: 17ch; }
.ag-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .ag-grid { grid-template-columns: 1.35fr 1fr; gap: 64px; } }
.ag-shot { position: relative; background: var(--canvas); border-radius: var(--radius-l); padding: 24px 16px 64px; }
@media (min-width: 760px) { .ag-shot { padding: 40px 40px 72px; } }
.ag-shot .browser img { width: 100%; height: auto; }
.note-client { left: 24px; bottom: 18px; font-size: 26px; }
.fixes .split { align-items: center; }
.fx-plan { margin-top: 18px; font-size: 15px; color: var(--grey); }
.ag-steps { list-style: none; margin: 0; padding: 0; counter-reset: a; }
.ag-steps li { counter-increment: a; position: relative; padding: 22px 0 22px 52px; border-top: 1px solid var(--line); font-size: 17px; color: var(--grey); line-height: 1.45; }
.ag-steps li:last-child { border-bottom: 1px solid var(--line); }
.ag-steps li::before { content: "0" counter(a); position: absolute; left: 0; top: 17px; font-family: var(--hand); color: var(--clay); font-size: 26px; }
.ag-steps b { color: var(--ink); font-weight: 700; display: block; font-size: 19px; letter-spacing: -.02em; }

/* ── 11. pricing ────────────────────────────────────────────────────────────────────────────── */
.plans { display: grid; gap: 14px; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: #fff; border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; min-width: 0; }
.plan h3 { font-size: 18px; letter-spacing: -.01em; }
.price { margin: 18px 0 0; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: clamp(48px, 5vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { font-size: 15px; color: var(--grey); }
.for { margin: 10px 0 0; font-size: 15px; color: var(--grey); }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.4; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--clay) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.plan .hbtn { margin-top: auto; width: 100%; }
.plan-ink { background: var(--ink); color: #fff; box-shadow: none; }
.plan-ink .price span, .plan-ink .for { color: #b5b2ae; }
.plan-ink .hbtn.inv { background: var(--clay-btn); color: #fff; }
.plan-ink .hbtn.inv:hover { background: #9a5639; }
.price-notes { margin-top: 28px; display: grid; gap: 14px; color: var(--grey); font-size: 15.5px; line-height: 1.5; }
@media (min-width: 900px) { .price-notes { grid-template-columns: 1fr 1fr; } }
.pn { background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 22px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pn p { margin: 0; } .pn b { display: block; color: var(--ink); font-size: 18px; letter-spacing: -.02em; margin-bottom: 4px; }
.pn .hbtn { margin-top: auto; }
.pn-all { margin: 22px 0 0; text-align: center; }

/* ── 12. earn ───────────────────────────────────────────────────────────────────────────────── */
.ref { position: relative; background: var(--canvas); border-radius: var(--radius-l); padding: 40px 28px 72px; text-align: center; }
.ref-link { display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: 17px; max-width: 100%; overflow: hidden; }
.ref-link span { color: var(--grey-2); } .ref-link b { font-weight: 600; }
.ref-pct { margin-top: 28px; font-size: clamp(96px, 16vw, 200px); font-weight: 800; letter-spacing: -.07em; line-height: .85; }
.ref-sub { margin: 14px 0 0; color: var(--grey); }
.note-free { left: 50%; bottom: 20px; transform: translateX(-50%) rotate(-3deg); font-size: 28px; }

/* ── 13. faq: clay.site's ───────────────────────────────────────────────────────────────────── */
.faq { margin-top: 40px; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; letter-spacing: -.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--grey); font-weight: 400; font-size: 24px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--grey); max-width: 62ch; }

/* ── 14. closing ────────────────────────────────────────────────────────────────────────────── */
.closing { text-align: center; padding: 120px 0 128px; }
.closing h2 { margin: 0 auto; max-width: none; font-size: clamp(44px, 9vw, 128px); line-height: .92; letter-spacing: -.06em; }
@media (min-width: 900px) { .closing { padding: 176px 0; } }

/* ── footer: clay.site's black one ──────────────────────────────────────────────────────────── */
.foot { background: #0a0a0a; color: #8a8580; padding: 64px 0 32px; font-size: 14.5px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 40px; }
.foot-me { flex: 1 1 240px; }
.foot-me b { color: #fff; font-size: 19px; letter-spacing: -.03em; }
.foot-me p { margin: 10px 0 0; }
.foot-brand { display: inline-flex; align-items: center; gap: 9px; }
.foot-mark { width: 22px; height: 22px; flex: none; color: #fff; }
.foot-soc { display: flex; gap: 8px; margin-top: 16px; }
.foot-soc a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #b5b0aa;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); transition: color .15s, background .15s; }
.foot-soc a:hover { color: #fff; background: rgba(255,255,255,.1); }
.foot-soc svg { width: 18px; height: 18px; display: block; }
.foot-cols { flex: 2 1 420px; display: flex; flex-wrap: wrap; gap: 28px 40px; }
.foot-cols > div { flex: 1 1 120px; display: flex; flex-direction: column; gap: 9px; }
.foot-cols h5 { margin: 0 0 2px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6b6660; font-weight: 600; }
.foot-cols a { color: #b5b0aa; text-decoration: none; } .foot-cols a:hover { color: #fff; }
/* the language dropdown (lib/hostcopy.js langSelect), the look of the studio's footer one */
.h-lang { position: relative; display: block; max-width: 210px; margin-top: 18px; }
.h-lang::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.6px solid #b5b0aa; border-bottom: 1.6px solid #b5b0aa; transform: rotate(45deg); pointer-events: none; }
.h-lang select { appearance: none; -webkit-appearance: none; width: 100%; height: 42px; padding: 0 38px 0 14px; border-radius: 10px;
  background: #100f0e; border: 1px solid rgba(255,255,255,.12); color: #e6e2dd; font: inherit; font-size: 16px; cursor: pointer; }
.h-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.foot-end { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #6b6660; }

/* ── sheets and the centre modal: the editor's sheet (editor-ui.css .fm-card), in white ────────
   A side sheet slides in from the right on a desk; on a phone both rise from the bottom with the
   grabber, as the editor's do. <dialog> gives the focus trap, Escape and the backdrop. */
.hsheet { position: fixed; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; overflow: visible; }
.hsheet::backdrop { background: rgba(17,17,17,.32); opacity: 0; transition: opacity .3s ease; }
.hsheet.open::backdrop { opacity: 1; }
.sh-in { display: flex; flex-direction: column; background: #fff; box-shadow: 0 30px 80px -20px rgba(17,17,17,.3), 0 0 0 1px var(--line); overflow: hidden; }
.sh-grab { width: 38px; height: 4px; border-radius: 99px; background: #cfccc8; margin: 10px auto 0; flex: none; }
.sh-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 24px 18px; border-bottom: 1px solid var(--line); }
.sh-head h3 { font-size: 24px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.sh-head p { margin: 6px 0 0; font-size: 15px; color: var(--grey); }
.sh-x { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--band); display: grid; place-items: center; cursor: pointer; }
.sh-x:hover { background: #ecebe8; }
.sh-x svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.sh-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 22px 24px 32px; -webkit-overflow-scrolling: touch; }
.sh-note { margin: 22px 0 0; font-size: 15px; color: var(--grey); }
.sh-more { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink); font-weight: 600; }
.sh-note a { color: var(--ink); font-weight: 600; }
.sh-img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
/* phone: from the bottom */
.hsheet { inset: auto 0 0 0; width: 100%; }
.hsheet .sh-in { max-height: 88vh; max-height: 88dvh; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); transition: transform .45s var(--spring); }
.hsheet.open .sh-in { transform: none; }
/* desk: the side sheet from the right, the centre modal in the middle */
@media (min-width: 760px) {
  .hsheet { inset: 12px 12px 12px auto; width: min(480px, calc(100vw - 24px)); height: calc(100vh - 24px); }
  .hsheet .sh-in { height: 100%; max-height: none; border-radius: 26px; transform: translateX(calc(100% + 24px)); }
  .hsheet .sh-grab { display: none; }
  .hsheet.center { inset: 0; margin: auto; width: min(980px, calc(100vw - 48px)); height: max-content; max-height: calc(100vh - 48px); }
  .hsheet.center .sh-in { height: auto; max-height: calc(100vh - 48px); transform: translateY(16px) scale(.97); opacity: 0; transition: transform .4s var(--spring), opacity .25s ease; }
  .hsheet.center.open .sh-in { transform: none; opacity: 1; }
}
.hsheet.open .sh-in { transform: none; }
html.locked, html.locked body { overflow: hidden; }

.tools { margin: 0; }
.tools dt { font-weight: 700; font-size: 17px; letter-spacing: -.01em; margin-top: 20px; }
.tools dt:first-child { margin-top: 0; }
.tools dd { margin: 4px 0 0; color: var(--grey); font-size: 16px; }
.guide { margin: 0; padding-left: 22px; display: grid; gap: 14px; color: var(--grey); font-size: 16px; }
.guide b { color: var(--ink); }
.tbl { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.tbl table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 13px 8px; border-top: 1px solid var(--line); text-align: center; white-space: nowrap; }
.tbl thead th { border-top: 0; font-size: 14px; font-weight: 700; }
.tbl td:first-child { text-align: left; white-space: normal; color: var(--grey); padding-left: 0; min-width: 150px; }
.tbl tbody tr:first-child td { font-weight: 800; font-size: 18px; color: var(--ink); }
.tbl tbody tr:first-child td:first-child { font-weight: 400; font-size: 15px; color: var(--grey); }

/* ── motion off: everything is simply there ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .qs li { opacity: 1; transform: none; transition: none; }
  .js .qs li { color: var(--ink); }
  .js .ink-text { clip-path: none; transition: none; }
  .js .ink path { stroke-dashoffset: 0; transition: none; }
  .js .hero .wrap:first-child > * { animation: none; opacity: 1; }
  .js .swap .sw-b { clip-path: none; transition: none; }
  .frame, .frame-view, .frame-view img { transition: none; }
  .chat.play [data-step].on { animation: none; }
  .hsheet .sh-in, .hsheet::backdrop, .hsheet.center .sh-in { transition: none; }
}

/* 10b. Dave's note: the clay.site studio page's own drawing (studio.css .note), photo left, Biro right */
.founder .fd { display: grid; gap: 26px; align-items: center; }
.founder .fd-pic { display: block; width: 100%; max-width: 220px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.founder .fd p { font-family: var(--hand); font-size: clamp(21px, 2.3vw, 26px); line-height: 1.32; margin: 0; color: var(--ink); white-space: normal; position: static; transform: none; }
.founder .fd p + p { margin-top: 14px; }
.founder .fd .sig { color: var(--clay); margin-top: 16px; }
@media (min-width: 760px) { .founder .fd { grid-template-columns: 260px 1fr; gap: 56px; align-items: start; } .founder .fd-pic { max-width: 260px; } }

/* the two AI apps' own marks on their buttons (Simple Icons, CC0): Claude's spark in its orange,
   OpenAI's knot in the button's ink */
.ai-mark { width: 22px; height: 22px; flex: 0 0 auto; fill: currentColor; }
.ai-mark.ai-claude { fill: #d97757; }
.hbtn.sm .ai-mark { width: 18px; height: 18px; }

/* the limits table on a phone: all four plans on the screen, nothing to swipe sideways */
@media (max-width: 559px) {
  .tbl { margin: 0; padding: 0; overflow: visible; }
  .tbl table { min-width: 0; table-layout: fixed; font-size: 13px; }
  .tbl th, .tbl td { padding: 11px 2px; white-space: normal; }
  .tbl thead th { font-size: 12.5px; }
  .tbl td:first-child { min-width: 0; width: 42%; padding-right: 8px; font-size: 13px; }
  .tbl tbody tr:first-child td { font-size: 15px; }
  .tbl tbody tr:first-child td:first-child { font-size: 13px; }
}
@media (min-width: 900px) { .tbl table { font-size: 16px; } .tbl th, .tbl td { padding: 15px 12px; } }

/* Monthly | Yearly above the plans: yearly is ten months for twelve (lib/hostbilling.js) */
.bill { display: flex; justify-content: center; margin: 0 0 28px; }
.bill .seg button em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--clay-text); margin-left: 6px; }
.bill .seg button[aria-selected="true"] em { color: #f3c9b5; }
.plan .price span { transition: opacity .2s; }

/* OTHER LANGUAGES. German and Finnish join words into long compounds and a Biro note in German is
   longer than a phone is wide: headlines break inside a word where the language allows it, a
   price's words go under the number when they do not fit beside it, and on a phone a note wraps
   instead of pushing the page sideways. English is unchanged: none of these lines were full. */
html:not([lang="en"]) :is(h1, h2, h3) { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.plan .price { flex-wrap: wrap; }
@media (max-width: 559px) {
  .note { white-space: normal; max-width: calc(100vw - 56px); }
}
/* and a headline column wide enough for one compound noun: 15ch is three English words and less
   than one Finnish one ("verkkotunnuksesta"), so the other languages get a wider column and a
   slightly smaller size; English keeps its own */
html:not([lang="en"]) h2 { max-width: 20ch; font-size: clamp(34px, 6.2vw, 80px); }
html:not([lang="en"]) .problem h2, html:not([lang="en"]) .agency h2 { max-width: 20ch; }
@media (max-width: 559px) {
  html:not([lang="en"]) .bill .seg button { height: auto; min-height: 44px; padding: 6px 16px; line-height: 1.15; }
  html:not([lang="en"]) .bill .seg button em { display: block; margin: 2px 0 0; white-space: nowrap; }
}
/* "you can work from any LLM on Clay sites and it will always be in sync" (Dave) */
.pv-sync { margin-top: 12px; }
.pv-sync b { color: var(--ink); font-weight: 600; }

/* THE SCROLL DRIVES IT (public/hosting.js `frame`, the engine the earlier homepage used): every reveal
   and the How it works chat are a pure function of where the page sits. Stop and it stops, scroll
   back and it undoes. No transition, so nothing plays on its own and nothing "clicks". */
.js .rv { transition: none; will-change: opacity, transform; }
.step-say[data-scrub] { justify-content: flex-start; display: block; padding: 0; }
.say-in { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; will-change: transform; }
.js .step-say[data-scrub] { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px); mask-image: linear-gradient(to bottom, transparent 0, #000 40px); }
.js .say-in > * { opacity: 0; }

/* the rest of the scroll engine (public/hosting.js frame): the chat beside the phone, the phone going
   from the light version to the dark one, the email scrolling inside its card, the questions darkening */
.js [data-talk] > * { opacity: 0; will-change: opacity, transform; }
.js .qs li { transition: none; }
.js .ml { will-change: transform; }
