:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --ink: #0f1b17;
  --muted: #50605a;
  --line: #dce3df;
  --brand: #0e3b2e;
  --brand-2: #17513f;
  --accent: #17704a;
  --hi: #e8f26b;
  --warn-bg: #fdf1dc;
  --warn-ink: #7a4a09;
  --display: "Space Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: #d9ded9;
  color: var(--ink);
  font: 16px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:active { transform: scale(0.98); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.6); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes roll { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@keyframes land { from { background: var(--hi); color: var(--ink); } to { background: var(--brand-2); color: #fff; } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.35; } 30% { transform: translateY(-7px); opacity: 1; } }
@keyframes halo { from { transform: scale(0.7); opacity: 0.7; } to { transform: scale(1.5); opacity: 0; } }
@keyframes bar { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes sheet { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg);
  transition: background 0.35s;
  overflow: hidden;
}
.app[data-view="chat"], .app:not([data-view]) { background: var(--hi); }
@media (min-width: 560px) { .app { box-shadow: 0 0 40px rgb(0 0 0 / 0.14); } }

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 20px 8px;
}
.topbar h1 { margin: 0; font: 700 17px var(--display); letter-spacing: -0.01em; }
.progress { flex: 1; height: 6px; border-radius: 3px; background: rgb(15 27 23 / 0.14); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--ink); transition: width 0.7s var(--ease); }
.status { margin: 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ghost { background: transparent; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }

main { flex: 1; min-height: 0; display: flex; }
.view { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }

/* Conversation */
.chat { padding: 6px 20px 14px; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; margin: 0 -20px; padding: 14px 20px 14px; scrollbar-width: none; }

.deal {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 24px;
  padding: 16px 18px;
  box-shadow: 0 14px 28px rgb(14 59 46 / 0.28);
  animation: sheet 0.5s var(--ease);
}
.deal-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: #c9d8d1; }
.deal-top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-badge { flex: none; background: var(--hi); color: var(--ink); font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.deal-price { overflow: hidden; height: 50px; }
.deal-amount { font: 700 44px/50px var(--display); letter-spacing: -0.02em; }
.deal-amount.empty { color: #6f9486; }
.deal-amount.changed { animation: roll 0.7s var(--ease); }
.deal-where { font-size: 15px; line-height: 1.35; }
.deal-where .changed { animation: rise 0.5s var(--ease); }
.deal-place { color: #c9d8d1; min-height: 1.35em; }
.deal-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--brand-2); border-radius: 14px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile.changed { animation: land 1.1s ease-out; }
.tile.waiting { background: transparent; border: 1.5px dashed #6f9486; padding: 7.5px 9.5px; gap: 7px; }
.tile-label { font-size: 12px; opacity: 0.85; }
.tile-value { font: 600 16px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shimmer { height: 13px; margin-bottom: 4px; border-radius: 7px; background: linear-gradient(90deg, #17513f 30%, #3f7d69 50%, #17513f 70%) 0 0 / 220% 100%; animation: shimmer 1.6s linear infinite; }

.turn { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: flex-end; }
.chat-scroll.measuring * { animation: none !important; }
.turn.no-ack .ack { display: none; }
.turn.tight .q { font-size: clamp(24px, 7.4vw, 30px); }
.turn.tight .qhelp { font-size: 14px; }
.turn.tight .choices, .turn.tight .pills { margin-top: 10px; gap: 7px; }
.turn.tight .choice { padding: 11px 14px; font-size: 16px; border-radius: 15px; }
.turn.tight .pill { padding: 8px 13px; font-size: 14px; }
.turn.tight .skip { margin-top: 4px; }
.deal.compact { gap: 6px; padding: 12px 16px; border-radius: 20px; }
.deal.compact .deal-top, .deal.compact .deal-tiles, .deal.compact .deal-place { display: none; }
.deal.compact .deal-price { height: 34px; }
.deal.compact .deal-amount { font-size: 30px; line-height: 34px; }
.ack { margin-bottom: 14px; }
.ack p { margin: 0 0 8px; font-size: 16px; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--ink); color: #fff; border-radius: 9px; padding: 4px 9px; font-size: 13px; }
.chip b { font-weight: 500; color: #c9d8d1; }
.q { margin: 0 0 6px; font: 700 clamp(30px, 9.6vw, 42px)/1.05 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.qhelp { margin: 0 0 4px; font-size: 16px; line-height: 1.4; }
.choices { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.choice {
  text-align: left; padding: 15px 18px; border-radius: 18px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font: 600 19px var(--display);
}
.choice.outline { background: transparent; color: var(--ink); }
.choice.outline:active { background: var(--ink); color: #fff; }
.choices.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.two .choice { padding: 14px; font-size: 17px; text-align: center; }
.skip { align-self: flex-start; margin-top: 10px; padding: 8px 0; color: var(--ink); }
.filling { position: relative; width: 84px; height: 84px; margin: 30px 16px 44px; display: grid; place-items: center; animation: pop 0.35s ease-out; }
.blob { position: absolute; inset: 0; background: var(--ink); animation: blob-turn 3.2s ease-in-out infinite; box-shadow: 0 10px 22px rgb(15 27 23 / 0.25); }
.blob-bars { position: relative; display: flex; align-items: center; gap: 5px; height: 34px; }
.blob-bars i { width: 5px; height: 100%; border-radius: 3px; background: var(--hi); animation: bar-calm 1.8s ease-in-out infinite; }
.blob-arc { position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px); color: var(--ink); animation: orbit 1.6s linear infinite; }
@keyframes bar-calm { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(0.8); } }
.blob-bars i:nth-child(2) { animation-delay: 0.2s; }
.blob-bars i:nth-child(3) { animation-delay: 0.4s; }
.blob-bars i:nth-child(4) { animation-delay: 0.6s; }
.blob-bars i:nth-child(5) { animation-delay: 0.8s; }
@keyframes blob-turn {
  0%, 100% { border-radius: 50%; transform: scale(1) rotate(0deg); }
  33% { border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%; transform: scale(1.08) rotate(40deg); }
  66% { border-radius: 42% 58% 46% 54% / 58% 42% 56% 44%; transform: scale(0.95) rotate(90deg); }
}
.sheet .filling, .onboard .filling { width: 64px; height: 64px; margin: 18px 14px 22px; }
.sheet .blob-bars { height: 26px; gap: 4px; }
.sheet .blob-bars i { width: 4px; }

.turn.fresh .ack { animation: rise 0.45s var(--ease) backwards; }
.turn.fresh .chip { animation: pop 0.4s ease-out backwards; }
.turn.fresh .chip:nth-child(2) { animation-delay: 0.08s; }
.turn.fresh .chip:nth-child(3) { animation-delay: 0.16s; }
.turn.fresh .chip:nth-child(n + 4) { animation-delay: 0.24s; }
.turn.fresh .q { animation: rise 0.6s 0.1s var(--ease) backwards; }
.turn.fresh .qhelp { animation: rise 0.6s 0.2s var(--ease) backwards; }
.turn.fresh .choice, .turn.fresh .pills, .turn.fresh .skip { animation: rise 0.5s 0.3s var(--ease) backwards; }
.turn.fresh .choice:nth-child(2) { animation-delay: 0.38s; }
.turn.fresh .choice:nth-child(3) { animation-delay: 0.46s; }
.turn.fresh .choice:nth-child(4) { animation-delay: 0.54s; }

.composer { flex: none; display: flex; align-items: center; gap: 10px; border-top: 2px solid var(--ink); padding-top: 12px; }
.composer input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; font-size: 17px; outline: none; }
.composer input::placeholder { color: rgb(15 27 23 / 0.62); }
.icon { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; display: grid; place-items: center; }
.icon.primary { background: var(--ink); color: var(--hi); }
.icon:disabled { opacity: 0.45; }
.talk { flex: none; height: 48px; padding: 0 18px 0 13px; border: 0; border-radius: 24px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 8px; font: 700 16px var(--display); transition: transform 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); }
.talk:active { transform: scale(0.92); transition-duration: 0.08s; }
.talk svg { color: var(--hi); animation: mic-nudge 1.4s ease-in-out infinite; }
@keyframes mic-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { padding: 10px 16px; border-radius: 999px; background: transparent; border: 1.5px solid var(--ink); font-weight: 600; font-size: 15px; }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pill.more { border-style: dashed; }
.textlink { background: none; border: 0; padding: 4px 0; color: var(--brand); font-weight: 600; font-size: 14px; text-decoration: underline; white-space: nowrap; }

/* Voice */
.voice {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
  background: #08130f; color: #f2f6f4; padding: calc(18px + env(safe-area-inset-top)) 0 calc(18px + env(safe-area-inset-bottom));
  animation: sheet 0.35s var(--ease);
}
.voice-top { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.voice-top h2 { margin: 0; font: 700 20px var(--display); }
.voice-ghost { border: 1px solid #3a4d45; background: transparent; color: #f2f6f4; border-radius: 999px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.orb-wrap { position: relative; flex: none; height: min(230px, 30dvh); display: grid; place-items: center; }
.orb { position: relative; width: 132px; height: 132px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.orb-blob { position: absolute; inset: 0; background: var(--hi); animation: blob-turn 3.2s ease-in-out infinite; }
.orb i { position: relative; width: 7px; height: 58px; border-radius: 4px; background: #08130f; animation: bar 0.9s ease-in-out infinite; }
.orb i:nth-of-type(2) { animation-delay: 0.15s; }
.orb i:nth-of-type(3) { animation-delay: 0.3s; }
.orb i:nth-of-type(4) { animation-delay: 0.45s; }
.orb i:nth-of-type(5) { animation-delay: 0.6s; }
.voice.paused .orb-blob, .voice.paused .orb i { animation-play-state: paused; }
.voice.paused .orb-blob { background: #5e7a6e; }
.voice-text { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 0 24px; font: 500 24px/1.3 var(--display); color: #8fa59c; display: flex; flex-direction: column-reverse; }
.voice-text span { display: inline; }
.voice-text { display: block; }
#voice-live { color: #f2f6f4; }
.heard { margin: 12px 12px 0; background: #12241d; border-radius: 22px; padding: 14px 16px; }
.heard-head { display: flex; justify-content: space-between; font-size: 13px; color: #a9bcb4; margin-bottom: 10px; }
.heard-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.heard-chip { background: var(--hi); color: #08130f; border-radius: 10px; padding: 6px 11px; font-size: 14px; font-weight: 600; animation: pop 0.4s ease-out; }
.heard-hint { margin: 10px 0 0; font-size: 15px; line-height: 1.4; }
.voice-actions { display: flex; gap: 10px; padding: 14px 12px 0; }
.voice-actions .voice-ghost { flex: 1; border-radius: 16px; padding: 15px; font-size: 16px; }
.voice-done { flex: 2; border: 0; border-radius: 16px; padding: 15px; background: #f2f6f4; color: #08130f; font-weight: 700; font-size: 16px; }

/* Details, stage 1: a few big questions */
.app[data-stage="intro"] { background: var(--hi); }
.wizard { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.intro { padding: 4px 20px 16px; }
.intro-top { display: flex; align-items: center; gap: 12px; }
.intro-top .textlink { color: var(--ink); font-size: 15px; }
.intro-body { flex: 1; padding-top: 34px; animation: rise 0.5s var(--ease); }
.intro-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.intro-input {
  width: 100%; margin-top: 22px; padding: 6px 0 10px; background: transparent; border: 0; border-bottom: 3px solid var(--ink);
  border-radius: 0; outline: none; font: 700 clamp(26px, 8vw, 34px) var(--display); letter-spacing: -0.01em;
}
.intro-input::placeholder { color: rgb(15 27 23 / 0.38); }
.intro-foot .choice { width: 100%; text-align: center; }

/* Details, stage 2: the interactive board */
.app[data-stage="board"] { background: var(--ink); color: #fff; }
.app[data-stage="board"] .progress { background: rgb(255 255 255 / 0.18); }
.app[data-stage="board"] .progress i { background: var(--hi); }
.app[data-stage="board"] .ghost { border-color: #fff; }
.board-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 14px 16px; scrollbar-width: none; }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile2 { min-width: 0; background: var(--brand-2); border: 2px solid transparent; border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.tile2.wide { grid-column: span 2; }
.tile2.open { background: transparent; border: 2px dashed #4f7567; }
.tile2.need { background: transparent; border: 2px solid var(--hi); }
.tile2-label { font-size: 13px; color: #c9d8d1; }
.sub-label { font-size: 13px; color: #c9d8d1; margin-top: 4px; }
.tile2.hero { background: var(--hi); color: var(--ink); border-color: var(--hi); animation: sheet 0.45s var(--ease); }
.tile2.light { background: #fff; color: var(--ink); border-color: #fff; }
.tile2.hero .tile2-label, .tile2.light .tile2-label, .tile2.light .sub-label { color: var(--ink); font-weight: 600; }

.sec-head { display: flex; align-items: center; gap: 10px; padding: 22px 6px 10px; }
.sec-head svg { width: 26px; height: 26px; flex: none; }
.ring-bg { fill: none; stroke: #2a4037; stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--hi); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 0.5s var(--ease); }
.sec-title { flex: 1; font: 700 19px var(--display); }
.sec-count { font-size: 13px; color: #c9d8d1; }

.wheel-wrap { position: relative; margin: 2px -14px 4px; }
.wheel { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; height: 62px; padding: 0 50%; outline: none; cursor: grab; touch-action: pan-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.wheel::-webkit-scrollbar { display: none; }
.wheel-track { position: relative; height: 100%;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 250px) 0 0 / auto 30px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 50px) 0 0 / auto 20px no-repeat,
    repeating-linear-gradient(90deg, rgb(15 27 23 / 0.45) 0 1.5px, transparent 1.5px 10px) 0 0 / auto 12px no-repeat; }
.wheel-label { position: absolute; top: 36px; transform: translateX(-50%); font: 600 13px var(--display); white-space: nowrap; }
.wheel-needle { position: absolute; left: 50%; top: -3px; width: 4px; height: 40px; margin-left: -1px; border-radius: 2px; background: var(--ink); pointer-events: none; transition: transform 0.25s var(--ease); }
.wheel-needle::before { content: ""; position: absolute; left: 50%; top: -5px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--ink); }
.wheel-wrap.turning .wheel-needle { transform: scaleY(1.18); }
.wheel:focus-visible { box-shadow: inset 0 -3px 0 var(--ink); }
.tile2.hero .box.big { transition: letter-spacing 0.2s; }
.hero-who { display: flex; flex-direction: column; gap: 1px; text-align: left; background: none; border: 0; padding: 0; font-size: 15px; color: var(--ink); }
.hero-who span:first-child { font-weight: 600; }
.hero-edit { font-size: 13px; text-decoration: underline; margin-top: 4px; }

.box { width: 100%; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #4f7567; background: rgb(0 0 0 / 0.18); color: inherit; outline: none; font-size: 16px; }
.box::placeholder { color: #8fa59c; }
.box:focus { border-color: var(--hi); }
.box.bad { border-color: #ff9d8a; }
textarea.box { min-height: 84px; resize: vertical; }
input[type="date"].box { color-scheme: dark; }
.tile2.light .box { background: var(--bg); border-color: var(--line); }
.tile2.light .box::placeholder { color: var(--muted); }
.tile2.light .box:focus { border-color: var(--brand); }
.box.big { flex: 1; padding: 0; border: 0; border-radius: 0; background: transparent; font: 700 clamp(36px, 11.5vw, 50px)/1.05 var(--display); letter-spacing: -0.03em; }
.box.big::placeholder { color: rgb(15 27 23 / 0.38); }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg.stack { flex-direction: column; }
.seg button { flex: 1 1 auto; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #4f7567; background: transparent; color: #fff; font-weight: 600; font-size: 14px; transition: background 0.18s, color 0.18s, border-color 0.18s; }
.seg.stack button { text-align: left; font-size: 15px; }
.seg button[aria-pressed="true"] { background: var(--hi); border-color: var(--hi); color: var(--ink); }

.switch { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; width: 100%; height: 100%; min-height: 86px; text-align: left; background: none; border: 0; padding: 0; color: #fff; font-weight: 600; font-size: 15px; }
.switch-track { position: relative; width: 56px; height: 32px; border-radius: 16px; background: #2a4037; transition: background 0.2s; }
.switch-track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease); }
.switch[aria-checked="true"] .switch-track { background: var(--hi); }
.switch[aria-checked="true"] .switch-track::after { transform: translateX(24px); background: var(--ink); }

.slide-value { font: 700 28px/1.1 var(--display); letter-spacing: -0.01em; }
.tile2:not(.wide) .slide-value { font-size: 22px; }
.slide-value.unset { color: #8fa59c; font-size: 20px; }
.slide-note { font-size: 13px; color: #c9d8d1; min-height: 18px; }
.slide input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 6px 0 0; background: transparent; --fill: 0%; }
.slide input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--hi) var(--fill), #2a4037 var(--fill)); }
.slide input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--hi) var(--fill), #2a4037 var(--fill)); }
.slide input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--hi); box-shadow: 0 2px 8px rgb(0 0 0 / 0.4); }
.slide input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--hi); }

.board .pills { margin-top: 0; }
.board .pill { border-color: var(--line); background: #fff; font-size: 14px; padding: 9px 13px; }
.board .pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.board .pill.more { color: var(--muted); }

.board-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 14px 12px; padding: 10px 10px 10px 18px; border-radius: 18px; background: #1d2e27; font-size: 15px; }
.board-bar button { border: 0; border-radius: 12px; padding: 11px 16px; background: var(--hi); color: var(--ink); font-weight: 700; font-size: 15px; }

/* Contract */
.contract-scroll { flex: 1; overflow-y: auto; padding: 6px 16px 14px; scrollbar-width: none; }
.ready { background: var(--ink); color: #fff; border-radius: 26px; padding: 18px; margin-bottom: 12px; animation: sheet 0.45s var(--ease); }
.ready-top { display: flex; align-items: center; gap: 16px; }
.ready-dial { position: relative; flex: none; width: 118px; height: 118px; }
.ready-dial svg { width: 100%; height: 100%; }
.ready-bg { fill: none; stroke: #1d2e27; stroke-width: 12; }
.ready-fg { fill: none; stroke: var(--hi); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 0.8s var(--ease); }
.ready-number { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ready-number strong { font: 700 32px/1 var(--display); letter-spacing: -0.02em; }
.ready-number span { font-size: 13px; color: #c9d8d1; }
.ready-rows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ready-line { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.ready-line span:first-child { font-weight: 600; }
.ready-line span:last-child { color: #c9d8d1; white-space: nowrap; }
.ready-bar { height: 6px; margin-top: 5px; border-radius: 3px; background: #1d2e27; overflow: hidden; }
.ready-bar i { display: block; height: 100%; border-radius: 3px; background: var(--hi); transition: width 0.6s var(--ease); }
.ready-form { margin: 14px 0 0; font-size: 13px; line-height: 1.4; color: #c9d8d1; }

.na { background: var(--hi); border-radius: 26px; padding: 18px; margin-bottom: 12px; }
.na-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.na-head h3 { margin: 0; font: 700 23px/1.1 var(--display); letter-spacing: -0.01em; }
.switch-track.big { flex: none; width: 70px; height: 40px; border-radius: 20px; border: 0; padding: 0; background: rgb(15 27 23 / 0.3); }
.switch-track.big::after { width: 32px; height: 32px; }
.switch-track.big[aria-checked="true"] { background: var(--ink); }
.switch-track.big[aria-checked="true"]::after { transform: translateX(30px); background: var(--hi); }
.na-help { margin: 8px 0 12px; font-size: 15px; }
.na-sample { background: #fff; border-radius: 8px; padding: 12px 14px; font: 13px/2.1 Georgia, "Times New Roman", serif; box-shadow: 0 6px 16px rgb(15 27 23 / 0.12); }
.na-blank { display: inline-block; min-width: 64px; vertical-align: baseline; border-bottom: 1px solid var(--ink); text-align: center; line-height: 1.35; }
.na-blank:empty::before { content: "\00a0"; }
.na-blank b { display: inline-block; background: var(--hi); border-radius: 3px; padding: 0 6px; font: 600 12px/1.5 Inter, system-ui, sans-serif; }
.na-sample.fresh .na-blank b { animation: pop 0.45s ease-out backwards; }
.na-sample.fresh div:nth-child(2) .na-blank b { animation-delay: 0.1s; }
.na-sample.fresh div:nth-child(3) .na-blank b { animation-delay: 0.2s; }
.na-sample em { font: 12px Inter, system-ui, sans-serif; color: var(--muted); }
.na .textlink { color: var(--ink); margin-top: 10px; font-size: 15px; }
.na-list { margin-top: 8px; background: rgb(255 255 255 / 0.55); border-radius: 14px; padding: 4px 14px 12px; animation: rise 0.35s var(--ease); }
.na-list h4 { margin: 12px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.na-list ul { margin: 0; padding-left: 18px; }
.na-list li { font-size: 14px; margin-bottom: 2px; }
.na-note { margin: 12px 0 0; font-size: 13px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; margin-bottom: 12px; }
.card h3 { font: 700 18px var(--display); margin: 0 0 8px; }
.card p { margin: 0; font-size: 15px; }
.card.warn { background: var(--warn-bg); border-color: transparent; color: var(--warn-ink); }
.card.warn .textlink { color: var(--warn-ink); margin-top: 8px; font-size: 15px; }
.card.quiet { color: var(--muted); }
.card.quiet p { font-size: 14px; }
.todo { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.todo input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); }
.todo.done span { color: var(--muted); text-decoration: line-through; }

.send { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--line); }
.act {
  position: relative; overflow: hidden; isolation: isolate; height: 48px; border: 0; border-radius: 16px; padding: 0 8px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font: 700 14px var(--display); letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.45s cubic-bezier(0.2, 1.6, 0.4, 1), box-shadow 0.3s;
  animation: rise 0.55s var(--ease) backwards;
}
.act:nth-child(2) { animation-delay: 0.07s; }
.act:nth-child(3) { animation-delay: 0.14s; }
.act:active { transform: scale(0.9); transition-duration: 0.08s; }
.act svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
/* a soft light that sweeps across each button in turn */
.act::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.55) 50%, transparent 65%) no-repeat -160% 0 / 70% 100%; animation: sweep 4.5s ease-in-out infinite; }
.act:nth-child(2)::after { animation-delay: 0.5s; }
.act:nth-child(3)::after { animation-delay: 1s; }
@keyframes sweep { 0%, 55% { background-position: -160% 0; } 85%, 100% { background-position: 360% 0; } }

.act-preview { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.eye-pupil { fill: currentColor; stroke: none; animation: look 4s ease-in-out infinite; }
.eye-lid { transform-origin: 24px 24px; animation: blink 4s ease-in-out infinite; }
@keyframes look { 0%, 20%, 100% { transform: translateX(0); } 30%, 45% { transform: translateX(-5px); } 55%, 70% { transform: translateX(5px); } 80% { transform: translateX(0); } }
@keyframes blink { 0%, 86%, 100% { transform: scaleY(1); } 92% { transform: scaleY(0.1); } }

.act-download { background: var(--hi); color: var(--ink); box-shadow: 0 4px 10px rgb(190 205 60 / 0.5); }
.dl-arrow { animation: drop 1.8s cubic-bezier(0.5, 0, 0.3, 1) infinite; }
@keyframes drop { 0% { transform: translateY(-9px); opacity: 0; } 30%, 70% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(7px); opacity: 0; } }
.dl-check { stroke-dasharray: 36; stroke-dashoffset: 36; }
.act-download.busy .dl-arrow { animation-duration: 0.5s; }
.act-download.done .dl-arrow { animation: none; opacity: 0; }
.act-download.done .dl-check { animation: draw 0.45s 0.05s ease-out forwards; }
.act-download.done .dl-tray { opacity: 0; transition: opacity 0.2s; }
.act-download.done { animation: thump 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes thump { 0% { transform: scale(0.9); } 60% { transform: scale(1.07); } 100% { transform: none; } }

.act-sign { background: var(--ink); color: #fff; }
.act-sign svg { color: var(--hi); }
/* a ring of light that travels round the DocuSign button */
.act-sign::before { content: ""; position: absolute; inset: -60%; z-index: -2; background: conic-gradient(from 0deg, transparent 0 70%, var(--hi) 85%, transparent 100%); animation: orbit 3.2s linear infinite; }
.act-sign::after { inset: 2px; border-radius: 14px; background: var(--ink); animation: none; }
@keyframes orbit { to { transform: rotate(1turn); } }
.sign-line { stroke-dasharray: 60; animation: scribble 3s ease-in-out infinite; }
.sign-pen { fill: currentColor; stroke: none; animation: penmove 3s ease-in-out infinite; }
@keyframes scribble { 0% { stroke-dashoffset: 60; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 60; opacity: 0; } }
@keyframes penmove { 0% { transform: translate(-20px, 4px); } 55%, 85% { transform: translate(0, 0); } 100% { transform: translate(-20px, 4px); } }

/* DocuSign send sheet */
.sheet-dim { position: absolute; inset: 0; z-index: 3; background: rgb(15 27 23 / 0.5); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; max-height: 88%; overflow-y: auto; background: var(--hi); color: var(--ink);
  border-radius: 30px 30px 0 0; padding: 18px 22px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; animation: sheet 0.4s var(--ease); }
.sheet .q { font-size: clamp(28px, 8.4vw, 36px); margin: 0; }
.sheet .qhelp { margin: 0 0 6px; }
.sheet .choice { text-align: center; margin-top: 6px; }
.sheet-close { align-self: flex-end; color: var(--ink); font-size: 15px; }
.sheet-small { margin: 0; font-size: 13px; line-height: 1.45; }
.sheet-small .textlink { color: var(--ink); font-size: 13px; }
.sheet > .textlink { align-self: flex-start; color: var(--ink); font-size: 15px; }
.sheet-list { margin: 0; padding-left: 20px; font-size: 15px; }
.sheet-list li { margin-bottom: 6px; }
.sheet-list.quiet { font-size: 13px; }
.sheet-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; }
.signer { display: flex; flex-direction: column; gap: 6px; }
.sheet-input { width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--ink); background: rgb(255 255 255 / 0.6); outline: none; font-size: 16px; }
.sheet-input:focus { background: #fff; }

.disc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid #2f5a4b; font-size: 14px; }
.disc-row .seg { flex: none; flex-wrap: nowrap; }
.disc-row .seg button { padding: 8px 10px; font-size: 13px; }

.ask { background: rgb(255 255 255 / 0.55); border: 2px solid var(--ink); border-radius: 18px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; animation: rise 0.35s var(--ease) backwards; }
.ask-title { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.35; }
.ask .pills { margin: 0; gap: 6px; }
.ask .pills.stack { flex-direction: column; align-items: stretch; }
.ask .pills.stack .pill { text-align: left; border-radius: 14px; }
.ask .pill { background: transparent; border-color: var(--ink); font-size: 14px; padding: 9px 14px; }
.ask .pill[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ask-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid rgb(15 27 23 / 0.2); font-size: 14px; }
.ask-row .pills { flex: none; flex-wrap: nowrap; }
.ask-type { display: flex; gap: 8px; align-items: flex-start; }
.ask-type .sheet-input { padding: 9px 12px; border-width: 1.5px; }
.ask-type .sheet-input.bad { border-color: #b3261e; }
.ask-type textarea.sheet-input { min-height: 84px; }
.ask-type .pill { flex: none; background: var(--ink); color: #fff; }

/* Setup, forms and onboarding */
.gear { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; display: grid; place-items: center; }
.app[data-stage="board"] .gear { color: #fff; }
.setup-head { margin: 14px 0 0; font: 700 17px var(--display); }
.sheet > .setup-delete { margin-top: 22px; }
.picker { display: flex; flex-direction: column; gap: 8px; }
.picker-row { display: flex; align-items: center; gap: 10px; border: 2px solid rgb(15 27 23 / 0.25); border-radius: 16px; padding: 4px 12px 4px 4px; background: rgb(255 255 255 / 0.4); }
.picker-row.on { border-color: var(--ink); background: #fff; }
.picker-use { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; text-align: left; background: none; border: 0; padding: 9px 10px; }
.picker-use strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-use span { font-size: 13px; }
.picker-row.on .picker-use span::after { content: " · In use"; font-weight: 600; }
.picker-row .textlink { color: var(--ink); font-size: 13px; }
.picker-upload { display: block; text-align: center; cursor: pointer; }
.picker-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.picker-upload:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.picker-new { display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--ink); border-radius: 18px; padding: 14px; background: rgb(255 255 255 / 0.5); }
.picker-new .textlink { align-self: flex-start; color: var(--ink); }
.picker-new .choice { text-align: center; }

.onboard { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; background: var(--hi); color: var(--ink); padding: calc(18px + env(safe-area-inset-top)) 22px calc(20px + env(safe-area-inset-bottom)); animation: sheet 0.4s var(--ease); }
.onboard-top { display: flex; align-items: center; justify-content: space-between; }
.onboard-top .textlink { color: var(--ink); font-size: 15px; }
.onboard-dots { display: flex; gap: 6px; }
.onboard-dots i { width: 8px; height: 8px; border-radius: 4px; background: rgb(15 27 23 / 0.25); transition: width 0.3s var(--ease), background 0.3s; }
.onboard-dots i.on { width: 26px; background: var(--ink); }
.onboard-dots i.past { background: var(--ink); }
.onboard-body { flex: 1; min-height: 0; overflow-y: auto; padding-top: 30px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.onboard-body > * { animation: rise 0.5s var(--ease) backwards; }
.onboard-body > :nth-child(2) { animation-delay: 0.06s; }
.onboard-body > :nth-child(3) { animation-delay: 0.12s; }
.onboard-body > :nth-child(n + 4) { animation-delay: 0.18s; }
.onboard-body .q, .onboard-body .intro-kicker, .onboard-body .qhelp { margin: 0; }
.q.huge { font-size: clamp(36px, 11vw, 48px); line-height: 1.02; }
.onboard-points { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.onboard-points li { padding: 14px 16px; border-radius: 16px; background: var(--ink); color: #fff; font: 600 16px var(--display); }
.onboard-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.onboard-foot .choice { width: 100%; text-align: center; }

.form-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 6px 10px; font-size: 14px; }
.form-bar span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-form .choice { width: 100%; text-align: center; margin-top: 6px; }
.pick-form h3 { margin: 0; font: 700 26px/1.1 var(--display); letter-spacing: -0.01em; }
.ready-title { margin: 0; font: 700 26px/1.1 var(--display); }
.plain-todo { padding: 8px 0; border-top: 1px solid var(--line); }

/* Tabs */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { background: none; border: 0; padding: 12px 4px; font-weight: 600; color: var(--muted); border-top: 3px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--brand); border-top-color: var(--brand); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; background: var(--brand); color: #fff; border-radius: 999px; font-size: 12px; line-height: 20px; }

/* Short phones: a tighter deal card so the question and its answers stay on screen */
@media (max-height: 720px) {
  .deal { gap: 8px; padding: 14px 16px; border-radius: 20px; }
  .deal-top { display: none; }
  .deal-amount { font-size: 34px; line-height: 38px; }
  .deal-price { height: 38px; }
  .deal-place { display: none; }
  .tile { padding: 7px 10px; }
  .tile.waiting { padding: 5.5px 8.5px; }
  .q { font-size: clamp(28px, 8.6vw, 36px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Contracts list */
.list-btn { position: relative; }
.list-count { position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--hi); font: 700 11px/18px Inter, sans-serif; text-align: center; }
.app[data-stage="board"] .list-count { background: var(--hi); color: var(--ink); }
.contracts { z-index: 5; padding-left: 18px; padding-right: 18px; }
.contracts-sync { font-size: 13px; font-weight: 600; min-height: 20px; }
.contracts-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 14px; }
.contracts-head .q { margin: 0; font-size: 34px; line-height: 1; }
.contracts-head .choice { flex: none; padding: 10px 16px; font-size: 15px; }
.contracts-filters { display: flex; gap: 6px; margin: 16px -18px 0; padding: 0 18px 2px; overflow-x: auto; scrollbar-width: none; }
.filter { flex: none; border: 1.5px solid rgb(15 27 23 / 0.35); background: transparent; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.filter.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.contracts-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 0 6px; scrollbar-width: none; }
.contracts-note { margin: 0; padding: 12px 14px; border-radius: 16px; background: rgb(15 27 23 / 0.08); font-size: 14px; }
.contracts-note p { margin: 0 0 4px; }
.contracts-note .textlink { color: var(--ink); }
.contracts-empty { margin: 30px 0; text-align: center; font-weight: 600; opacity: 0.7; }
.contract-card { background: #fff; border-radius: 20px; border: 2px solid transparent; animation: rise 0.4s var(--ease) backwards; }
.contract-card.current { border-color: var(--ink); }
.contract-open { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 14px 16px 8px; }
.contract-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.contract-line strong { font: 700 17px/1.2 var(--display); min-width: 0; overflow-wrap: anywhere; }
.contract-sub { margin: 3px 0 0; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #e7ebe8; color: var(--ink); }
.stat.wait { background: var(--warn-bg); color: var(--warn-ink); }
.stat.done { background: var(--brand); color: #fff; }
.stat.bad { background: #fbe3e0; color: #8a1f14; }
.contract-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 16px 10px; font-size: 13px; color: var(--muted); }
.contract-foot .textlink { font-size: 13px; color: var(--muted); padding: 2px 0; }
.sgns { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sgn { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sgn i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #b9c4be; }
.sgn.viewed i { border-color: var(--warn-ink); }
.sgn.signed i { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6'/%3E%3C/svg%3E") center / 12px no-repeat; }
.sgn.declined i { border-color: #8a1f14; background: #8a1f14; }
.sgn-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgn-state { flex: none; color: var(--muted); }
.sgn.signed .sgn-state { color: var(--accent); font-weight: 600; }

/* Signing status on the Contract tab */
.signing { background: #fff; border-radius: 26px; padding: 18px; margin-bottom: 12px; border: 2px solid var(--warn-ink); }
.signing.done { border-color: var(--accent); }
.signing.bad { border-color: #8a1f14; }
.signing-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.signing-head h3 { margin: 0; font: 700 22px/1.1 var(--display); }
.signing-when { font-size: 13px; color: var(--muted); }
.signing-actions { margin-top: 14px; }
.signing-actions:empty { display: none; }
.signing-actions .choice { display: block; width: 100%; text-align: center; text-decoration: none; }
.signing-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* Counter offers */
.contract-tools { display: flex; gap: 14px; }
.contract-foot .textlink.strong { color: var(--ink); }
.signing-actions { display: flex; flex-direction: column; gap: 8px; }
.counter { background: #fff; border-radius: 26px; padding: 18px; margin-bottom: 12px; border: 2px solid var(--ink); }
.counter h3 { margin: 0; font: 700 22px/1.1 var(--display); }
.counter .signing-note { margin-top: 4px; }
.counter-list { list-style: none; margin: 12px 0 0; padding: 0; }
.counter-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.counter-label { font-weight: 600; flex: none; max-width: 45%; }
.counter-values { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.counter-values s { color: var(--muted); margin-right: 8px; }
.counter-values b { display: inline-block; background: var(--hi); padding: 1px 6px; border-radius: 6px; }

/* Voiding an earlier contract */
.void-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: 12px 0 4px; padding: 12px 14px; border-radius: 16px; border: 2px solid rgb(15 27 23 / 0.3); background: rgb(255 255 255 / 0.45); }
.void-row[aria-checked="true"] { border-color: var(--ink); background: #fff; }
.void-words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.void-words strong { font: 700 16px var(--display); }
.void-row .switch-track { flex: none; }
.void-link { align-self: center; color: #8a1f14; font-size: 14px; }
.void-row .switch-track { background: rgb(15 27 23 / 0.3); }
.void-row[aria-checked="true"] .switch-track { background: var(--ink); }
.void-row[aria-checked="true"] .switch-track::after { transform: translateX(24px); background: var(--hi); }

/* Choosing how to add more details */
.ways { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.way { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px; border-radius: 20px; border: 2px solid var(--ink); background: transparent; transition: background 0.2s, color 0.2s; }
.way:first-child { background: var(--ink); color: #fff; }
.way-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--hi); color: var(--ink); }
.way:not(:first-child) .way-icon { background: var(--ink); color: var(--hi); }
.way-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.35; }
.way-words strong { font: 700 19px var(--display); }
.guided-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; }

/* Typing straight into the optional blanks */
.na-how { margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.blank-row { display: flex; flex-direction: column; gap: 3px; padding: 7px 0; }
.blank-label { font-size: 13px; color: var(--muted); }
.blank-input { width: 100%; border: 0; border-bottom: 2px solid rgb(15 27 23 / 0.35); border-radius: 0; background: transparent; padding: 4px 2px; font: 600 16px Inter, system-ui, sans-serif; color: var(--ink); }
.blank-input::placeholder { color: rgb(15 27 23 / 0.35); font-weight: 500; }
.blank-input:focus { outline: none; border-bottom-color: var(--ink); background: #fff; border-radius: 6px 6px 0 0; }
.blank-row.filled .blank-input { border-bottom-color: var(--accent); }
.blank-row.filled .blank-label { color: var(--accent); font-weight: 600; }

/* Before-you-send tasks and the signing spots */
.card .card-help { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.card .textlink { font-size: 15px; }
.spots { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.spots li { margin-bottom: 6px; }

/* Earlier rounds of a deal, folded under its latest contract */
.rounds-toggle { display: flex; align-items: center; gap: 8px; width: calc(100% - 32px); margin: 4px 16px 6px; padding: 9px 12px; border: 0; border-radius: 12px; background: #eef1ee; font-size: 13px; font-weight: 600; text-align: left; }
.rounds-trail { flex: 1; min-width: 0; text-align: right; color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rounds-caret { flex: none; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin: -3px 2px 0; transition: transform 0.25s var(--ease); }
.rounds-toggle[aria-expanded="true"] .rounds-caret { transform: rotate(225deg); margin-top: 3px; }
.rounds { margin: 0 16px 6px; border-left: 2px solid var(--line); animation: rise 0.3s var(--ease); }
.round { display: flex; align-items: center; gap: 10px; padding: 2px 0 2px 12px; }
.round + .round { border-top: 1px solid var(--line); }
.round-open { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: none; border: 0; padding: 8px 0; text-align: left; }
.round-words { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--muted); }
.round-words strong { font-size: 15px; color: var(--ink); }
.round.current .round-words strong::after { content: " · open now"; font-weight: 500; color: var(--muted); }
.round .textlink { font-size: 13px; color: var(--muted); }

/* In-app contract preview */
.viewer { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; background: #3a433f; animation: sheet 0.35s var(--ease); }
.viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 18px 12px; background: var(--ink); color: #fff; }
.viewer-top .textlink { color: var(--hi); font-size: 16px; }
.viewer-title { font-size: 14px; font-weight: 600; }
.viewer-pages { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; padding: 12px 12px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.viewer-pages canvas { display: block; background: #fff; border-radius: 4px; box-shadow: 0 2px 10px rgb(0 0 0 / 0.35); }
.viewer-pages .filling, .viewer-error { margin: auto; color: #fff; text-align: center; }
.viewer-pad { width: 46px; }
.topbar h1 { margin-right: auto; }

/* One flow: landing, building, then the details board */
.app[data-stage="land"] #mic, .app[data-stage="land"] #deal, .app[data-stage="build"] #deal { display: none; }
.turn.land { justify-content: center; align-items: center; text-align: center; gap: 4px; }
.turn.land .qhelp { max-width: 290px; }
.bigmic { width: 132px; height: 132px; margin: 26px 0 10px; border: 0; border-radius: 50%; background: var(--ink); color: var(--hi); display: grid; place-items: center; box-shadow: 0 18px 36px rgb(15 27 23 / 0.28); animation: breathe 2.6s ease-in-out infinite; }
.bigmic-label { margin: 0 0 14px; font-size: 14px; font-weight: 700; }
/* "Upload contract": a round icon button beside the mic (the send button's shape), no words. */
.mic-row { position: relative; display: grid; place-items: center; }
.upload-btn { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer; }
.mic-row .upload-btn { position: absolute; left: calc(100% + 18px); top: 50%; margin-top: 8px; transform: translateY(-50%); }
.turn.land > .upload-btn { margin-top: 22px; }
.upload-btn.busy svg { animation: breathe 1s ease-in-out infinite; opacity: 0.6; }
.upload-btn:active { transform: translateY(-50%) scale(0.94); }
.turn.land > .upload-btn:active { transform: scale(0.94); }
.turn.land .textlink { color: var(--ink); }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.ack-line { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: rgb(15 27 23 / 0.1); font-size: 15px; font-weight: 600; align-self: stretch; text-align: left; }

.app[data-stage="build"] .turn { justify-content: flex-start; }
.said { align-self: flex-end; max-width: 88%; margin: 0 0 16px; padding: 12px 14px; border-radius: 20px 20px 6px 20px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.build-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.build-head h2 { margin: 0; font: 700 20px var(--display); }
.build-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); animation: breathe 0.9s ease-in-out infinite; }
.build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot { min-height: 62px; border-radius: 18px; box-sizing: border-box; background: linear-gradient(100deg, rgb(15 27 23 / 0.09) 30%, rgb(255 255 255 / 0.5) 50%, rgb(15 27 23 / 0.09) 70%); background-size: 300% 100%; animation: sweep 1.3s linear infinite; }
.slot.wide { grid-column: span 2; }
.slot.idle { animation: none; background: none; border: 2px dashed rgb(15 27 23 / 0.2); transition: opacity 0.4s; opacity: 0.6; }
.slot.filled { animation: none; background: #fff; padding: 11px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.slot.filled.dark { background: var(--brand); color: #fff; }
.slot.pop { animation: slot-in 0.45s var(--ease); }
.slot-label { font-size: 12px; font-weight: 600; opacity: 0.65; }
.slot-value { font: 700 18px/1.15 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes slot-in { 0% { transform: scale(0.82); opacity: 0; box-shadow: 0 0 0 0 var(--ink); } 60% { transform: scale(1.04); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .slot, .bigmic, .build-dot { animation: none; } }

.board-bar { padding: 8px; gap: 8px; }
.board-bar .dock-mic { flex: none; width: 48px; height: 48px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--hi); color: var(--ink); }
.board-bar .dock-type { flex: 1; min-width: 0; background: transparent; color: #fff; font-weight: 500; text-align: left; padding: 11px 8px; opacity: 0.75; }
.board-bar .dock-go { flex: none; }
.contract-top { padding: 4px 18px 0; }
.contract-top .textlink { font-size: 15px; }
.app[data-stage="build"] #mic { display: none; }

/* Compact readiness line, expandable */
.ready { padding: 10px 14px; border-radius: 20px; }
.ready.open { padding-bottom: 16px; }
.ready-summary { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; padding: 0; color: #fff; text-align: left; }
.ready-summary .ready-dial { width: 38px; height: 38px; }
.ready-summary .ready-bg, .ready-summary .ready-fg { stroke-width: 16; }
.ready-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ready-text strong { font: 700 17px/1.2 var(--display); }
.ready-text span { font-size: 13px; color: #c9d8d1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ready-summary .rounds-caret { border-color: #fff; }
.ready-summary[aria-expanded="true"] .rounds-caret { transform: rotate(225deg); margin-top: 3px; }
.ready.open .ready-rows { margin-top: 14px; }

/* What was said, and the building header */
.said { align-self: stretch; max-width: none; margin: 0 0 18px; padding: 0 0 0 12px; border-radius: 0; background: none; color: var(--ink); border-left: 3px solid var(--ink); display: block; overflow: visible; }
.said-kick { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; opacity: 0.6; margin-bottom: 2px; }
.said-text { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.build-head { gap: 14px; margin-bottom: 10px; }
.build-head .filling { flex: none; width: 46px; height: 46px; margin: 6px; }
.build-head .blob-bars { height: 18px; gap: 3px; }
.build-head .blob-bars i { width: 3px; }
.build-head .blob-arc { inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); }
.build-head.done .blob-arc { display: none; }
.build-words { display: flex; flex-direction: column; min-width: 0; }
.build-words h2 { margin: 0; font: 700 24px/1.1 var(--display); letter-spacing: -0.01em; }
.build-count { font-size: 14px; font-weight: 600; opacity: 0.7; }
.build-line { height: 4px; border-radius: 2px; background: rgb(15 27 23 / 0.12); overflow: hidden; margin-bottom: 14px; }
.build-line i { display: block; width: 40%; height: 100%; border-radius: 2px; background: var(--ink); animation: travel 1.2s ease-in-out infinite; }
.build-head.done + .build-line i { width: 100%; animation: none; }
@keyframes travel { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* Choosing a contract form: on the landing screen and while building */
.form-chips-label { margin: 8px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; }
.form-chips { display: flex; gap: 6px; align-self: stretch; margin: 0 -20px 14px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.form-chips .filter { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.turn.land .form-chips { justify-content: safe center; }
.form-ask { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; padding: 16px; border-radius: 22px; background: var(--ink); color: #fff; animation: rise 0.4s var(--ease); }
.form-ask h3 { margin: 0; font: 700 22px/1.1 var(--display); }
.form-ask p { margin: 0 0 4px; font-size: 14px; opacity: 0.8; }
.form-option { display: flex; flex-direction: column; gap: 1px; text-align: left; border: 0; border-radius: 14px; padding: 12px 14px; background: var(--hi); color: var(--ink); }
.form-option strong { font: 700 17px var(--display); }
.form-option span { font-size: 13px; }
.sheet-small.strong { font-weight: 700; margin-bottom: 2px; }
.picker-new .pills { margin: 4px 0 10px; }

/* The quote opens on a tap; typed offers get shuffling letters in the blob */
button.said { text-align: left; font: inherit; border-top: 0; border-right: 0; border-bottom: 0; cursor: pointer; width: 100%; }
.said.open .said-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.said-kick::after { content: " · tap to read all"; font-weight: 500; letter-spacing: 0; text-transform: none; }
.said.open .said-kick::after { content: " · tap to shorten"; }
.blob-text { position: relative; font: 700 14px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 1px; color: var(--hi); }
.form-chips-label { opacity: 1; }
.form-chips-label strong { text-transform: none; letter-spacing: 0; font-size: 14px; }
.form-chips { position: relative; scroll-behavior: smooth; }
.turn.land .form-chips { justify-content: flex-start; }

/* What DocuSign still needs, inside the readiness panel */
.ready-needs { margin-top: 4px; padding-top: 12px; border-top: 1px solid #2a4037; }
.ready-needs-head { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.ready-need { margin: 0 0 4px; padding-left: 12px; position: relative; font-size: 13px; color: #c9d8d1; }
.ready-need::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--hi); }
.ready-go { margin-top: 8px; border: 0; border-radius: 12px; padding: 9px 14px; background: var(--hi); color: var(--ink); font-weight: 700; font-size: 14px; }
.round .textlink.strong { color: var(--ink); }
.send { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.viewer-save { border: 0; border-radius: 999px; padding: 8px 16px; background: var(--hi); color: var(--ink); font-weight: 700; font-size: 15px; }

/* Quick answers on the contract screen */
.finish { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.finish-title { margin: 4px 6px 0; font: 700 20px/1.15 var(--display); }
.finish .ask { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px 16px; }
.finish .ask-title { font: 700 17px/1.25 var(--display); }
.finish-kick { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.finish-done { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; animation: rise 0.35s var(--ease); }
.finish-done i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6'/%3E%3C/svg%3E") center / 13px no-repeat; }
.finish-done span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The blanks section at the bottom of the details board */
.sec-plain { margin: 22px 6px 10px; font: 700 20px var(--display); color: #fff; }
.board-blanks .na { color: var(--ink); margin-bottom: 4px; }
.board-blanks .blank-input { background: transparent; color: var(--ink); border: 0; border-bottom: 2px solid rgb(15 27 23 / 0.35); border-radius: 0; padding: 4px 2px; }

/* ---------- One background throughout: dark green from landing to contract ---------- */
.app, .app[data-view="chat"], .app:not([data-view]), .app[data-stage="intro"], .app[data-stage="board"] { background: var(--ink); color: #fff; }
.view:not([hidden]) { animation: view-in 0.45s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gear { color: #fff; }
.list-count { background: var(--hi); color: var(--ink); }

/* Landing, building and "what should change" */
.app:not([data-stage="land"]) .view.chat .composer { border-top-color: rgb(255 255 255 / 0.22); }
.app:not([data-stage="land"]) .view.chat .composer input { color: #fff; }
.app:not([data-stage="land"]) .view.chat .composer input::placeholder { color: rgb(255 255 255 / 0.5); }
.app:not([data-stage="land"]) .view.chat .icon.primary { background: var(--hi); border-color: var(--hi); color: var(--ink); }
.app:not([data-stage="land"]) .view.chat .talk { background: var(--hi); color: var(--ink); }
.app:not([data-stage="land"]) .view.chat .talk svg { color: var(--ink); }
.app:not([data-stage="land"]) .view.chat .bigmic { background: var(--hi); color: var(--ink); box-shadow: 0 0 0 14px rgb(232 242 107 / 0.1), 0 0 0 34px rgb(232 242 107 / 0.05); }
.app:not([data-stage="land"]) .view.chat .textlink { color: #fff; }
.app:not([data-stage="land"]) .view.chat .filter { border-color: rgb(255 255 255 / 0.35); color: #fff; }
.app:not([data-stage="land"]) .view.chat .filter.on { background: var(--hi); border-color: var(--hi); color: var(--ink); }
.app:not([data-stage="land"]) .view.chat .said { border-left-color: var(--hi); color: #fff; }
.app:not([data-stage="land"]) .view.chat .blob { background: var(--hi); box-shadow: none; }
.app:not([data-stage="land"]) .view.chat .blob-bars i { background: var(--ink); }
.app:not([data-stage="land"]) .view.chat .blob-text { color: var(--ink); }
.app:not([data-stage="land"]) .view.chat .blob-arc { color: var(--hi); }
.app:not([data-stage="land"]) .view.chat .build-line { background: rgb(255 255 255 / 0.14); }
.app:not([data-stage="land"]) .view.chat .build-line i { background: var(--hi); }
.app:not([data-stage="land"]) .view.chat .slot { background: linear-gradient(100deg, rgb(255 255 255 / 0.06) 30%, rgb(255 255 255 / 0.2) 50%, rgb(255 255 255 / 0.06) 70%); background-size: 300% 100%; }
.app:not([data-stage="land"]) .view.chat .slot.filled { background: var(--brand-2); color: #fff; }
.app:not([data-stage="land"]) .view.chat .slot.filled.dark { background: var(--hi); color: var(--ink); }
.app:not([data-stage="land"]) .view.chat .slot.idle { background: none; border-color: rgb(255 255 255 / 0.2); }
.app:not([data-stage="land"]) .view.chat .form-ask { background: var(--brand-2); }
.app:not([data-stage="land"]) .view.chat .ack-line { background: rgb(255 255 255 / 0.1); }
.app:not([data-stage="land"]) .view.chat .choice.outline { color: #fff; border-color: #fff; }
.app:not([data-stage="land"]) .view.chat .choice.outline:active { background: #fff; color: var(--ink); }

/* Contract screen on the same background: light cards keep their dark text */
#view-contract .form-bar, #view-contract .finish-title { color: #fff; }
#view-contract .textlink { color: var(--hi); }
#view-contract .card, #view-contract .finish .ask, #view-contract .finish-done, #view-contract .signing, #view-contract .counter, #view-contract .na { color: var(--ink); }
#view-contract .card .textlink, #view-contract .na .textlink, #view-contract .signing .textlink, #view-contract .counter .textlink { color: var(--ink); }
#view-contract .signing .void-link { color: #8a1f14; }
#view-contract .ready { background: #1d2e27; }
#view-contract .ready-bg { stroke: #0f1b17; }
#view-contract .ready-bar { background: #0f1b17; }
.send { background: #16241f; border-top-color: #22332c; }
.act-preview { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.7); }
.act-sign { background: var(--hi); color: var(--ink); }
.act-sign svg { color: var(--ink); }
.act-sign::after { background: var(--hi); }
.act-sign::before { background: conic-gradient(from 0deg, transparent 0 70%, #fff 85%, transparent 100%); }

/* Names-and-address step on the same background */
.intro-top .textlink { color: #fff; }
.intro-input { border-bottom-color: var(--hi); color: #fff; }
.intro-input::placeholder { color: rgb(255 255 255 / 0.35); }
.intro-foot .choice { background: var(--hi); border-color: var(--hi); color: var(--ink); }
.intro .pill { border-color: rgb(255 255 255 / 0.5); color: #fff; }
.intro .pill[aria-pressed="true"] { background: var(--hi); border-color: var(--hi); color: var(--ink); }
.intro .onboard-dots i, .intro-top i { background: rgb(255 255 255 / 0.3); }

/* ---------- Contracts list: active first, one short card per deal, details on tap ---------- */
.contracts { background: var(--ink); color: #fff; padding: calc(14px + env(safe-area-inset-top)) 18px 0; }
.contracts-head { align-items: center; margin-top: 0; }
.contracts-head .q { font-size: 30px; color: #fff; }
.contracts-tools { display: flex; align-items: center; gap: 14px; }
.contracts-tools .textlink { color: #fff; font-size: 15px; }
.contracts-new { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--hi); color: var(--ink); font: 500 28px/1 var(--display); display: grid; place-items: center; padding: 0 0 3px; }
.contracts-tabs { display: flex; margin: 14px 0 0; padding: 3px; border-radius: 14px; background: rgb(255 255 255 / 0.1); }
.contracts-tabs button { flex: 1; border: 0; border-radius: 11px; padding: 9px 4px; background: transparent; color: #fff; font-size: 14px; font-weight: 600; transition: background 0.2s, color 0.2s; }
.contracts-tabs button.on { background: var(--hi); color: var(--ink); }
.contracts-body { gap: 8px; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); }
.contracts-sync { margin: 0; font-size: 13px; opacity: 0.7; }
.contracts-note { background: rgb(255 255 255 / 0.1); color: #fff; }
.contracts-note .textlink { color: var(--hi); }
.deal-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 2px solid transparent; border-radius: 16px; padding: 12px 14px; background: var(--brand-2); color: #fff; animation: rise 0.35s var(--ease) backwards; }
.deal-row.current { border-color: var(--hi); }
.deal-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #9fb0a8; }
.deal-dot.wait { background: #f2b54a; }
.deal-dot.done { background: var(--hi); }
.deal-dot.bad { background: #ef7b6d; }
.deal-row-words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.deal-row-words strong { font: 700 17px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-row-words span { font-size: 13px; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-row-go { flex: none; font-size: 20px; opacity: 0.45; }

.deal-sheet-wrap { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; }
.deal-dim { position: absolute; inset: 0; border: 0; background: rgb(8 14 12 / 0.6); animation: view-in 0.25s; transform: none !important; }
.deal-sheet { position: relative; max-height: 86%; overflow-y: auto; background: var(--hi); color: var(--ink); border-radius: 28px 28px 0 0; padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-start; animation: sheet 0.4s var(--ease); }
.deal-close { align-self: flex-end; color: var(--ink); font-size: 15px; }
.deal-title { margin: 0; font: 700 26px/1.1 var(--display); letter-spacing: -0.01em; }
.deal-sub { margin: 4px 0 10px; font-size: 15px; }
.deal-sheet .stat { background: var(--ink); color: #fff; }
.deal-sheet .stat.wait { background: #fff; color: var(--warn-ink); }
.deal-sheet .stat.done { background: var(--brand); color: #fff; }
.deal-sheet .stat.bad { background: #8a1f14; color: #fff; }
.deal-sheet .sgns { align-self: stretch; margin-top: 12px; }
.deal-sheet .sgn i { border-color: rgb(15 27 23 / 0.4); }
.deal-sheet .sgn-state { color: var(--ink); opacity: 0.7; }
.deal-sheet .sgn.signed .sgn-state { color: var(--brand); opacity: 1; }
.deal-rounds { align-self: stretch; margin-top: 14px; }
.deal-kick { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; opacity: 0.6; }
.deal-round { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-top: 1px solid rgb(15 27 23 / 0.18); background: none; padding: 11px 0; font-size: 15px; color: var(--ink); }
.deal-round-name { flex: 1; min-width: 0; }
.deal-round-state { flex: none; font-size: 13px; font-weight: 700; }
.deal-round-state.wait { color: var(--warn-ink); }
.deal-round-state.done { color: var(--brand); }
.deal-round-state.bad { color: #8a1f14; }
.deal-actions { align-self: stretch; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.deal-actions .choice { width: 100%; text-align: center; }
.deal-more { display: flex; gap: 8px; }
.deal-more button { flex: 1; min-width: 0; border: 1.5px solid var(--ink); border-radius: 14px; background: transparent; color: var(--ink); padding: 11px 4px; font-size: 14px; font-weight: 600; }
.deal-more button.quiet { border-color: rgb(15 27 23 / 0.3); opacity: 0.75; }

/* ---------- Home page keeps its yellow look; the dark green sweeps in from the send button ---------- */
.app[data-stage="land"] { background: var(--hi); color: var(--ink); }
.app[data-stage="land"] .gear { color: var(--ink); }
.app[data-stage="land"] .list-count { background: var(--ink); color: var(--hi); }
.app > header, .app > main { position: relative; z-index: 1; }
.app::before { content: ""; position: absolute; right: 20px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); transform: scale(0); pointer-events: none; z-index: 0; }
.app.reveal { animation: reveal-bg 0.75s linear; }
.app.reveal::before { animation: reveal-circle 0.75s cubic-bezier(0.5, 0, 0.3, 1) forwards; }
.app.reveal > header, .app.reveal > main { animation: reveal-content 0.75s ease-out; }
@keyframes reveal-bg { 0%, 96% { background: var(--hi); } 100% { background: var(--ink); } }
@keyframes reveal-circle { from { transform: scale(0); } to { transform: scale(48); } }
@keyframes reveal-content { 0%, 40% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .app.reveal, .app.reveal::before, .app.reveal > header, .app.reveal > main { animation: none; } }

/* ---------- Contracts list, matched to the chosen mockup: yellow page, white cards, white sheet ---------- */
.contracts { background: var(--hi); color: var(--ink); }
.contracts-head .q { color: var(--ink); }
.contracts-tools .textlink { color: var(--ink); }
.contracts-new { background: var(--ink); color: var(--hi); }
.contracts-tabs { background: rgb(15 27 23 / 0.1); border-radius: 12px; }
.contracts-tabs button { color: var(--ink); border-radius: 10px; font-size: 13px; padding: 8px 4px; }
.contracts-tabs button.on { background: var(--ink); color: #fff; }
.contracts-note { background: rgb(15 27 23 / 0.08); color: var(--ink); }
.contracts-note .textlink { color: var(--ink); }
.deal-row { background: #fff; color: var(--ink); border-radius: 16px; }
.deal-row.current { border-color: var(--ink); }
.deal-dot { background: #8a958f; }
.deal-dot.wait { background: #9a5b00; }
.deal-dot.done { background: var(--accent); }
.deal-dot.bad { background: #8a1f14; }
.deal-row-words span { opacity: 0.65; }
.deal-row-go { opacity: 0.35; }

.deal-dim { background: rgb(232 242 107 / 0.55); }
.deal-sheet { background: #fff; min-height: 66%; box-shadow: 0 -16px 40px rgb(15 27 23 / 0.28); padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); }
.deal-handle { align-self: center; width: 44px; height: 5px; border: 0; border-radius: 3px; background: var(--line); padding: 0; margin-bottom: 14px; }
.deal-sub { color: var(--muted); }
.deal-sheet .stat { background: #e7ebe8; color: var(--ink); font-size: 12px; padding: 4px 11px; }
.deal-sheet .stat.wait { background: var(--warn-bg); color: #9a5b00; }
.deal-sheet .stat.done { background: var(--accent); color: #fff; }
.deal-sheet .stat.bad { background: #fbe3e0; color: #8a1f14; }
.deal-sheet .sgns { margin-top: 8px; gap: 0; }
.deal-sheet .sgn { padding: 9px 0; font-size: 15px; gap: 10px; }
.deal-sheet .sgn i { width: 16px; height: 16px; border: 2px solid #b9c4be; background: none; }
.deal-sheet .sgn.signed i { border-color: var(--accent); background: var(--accent); }
.deal-sheet .sgn.declined i { border-color: #8a1f14; background: #8a1f14; }
.deal-sheet .sgn-state { color: var(--muted); opacity: 1; font-size: 14px; }
.deal-sheet .sgn.signed .sgn-state { color: var(--accent); font-weight: 700; }
.deal-round { border-top-color: var(--line); font-size: 14px; padding: 10px 0; }
.deal-round-state.wait { color: #9a5b00; }
.deal-round-state.done { color: var(--accent); }
.deal-actions { margin-top: auto; padding-top: 18px; }
.deal-actions .choice { border-radius: 16px; padding: 14px; font-size: 17px; }
.deal-more button.quiet { border-color: var(--line); color: var(--muted); opacity: 1; }

/* ---------- A deal's own page: read-only contract details ---------- */
.deal-page { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; background: var(--hi); color: var(--ink); padding: calc(14px + env(safe-area-inset-top)) 18px 0; animation: view-in 0.35s var(--ease); }
.deal-back { align-self: flex-start; color: var(--ink); font-size: 15px; padding: 6px 0; }
.deal-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 0 16px; scrollbar-width: none; }
.deal-head { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 2px 6px; }
.deal-head .deal-kick { margin-bottom: 4px; }
.deal-head .deal-title { font-size: 30px; }
.deal-head .deal-sub { color: var(--ink); opacity: 0.75; }
.deal-head .stat { font-size: 13px; padding: 5px 12px; background: #fff; color: var(--ink); }
.deal-head .stat.wait { background: #fff; color: #9a5b00; }
.deal-head .stat.done { background: var(--accent); color: #fff; }
.deal-head .stat.bad { background: #8a1f14; color: #fff; }
.deal-card { background: #fff; border-radius: 20px; padding: 14px 16px; }
.deal-card h4 { margin: 0 0 4px; font: 700 13px Inter, sans-serif; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.deal-card-top { display: flex; align-items: center; justify-content: space-between; }
.deal-card-top .textlink { color: var(--ink); font-size: 14px; padding: 0; }
.deal-card .sgns { margin-top: 4px; gap: 0; }
.deal-card .sgn { padding: 8px 0; font-size: 15px; gap: 10px; }
.deal-card .sgn i { width: 16px; height: 16px; border: 2px solid #b9c4be; background: none; }
.deal-card .sgn.signed i { border-color: var(--accent); background: var(--accent); }
.deal-card .sgn.declined i { border-color: #8a1f14; background: #8a1f14; }
.deal-card .sgn.signed .sgn-state { color: var(--accent); font-weight: 700; }
.deal-term { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.deal-card h4 + .deal-term { border-top: 0; }
.deal-term-label { flex: none; max-width: 48%; color: var(--muted); }
.deal-term-value { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.deal-term-value s { color: var(--muted); margin-right: 8px; font-size: 13px; }
.deal-term-value b { font-weight: 600; }
.deal-card .deal-round { font-size: 15px; }
.deal-card h4 + .deal-round { border-top: 0; }
.deal-round.on .deal-round-name b { background: var(--hi); border-radius: 6px; padding: 1px 6px; margin-left: -6px; }
.deal-links { display: flex; justify-content: center; gap: 22px; padding: 6px 0 2px; }
.deal-links .textlink { color: var(--ink); opacity: 0.7; font-size: 14px; }
.deal-links .textlink.bad { color: #8a1f14; opacity: 1; }
.deal-bar { flex: none; display: flex; flex-direction: column; gap: 8px; margin: 0 -18px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.deal-bar .choice { width: 100%; text-align: center; border-radius: 16px; padding: 14px; font-size: 17px; }

/* ---------- The send moment: a journey track and a scoreboard ---------- */
.journey { --at: 0%; margin: 18px 10px 6px; }
.journey-line { position: relative; height: 4px; border-radius: 2px; background: rgb(15 27 23 / 0.18); }
.journey-fill { position: absolute; left: 0; top: 0; height: 100%; width: var(--at); border-radius: 2px; background: var(--ink); }
.journey-marker { position: absolute; top: 50%; left: var(--at); width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 8px var(--ink), inset 0 0 0 14px var(--hi); }
.journey-stops { display: flex; justify-content: space-between; margin: 16px -10px 0; font-size: 12px; font-weight: 700; }
.journey-stops span { width: 60px; text-align: center; opacity: 0.4; }
.journey-stops span:first-child { text-align: left; }
.journey-stops span:last-child { text-align: right; }
.journey-stops span.on { opacity: 1; }
.journey.travel .journey-fill { animation: j-fill 6s cubic-bezier(0.1, 0.7, 0.2, 1) forwards; }
.journey.travel .journey-marker { animation: j-move 6s cubic-bezier(0.1, 0.7, 0.2, 1) forwards, j-pulse 1s ease-in-out infinite; }
.journey.arrive .journey-fill { animation: j-land-fill 0.6s var(--ease) backwards; }
.journey.arrive .journey-marker { animation: j-land 0.6s var(--ease) backwards, j-ping 1.6s 0.6s ease-out 3; }
@keyframes j-fill { from { width: 0; } to { width: 29%; } }
@keyframes j-move { from { left: 0; } to { left: 29%; } }
@keyframes j-land-fill { from { width: 29%; } }
@keyframes j-land { from { left: 29%; transform: scale(0.8); } 60% { transform: scale(1.25); } }
@keyframes j-pulse { 50% { transform: scale(1.15); } }
@keyframes j-ping { from { box-shadow: inset 0 0 0 8px var(--ink), inset 0 0 0 14px var(--hi), 0 0 0 0 rgb(15 27 23 / 0.45); } to { box-shadow: inset 0 0 0 8px var(--ink), inset 0 0 0 14px var(--hi), 0 0 0 22px rgb(15 27 23 / 0); } }

.score { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 14px; }
.score-big { background: var(--ink); color: #fff; border-radius: 22px; padding: 14px 18px 10px; animation: rise 0.5s 0.25s var(--ease) backwards; }
.score-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.score-saved { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; padding-top: 10px; border-top: 1px solid rgb(255 255 255 / 0.18); font: 600 16px Inter, sans-serif; color: #fff; }
.score-saved svg { flex: none; color: var(--hi); }
.score-roll { height: 76px; overflow: hidden; font: 700 76px/76px var(--display); letter-spacing: -0.03em; color: var(--hi); }
.score-strip { display: flex; flex-direction: column; animation: score-roll 1.3s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.score-strip span { height: 76px; }
@keyframes score-roll { from { transform: translateY(0); } to { transform: translateY(calc(var(--steps) * -76px)); } }
.score-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.score-card { background: var(--brand-2); color: #fff; border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 1px; min-width: 0; animation: rise 0.5s 0.9s var(--ease) backwards; }
.score-card:nth-child(2) { animation-delay: 1.05s; }
.score-card.hi { background: #fff; color: var(--ink); }
.score-card strong { font: 700 26px/1.15 var(--display); white-space: nowrap; }
.score-note { font-size: 12px; font-weight: 600; opacity: 0.85; }
.deal-card .journey { margin: 12px 10px 4px; }
@media (prefers-reduced-motion: reduce) { .journey *, .score * { animation: none !important; } }

/* Unused blanks: one row until opened */
.na { padding: 12px 16px; border-radius: 20px; }
.na.open { padding: 16px 18px 18px; border-radius: 26px; }
.na-opener { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; color: inherit; }
.na-opener h3 { flex: 1; min-width: 0; }
.na:not(.open) .na-head h3 { font-size: 16px; line-height: 1.25; letter-spacing: 0; }
.na:not(.open) .switch-track.big { width: 52px; height: 30px; border-radius: 15px; }
.na:not(.open) .switch-track.big::after { width: 22px; height: 22px; }
.na:not(.open) .switch-track.big[aria-checked="true"]::after { transform: translateX(22px); }
.na-opener .rounds-caret { border-color: var(--ink); margin-right: 6px; }
.na-opener[aria-expanded="true"] .rounds-caret { transform: rotate(225deg); margin-top: 3px; }

/* The send track now ends at Sent; the marker glides between stops */
.journey-fill { transition: width 0.5s var(--ease); }
.journey-marker { transition: left 0.5s var(--ease); }
.journey.drift .journey-fill { transition: width 7s cubic-bezier(0.1, 0.6, 0.2, 1); }
.journey.drift .journey-marker { transition: left 7s cubic-bezier(0.1, 0.6, 0.2, 1); animation: j-pulse 1s ease-in-out infinite; }
.journey.arrive .journey-fill { animation: j-land-fill 0.6s var(--ease) backwards; }
.journey.arrive .journey-marker { animation: j-land 0.6s var(--ease) backwards, j-ping 1.6s 0.6s ease-out 3; }
@keyframes j-land-fill { from { width: 90%; } }
@keyframes j-land { from { left: 90%; transform: scale(0.8); } 60% { transform: scale(1.25); } }

/* The View button sits still: no light sweep across it */
.act-preview::after { content: none; animation: none; }

/* A short message from work finishing in the background */
.toast { position: absolute; left: 14px; right: 14px; top: calc(12px + env(safe-area-inset-top)); z-index: 9; padding: 13px 16px; border-radius: 16px; background: var(--hi); color: var(--ink); font-size: 15px; font-weight: 600; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); animation: toast-in 0.4s var(--ease); }
.toast.bad { background: #fbe3e0; color: #8a1f14; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }

.score.still, .score.still * { animation: none !important; }
.score.still .score-strip { transform: translateY(calc(var(--steps) * -76px)); }
.toast { background: var(--ink); color: #fff; border: 1.5px solid var(--hi); }
.toast.bad { background: #8a1f14; color: #fff; border-color: #fff; }

/* The number cards update when the offer is confirmed sent */
.score.final .score-big { animation: bump 0.7s var(--ease); }
.score.final .score-card { animation: bump 0.7s 0.25s var(--ease) backwards; }
.score.final .score-card:nth-child(2) { animation-delay: 0.4s; }
.score.final .score-strip { animation: score-roll 0.9s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.06); box-shadow: 0 0 0 4px var(--ink); } 100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; } }


@keyframes qo-write {
  0%   { stroke-dasharray: 0 400; stroke-dashoffset: 0; }
  30%  { stroke-dasharray: 173.26 400; stroke-dashoffset: 0; }
  35%  { stroke-dasharray: 173.26 400; stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.7,0,.3,1); }
  50%  { stroke-dasharray: 34.79999999999998 400; stroke-dashoffset: -138.46; }
  100% { stroke-dasharray: 34.79999999999998 400; stroke-dashoffset: -138.46; }
}
@keyframes qo-head {
  0%, 29% { opacity: 0; transform: scale(.2); }
  33%     { opacity: 1; transform: scale(1.25); }
  36%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes qo-shoot {
  0%, 50% { transform: translateX(0) scaleX(1); opacity: 1; }
  53%     { transform: translateX(-14px) scaleX(.9); opacity: 1; animation-timing-function: cubic-bezier(.6,0,.9,.4); }
  61%     { transform: translateX(560px) scaleX(1.6); opacity: 1; }
  62%, 100% { transform: translateX(560px); opacity: 0; }
}
@keyframes qo-streak {
  0%, 53% { opacity: 0; transform: scaleX(0); }
  56%     { opacity: .8; transform: scaleX(1); }
  60%, 100% { opacity: 0; transform: scaleX(.4) translateX(160px); }
}
@keyframes qo-word {
  0%, 58% { clip-path: inset(0 100% 0 0); transform: translateX(-10px); }
  69%     { clip-path: inset(0 0 0 0); transform: translateX(0); }
  100%    { clip-path: inset(0 0 0 0); transform: translateX(0); }
}
@keyframes qo-tile {
  0%, 67% { opacity: 0; transform: scale(.3) rotate(-12deg); }
  73%     { opacity: 1; transform: scale(1.12) rotate(3deg); }
  77%, 100% { opacity: 1; transform: none; }
}
@keyframes qo-tag {
  0%, 72% { opacity: 0; transform: translateY(8px); }
  80%, 100% { opacity: .75; transform: none; }
}
@keyframes qo-fade { 0%, 93% { opacity: 1; } 100% { opacity: 0; } }
.qo-write { animation: qo-write 3.4s 1 both; }
.qo-head { transform-box: fill-box; transform-origin: 100% 50%; animation: qo-head 3.4s 1 both; }
.qo-arrow { transform-box: fill-box; transform-origin: 100% 50%; animation: qo-shoot 3.4s 1 both; }
.qo-streak { transform-origin: 0 50%; animation: qo-streak 3.4s 1 both; }
.qo-word { animation: qo-word 3.4s 1 both; }
.qo-tile { animation: qo-tile 3.4s 1 both; }
.qo-tag { animation: qo-tag 3.4s 1 both; }
.qo-all { animation: qo-fade 3.4s 1 both; }
@media (prefers-reduced-motion: reduce) { .qo-all * { animation: none !important; } }

/* The splash, full screen over the app */
.splash { position: fixed; inset: 0; z-index: 20; background: #0F1B17; display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.splash .qo-stage { transform: scale(min(1, calc(100vh / 844px))); transform: scale(min(1, 100dvh / 844px)); }
.splash.leaving { transition: opacity 0.3s; opacity: 0; }

/* "Save this offer" */
.save-sheet { gap: 12px; }
.save-mark { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); display: grid; place-items: center; margin: 6px 0 4px; }
.provider { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border-radius: 16px; padding: 15px; font: 600 16px Inter, sans-serif; border: 1px solid transparent; }
.provider.apple { background: #000; color: #fff; }
.provider.google { background: #fff; color: #1f1f1f; border-color: #C9D1CC; }
.provider-icon { display: grid; place-items: center; }
.save-later { align-self: center; color: var(--ink); font-size: 15px; padding: 10px; }
.save-sheet .save-later { display: block; margin: 0 auto; }

/* Counter by voice: picking the contract, and the hint on the home screen */
.pick-option .pick-meta { opacity: 0.7; font-size: 12px; }
.pick-neither { color: #fff; align-self: center; padding: 8px; font-size: 14px; }
.counter-hint { margin: 10px 0 0; font-size: 13px; opacity: 0.7; text-align: center; }

/* The app icon, top left on every screen: tap for the home screen. It sits above the
   contracts list, setup, the PDF viewer and the listening screen, which leave room for it. */
.home-spot { width: 40px; height: 40px; flex: none; margin-right: auto; }
.home-btn { position: absolute; left: 20px; top: calc(10px + env(safe-area-inset-top)); z-index: 8; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: var(--ink); color: var(--hi); display: grid; place-items: center; box-shadow: 0 0 0 1.5px rgb(232 242 107 / 0.25); cursor: pointer; transition: transform 0.15s; }
.home-btn:active { transform: scale(0.92); }
.home-btn:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; }
.app[data-stage="land"] .home-btn, .app:not([data-view]) .home-btn { box-shadow: none; }
.contracts-head { padding-left: 52px; }
.viewer-top { padding-left: 72px; }
.voice-top { padding-left: 72px; }
.onboard:not(.contracts) { padding-top: calc(64px + env(safe-area-inset-top)); }
.deal-page { padding-top: calc(62px + env(safe-area-inset-top)); }
/* On the dark green screens the icon is a yellow tile; on the yellow ones, an ink tile. */
.home-btn { background: var(--hi); color: var(--ink); box-shadow: none; }
.app[data-stage="land"] .home-btn, .app:not([data-view]) .home-btn,
.app:has(#contracts:not([hidden])) .home-btn, .app:has(#onboard:not([hidden])) .home-btn { background: var(--ink); color: var(--hi); }
.app:has(#voice:not([hidden])) .home-btn, .app:has(#viewer:not([hidden])) .home-btn { background: var(--hi); color: var(--ink); }

/* Press to talk (option C): the listening screen grows out of the home screen, so it
   doesn't also slide up. */
.voice.morphing { animation: none; }
.app.talk-morph #view-chat { opacity: 0 !important; visibility: hidden; transition: opacity 0.18s, visibility 0s 0.18s; }

/* Landing page, simplified: bigger headline set a little higher, no line over the type
   field (a keyboard icon instead), and the contract choice as a drop-down. */
.kbd-icon { display: none; flex: none; color: var(--ink); opacity: 0.75; }
.app[data-stage="land"] .kbd-icon { display: grid; place-items: center; }
.app[data-stage="land"] .composer { border-top: 0; padding-top: 4px; }
.app[data-stage="land"] .composer input { padding-left: 2px; }
.turn.land { padding-bottom: 8vh; }
.turn.land .q.huge { font-size: clamp(42px, 13vw, 56px); line-height: 0.98; letter-spacing: -0.035em; -webkit-text-stroke: 0.6px currentColor; margin-bottom: 8px; }
.form-pick { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 9px 36px 9px 16px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: 14px; cursor: pointer; }
.form-pick::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.form-pick-kick { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.form-pick select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--ink); font: 700 15px var(--body); max-width: 200px; text-overflow: ellipsis; cursor: pointer; padding: 0; }
.form-pick:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- screen review round 1 ---------- */
/* Splash: a quick flash, under 0.4 s */
.qo-write, .qo-head, .qo-arrow, .qo-streak, .qo-word, .qo-tile, .qo-tag, .qo-all { animation-duration: 1.8s !important; }
.splash.leaving { transition-duration: 0.3s; }

/* Home: the arrow is grey until something is typed */
.composer.empty #send { background: rgb(15 27 23 / 0.16); color: rgb(15 27 23 / 0.45); box-shadow: none; }
.app:not([data-stage="land"]) .view.chat .composer.empty #send { background: rgb(255 255 255 / 0.12); color: rgb(255 255 255 / 0.4); }

/* Listening: smaller buttons, empty pills that fill in, words rising like credits */
.voice-actions { justify-content: center; gap: 10px; padding: 12px 12px 0; }
.voice-actions .voice-ghost, .voice-done { flex: none; padding: 10px 22px; font-size: 14px; border-radius: 999px; }
.heard-chip.empty { background: transparent; color: #a9bcb4; border: 1.5px dashed #3a4d45; font-weight: 500; animation: none; }
.heard-chip { border: 1.5px solid transparent; }
.heard-hint:empty { display: none; }
.voice-text { display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; flex: 1; min-height: 0; padding: 0 24px 6px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 55%); mask-image: linear-gradient(to bottom, transparent 0, #000 55%); }
.voice-flow { margin: 0; flex: none; }

/* Building: "What we heard" without the bar or "tap to read all"; no type field while it works */
.said, .app:not([data-stage="land"]) .view.chat .said { border-left: 0; padding-left: 0; }
.said-kick::after, .said.open .said-kick::after { content: none; }
.app[data-stage="build"] .composer { display: none; }

/* Save this offer: the reasons */
.save-perks { list-style: none; margin: 2px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.save-perks li { position: relative; padding-left: 28px; font-weight: 600; font-size: 15px; }
.save-perks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); }
.save-perks li::after { content: ""; position: absolute; left: 7px; top: 5px; width: 5px; height: 9px; border-right: 2px solid var(--hi); border-bottom: 2px solid var(--hi); transform: rotate(45deg); }

/* Details: just the Contract button; a small pencil beside money */
.board-bar.only-go { justify-content: flex-end; background: transparent; box-shadow: none; padding-left: 0; }
.board-bar.only-go .dock-go { flex: 1; padding: 15px; font-size: 16px; }
input.box.editable-money { max-width: 100%; padding-right: 22px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355625C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16v4Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; background-size: 14px 14px; }
input.box.big.editable-money { padding-right: 26px; background-size: 18px 18px; }

/* Counter: what it is, at the top of the details */
.board-scroll > .counter { margin: 0 0 12px; padding: 16px; border-radius: 22px; background: var(--hi); color: var(--ink); }
.board-scroll > .counter h3 { margin: 0; font: 700 22px var(--display); }
.counter-of { margin: 2px 0 8px; font-size: 14px; opacity: 0.75; }
.counter-of:empty { display: none; }
.board-scroll > .counter .signing-note { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; color: inherit; }

/* Contracts: an X up top; the title and + sit below the app header */
.corner-x { position: absolute; right: 18px; top: calc(10px + env(safe-area-inset-top)); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer; }
.contracts > .corner-x { color: var(--ink); }
.contracts-head { padding-left: 0; margin-top: 46px; }

/* Deal page */
.deal-back { position: absolute; left: 70px; top: calc(10px + env(safe-area-inset-top)); width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; padding: 0; z-index: 3; }
.deal-title { font-size: 32px !important; line-height: 1.05 !important; letter-spacing: -0.02em; }
.deal-card h4 { font-weight: 800 !important; opacity: 1 !important; color: var(--ink); letter-spacing: 0.08em; }
.deal-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.deal-terms-toggle { font-size: 14px; color: var(--ink); }
.deal-row-actions { display: flex !important; flex-direction: row !important; gap: 10px; align-items: stretch; }
.deal-icon { flex: none; width: 54px; height: 54px; border-radius: 16px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); display: grid; place-items: center; padding: 0; }
.deal-counter { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; background: var(--ink); color: var(--hi); font: 700 16px var(--body); padding: 0 16px; min-height: 54px; }

/* Setup: X, "Blank contracts" folds away */
.sheet { position: absolute; }
.sheet > .sheet-x { position: absolute; top: 18px; right: 18px; }
.setup-fold { border-radius: 18px; }
.setup-fold summary { display: flex; flex-direction: column; gap: 2px; cursor: pointer; list-style: none; padding-right: 30px; position: relative; }
.setup-fold summary::-webkit-details-marker { display: none; }
.setup-fold summary::after { content: ""; position: absolute; right: 6px; top: 8px; width: 9px; height: 9px; border-right: 2.4px solid var(--ink); border-bottom: 2.4px solid var(--ink); transform: rotate(45deg); transition: transform 0.2s; }
.setup-fold[open] summary::after { transform: rotate(-135deg); top: 13px; }
.setup-fold-meta { font: 500 13px var(--body); letter-spacing: 0; text-transform: none; opacity: 0.7; }

/* ---------- one app header everywhere; contracts pages live under it ---------- */
.contracts { top: 62px; padding-top: 6px !important; }
.contracts-head { margin-top: 4px; }
.app:has(#contracts:not([hidden])) > header { background: var(--hi); color: var(--ink); position: relative; z-index: 6; }
.app:has(#contracts:not([hidden])) > header .gear { color: var(--ink); border-color: var(--ink); }
.app:has(#contracts:not([hidden])) #list { background: var(--ink); color: var(--hi); }
.deal-page { padding-top: 6px !important; }
.deal-nav { display: flex; align-items: center; margin: 0 0 6px; }
.deal-back { position: static; width: auto; height: 38px; padding: 0 14px 0 10px; border-radius: 999px; gap: 6px; display: inline-flex; align-items: center; font: 600 14px var(--body); border: 1.5px solid var(--ink); }
.deal-back svg { width: 18px; height: 18px; }
.term-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.term-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgb(15 27 23 / 0.05); min-width: 0; }
.term-label { font-size: 12px; opacity: 0.6; }
.term-value { font: 700 15px/1.25 var(--display); overflow-wrap: anywhere; }
.term-value s { font: 500 12px var(--body); opacity: 0.55; margin-right: 6px; }
.term-value s { display: block; margin: 0 0 1px; }

/* Options for the top of the contract screen (?layout=a|b|c|d) */
.answer-bars { display: flex; gap: 6px; margin: 2px 6px 4px; }
.answer-bars i { flex: 1; max-width: 44px; height: 6px; border-radius: 3px; background: rgb(255 255 255 / 0.16); }
.answer-bars i.on { background: var(--hi); }
.finish.layout-a .finish-title, .finish.layout-c .finish-title { margin-bottom: 0; }
.steps2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.step2 { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 20px; background: rgb(255 255 255 / 0.07); color: #fff; }
.step2 strong { font: 700 18px var(--display); display: flex; align-items: center; gap: 8px; }
.step2 span { font-size: 13px; opacity: 0.75; }
.step2.done strong::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--hi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1B17' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.step2.now { box-shadow: inset 0 0 0 2px var(--hi); }
.card-stack { display: flex; flex-direction: column; align-items: center; margin-top: -10px; }
.card-stack i { display: block; height: 12px; border-radius: 0 0 18px 18px; background: rgb(255 255 255 / 0.55); width: 92%; }
.card-stack i + i { width: 84%; background: rgb(255 255 255 / 0.3); height: 10px; }
.act-sign .act-sub { display: block; font: 600 11px var(--body); opacity: 0.8; margin-top: 1px; }
.act-sign.waiting { background: rgb(255 255 255 / 0.12) !important; color: #fff !important; }
.act-sign.waiting::before, .act-sign.waiting::after { display: none; }
.act-sign.waiting svg { opacity: 0.6; }
.act-sign.waiting { flex-direction: column; gap: 0; justify-content: center; line-height: 1.1; }
.act-sign.waiting svg { display: none; }
.act-sign.waiting .act-sub { margin-top: 3px; }

/* ---------- screen review round 2 ---------- */
/* Listening: the essentials in two rows of four */
.heard-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.heard-chip { font-size: 12px; padding: 6px 6px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Building: "What we heard" stands out */
.said-kick { font-size: 13px !important; font-weight: 700; letter-spacing: 0.06em; opacity: 1 !important; color: var(--hi); margin-bottom: 4px !important; }
.said-text { font-size: 16px !important; line-height: 1.4 !important; }
/* Details: big, bold labels like the section headings; no money pencils; a pencil in the price tile's corner */
.tile2.hero .tile2-label, [data-key="closingDate"] > .tile2-label, .tile2.big-label .tile2-label { font: 700 19px var(--display) !important; color: inherit; }
input.box.editable-money { background-image: none !important; padding-right: 0 !important; }
.tile2.hero { position: relative; }
.hero-pencil { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink); color: var(--hi); display: grid; place-items: center; padding: 0; cursor: pointer; }
.hero-seller { font-size: 13px; opacity: 0.75; margin-top: 2px; }
/* DocuSign logo, once the official file is added */
/* Counter card: "Counter 1" small in the corner */
.board-scroll > .counter, .counter { position: relative; }
.counter-corner { position: absolute; top: 14px; right: 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; opacity: 0.7; }
.counter-of { margin: 0 70px 8px 0 !important; font: 700 17px var(--display) !important; opacity: 1 !important; }
/* Contract screen (option D): answers given show as ticked lines; when nothing is left, one card */
.finish-done { display: flex; align-items: center; gap: 10px; }
.finish-done .finish-label { flex: 1; min-width: 0; }
.finish-done .finish-value { font-weight: 700; text-align: right; }
.ready-done { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; padding: 18px; border-radius: 24px; background: var(--hi); color: var(--ink); animation: rise 0.4s var(--ease); }
.ready-done-top { display: flex; align-items: center; gap: 14px; }
.ready-done-tick { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8F26B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 24px no-repeat; }
.ready-done-words h3 { margin: 0; font: 700 22px/1.1 var(--display); letter-spacing: -0.01em; }
.ready-done-words p { margin: 3px 0 0; font-size: 14px; opacity: 0.75; }
.ready-done-list { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid rgb(15 27 23 / 0.15); font-size: 14px; }
.ready-done-list .finish-done { background: none; border: 0; padding: 0; animation: none; border-radius: 0; }
.ready-done-list .finish-done i { background-color: var(--ink); background-size: 13px; }
.ready-done-list .finish-done .finish-label { flex: none; overflow: visible; white-space: nowrap; }
.ready-done-list .finish-done .finish-value { flex: 1; min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; }

/* Contract name with a pencil (instead of "Change") */
.form-bar { justify-content: flex-start; }
.contract-name { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; border: 0; background: none; padding: 0; color: inherit; font: 600 14px var(--body); cursor: pointer; text-align: left; }
.contract-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.contract-pencil { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hi); color: var(--ink); }
/* Ready for DocuSign: the offer at a glance */
.ready-done { gap: 14px; }
.ready-done-top { align-items: flex-start; }
.ready-done-tick { width: 42px; height: 42px; background-size: 22px; }
.ready-done-words { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ready-done-words h3 { font-size: 22px; }
.ready-done .contract-name { font-size: 13px; opacity: 0.85; }
.ready-done .contract-pencil { width: 24px; height: 24px; background: var(--ink); color: var(--hi); }
.ready-done .contract-pencil svg { width: 13px; height: 13px; }
.ready-deal { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid rgb(15 27 23 / 0.15); }
.ready-price { font: 700 34px/1.05 var(--display); letter-spacing: -0.02em; }
.ready-where { font-size: 14px; opacity: 0.8; }
.ready-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ready-fact { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 14px; background: rgb(15 27 23 / 0.07); min-width: 0; }
.ready-fact span { font-size: 12px; opacity: 0.65; }
.ready-fact b { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
/* Back buttons: the same pill everywhere (contract screen and deal page) */
.back-pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 10px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: #fff; font: 600 14px var(--body); cursor: pointer; }
.contract-top { margin-bottom: 8px; }

/* READY card: title, tick and an eye to view; the bottom button downloads */
.ready-done-top { align-items: center; }
.ready-done-words { flex: 1; }
.ready-done-words h3 { font: 700 26px/1 var(--display) !important; letter-spacing: 0.04em; }
.view-eye { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--hi); padding: 0; cursor: pointer; }
.form-bar .view-eye { margin-left: auto; width: 38px; height: 38px; background: var(--hi); color: var(--ink); }
.act-download svg { width: 22px; height: 22px; }

/* ---------- back navigation: one circle arrow everywhere, under the header ---------- */
.back-circle { flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: #F2F6F4; cursor: pointer; }
.back-circle:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; }
.deal-nav .back-circle, .intro-top .back-circle { color: var(--ink); }
.back-circle[hidden] { display: none; }

/* ---------- header: the logo and the app name, which take you home ---------- */
.home-spot { width: 168px; }
.home-btn, .app[data-stage="land"] .home-btn, .app:not([data-view]) .home-btn,
.app:has(#contracts:not([hidden])) .home-btn, .app:has(#onboard:not([hidden])) .home-btn,
.app:has(#voice:not([hidden])) .home-btn, .app:has(#viewer:not([hidden])) .home-btn {
  width: auto; height: 40px; display: flex; align-items: center; gap: 10px; background: transparent; box-shadow: none; padding: 0; border-radius: 12px; }
.home-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--hi); color: var(--ink); }
.home-name { font: 700 19px var(--display); letter-spacing: -0.02em; color: #F2F6F4; }
.app[data-stage="land"] .home-mark, .app:not([data-view]) .home-mark,
.app:has(#contracts:not([hidden])) .home-mark, .app:has(#onboard:not([hidden])) .home-mark { background: var(--ink); color: var(--hi); }
.app[data-stage="land"] .home-name, .app:not([data-view]) .home-name,
.app:has(#contracts:not([hidden])) .home-name, .app:has(#onboard:not([hidden])) .home-name { color: var(--ink); }
.app:has(#voice:not([hidden])) .home-mark, .app:has(#viewer:not([hidden])) .home-mark { background: var(--hi); color: var(--ink); }
/* Full-screen listening and the PDF viewer have their own top rows: the logo alone there */
.app:has(#voice:not([hidden])) .home-name, .app:has(#viewer:not([hidden])) .home-name { display: none; }

/* "Open Questions" beside the back arrow */
.contract-top { display: flex; align-items: center; gap: 12px; }
.page-title { font: 700 20px var(--display); letter-spacing: -0.01em; color: #F2F6F4; }
.page-title:empty { display: none; }
/* Mark N/A: the heading and switch keep their size when the section opens */
.na.open { padding: 12px 16px 16px; border-radius: 20px; }
.na.open .na-head h3 { font-size: 16px; line-height: 1.25; letter-spacing: 0; }
.na.open .switch-track.big { width: 52px; height: 30px; border-radius: 15px; }
.na.open .switch-track.big::after { width: 22px; height: 22px; }
.na.open .switch-track.big[aria-checked="true"]::after { transform: translateX(22px); }
/* The paper plane on the Send button */
.act-sign .act-logo { width: 20px; height: 20px; flex: none; }
.act-sign.waiting .act-logo { display: none; }

/* ---------- the intro's animated picture, "Voice becomes paper" ----------
   Reference: design/mockups/intro-concepts/index.html, concept 1. A 350 × 400 stage; app.js adds
   the step classes s1…s6 and scales the stage to fit. */
.intro-anim { position: relative; flex: 1; min-height: 180px; margin: 2px 0 0; }
.ia-st { position: absolute; left: 50%; top: 0; width: 350px; height: 400px; margin-left: -175px; transform-origin: 50% 0; }
.ia-st, .ia-st * { box-sizing: border-box; }
.ia-st > *, .ia-cap span { position: absolute; }
.ia-st.nt, .ia-st.nt * { transition: none !important; animation: none !important; }
.ia-wave { left: 95px; top: 80px; width: 160px; height: 110px; display: flex; gap: 8px; align-items: center; justify-content: center; transition: opacity .4s, transform .6s cubic-bezier(.6,0,.2,1); }
.ia-wave i { width: 10px; height: 90px; border-radius: 5px; background: var(--ink); transform: scaleY(.25); }
.ia-st.s1 .ia-wave i { animation: ia-wv .55s ease-in-out infinite alternate; }
.ia-wave i:nth-child(2n) { animation-delay: -.2s !important; } .ia-wave i:nth-child(3n) { animation-delay: -.4s !important; }
@keyframes ia-wv { to { transform: scaleY(1); } }
.ia-st.s2 .ia-wave { opacity: 0; transform: scaleX(1.8) scaleY(.1); }
.ia-paper { left: 55px; top: 40px; width: 240px; height: 196px; border-radius: 14px; background: #fff; color: var(--ink); padding: 16px; box-shadow: 0 16px 34px rgb(15 27 23 / .18); opacity: 0; transform: scaleY(.1); transform-origin: 50% 50%; transition: opacity .35s, transform .6s cubic-bezier(.2,.9,.3,1.1); display: flex; flex-direction: column; gap: 9px; }
.ia-paper .t { font: 700 10px Inter, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; opacity: .5; }
.ia-paper .l { display: flex; gap: 10px; align-items: center; font-size: 11px; }
.ia-paper .l span { width: 52px; opacity: .55; }
.ia-paper .l b { flex: 1; height: 26px; border-radius: 7px; background: rgb(15 27 23 / .07); color: transparent; font: 700 15px/26px var(--display); padding: 0 7px; transition: background .3s, color .3s; }
.ia-st.s2 .ia-paper { opacity: 1; transform: none; }
.ia-st.s3 .ia-paper .l b { background: var(--hi); color: var(--ink); }
.ia-st.s3 .ia-paper .l:nth-child(3) b { transition-delay: .3s; } .ia-st.s3 .ia-paper .l:nth-child(4) b { transition-delay: .6s; } .ia-st.s3 .ia-paper .l:nth-child(5) b { transition-delay: .9s; }
.ia-st.s4 .ia-paper { opacity: 0; transform: translate(70px, -40px) rotate(18deg) scale(.15); transition: opacity .5s .2s, transform .6s cubic-bezier(.6,0,.2,1); }
.ia-plane { left: 150px; top: 110px; width: 56px; height: 56px; opacity: 0; }
.ia-st.s4 .ia-plane { animation: ia-fly 1.3s cubic-bezier(.5,0,.3,1) .35s forwards; }
@keyframes ia-fly { 0% { opacity: 0; transform: translate(0,0) rotate(-10deg) scale(.6); } 15% { opacity: 1; } 100% { opacity: 1; transform: translate(118px,-112px) rotate(8deg) scale(.7); } }
.ia-signed { right: 0; top: 4px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 14px 8px 8px; background: var(--ink); color: var(--hi); font: 700 14px Inter, system-ui, sans-serif; white-space: nowrap; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .45s cubic-bezier(.2,.9,.3,1.4); }
.ia-check { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--hi); color: var(--ink); }
.ia-st.s5 .ia-signed { opacity: 1; transform: none; }
.ia-st.s5 .ia-plane { opacity: 0 !important; animation: none; }
.ia-deals { left: 20px; right: 20px; top: 120px; display: flex; flex-direction: column; gap: 8px; }
.ia-deals > div { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: #fff; color: var(--ink); font: 600 14px Inter, system-ui, sans-serif; opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .4s; box-shadow: 0 6px 14px rgb(15 27 23 / .08); }
.ia-deals b { flex: 1; font-weight: 600; } .ia-deals em { font: 700 11px Inter, system-ui, sans-serif; font-style: normal; padding: 4px 9px; border-radius: 999px; }
.ia-deals .ok { background: var(--hi); } .ia-deals .half { background: rgb(232 242 107 / .25); } .ia-deals .wait { background: rgb(15 27 23 / .1); }
.ia-st.s6 .ia-deals > div { opacity: 1; transform: none; }
.ia-st.s6 .ia-deals > div:nth-child(2) { transition-delay: .15s; } .ia-st.s6 .ia-deals > div:nth-child(3) { transition-delay: .3s; }
.ia-cap { left: 0; right: 0; bottom: 8px; height: 26px; text-align: center; font: 700 20px var(--display); letter-spacing: -.01em; }
.ia-cap span { left: 0; right: 0; opacity: 0; transition: opacity .3s; }
.ia-st.s1:not(.s2) .ia-cap .k1, .ia-st.s2:not(.s4) .ia-cap .k2, .ia-st.s4:not(.s5) .ia-cap .k3, .ia-st.s5:not(.s6) .ia-cap .k4, .ia-st.s6 .ia-cap .k5 { opacity: 1; }
/* Intro, first screen: everything fits above the button */
.onboard .onboard-body > .q.huge { font-size: clamp(32px, 9.4vw, 40px); line-height: 1.02; }

.test-note { font-weight: 600; }

/* Price ruler: ticks drawn on a canvas that only covers what's visible */
.wheel-track { background: none !important; }
.wheel-ticks { position: absolute; left: 0; top: 0; width: 100%; height: 30px; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
/* Price tile: names and address typed in place */
.hero-form { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.hero-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-field > span { font-size: 12px; font-weight: 600; opacity: 0.7; }
.hero-form .box { background: rgb(255 255 255 / 0.65); border-color: rgb(15 27 23 / 0.25); color: var(--ink); }
.hero-form .box:focus { border-color: var(--ink); background: #fff; }
.hero-form .box::placeholder { color: rgb(15 27 23 / 0.4); }
.hero-pair { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.hero-pencil.on { background: var(--ink); color: var(--hi); }
/* iPhone Safari gives date fields their own minimum width and centred text, so they ran
   past the tile. Keep them inside their box, left-aligned like the other fields. */
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 44px; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="date"]::-webkit-datetime-edit { padding: 0; }

/* The intro is full screen: no app header over it. */
.app:has(#onboard:not([hidden])) .home-btn { display: none; }
#onboard.onboard { padding-top: calc(18px + env(safe-area-inset-top)); }

.onboard-top { min-height: 30px; }

/* Send sheet, two steps (design/mockups/send-and-signing, option 3: mock.js v3) */
.step-bar { display: flex; align-items: center; gap: 12px; margin: 2px 0 6px; }
.step-bar .back-circle { color: var(--ink); }
.step-bar small { font: 600 13px Inter, sans-serif; opacity: 0.6; }
.step-dots { display: flex; gap: 6px; }
.step-dots i { width: 8px; height: 8px; border-radius: 4px; background: rgb(15 27 23 / 0.25); }
.step-dots i.on { width: 22px; background: var(--ink); }
.send-card { margin-top: 12px; border-radius: 20px; background: #fff; padding: 14px; }
.send-sec { margin: 0; font: 700 17px var(--display); display: flex; justify-content: space-between; align-items: baseline; }
.send-sec small { font: 600 13px Inter, sans-serif; opacity: 0.6; }
.send-add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.send-pick { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 14px; border: 2px dashed rgb(15 27 23 / 0.45); background: transparent; font: 600 15px Inter, sans-serif; color: var(--ink); }
.send-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.send-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 999px; border: 1.5px solid rgb(15 27 23 / 0.5); background: transparent; font: 600 13px Inter, sans-serif; color: var(--ink); }
.send-chip svg { width: 13px; height: 13px; }
.send-file { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 11px 12px; border-radius: 14px; background: rgb(15 27 23 / 0.05); }
.send-file .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--hi); display: grid; place-items: center; }
.send-file div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.send-file b { font: 600 15px Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.send-file small { font-size: 12px; opacity: 0.6; }
.send-x { flex: none; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1.5px solid rgb(15 27 23 / 0.4); background: transparent; display: grid; place-items: center; color: var(--ink); }
.send-addline { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 600 15px Inter, sans-serif; text-decoration: underline; background: none; border: 0; color: var(--ink); padding: 0; }
.send-hint { margin: 6px 2px 0; font-size: 13px; opacity: 0.7; }
.la-confirm { gap: 2px; padding: 12px 14px; border-radius: 16px; background: rgb(15 27 23 / 0.06); }
.la-confirm strong { font: 700 16px var(--display); }
.la-confirm span { font-size: 14px; opacity: 0.75; }
.send-card .void-row { margin: 0; border: 0; padding: 0; background: none; }
.send-card .signer { margin-top: 10px; }
.send-card .sheet-input { background: rgb(15 27 23 / 0.04); }
.send-card .sheet-input.bad { border-color: #b3261e; }
.send-err { margin: 10px 0 0; font: 500 13px/1.4 Inter, sans-serif; color: #b3261e; }

/* Deal page: Signatures, Envelope and Terms tiles, each closed by default (option 11, icon B) */
.deal-head-row { display: flex; align-items: center; gap: 10px; }
.deal-card .deal-head-row h4 { margin: 0; }
.deal-tog { flex: none; margin-left: auto; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); transition: transform 0.2s; }
.deal-tog.open { transform: rotate(180deg); }
.deal-head-row .deal-refresh { margin-left: auto; color: var(--ink); font-size: 14px; padding: 0; }
.deal-refresh + .deal-tog { margin-left: 0; }
.deal-plane { display: grid; place-items: center; margin-left: -2px; color: rgb(15 27 23 / 0.38); }
.deal-plane.sent { color: var(--accent); }
.deal-sum { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.sgn-times { margin: 2px 0 0 24px; font-size: 12px; color: var(--muted); }
.deal-card .deal-head-row + .term-grid, .deal-card .deal-head-row + .deal-doc { margin-top: 10px; }
.deal-doc { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.deal-doc .ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: rgb(15 27 23 / 0.06); display: grid; place-items: center; color: var(--ink); }
.deal-doc b { flex: 1; min-width: 0; font-weight: 600; }
.deal-doc span { color: var(--muted); font-size: 13px; }
.deal-fwd { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: rgb(15 27 23 / 0.05); font-size: 13px; }
.deal-fwd .ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgb(15 27 23 / 0.12); color: var(--ink); }
.deal-fwd.done .ic { background: var(--accent); color: #fff; }
.deal-fwd div { display: flex; flex-direction: column; }
.deal-fwd b { font-size: 14px; }

/* ---------- Send: the DocuSign button on step 2, and the progress bar ---------- */
.choice.send-cta { display: flex; align-items: center; justify-content: center; gap: 10px; }
/* Send steps 1 and 2: a tall sheet (about 82% of the screen) with Next / Send pinned at the bottom. */
.sheet.tall { height: 82%; display: flex; flex-direction: column; }
.sheet.tall > * { flex-shrink: 0; }
.sheet.tall > .choice.pin { position: sticky; bottom: 0; margin-top: auto; box-shadow: 0 -12px 18px 6px var(--hi); }
.send-mark { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; align-self: center; }
/* Send credits: what this send costs, right above Send, pinned with it. */
.send-foot { display: flex; flex-direction: column; gap: 8px; }
.sheet.tall > .send-foot { position: sticky; bottom: 0; margin-top: auto; padding-top: 6px; background: var(--hi); box-shadow: 0 -12px 18px 6px var(--hi); }
.send-foot .choice { width: 100%; margin-top: 0; }
.credit-line { margin: 0; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.credit-line.none { color: rgb(15 27 23 / 0.62); }
.choice.send-cta:disabled { opacity: 0.38; cursor: not-allowed; }
/* Intro step 3: the paper plane on an ink tile above "E-signing is built in." */
.send-mark.tile { width: 64px; height: 64px; align-self: flex-start; margin: 4px 0 8px; border-radius: 18px; background: var(--ink); color: var(--hi); }
/* Half the space above and below the bar that it had before (owner, 2026-11-28). */
.sendbar + .score { margin-top: 6px; }
.sendbar { margin: -2px 0 2px; height: 6px; border-radius: 3px; background: rgb(15 27 23 / 0.16); overflow: hidden; }
.sendbar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--ink); animation: sendbar-run 30s linear forwards; }
.sendbar.done i { width: 100%; animation: sendbar-done 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
/* 95% in about 1.2 seconds, then a slow creep that never quite finishes until DocuSign confirms. */
@keyframes sendbar-run {
  0% { width: 0; animation-timing-function: cubic-bezier(0.12, 0.85, 0.3, 1); }
  4% { width: 95%; animation-timing-function: cubic-bezier(0.05, 0.6, 0.3, 1); }
  100% { width: 99%; }
}
@keyframes sendbar-done { from { width: 95%; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .sendbar i { animation: none; width: 95%; } .sendbar.done i { width: 100%; } }

/* Counter card: the "came from" line and "Counter n" share one centred row. */
.counter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.counter-head .counter-corner { position: static; flex: none; }
.counter-head .counter-of, .counter-head .signing-note { margin: 0 !important; min-width: 0; }
.counter-head + .signing-note { margin-top: 10px !important; }

/* Delete account confirm: keep the title clear of the X. */
.sheet > .q.delete-title { margin-right: 52px; }

/* ---------- Optional paragraphs, listing agent, association fees (design/mockups/paragraphs, option 1+) ---------- */
.pm-addwrap { margin: 12px 0 8px; }
.pm-addbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; border-radius: 999px; border: 1.5px dashed rgb(232 242 107 / 0.55); background: transparent; color: var(--hi); font: 600 16px/1 Inter, sans-serif; cursor: pointer; }
.pm-para-tag { display: inline-block; margin-left: 6px; font: 600 12px/1 Inter, sans-serif; opacity: 0.6; letter-spacing: 0; text-transform: none; }
.pm-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pm-tile-head .tile2-label { margin: 0; }
.pm-x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / 0.25); background: transparent; color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; }
.pm-note { margin: 8px 0 0; font: 400 14px/1.4 Inter, sans-serif; color: rgb(255 255 255 / 0.62); }
.pm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-row2 > div { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pm-row2 .box { width: 100%; box-sizing: border-box; }
.tile2 .pm-sub { margin-top: 8px; font: 600 14px/1 Inter, sans-serif; color: #c9d8d1; }
/* The sheet */
.sheet.para-sheet { height: 88%; display: flex; flex-direction: column; padding-bottom: 0; }
.sheet.para-sheet > * { flex-shrink: 0; }
.sheet.para-sheet > .q { margin-right: 52px; }
.pm-say { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font: 400 14px/1.4 Inter, sans-serif; color: rgb(15 27 23 / 0.7); }
.pm-group { margin: 18px 0 2px; font: 700 13px/1 Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(15 27 23 / 0.55); }
.pm-list { display: grid; gap: 10px; margin-top: 6px; }
.pm-card { border-radius: 20px; background: rgb(255 255 255 / 0.55); border: 1.5px solid rgb(15 27 23 / 0.12); }
.pm-card.on { background: #fff; border-color: var(--ink); }
.pm-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 14px 14px 18px; border-radius: 20px; background: none; border: 0; color: var(--ink); cursor: pointer; font: inherit; }
.pm-item .w { flex: 1; display: grid; gap: 3px; }
.pm-item b { font: 700 16px/1.2 var(--display); letter-spacing: -0.01em; }
.pm-item b i { font-style: normal; font-weight: 600; opacity: 0.5; margin-left: 4px; font-size: 13px; }
.pm-item .w > span { font: 400 13.5px/1.35 Inter, sans-serif; color: rgb(15 27 23 / 0.68); }
.pm-item .add { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--hi); display: grid; place-items: center; }
.pm-q { padding: 0 16px 16px; display: grid; gap: 8px; }
.pm-q .lab { font: 600 13px/1 Inter, sans-serif; color: rgb(15 27 23 / 0.6); margin-top: 4px; }
.pm-q .sheet-input { width: 100%; box-sizing: border-box; margin: 0; }
.pm-q .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-q .two > div { min-width: 0; display: grid; gap: 8px; }
.pm-q .pm-say { margin: 0; }
.pm-lseg { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-lseg.stack { flex-direction: column; }
.pm-lseg button { flex: 1; padding: 11px 4px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 14px/1 Inter, sans-serif; cursor: pointer; }
.pm-lseg.stack button { padding: 11px 14px; text-align: left; }
.pm-lseg button[aria-pressed="true"] { background: var(--ink); color: var(--hi); }
.pm-foot { position: sticky; bottom: 0; z-index: 5; margin: auto -22px 0; padding: 26px 24px calc(30px + env(safe-area-inset-bottom)); background: linear-gradient(rgb(232 242 107 / 0), var(--hi) 30%); }
.pm-foot .choice { width: 100%; margin: 0; }
.pm-foot .choice:disabled { opacity: 0.38; }
/* Setup: Your info */
.pm-sub { margin: 14px 0 6px; font: 600 14px/1 Inter, sans-serif; color: rgb(15 27 23 / 0.6); }
.pm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-pair .sheet-input { min-width: 0; width: 100%; box-sizing: border-box; }
/* What we heard: paragraphs added or removed */
.said-para { margin: 4px 0 0; font-size: 13px; font-weight: 600; }
.tile2.pm-hoa .box.editable-money { width: 100% !important; }

/* Home headline: "Tell me the" then the typed word (typingHeadline in app.js). The word keeps
   room for two lines so the mic never moves; a single long word ("counteroffer.") never wraps. */
.q.huge.typing { text-wrap: initial; }
.typing-lead, .typing-word { display: block; }
.typing-word { min-height: 2.04em; }
.typing-last { white-space: nowrap; }
.typing-caret { display: inline-block; width: 0.07em; height: 0.82em; margin-left: 0.04em; background: currentColor; vertical-align: -0.06em; border-radius: 2px; }
.typing-caret.blink { animation: caret-blink 1.1s steps(1) infinite; }
@keyframes caret-blink { 55% { opacity: 0; } }

/* ---------- Buyer and listing agreements (design/mockups/documents, picks 2 to 6 and 8) ---------- */
/* The type chip at the top of the details board, and "What is it?" */
.ag-chip-row { display: flex; align-items: center; gap: 10px; margin: 2px 2px 14px; }
.ag-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 16px; border-radius: 999px; border: 1.5px solid rgb(232 242 107 / .55); background: transparent; color: var(--hi); font: 600 15px/1 Inter, sans-serif; cursor: pointer; }
.ag-chip svg { opacity: .8; }
.ag-types { display: grid; gap: 10px; margin-top: 6px; }
.ag-type { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 22px; background: rgb(255 255 255 / .55); border: 1.5px solid rgb(15 27 23 / .12); color: var(--ink); cursor: pointer; }
.ag-type-w { flex: 1; display: grid; gap: 4px; }
.ag-type b { font: 700 17px/1.2 var(--display); letter-spacing: -.01em; }
.ag-type-w span { font: 400 14px/1.35 Inter, sans-serif; color: rgb(15 27 23 / .68); }
.ag-type-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--hi); display: grid; place-items: center; }
.ag-type.on { background: var(--ink); color: var(--hi); }
.ag-type.on .ag-type-w span { color: rgb(232 242 107 / .7); }
.ag-type.on .ag-type-ic { background: var(--hi); color: var(--ink); }
/* The compensation hero */
.ag-hero-big { font: 700 64px/1 var(--display); letter-spacing: -.04em; color: var(--ink); margin: 6px 0 14px; }
.ag-hero-big.unset { font-size: 40px; opacity: .45; }
.ag-hero-seg { display: flex; gap: 8px; margin: 0 0 16px; }
.ag-hero-seg button { flex: 1; padding: 11px 0; border-radius: 999px; border: 1.5px solid rgb(15 27 23 / .35); background: transparent; color: var(--ink); font: 600 15px/1 Inter, sans-serif; cursor: pointer; }
.ag-hero-seg button[aria-pressed="true"] { background: var(--ink); color: var(--hi); border-color: var(--ink); }
.sub-label.first { margin-top: 0; }
/* Setup: which type's forms show */
.setup-types { margin: 0 0 12px; }

/* ---------- Signing on the agent's phone ("Signs here"; design/mockups/sign-here, approved 2026-11-28) ---------- */
/* Send step 1: "Signs here" / "By email" under each signer (screen 1). */
.here-how { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 2px; padding: 4px; border-radius: 999px; background: rgb(15 27 23 / 0.1); }
.here-how button { display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 999px; padding: 9px 6px; background: transparent; color: var(--ink); font: 600 14px Inter, sans-serif; }
.here-how button.on { background: var(--ink); color: #fff; }
.signer.how + .signer.how { margin-top: 10px; }
/* The hand-over, code and ending screens cover the whole app (screens 13, 14, 21, 24, 25, 9). */
.here-cover { position: absolute; inset: 0; z-index: 30; background: var(--hi); color: var(--ink); display: flex; flex-direction: column; padding: calc(64px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom)); font-family: Inter, sans-serif; overflow-y: auto; }
.here-cover .q { margin: 0; }
.here-cover > * { flex-shrink: 0; }
.here-cover .here-x { z-index: 1; }
.here-tile { width: 72px; height: 72px; border-radius: 22px; background: var(--ink); color: var(--hi); display: grid; place-items: center; margin-bottom: 22px; }
.here-sub { margin: 14px 0 0; font: 500 18px/1.4 Inter, sans-serif; max-width: 19em; }
.here-foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.here-foot .choice { width: 100%; text-align: center; }
.here-foot.two { flex-direction: row; }
.here-foot.two .choice { flex: 2; width: auto; }
.here-foot.two .choice.outline { flex: 1; }
.here-foot .choice:disabled { opacity: 0.38; }
.here-foot .sheet-error { text-align: left; }
.here-note { margin: 0; border: 0; padding: 0; background: none; color: var(--ink); text-align: center; font: 600 14px Inter, sans-serif; opacity: 0.62; }
.here-note.left { text-align: left; margin-top: 14px; }
.here-rows { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.here-rows li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fff; font: 600 16px Inter, sans-serif; }
.here-rows li small { margin-left: auto; font: 600 13px Inter, sans-serif; opacity: 0.6; white-space: nowrap; }
.here-rows i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #17704a; color: #fff; display: grid; place-items: center; }
.here-rows i svg { width: 14px; height: 14px; }
.here-rows i.wait { background: transparent; border: 2px solid rgb(15 27 23 / 0.4); }
.here-rows i.ink { background: var(--ink); }
.here-rows.soft { margin-top: 16px; }
.here-rows.soft li { align-items: flex-start; background: rgb(15 27 23 / 0.05); }
.here-rows.soft li span { flex: 1; min-width: 0; }
.here-rows.soft li small { margin-left: 8px; }
/* The six boxes of the emailed code (screen 14); one invisible input sits over them. */
.here-code { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 22px; }
.here-code span { height: 60px; border-radius: 14px; border: 2px solid var(--ink); background: rgb(255 255 255 / 0.6); display: grid; place-items: center; font: 700 26px var(--display); }
.here-code span.empty { background: #fff; }
.here-code.busy span { opacity: 0.55; animation: here-code-busy 0.8s ease-in-out infinite alternate; }
@keyframes here-code-busy { to { opacity: 0.9; } }
.here-code.ok span { border-color: #17704a; background: #dff3e6; color: #0d4a30; }
.here-code.bad span { border-color: #b3261e; background: #fde4e0; color: #8c1d18; }
.here-code-ok { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font: 600 15px Inter, sans-serif; color: #0d4a30; }
.here-code-ok[hidden] { display: none; }
.here-code-ok i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #17704a; color: #fff; display: grid; place-items: center; }
.here-code-ok i svg { width: 13px; height: 13px; }
@media (prefers-reduced-motion: reduce) { .here-code.busy span { animation: none; } }
.here-code-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; font-size: 16px; }
/* Sheets over the contract or the deal page: the drawing pad (6), a text box, the record (22). */
.here-sheet { top: auto; height: 56%; border-radius: 28px 28px 0 0; padding-top: 26px; box-shadow: 0 -30px 0 100vh rgb(15 27 23 / 0.45); z-index: 31; animation: sheet 0.35s var(--ease); }
.here-sheet.text { height: auto; gap: 14px; }
/* "Now your initials.": the pad, then three ready-made styles (mockups 26 to 28). */
.here-sheet.initials { height: 66%; }
.here-sheet.initials .here-pad { margin-top: 14px; padding-top: 14px; }
.here-or { margin: 14px 0 8px; font: 600 14px Inter, sans-serif; opacity: 0.62; }
.here-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.here-styles button { height: 68px; border-radius: 16px; border: 2px solid rgb(15 27 23 / 0.35); background: rgb(255 255 255 / 0.6); display: grid; place-items: center; padding: 0; }
.here-styles button.on { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px var(--ink); }
.here-styles svg { display: block; max-width: 88%; max-height: 60px; }
.here-sheet.record { height: 84%; background: #fff; box-shadow: none; z-index: 33; }
.here-sheet.record .here-sub { font-size: 16px; margin-top: 6px; }
.here-sheet.record .q { padding-right: 48px; }
.here-sheet .here-x { top: 18px; }
.here-dim { position: absolute; inset: 0; z-index: 32; background: rgb(15 27 23 / 0.45); }
.here-pad { margin-top: 16px; border-radius: 20px; background: #fff; border: 2px solid var(--ink); padding: 18px 16px 10px; position: relative; }
.here-pad canvas { display: block; width: 100%; touch-action: none; cursor: crosshair; }
.here-pad hr { border: 0; border-top: 2px solid rgb(15 27 23 / 0.3); margin: 0 0 8px; }
.here-pad small { font: 600 13px Inter, sans-serif; opacity: 0.6; }
/* The contract while a signer goes through it (screen 5): zoomed in, one spot at a time. */
.viewer.here #viewer-close, .viewer.here #viewer-save { visibility: hidden; }
.viewer.here .viewer-pages { position: relative; display: block; overflow: auto; padding-bottom: 60vh; }
.viewer.here .viewer-pages canvas { margin-bottom: 10px; max-width: none; }
.here-bar { flex: none; z-index: 2; padding: 12px 16px calc(22px + env(safe-area-inset-bottom)); background: #0f1b17; display: flex; align-items: center; gap: 12px; color: #fff; }
.here-bar b { font: 600 15px Inter, sans-serif; }
.here-bar small { display: block; font: 500 13px Inter, sans-serif; opacity: 0.65; }
.here-bar button { margin-left: auto; border: 0; border-radius: 999px; padding: 13px 22px; background: var(--hi); color: var(--ink); font: 700 16px var(--display); }
.here-bar button:disabled { opacity: 0.4; }
.here-tag { position: absolute; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--hi); color: var(--ink); border: 2px solid var(--ink); font: 700 13px Inter, sans-serif; white-space: nowrap; box-shadow: 0 6px 16px rgb(0 0 0 / 0.3); }
.here-tag::after { content: ""; position: absolute; left: 18px; bottom: -8px; width: 12px; height: 12px; background: var(--hi); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.here-ring { position: absolute; z-index: 4; padding: 0; border: 2.5px solid #0f1b17; border-radius: 6px; background: rgb(232 242 107 / 0.55); }
.here-mark { position: absolute; z-index: 3; display: flex; align-items: flex-end; color: #0d1a59; font: italic 700 12px/1 Helvetica, Arial, sans-serif; padding: 0 0 3px 3px; pointer-events: none; white-space: nowrap; overflow: hidden; }
.here-mark.text { font: 400 10px/1 Helvetica, Arial, sans-serif; }
.here-mark.sign { padding: 0 0 3px; }
.here-mark img { display: block; max-width: 100%; max-height: 66%; }
.here-mark.hand { padding: 0; overflow: visible; }
.here-mark.hand svg { display: block; width: 100%; height: 100%; }
/* The deal page: the link to a here-signer's record. */
.sgn-record { display: block; margin: 2px 0 0 24px; font-size: 12px; }

/* ---------- Inviting other realtors (public/js/invites.js, docs/PLAN_INVITES.md) ---------- */
.invite-layer { position: absolute; inset: 0; z-index: 60; }
.invite-dim { position: absolute; inset: 0; background: rgb(15 27 23 / 0.45); }
.invite-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; overflow-y: auto; background: var(--hi); color: var(--ink); display: flex; flex-direction: column; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; font-family: Inter, sans-serif; animation: invite-up 0.28s var(--ease, ease-out); }
@keyframes invite-up { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .invite-sheet { animation: none; } }
.invite-sheet .q { margin: 0; padding-right: 48px; }
.invite-x { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; display: grid; place-items: center; color: var(--ink); }
.invite-tile { width: 64px; height: 64px; border-radius: 20px; background: var(--ink); color: var(--hi); display: grid; place-items: center; margin-bottom: 16px; }
.invite-sub { margin: 12px 0 0; font: 500 17px/1.4 Inter, sans-serif; }
.invite-link { margin-top: 18px; display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 16px; border: 2px dashed rgb(15 27 23 / 0.5); background: transparent; color: var(--ink); font: 600 15px Inter, sans-serif; text-align: left; }
.invite-link span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invite-link b { flex: none; font: 700 14px Inter, sans-serif; text-decoration: underline; }
.invite-mail { margin-top: 10px; }
.invite-mail-row { display: flex; gap: 8px; }
.invite-mail-row input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 16px; border: 2px solid rgb(15 27 23 / 0.3); background: #fff; color: var(--ink); font: 600 15px Inter, sans-serif; }
.invite-mail-row input:focus { outline: none; border-color: var(--ink); }
.invite-mail-row button { flex: none; padding: 0 16px; border-radius: 16px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 700 14px Inter, sans-serif; }
.invite-mail-row button:disabled { opacity: 0.4; }
.invite-mail .invite-note { margin-top: 8px; }
.invite-rows { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.invite-rows li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 18px; background: #fff; font: 600 15px Inter, sans-serif; }
.invite-rows li .invite-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite-rows li small { margin-left: auto; font: 600 13px Inter, sans-serif; opacity: 0.6; white-space: nowrap; }
.invite-rows i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #17704a; color: #fff; display: grid; place-items: center; }
.invite-rows i svg { width: 14px; height: 14px; }
.invite-rows i.wait { background: transparent; border: 2px solid rgb(15 27 23 / 0.4); }
.invite-foot { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.invite-foot .choice { width: 100%; margin-top: 0; text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; }
.invite-note { margin: 0; text-align: center; font: 600 13px Inter, sans-serif; opacity: 0.62; }
.invite-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-radius: 20px; background: var(--ink); color: #fff; text-align: left; }
.invite-card.on-sending { margin-top: -4px; margin-bottom: 14px; }
.invite-card.in-setup { margin: 12px 0 4px; }
.invite-card-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--hi); color: var(--ink); }
.invite-card-words { flex: 1; min-width: 0; }
.invite-card-words b { display: block; font: 700 17px var(--display); }
.invite-card-words span { font: 500 13px Inter, sans-serif; opacity: 0.75; }
.invite-card-go { flex: none; font: 700 22px Inter, sans-serif; color: var(--hi); }
.choice.invite-nocredits { display: flex; align-items: center; justify-content: center; gap: 10px; }
.invite-nocredits-icon { display: inline-grid; width: 24px; height: 24px; }

/* ---------- First run: one welcome screen (intro variation 16; ROADMAP 2026-11-29) ---------- */
.onboard.welcome { background: #fff; align-items: center; padding-left: 28px; padding-right: 28px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); overflow: hidden; }
.onboard.welcome::after { content: ""; position: absolute; left: -40px; right: -40px; bottom: -150px; height: 400px; background: radial-gradient(closest-side, var(--hi), rgb(232 242 107 / 0)); pointer-events: none; }
.onboard.welcome > * { position: relative; z-index: 1; }
.wi-box { flex: 1; min-height: 0; align-self: stretch; display: grid; place-items: center; }
.wi-stage { position: relative; width: 334px; height: 412px; flex: none; }
.wi-bubble { position: absolute; left: 0; top: 12px; width: 262px; min-height: 150px; padding: 14px 16px; border: 2.5px solid var(--ink); border-radius: 22px 22px 22px 4px; background: var(--hi); font: 600 18px/1.3 Inter, sans-serif; transform: rotate(-3deg); box-shadow: 4px 4px 0 var(--ink); z-index: 3; }
.wi-spk { display: flex; align-items: center; gap: 8px; font: 700 12px Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.wi-mic { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--hi); display: grid; place-items: center; flex: none; }
.wi-mic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; }
[data-phase="1"] .wi-mic::after { animation: wi-ring 1.1s ease-out infinite; }
@keyframes wi-ring { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.9); opacity: 0; } }
.wi-spk em { display: flex; align-items: center; gap: 3px; height: 20px; }
.wi-spk em b { width: 3.5px; height: 100%; border-radius: 2px; background: var(--ink); transform: scaleY(0.2); }
[data-phase="1"] .wi-spk em b { animation: wi-eq 0.7s ease-in-out infinite alternate; }
.wi-spk em b:nth-child(2) { animation-delay: -0.5s; } .wi-spk em b:nth-child(3) { animation-delay: -0.2s; } .wi-spk em b:nth-child(4) { animation-delay: -0.6s; } .wi-spk em b:nth-child(5) { animation-delay: -0.35s; }
@keyframes wi-eq { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
.wi-lbl::after { content: "Done"; } [data-phase="1"] .wi-lbl::after { content: "Speaking"; }
.wi-caret { font-weight: 400; animation: wi-blink 0.9s steps(1) infinite; }
@keyframes wi-blink { 50% { opacity: 0; } }
.wi-page { position: absolute; left: 150px; top: 166px; width: 176px; height: 232px; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; padding: 18px 16px; transform: translateY(30px) rotate(4deg); opacity: 0; box-shadow: 5px 5px 0 var(--ink); z-index: 2; }
[data-phase="2"] .wi-page, [data-phase="3"] .wi-page { opacity: 1; transform: rotate(4deg); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s; }
.wi-page u { display: block; height: 7px; border-radius: 4px; background: #d6ded9; margin-bottom: 10px; text-decoration: none; }
.wi-page u.h { background: var(--hi); transform: scaleX(0); transform-origin: left; }
[data-phase="2"] .wi-page u.h, [data-phase="3"] .wi-page u.h { transform: scaleX(1); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
[data-phase] .wi-page u.h:nth-of-type(n + 4) { transition-delay: 0.18s; } [data-phase] .wi-page u.h:nth-of-type(n + 6) { transition-delay: 0.36s; }
.wi-page u.sl { background: var(--ink); height: 2px; margin: 0 0 5px; }
.wi-page small { display: block; font: 600 9px Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: #6a7772; }
.wi-sign { display: block; width: 118px; height: 40px; margin: 2px 0 -6px; overflow: visible; }
.wi-sign path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; }
[data-phase="3"] .wi-sign path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0.1, 0.3, 1); }
.wi-stamp { position: absolute; left: 34px; top: 304px; width: 104px; height: 104px; border-radius: 50%; border: 2.5px solid var(--ink); background: #0e3b2e; color: var(--hi); display: grid; place-items: center; font: 700 17px var(--display); transform: scale(0) rotate(-40deg); box-shadow: 4px 4px 0 var(--ink); z-index: 4; }
[data-phase="3"] .wi-stamp { transform: scale(1) rotate(-12deg); transition: transform 0.45s cubic-bezier(0.3, 1.7, 0.5, 1) 0.75s; }
.wi-beats { display: flex; justify-content: center; gap: 8px; margin-top: 20px; font: 600 14px Inter, sans-serif; }
.wi-beats b { padding: 7px 13px; border-radius: 999px; border: 2px solid var(--ink); opacity: 0.3; transition: opacity 0.4s, background 0.4s, color 0.4s; }
.wi-beats b.on { opacity: 1; background: var(--ink); color: #fff; }
.wi-head { margin: 45px 0 0; font: 700 29px/1.12 var(--display); letter-spacing: -0.025em; text-align: center; text-wrap: balance; }
.wi-start { margin-top: 49px; width: 210px; height: 62px; flex: none; border: 0; border-radius: 999px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font: 700 19px var(--display); box-shadow: 0 10px 30px rgb(15 27 23 / 0.3); cursor: pointer; }
.wi-start:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .wi-stage * { animation: none !important; transition: none !important; } }

/* The contract question on the contract screen: Download and Send wait until it is answered. */
.needs-form .send { display: none; }
.pick-form .picker { margin-top: 8px; }
.finish .agent-ask { display: flex; flex-direction: column; gap: 6px; }
.agent-help { margin: 0 0 4px; font-size: 14px; line-height: 1.4; }
.agent-ask .pm-sub { margin: 8px 0 0; }
.agent-save { margin-top: 8px; width: 100%; text-align: center; }
.pick-form .picker-row { border-color: var(--ink); background: #fff; }
