/* Afloat product UI. 23 September 2026.
   The service drawn in the world's two inks, so a phone or a desk can float in a plate's quiet field
   and still look printed: flat river outlines, cream screens, an orange halftone overprint for depth.
   Coded, never rendered, so every word stays real type. Loaded after site.css, which holds the tokens. */

:root {
  --screen: #FBF3E2;       /* = --card */
  --bubble: #F0DDBB;       /* Proxling's bubble: 9.1:1 for river */
  --tint: #F9C9A6;         /* orange halftone mid-tone, used flat */
  --olive-soft: #E7D8B4;   /* hairline fills on cream */
  --halftone: radial-gradient(circle, var(--orange) 1.3px, transparent 1.75px) 0 0 / 6px 6px;
}

/* ---------- icons ---------- */
.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }

/* ---------- the number, blacked out with a marker until launch ---------- */
.redact { display: inline-block; padding: 0 .2em; border-radius: 3px; background: var(--river); color: transparent; transform: rotate(-1.5deg) skewX(-6deg); user-select: none; -webkit-user-select: none; }

/* ---------- the overprint: a halftone shadow set off register, behind a surface ---------- */
.inked { position: relative; isolation: isolate; }
.inked::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translate(var(--off-x, 14px), var(--off-y, 16px)); border-radius: var(--r, 12px); background: var(--halftone), var(--tint); opacity: .9; }
.inked.green::before { background: radial-gradient(circle, var(--green) 1.3px, transparent 1.75px) 0 0 / 6px 6px, #BFE6CF; }

/* ---------- the phone ---------- */
.phone { --w: 340px; --r: 50px; width: var(--w); max-width: 100%; flex: none; }
.phone-frame { position: relative; display: flex; flex-direction: column; aspect-ratio: 9 / 19; border: 10px solid var(--river); border-radius: var(--r); background: var(--screen); overflow: hidden; box-shadow: 0 0 0 2px var(--river); }
.phone-frame::before { content: ""; position: absolute; z-index: 3; top: 9px; left: 50%; width: 31%; height: 24px; margin-left: -15.5%; border-radius: 999px; background: var(--river); }
.phone.short .phone-frame { aspect-ratio: 9 / 15; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 11px 26px 0; height: 40px; font-size: .8125rem; font-weight: 700; flex: none; }
.phone-status .bars { display: inline-flex; gap: 2px; align-items: end; height: 11px; }
.phone-status .bars i { width: 3px; background: var(--river); border-radius: 1px; }
.phone-status .bars i:nth-child(1) { height: 4px; } .phone-status .bars i:nth-child(2) { height: 6px; } .phone-status .bars i:nth-child(3) { height: 8px; } .phone-status .bars i:nth-child(4) { height: 11px; }
.phone-status .batt { display: inline-block; width: 22px; height: 11px; margin-left: 6px; border: 1.5px solid var(--river); border-radius: 3px; background: linear-gradient(90deg, var(--river) 70%, transparent 0) 1px 1px / calc(100% - 2px) calc(100% - 2px) no-repeat; }
.phone-head { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px 10px; border-bottom: 1.5px solid var(--olive-soft); flex: none; }
.phone-head img { width: 42px; height: 42px; border-radius: 50%; }
.phone-head b { font-size: .875rem; }
.phone-head small { font-size: .6875rem; color: var(--olive); font-weight: 500; }
.phone-compose { display: flex; align-items: center; gap: 8px; margin: 8px 12px 14px; flex: none; }
.phone-compose span { flex: 1; padding: 8px 14px; border: 1.5px solid var(--olive-soft); border-radius: 999px; font-size: .8125rem; color: var(--olive); }
.phone-compose .i { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--orange); color: var(--river); }
.phone-screen { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.phone-home { position: absolute; bottom: 6px; left: 50%; width: 34%; height: 4px; margin-left: -17%; border-radius: 99px; background: var(--river); opacity: .8; }

/* ---------- the thread ---------- */
.thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 12px 12px 4px; font-size: .875rem; line-height: 1.38; overflow: hidden; -webkit-mask-image: linear-gradient(transparent 0, #000 36px); mask-image: linear-gradient(transparent 0, #000 36px); }
.thread .when { align-self: center; margin: 6px 0 2px; font-size: .6875rem; font-weight: 700; color: var(--olive); letter-spacing: .02em; }
.msg { max-width: 82%; padding: 8px 12px 9px; border-radius: 19px; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--river); color: var(--screen); border-bottom-right-radius: 6px; }
.msg.px { align-self: flex-start; background: var(--bubble); color: var(--river); border-bottom-left-radius: 6px; }
.msg b { font-weight: 700; }
.msg .reply { border-color: currentColor; padding: 0 6px; font-size: .9em; }
/* a card arriving: the tent card as a link preview */
.msg.card { padding: 0; background: none; width: 86%; max-width: 86%; }
.minicard { position: relative; display: block; padding: 12px 14px 12px; background: var(--screen); border: 2px solid var(--river); border-radius: 5px 5px 14px 14px; color: var(--river); text-decoration: none; box-shadow: 6px 7px 0 -1px var(--tint); }
.minicard::before { content: ""; position: absolute; left: 10px; right: 10px; top: -2px; height: 7px; border-top: 2px solid var(--river); border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: .35; }
.minicard .state { margin-bottom: 7px; }
.minicard .ans { display: block; font-family: var(--display); font-size: 1.125rem; line-height: 1.12; margin-bottom: 7px; }
.minicard small { display: block; font-size: .6875rem; font-weight: 700; color: var(--olive); }
.typing { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 19px; background: var(--bubble); font-size: .75rem; font-weight: 700; color: var(--olive); }
.typing .rings { width: 30px; height: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-end; justify-content: flex-end; }
.chips span { padding: 4px 10px; border: 1.5px solid var(--river); border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--screen); }

/* played threads: launch.js adds .is-playing, then reveals each [data-step] in turn */
.js .thread.will-play > :not(.shown) { display: none; }
.js .thread.will-play > .shown { animation: msg-in .38s cubic-bezier(.2, .7, .3, 1) both; }
.js .thread.will-play > .msg.me.shown { transform-origin: 100% 100%; }
.js .thread.will-play > .shown:not(.me) { transform-origin: 0 100%; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .js .thread.will-play > .shown { animation: none; } }

/* ---------- state pills: a word, a shape and a colour, never colour alone ---------- */
.state { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; white-space: nowrap; }
.state::before { content: ""; width: 14px; height: 7px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.state.answer { background: var(--orange); color: var(--river); }
.state.answer::before { background: var(--river); }
.state.needs { background: var(--river); color: var(--screen); }
.state.needs::before { border-color: var(--orange); background: var(--orange); }
.state.hand { background: var(--screen); color: var(--river); box-shadow: 0 0 0 1.5px var(--river) inset; }
.state.hand::before { border-color: var(--green); }
.state.done { background: var(--olive-soft); color: var(--river); }
.state.done::before { border-color: var(--olive); background: var(--olive); }
.state.could { background: var(--screen); color: var(--river); box-shadow: 0 0 0 1.5px var(--olive) inset; }
.state.could::before { border-style: dashed; border-color: var(--olive); }
.state.stepped { background: var(--screen); color: var(--river); box-shadow: 0 0 0 1.5px var(--orange) inset; }
.state.stepped::before { border-color: var(--orange); }

/* ---------- a place's answer: the six answers from the checked table, plus live ones ---------- */
.say { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .875rem; white-space: nowrap; }
.say::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none; box-sizing: border-box; }
.say.yes::before { background: var(--orange); box-shadow: 0 0 0 2px var(--river) inset; }
.say.wait::before { border: 3px solid var(--orange); }
.say.kids::before { border: 3px solid var(--green); }
.say.no::before { background: var(--olive); }
.say.private::before { border: 3px solid var(--olive); }
.say.none::before { border: 2px dashed var(--olive); }
.say.queued { color: var(--olive); font-weight: 500; }
.say.queued::before { width: 8px; height: 8px; margin: 0 4px; background: var(--olive-soft); box-shadow: 0 0 0 1.5px var(--olive) inset; }
.say.web::before { border: 2px solid var(--river); border-radius: 3px; }
.say.ringing::before { display: none; }
.say .rings { width: 26px; height: 12px; }

/* ---------- the tracker: every place on the list, and where it stands ---------- */
.tracker { background: var(--screen); border: 2px solid var(--river); border-radius: 14px; overflow: hidden; }
.tracker-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 16px 20px 14px; border-bottom: 2px solid var(--river); }
.tracker-head h3, .tracker-head .q { font-family: var(--display); font-size: 1.375rem; line-height: 1.15; margin: 0; }
.tracker-head .meta { font-size: .8125rem; font-weight: 700; color: var(--olive); }
.tracker-bar { display: flex; height: 8px; background: var(--olive-soft); }
.tracker-bar i { display: block; height: 100%; }
.tracker-bar .b-yes { background: var(--orange); }
.tracker-bar .b-other { background: var(--olive); }
.tracker-bar .b-live { background: var(--green); }
.tracker ol { margin: 0; padding: 0; }
.tracker li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 11px 20px; border-top: 1px solid var(--olive-soft); font-size: .9375rem; }
.tracker li:first-child { border-top: 0; }
.tracker li .place b { display: block; font-weight: 700; }
.tracker li .place small { display: block; font-size: .8125rem; color: var(--olive); font-weight: 500; }
.tracker li.hit { background: #FDE6D3; }
.tracker-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-top: 2px solid var(--river); font-size: .8125rem; font-weight: 700; }

/* ---------- the due time: every job has one ---------- */
.due { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--screen); box-shadow: 0 0 0 1.5px var(--river) inset; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.due .i { width: 16px; height: 16px; }

/* ---------- the answer card, full size ---------- */
.acard { position: relative; margin: 0; max-width: 36rem; padding-top: 16px; text-align: left; }
.acard-body { position: relative; background: var(--screen); border: 2px solid var(--river); border-radius: 6px 6px 14px 14px; padding: 26px 28px 24px; box-shadow: 12px 14px 0 -2px var(--tint); }
.acard-body::before { content: ""; position: absolute; left: 14px; right: 14px; top: -2px; height: 10px; border-top: 2px solid var(--river); border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: .35; }
.acard-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-bottom: 16px; }
.acard-top small { font-size: .8125rem; font-weight: 700; color: var(--olive); }
.acard-q { font-size: .9375rem; color: var(--olive); font-weight: 500; margin: 0 0 6px; }
.acard-ans { font-family: var(--display); font-size: clamp(1.6rem, 2.3vw, 2.15rem); line-height: 1.1; margin: 0 0 18px; }
.acard-sec { border-top: 1.5px solid var(--olive-soft); padding: 14px 0 4px; }
.acard-sec h4 { margin: 0 0 10px; font: 700 .75rem/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.acard-sec p { margin: 0 0 10px; font-size: .9375rem; }
.acard .places { display: grid; gap: 8px; margin-bottom: 12px; }
.acard .places li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; background: #FDE6D3; border-radius: 10px; font-size: .9375rem; }
.acard .places li b { font-weight: 700; }
.acard .places li small { font-size: .8125rem; color: var(--river); font-weight: 500; white-space: nowrap; }
.acard-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--river); background: var(--screen); color: var(--river); font: 700 .875rem/1 var(--text); text-decoration: none; white-space: nowrap; }
.pill-btn.hot { background: var(--orange); }
.pill-btn .i { width: 16px; height: 16px; }

/* the trail: how it knows, one step a line, each with its time */
.trail2 { position: relative; display: grid; gap: 0; margin: 0 0 8px; font-size: .9375rem; }
.trail2 li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 10px; padding-bottom: 12px; }
.trail2 li::after { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: repeating-linear-gradient(var(--green) 0 4px, transparent 4px 8px); }
.trail2 li:last-child::after { display: none; }
.trail2 .dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--green); background: var(--screen); color: var(--river); }
.trail2 .dot .i { width: 15px; height: 15px; }
.trail2 .dot.gate { border-color: var(--river); background: var(--river); color: var(--screen); }
.trail2 .dot.stepin { border-color: var(--orange); background: var(--orange); }
.trail2 time, .trail2 .t { display: block; font-size: .75rem; font-weight: 700; color: var(--olive); letter-spacing: .02em; }
.trail2 q { font-style: italic; }
.trail2 q::before, .trail2 q::after { content: none; }

/* ---------- the browser, for the desk and the public pages ---------- */
.browser { --r: 16px; background: var(--screen); border: 2.5px solid var(--river); border-radius: var(--r); overflow: hidden; text-align: left; }
.browser-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px; border-bottom: 2px solid var(--river); background: #F3E3C4; }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--river); }
.browser-bar .dots i:first-child { background: var(--orange); }
.browser-bar .url { flex: 1; max-width: 420px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 26px; border-radius: 999px; background: var(--screen); font-size: .75rem; font-weight: 700; color: var(--olive); }
.browser-bar .url .i { width: 12px; height: 12px; }

/* ---------- the desk, as a small app ---------- */
.desk-ui { display: grid; grid-template-columns: 188px minmax(0, 1fr); min-height: 100%; font-size: .8125rem; }
.desk-side { padding: 16px 14px; border-right: 2px solid var(--olive-soft); display: flex; flex-direction: column; gap: 14px; }
.desk-side .who { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .875rem; }
.desk-side .who img { width: 28px; height: 28px; border-radius: 50%; }
.desk-side nav { display: grid; gap: 2px; }
.desk-side nav span { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-radius: 8px; font-weight: 500; }
.desk-side nav span.on { background: var(--bubble); font-weight: 700; }
.desk-side nav em { font-style: normal; font-weight: 700; font-size: .6875rem; padding: 0 6px; border-radius: 99px; background: var(--orange); }
.desk-ways { margin-top: auto; padding: 10px; border: 1.5px dashed var(--olive); border-radius: 10px; font-size: .75rem; line-height: 1.4; }
.desk-ways b { display: block; margin-bottom: 4px; }
.desk-main { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.desk-main-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.desk-main-head h4 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.avatars { display: flex; }
.av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .6875rem; font-weight: 700; border: 1.5px solid var(--river); background: var(--screen); }
.av + .av { margin-left: -6px; }
.av.a { background: var(--orange); }
.av.b { background: #BFE6CF; }
.dates { display: flex; gap: 6px; overflow: hidden; }
.dates span { flex: none; display: grid; justify-items: center; gap: 1px; min-width: 44px; padding: 5px 6px; border-radius: 10px; border: 1.5px solid var(--olive-soft); font-size: .625rem; font-weight: 700; color: var(--olive); text-transform: uppercase; letter-spacing: .04em; }
.dates span b { font-size: .9375rem; color: var(--river); letter-spacing: 0; font-family: var(--display); font-weight: 400; }
.dates span.mark { border-color: var(--river); background: #FDE6D3; }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.lane > h5 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font: 700 .6875rem/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.lane > h5 em { font-style: normal; color: var(--river); }
.lane ul { display: grid; gap: 8px; }
.job { display: grid; gap: 6px; padding: 10px 11px; border: 1.5px solid var(--river); border-radius: 10px; background: var(--screen); }
.lane.needs .job { background: #FDE6D3; }
.lane.done .job { border-color: var(--olive-soft); color: var(--olive); }
.job .jt { display: flex; gap: 7px; align-items: flex-start; font-weight: 700; line-height: 1.25; }
.job .jt .i { width: 15px; height: 15px; margin-top: 1px; }
.job .jm { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: .6875rem; font-weight: 700; color: var(--olive); }
.lane.done .job .jt { color: var(--olive); font-weight: 500; text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------- a letter, read ---------- */
.letter { position: relative; background: #FFFBF2; border: 1.5px solid var(--olive); border-radius: 3px; padding: 22px 22px 26px; font-size: .6875rem; line-height: 1.5; color: #4A4A2E; box-shadow: 8px 10px 0 -1px var(--olive-soft); text-align: left; }
.letter .lh { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-weight: 700; font-size: .75rem; color: var(--river); }
.letter .lh span:last-child { font-weight: 500; color: #4A4A2E; text-align: right; }
.letter h6 { margin: 0 0 8px; font: 700 .875rem/1.2 var(--text); color: var(--river); }
.letter p { margin: 0 0 7px; }
.letter .line { display: block; height: 6px; margin: 7px 0; border-radius: 3px; background: var(--olive-soft); }
.letter .line.s { width: 62%; }
.letter .line.m { width: 84%; }
.hl { position: relative; padding: 0 2px; background: linear-gradient(transparent 12%, rgba(255, 122, 61, .38) 12%, rgba(255, 122, 61, .38) 92%, transparent 92%); color: var(--river); font-weight: 700; }
.hl-n { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 3px; border-radius: 50%; background: var(--river); color: var(--screen); font-size: .625rem; font-weight: 700; vertical-align: 1px; }

/* ---------- a call, as it sounds ---------- */
.call { background: var(--river); color: var(--screen); border-radius: 18px; padding: 18px 20px; }
.call-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .8125rem; font-weight: 700; }
.call-top .live { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { width: 3px; border-radius: 2px; background: var(--screen); opacity: .85; height: 30%; }
.wave i:nth-child(3n) { height: 70%; } .wave i:nth-child(4n) { height: 50%; } .wave i:nth-child(5n) { height: 90%; } .wave i:nth-child(7n) { height: 40%; }
@media (prefers-reduced-motion: no-preference) {
  .wave.live i { animation: wave 1.1s ease-in-out infinite alternate; }
  .wave.live i:nth-child(2n) { animation-delay: -.3s; } .wave.live i:nth-child(3n) { animation-delay: -.6s; } .wave.live i:nth-child(5n) { animation-delay: -.9s; }
}
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.call ol { display: grid; gap: 10px; }
.call li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; font-size: .9375rem; line-height: 1.4; }
.call li b { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); padding-top: 3px; }
.call li.them b { color: #BFE6CF; }

/* ---------- the price slot: a draft mark where a number is not decided ---------- */
.slot { display: inline-block; padding: 0 .3em; border: 2px dashed var(--orange); border-radius: 8px; color: var(--olive); font-family: var(--text); font-size: .5em; font-weight: 700; letter-spacing: .04em; vertical-align: middle; text-transform: uppercase; }

/* a price slot at display size: the £ and the tag share a baseline and a size */
.slot.big { font-size: .34em; padding: .15em .45em; margin-left: .15em; border-width: 2.5px; vertical-align: .55em; }
