/* The page right after signing up (/thanks): the arrival moment, then the inbox step and the setup
   questions, in the landing's type, colours and windows. Self-contained (no styles.css). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque-latin-v1.woff2") format("woff2-variations"),
       url("../assets/fonts/bricolage-grotesque-latin-v1.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/ibm-plex-sans-latin-v1.woff2") format("woff2-variations"),
       url("../assets/fonts/ibm-plex-sans-latin-v1.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-500-latin-v1.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"); size-adjust: 101%; ascent-override: 92%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: "Plex Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 98%; descent-override: 26%; line-gap-override: 0%; }

:root {
  --ink: #1D2631; --ink-2: #3F4B57; --muted: #5B6773; --paper: #F6F3EC; --stage: #141D25;
  --petrol: #2F6F86; --petrol-d: #235566; --amber: #F0A03A; --win: #FCFBF8; --win-bar: #F2F0EA;
  --edge: rgba(20, 32, 43, .13); --shadow: 0 1px 2px rgba(16, 24, 40, .1), 0 14px 36px -8px rgba(16, 24, 40, .32);
  --font-d: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
  --font-b: "IBM Plex Sans", "Plex Fallback", system-ui, sans-serif;
  --font-m: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--font-b); }
h1, h2 { font-family: var(--font-d); font-weight: 760; letter-spacing: -.018em; line-height: 1.06; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--petrol); }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; height: 56px; padding: 0 16px; background: var(--stage); }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 4px; border-radius: 8px; color: #F3F0E9; text-decoration: none; font: 650 1rem var(--font-b); }
.brand:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.brand-mark { width: 34px; height: 27px; }

/* The arrival: a dawn sky with slow rays from above and the words; then he comes down onto his Inbox window. */
.arrive { position: relative; overflow: hidden; isolation: isolate; padding: 76px 16px 36px; text-align: center;
  background: linear-gradient(180deg, #BCD7DE 0%, #DCE8E6 38%, #F2E7D2 72%, var(--paper) 100%); }
.sky { position: absolute; z-index: -1; left: 50%; top: -40px; width: 1700px; height: 1700px; margin: -850px 0 0 -850px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .7) 0deg 4deg, rgba(255, 255, 255, 0) 4deg 14deg),
    radial-gradient(closest-side, rgba(255, 246, 222, .95), rgba(247, 217, 162, .55) 22%, rgba(188, 226, 248, 0) 60%);
  -webkit-mask-image: radial-gradient(closest-side, #000 6%, transparent 22%); mask-image: radial-gradient(closest-side, #000 6%, transparent 22%);
  animation: rays 120s linear infinite, bloom 2.2s cubic-bezier(.16, 1, .3, 1) .2s both; }
@keyframes rays { to { rotate: 360deg; } }
@keyframes bloom { from { opacity: 0; scale: .55; } to { opacity: 1; scale: 1; } }
.arrive-in { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.kicker { margin-top: 0; font: 500 13px var(--font-m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.arrive h1 { margin-top: 10px; font-size: clamp(2.4rem, 7vw, 4.6rem); color: var(--ink); }
.arrive h1 em { font-style: normal; color: var(--petrol); }
.lead { margin-top: 16px; max-width: 34rem; font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: var(--ink-2); }
.lead b { color: var(--ink); }
.say { position: relative; margin-top: 26px; padding: 12px 16px 13px; border-radius: 14px; background: #fff; border: 1px solid var(--edge); box-shadow: var(--shadow), inset 0 3px 0 var(--amber); font-size: 1rem; text-align: left; }
.say::after { content: ""; position: absolute; left: calc(50% - 7px); top: -7px; width: 13px; height: 13px; background: #fff; border-right: 1px solid var(--edge); border-bottom: 1px solid var(--edge); transform: rotate(-135deg); }
.kicker, .arrive h1, .lead, .perch-say { animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; }
.kicker { animation-delay: .3s; }
.arrive h1 { animation-delay: .5s; }
.lead { animation-delay: .85s; }
.perch-say { animation-delay: 1.7s; }

/* He perches on the window's top edge, his line beside him. */
.perch { position: relative; padding-top: 104px; }
.perch-g { position: absolute; z-index: 2; right: 28px; top: 26px; width: 120px; }
.land { width: 120px; height: 107px; animation: land 1.1s cubic-bezier(.2, .9, .25, 1) .6s both; }
@keyframes land { from { transform: translateY(-70vh); } to { transform: none; } }
.g-arrive { position: relative; width: 120px; }
.perch-say { position: absolute; right: 162px; top: 40px; margin: 0; max-width: calc(100% - 180px); }
.perch-say::after { left: auto; right: -7px; top: calc(50% - 7px); transform: rotate(-45deg); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Below: his windows. */
.steps { max-width: 640px; margin: 0 auto; padding: 8px 16px 64px; display: flex; flex-direction: column; gap: 20px; }
.win { position: relative; background: var(--win); border-radius: 10px; border: 1px solid var(--edge); box-shadow: var(--shadow); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px 0 13px; background: var(--win-bar); border-bottom: 1px solid rgba(20, 32, 43, .07); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.win-bar .ico { width: 23px; height: 21px; }
.win-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.ctl { display: flex; gap: 18px; }
.ctl i { width: 10px; height: 10px; border: 1.2px solid currentColor; border-radius: 2px; opacity: .7; }
.ctl i:first-child { height: 0; border-width: 1.2px 0 0; margin-top: 5px; border-radius: 0; }
.ctl i:last-child { border: 0; background: linear-gradient(45deg, transparent 45%, currentColor 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, currentColor 45% 55%, transparent 55%); }
.w-inbox { animation: rise .6s cubic-bezier(.16, 1, .3, 1) .3s both; }
/* What he heard: their words back, as a short record above his note. */
.heard { padding: 18px 20px 16px; border-bottom: 1px solid rgba(20, 32, 43, .07); }
.heard-k { margin: 0 0 10px; font: 500 12px var(--font-m); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.heard dl { display: grid; gap: 8px; margin: 0; }
.heard dl > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; }
.heard dl > div[hidden], .heard [hidden] { display: none; }
.heard dt { color: var(--muted); font-size: .9375rem; }
.heard dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.heard-line { margin: 14px 0 0; font: 700 1.05rem/1.35 var(--font-d); color: var(--petrol); }
.heard-edit { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.heard-edit:hover { color: var(--ink); }
@media (max-width: 560px) { .heard dl > div { grid-template-columns: 1fr; gap: 0; } .heard { padding: 16px; } }
.inbox { display: flex; gap: 16px; align-items: center; padding: 18px 20px 20px; }
.mail-ico { position: relative; flex: none; width: 52px; height: 40px; border-radius: 8px; background: var(--petrol); box-shadow: 0 0 0 6px rgba(47, 111, 134, .12); }
.mail-ico::after { content: ""; position: absolute; left: 15px; top: -4px; width: 22px; height: 22px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mail-ico::before { content: ""; position: absolute; right: -5px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); border: 2px solid var(--win); }
.inbox h2 { font-size: 1.35rem; }
.inbox p { margin-top: 4px; color: var(--ink-2); }

.setup { padding: 20px 20px 22px; }
.setup h2 { font-size: 1.5rem; }
.intro { margin: 6px 0 14px; color: var(--ink-2); }
.form-back { margin: -6px 0 14px; font-size: .9375rem; }
.form-back[hidden] { display: none; }
/* Each question's options fill one row in equal cells; on phones they wrap and stretch to the edges. */
.chips { margin: 0 0 14px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { flex: 1 1 auto; }
@media (min-width: 700px) { .chips { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.chips legend { width: 100%; margin-bottom: 8px; padding: 0; font-weight: 600; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: block; text-align: center; white-space: nowrap; padding: 8px 6px; border-radius: 8px; border: 1px solid var(--edge); background: #fff; cursor: pointer; }
.chips input:checked + span { background: rgba(47, 111, 134, .1); border-color: var(--petrol); color: var(--petrol-d); box-shadow: inset 0 0 0 1px var(--petrol); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--petrol); outline-offset: 2px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(20, 32, 43, .22); background: #fff; color: var(--ink); font: inherit; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--petrol); outline-offset: 1px; border-color: transparent; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; height: 3rem; padding: 0 1.3rem; cursor: pointer; background: var(--petrol); color: #fff; font: 600 1rem/1 var(--font-b); }
.button:hover { background: var(--petrol-d); }
.button:disabled { opacity: .6; cursor: progress; }
.form-error { margin-bottom: 12px; color: #A33A2B; font-weight: 600; }

/* The setup chat: his lines on the left in plain ink, yours on the right in a petrol tint. */
/* A fixed-height window: messages fill the top and scroll, the answer box stays at the bottom. */
.chat-main { display: flex; flex-direction: column; min-width: 0; height: min(34rem, 72vh); }
.chat-log { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 18px 18px 8px; scroll-behavior: smooth; }
.chat-log .m { max-width: 86%; padding: 9px 13px 10px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-log .g { align-self: flex-start; background: #fff; border: 1px solid var(--edge); color: var(--ink); border-top-left-radius: 4px; }
.chat-log .u { align-self: flex-end; background: rgba(47, 111, 134, .1); color: var(--petrol-d); border-top-right-radius: 4px; }
.chat-log .m b { color: var(--ink); font-weight: 650; }
.chat-log .u b { color: inherit; }
/* Three dots while he writes, in a row. */
.chat-log .typing { display: inline-flex; gap: 5px; align-items: center; padding: 13px 14px; white-space: normal; }
.chat-log .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .35; animation: dot 1.1s ease-in-out infinite; }
.chat-log .typing i:nth-child(2) { animation-delay: .15s; }
.chat-log .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: .9; transform: translateY(-2px); } }
/* Scrollbars in the site's look (page and chat): a slim petrol pill with no arrows, floating on the
   background. Chromium and Safari draw these; Firefox gets the same colours through the standard properties
   (in Chromium those would replace the pill, so they stay behind @supports). */
html::-webkit-scrollbar, .chat-log::-webkit-scrollbar { width: 12px; height: 12px; }
/* The page bar starts below the sticky top bar; beside the bar its strip stays dark. */
html::-webkit-scrollbar { background: linear-gradient(180deg, var(--stage) 0 56px, var(--paper) 56px); }
html::-webkit-scrollbar-track { background: transparent; margin-top: 56px; }
.chat-log::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb, .chat-log::-webkit-scrollbar-thumb { background: rgba(47, 111, 134, .32); background-clip: padding-box;
  border: 3px solid transparent; border-radius: 12px; min-height: 40px; }
html::-webkit-scrollbar-thumb:hover, .chat-log::-webkit-scrollbar-thumb:hover { background-color: rgba(47, 111, 134, .55); }
html::-webkit-scrollbar-thumb:active, .chat-log::-webkit-scrollbar-thumb:active { background-color: var(--petrol); }
html::-webkit-scrollbar-button, .chat-log::-webkit-scrollbar-button, html::-webkit-scrollbar-corner { display: none; width: 0; height: 0; background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: rgba(47, 111, 134, .45) var(--paper); }
  .chat-log { scrollbar-width: thin; scrollbar-color: rgba(47, 111, 134, .4) transparent; }
}
/* The chat window is wider, with where it's going on the left. */
.steps.is-chat { max-width: 860px; }
.chat-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); }
.chat-map { padding: 18px 16px 16px 18px; border-right: 1px solid rgba(20, 32, 43, .07); background: #F7F6F2; }
.chat-why { margin: 0 0 16px; font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
.chat-why b { color: var(--ink); font-weight: 650; }
/* The roadmap. Each dot sits at the top of its row and a track runs from its bottom to the next dot, so the
   line always meets the circles whatever the labels wrap to. A finished step turns into a small gem (a lit
   petrol stone with a drawn tick and a passing glint) and the track below fills with a glowing bar; the
   current step breathes. The point: you feel each answer move you down. */
.chat-steps { list-style: none; margin: 0; padding: 0; }
.chat-steps li { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 0 0 16px; font-size: .875rem; line-height: 1.35; color: var(--muted); transition: color .4s; }
.chat-steps li:last-child { padding-bottom: 0; }
.chat-steps .lbl { padding-top: 3px; }
.chat-steps li:not(:last-child)::after { content: ""; position: absolute; left: 10.5px; top: 24px; bottom: 0; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #8AD1E2, var(--petrol)) 0 0 / 100% 0 no-repeat, #DADDE0;
  transition: background-size .9s cubic-bezier(.3, .7, .2, 1) .2s, box-shadow .9s .2s; }
.chat-steps .is-done:not(:last-child)::after { background-size: 100% 100%, auto; box-shadow: 0 0 9px rgba(90, 180, 205, .75); }
/* A glint that runs down a filled track now and then. */
.chat-steps .is-done:not(:last-child)::before { content: ""; position: absolute; z-index: 1; left: 10px; top: 24px; width: 4px; height: 16px; border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff, rgba(255, 255, 255, 0)); opacity: 0; animation: glint 3.6s ease-in-out 1.2s infinite; }
@keyframes glint { 0% { top: 24px; opacity: 0; } 10% { opacity: .95; } 40% { top: calc(100% - 16px); opacity: 0; } 100% { top: calc(100% - 16px); opacity: 0; } }
.chat-steps .dot { position: relative; overflow: hidden; flex: none; box-sizing: border-box; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #B9C1C7;
  display: grid; place-items: center; font: 600 12px/1 var(--font-b); color: var(--muted); background: var(--win); }
.chat-steps .is-done { color: var(--ink-2); }
.chat-steps .is-done .dot { border-color: transparent; color: transparent; font-size: 0;
  background: center / 13px 13px no-repeat url("../assets/step-tick.svg"),
    var(--petrol);
  box-shadow: 0 0 0 3px rgba(90, 180, 205, .16), 0 0 10px rgba(90, 180, 205, .45);
  animation: gem .75s cubic-bezier(.3, 1.6, .5, 1) both; }
.chat-steps .is-done .dot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-130%); animation: shine 3.6s ease-in-out .9s infinite; }
@keyframes gem { 0% { transform: scale(.55); filter: brightness(1.6); } 55% { transform: scale(1.18); box-shadow: 0 0 0 9px rgba(138, 209, 226, 0), 0 0 16px rgba(138, 209, 226, .95); } 100% { transform: none; filter: none; } }
@keyframes shine { 0%, 55% { transform: translateX(-130%); } 80%, 100% { transform: translateX(130%); } }
.chat-steps .is-on { color: var(--ink); font-weight: 600; }
.chat-steps .is-on .dot { border-color: var(--petrol); color: var(--petrol); animation: beacon 2.4s ease-out infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(47, 111, 134, .38); } 70%, 100% { box-shadow: 0 0 0 8px rgba(47, 111, 134, 0); } }
/* The colour warms as you go: petrol, teal, gold, orange, and the letter at the end in the site's amber. Each
   step carries its tone (--c, with --hi for the lit side, --deep for the shade, --g for its glow) and the
   track below it blends into the next step's tone. */
.chat-steps li:nth-child(1) { --hi: #9BDCEB; --c: #2F6F86; --deep: #1C4F61; --g: 90, 180, 205; --next: #3A8A8C; }
.chat-steps li:nth-child(2) { --hi: #A4E6DE; --c: #3A8A8C; --deep: #215558; --g: 90, 195, 190; --next: #B98A42; }
.chat-steps li:nth-child(3) { --hi: #FBE2A8; --c: #B98A42; --deep: #745222; --g: 225, 180, 95; --next: #E0892E; }
.chat-steps li:nth-child(4) { --hi: #FFD59A; --c: #E0892E; --deep: #9A5317; --g: 240, 150, 60; --next: #F0A03A; }
.chat-steps li:nth-child(5) { --hi: #FFE6B8; --c: #F0A03A; --deep: #B0631A; --g: 240, 160, 58; }
.chat-steps li:not(:last-child)::after { background: linear-gradient(180deg, var(--c), var(--next)) 0 0 / 100% 0 no-repeat, #DADDE0; }
.chat-steps .is-done:not(:last-child)::after { background-size: 100% 100%, auto; box-shadow: 0 0 9px rgba(var(--g), .75); }
.chat-steps .is-done .dot { background: center / 13px 13px no-repeat url("../assets/step-tick.svg"),
    var(--c);
  box-shadow: 0 0 0 3px rgba(var(--g), .18), 0 0 10px rgba(var(--g), .45); }
.chat-steps .is-on .dot { border-color: var(--c); color: var(--c); animation: beacon 2.4s ease-out infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(var(--g), .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(var(--g), 0); } }
/* The letter: bigger, amber, and breathing from the start, so you want to get there. */
.chat-steps .end { color: #A85E14; font-weight: 600; }
.chat-steps .end .lbl { padding-top: 7px; }
.chat-steps .end .dot { width: 32px; height: 32px; margin-left: -4px; border: 1.5px solid rgba(240, 160, 58, .75); color: transparent; font-size: 0;
  background: center / 17px 17px no-repeat url("../assets/step-letter.svg"), #FFF1DA;
  animation: breathe 2.6s ease-in-out infinite; }
.chat-steps .end.is-done .dot { border-color: transparent;
  background: center / 17px 17px no-repeat url("../assets/step-letter-done.svg"), var(--c);
  animation: gem .75s cubic-bezier(.3, 1.6, .5, 1) both, breathe 2.6s ease-in-out .8s infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(240, 160, 58, .35); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(240, 160, 58, .14), 0 0 18px rgba(240, 160, 58, .65); } }
@media (max-width: 680px) {
  .chat-body { grid-template-columns: 1fr; }
  .chat-map { padding: 10px 14px; border-right: 0; border-bottom: 1px solid rgba(20, 32, 43, .07); }
  .chat-why { margin: 0 0 8px; font-size: .8125rem; }
  .chat-steps { display: flex; gap: 6px; align-items: center; }
  .chat-steps li { padding: 0; align-items: center; }
  .chat-steps li::after, .chat-steps li::before { display: none; }
  .chat-steps .lbl { padding-top: 0; }
  .chat-steps .lbl { display: none; }
  .chat-steps .is-on .lbl { display: inline; }
  .chat-steps .dot { width: 22px; height: 22px; }
  .chat-steps .end .dot { width: 28px; height: 28px; margin-left: 0; }
  .chat-steps .end .lbl { padding-top: 0; }
}
.chat-in { display: flex; gap: 10px; align-items: flex-end; padding: 10px 18px 6px; }
.chat-in[hidden], .chat-foot[hidden] { display: none; }
.chat-in textarea { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(20, 32, 43, .22); background: #fff; color: var(--ink); font: inherit; resize: none; }
.chat-in textarea:focus { outline: 2px solid var(--petrol); outline-offset: 1px; border-color: transparent; }
.chat-error { margin: 6px 18px 0; }
.chat-foot { padding: 6px 18px 14px; color: var(--muted); font-size: .8125rem; }
.chat-foot a { color: var(--muted); }
.chat-alt[hidden] { display: none; }
.chat-alt { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.chat-alt:hover, .chat-foot a:hover { color: var(--ink); }
@media (max-width: 560px) { .chat-log { padding: 14px 14px 6px; } .chat-in { padding: 8px 14px 6px; } .chat-foot, .chat-error { padding-left: 14px; padding-right: 14px; } .chat-error { margin: 6px 0 0; } }

.done { display: flex; align-items: center; gap: 16px; padding: 8px 4px; }
.done[hidden] { display: none; }
.g-done { position: relative; flex: none; width: 88px; }
.done .say { margin-top: 0; }
.done .say::after { left: -7px; top: calc(50% - 7px); transform: rotate(135deg); }

.next { padding: 4px 4px 0; }
.next h2 { font-size: 1.35rem; }
.next ol { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 10px; }
.next li { counter-increment: n; position: relative; padding-left: 2.4rem; color: var(--ink-2); }
.next li::before { content: counter(n); position: absolute; left: 0; top: -.05rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid #9AA6AF; font: 600 .8rem var(--font-b); color: var(--ink); transform: translateY(-1px); }
.next b { color: var(--ink); }
.next li.is-done::before { content: "\2713"; background: var(--petrol); border-color: var(--petrol); color: #fff; }
.perch .win[hidden], .perch-say p[hidden] { display: none; }
/* A finished chat: his note as a notification inside the window, where the answer box was. */
.chat-toast { display: flex; gap: 16px; align-items: center; margin: 10px 18px 4px; padding: 14px 16px; background: #fff; border: 1px solid rgba(20, 32, 43, .12); border-radius: 12px; box-shadow: 0 12px 28px -14px rgba(16, 24, 40, .4); animation: toast .55s cubic-bezier(.2, .8, .2, 1) both; }
.chat-toast[hidden] { display: none; }
.chat-toast .mail-ico { width: 44px; height: 34px; }
.chat-toast .mail-ico::after { left: 12px; top: -5px; width: 19px; height: 19px; }
.chat-toast p { margin: 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.chat-toast b { display: block; color: var(--ink); font-size: 1.0625rem; }
@keyframes toast { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chat-toast { animation: none; } }
@media (max-width: 560px) { .chat-toast { margin: 8px 14px 4px; } }

.foot { display: flex; gap: 18px; align-items: center; justify-content: center; padding: 24px 16px 32px; color: var(--muted); font-size: .875rem; }
.foot a { color: var(--muted); }

@media (max-width: 600px) {
  .arrive { padding: 52px 16px 24px; }
  .sky { top: -30px; width: 1100px; height: 1100px; margin: -550px 0 0 -550px;
    -webkit-mask-image: radial-gradient(closest-side, #000 6%, transparent 25%); mask-image: radial-gradient(closest-side, #000 6%, transparent 25%); }
  .perch { padding-top: 88px; }
  .perch-g { right: 10px; top: 21px; width: 96px; }
  .land, .g-arrive { width: 96px; }
  .land { height: 86px; }
  .perch-say { right: 114px; top: 12px; max-width: calc(100% - 120px); padding: 10px 13px 11px; font-size: .9375rem; }
  .inbox { padding: 16px; }
}

/* Phones, while the chat is on: the chat comes first. A short arrival (no lead, a smaller Guardian with his
   line beside him), and the chat window sized to what's left of the screen, so the whole window shows without
   scrolling the page and only its messages scroll. The steps spread across the window on one track. */
@media (max-width: 680px) {
  main:has(.steps.is-chat) .arrive { padding: 18px 16px 6px; }
  main:has(.steps.is-chat) .kicker, main:has(.steps.is-chat) .lead { display: none; }
  main:has(.steps.is-chat) .arrive h1 { margin-top: 0; font-size: 2rem; }
  .is-chat .perch { padding-top: 74px; }
  .is-chat .perch-g { top: 6px; width: 64px; }
  .is-chat .land, .is-chat .g-arrive { width: 64px; }
  .is-chat .land { height: 57px; }
  .is-chat .perch-say { right: 84px; top: 4px; max-width: calc(100% - 92px); }
  .chat-main { height: max(300px, calc(100vh - 330px)); height: max(300px, calc(100svh - 330px)); }
  .chat-steps { position: relative; justify-content: space-between; }
  .chat-steps::before { content: ""; position: absolute; left: 12px; right: 14px; top: 50%; height: 2px; margin-top: -1px;
    border-radius: 2px; background: rgba(20, 32, 43, .12); }
  .chat-steps li { position: relative; z-index: 1; }
  .chat-steps .is-on .lbl { display: none; }
}

/* His face beside each of his lines, so it's clear at a glance who is talking (his lines on the left, yours on
   the right without one). */
.chat-log .g { position: relative; margin-left: 38px; max-width: calc(86% - 38px); }
.chat-log .g::before { content: ""; position: absolute; left: -38px; top: 2px; width: 30px; height: 30px;
  background: center / contain no-repeat url("../assets/guardian-mark.svg"); }
@media (max-width: 560px) {
  .chat-log .g { margin-left: 32px; max-width: calc(90% - 32px); }
  .chat-log .g::before { left: -32px; width: 26px; height: 26px; }
}

/* A quiet card under his note, in the chat or in the inbox window (the taps about them). */
.phone { margin: 8px 18px 4px; padding: 14px 16px; background: #fff; border: 1px solid rgba(20, 32, 43, .12); border-radius: 12px; animation: toast .55s .35s cubic-bezier(.2, .8, .2, 1) both; }
.phone[hidden], .phone [hidden] { display: none; }
.phone p { margin: 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.phone b { color: var(--ink); }
.phone-row { display: flex; gap: 10px; margin-top: 10px; }
.phone-row input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(20, 32, 43, .22); background: #fff; color: var(--ink); font: inherit; }
.phone-row input:focus { outline: 2px solid var(--petrol); outline-offset: 1px; border-color: transparent; }
.phone .phone-small { margin-top: 6px; color: var(--muted); font-size: .8125rem; }
.phone .form-error { margin-top: 6px; }
[data-thanks-done] .phone { margin: 0 22px 20px; }
.about .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.about .chips label { flex: 0 1 auto; }
.about .chips legend { margin-bottom: 6px; font-size: .875rem; }
.about .chips span { padding: 6px 12px; font-size: .875rem; }
.about-other { display: block; width: 100%; margin-top: 8px; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(20, 32, 43, .22); background: #fff; color: var(--ink); font: inherit; }
.about-other:focus { outline: 2px solid var(--petrol); outline-offset: 1px; border-color: transparent; }
.about [data-about-done] { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }
@media (max-width: 560px) { .phone { margin: 8px 14px 4px; } [data-thanks-done] .phone { margin: 0 14px 16px; } }
