/* simpleflow systems — AI Cash-Flow Co-pilot
   Tokens from Drive BRANDING (simpleflow-tokens.css). Do not invent. */

:root {
  --sf-orange: #FF8A3D;
  --sf-orange-hover: #F2762A;
  --sf-orange-press: #E2603A;
  --sf-orange-soft: #FFE3CC;
  --sf-orange-faint: #FFF3E2;
  --sf-sun: #FFC861;
  --sf-sun-soft: #FFF0CE;
  --sf-charcoal: #1C1E22;
  --sf-slate: #2A2E34;
  --sf-slate-line: #3A3D43;
  --sf-grey: #7D8288;
  --sf-grey-dark: #9AA0A6;
  --sf-line: #E7E3DB;
  --sf-cream: #FFF7ED;
  --sf-offwhite: #F5F3EF;
  --sf-white: #FFFFFF;
  --sf-success: #159D94;
  --sf-success-soft: #DFF3F1;
  --sf-warning: #E39A15;
  --sf-warning-soft: #FFF0CE;
  --sf-danger: #D9453D;
  --sf-danger-soft: #FBE3E1;
  --sf-info: #2E7BD6;
  --sf-info-soft: #E1EDFB;

  --sf-font-display: "Baloo 2", system-ui, sans-serif;
  --sf-font-body: "Nunito Sans", system-ui, sans-serif;
  --sf-font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --sf-radius-xs: 6px;
  --sf-radius-sm: 10px;
  --sf-radius-md: 14px;
  --sf-radius-lg: 20px;
  --sf-radius-xl: 28px;
  --sf-radius-pill: 999px;

  --sf-shadow-sm: 0 1px 2px rgba(28, 30, 34, 0.06);
  --sf-shadow-md: 0 6px 18px -10px rgba(28, 30, 34, 0.22);
  --sf-shadow-lg: 0 14px 40px -22px rgba(28, 30, 34, 0.32);
  --sf-shadow-focus: 0 0 0 3px rgba(255, 138, 61, 0.35);

  --sf-duration-base: 220ms;
  --sf-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --sf-bg: var(--sf-cream);
  --sf-bg-raised: var(--sf-white);
  --sf-bg-sunken: #F7EFE3;
  --sf-text: var(--sf-charcoal);
  --sf-text-muted: var(--sf-grey);
  --sf-text-inverse: var(--sf-offwhite);
  --sf-border-color: var(--sf-line);
  --sf-accent: var(--sf-orange);
  --sf-accent-contrast: var(--sf-charcoal);
  --sf-focus: var(--sf-orange);
  --sf-ember: #E2603A;

  --max: 40rem;
  --wide: 52rem;
  --header-h: 7rem;
}

[data-theme="dark"] {
  --sf-bg: var(--sf-charcoal);
  --sf-bg-raised: var(--sf-slate);
  --sf-bg-sunken: #16181B;
  --sf-text: var(--sf-offwhite);
  --sf-text-muted: var(--sf-grey-dark);
  --sf-text-inverse: var(--sf-charcoal);
  --sf-border-color: var(--sf-slate-line);
  --sf-accent: var(--sf-orange);
  --sf-accent-contrast: var(--sf-charcoal);
  --sf-focus: var(--sf-orange);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sf-bg);
  color: var(--sf-text);
  font-family: var(--sf-font-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--sf-ember); text-decoration: none; }
a:hover { color: var(--sf-orange-press); text-decoration: underline; }
[data-theme="dark"] a:not(.btn) { color: var(--sf-orange); }
[data-theme="dark"] a:not(.btn):hover { color: var(--sf-orange-hover); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--sf-shadow-focus);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  background: var(--sf-charcoal);
  color: var(--sf-offwhite);
  padding: 0.4rem 0.7rem;
  border-radius: var(--sf-radius-md);
  box-shadow: none;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: var(--sf-cream);
  border-bottom: 1px solid var(--sf-line);
}

.brand {
  display: flex;
  align-items: center;
  color: var(--sf-charcoal);
  text-decoration: none;
  flex-shrink: 0;
  overflow: visible;
}
.brand:hover { text-decoration: none; color: var(--sf-charcoal); }

.brand-lockup {
  display: block;
  height: 100px;
  width: auto;
  max-width: none;
}

.brand-meta { display: none !important; }

.header-cta {
  flex-shrink: 0;
  min-height: 3rem;
  padding: 0.6rem 1.35rem;
  font-size: 1rem;
}

/* ——— Buttons ———
   Orange is a LIGHT colour. CHARCOAL text on orange fills. Never white. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--sf-radius-md);
  font-family: var(--sf-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--sf-duration-base) var(--sf-ease),
              border-color var(--sf-duration-base) var(--sf-ease),
              color var(--sf-duration-base) var(--sf-ease);
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--sf-orange);
  color: var(--sf-charcoal);
  border-color: var(--sf-orange);
}
.btn-primary:hover {
  background: var(--sf-orange-hover);
  color: var(--sf-charcoal);
  border-color: var(--sf-orange-hover);
}
.btn-primary:active {
  background: var(--sf-orange-press);
  color: var(--sf-charcoal);
  border-color: var(--sf-orange-press);
}
.btn-ghost {
  background: transparent;
  color: var(--sf-charcoal);
  border-color: var(--sf-line);
}
.btn-ghost:hover {
  background: var(--sf-orange-soft);
  color: var(--sf-charcoal);
  border-color: var(--sf-orange-soft);
}
[data-theme="dark"] .btn-ghost {
  color: var(--sf-offwhite);
  border-color: var(--sf-slate-line);
}
[data-theme="dark"] .btn-ghost:hover {
  background: var(--sf-slate);
  color: var(--sf-offwhite);
  border-color: var(--sf-grey-dark);
}
.btn-block { width: 100%; }
.btn-sm {
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.7rem;
}

/* ——— Layout ——— */
.wrap {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}


.hero-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-copy .lede { max-width: 32rem; }
.hero-photo {
  margin: 0;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--sf-radius-lg);
  background: var(--sf-orange-faint);
}
.hero-photo figcaption {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--sf-grey);
}
@media (min-width: 760px) {
  .hero-split { grid-template-columns: 1.05fr 0.95fr; gap: 2.4rem; }
}

.step-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
}
.step-mark svg {
  width: 2.35rem;
  height: 2.35rem;
  display: block;
}

.hero {
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid var(--sf-line);
  background: var(--sf-cream);
}
.hero .wrap { width: min(100% - 2.5rem, var(--wide)); }

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  font-family: var(--sf-font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-grey);
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.eyebrow .dot { color: var(--sf-line); }

h1, h2, h3 {
  font-family: var(--sf-font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--sf-text);
}
h1 { font-size: clamp(2rem, 5.4vw, 3.25rem); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 3.2vw, 1.75rem); font-weight: 700; line-height: 1.25; }
.block > .wrap-narrow > h2,
.block > .wrap-narrow > .prose > h2 {
  display: inline-block;
  padding-bottom: 0.15rem;
}
.block > .wrap-narrow > h2::after,
.block > .wrap-narrow > .prose > h2::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 5px;
  margin-top: 0.42rem;
  background: var(--sf-orange);
  border-radius: 999px;
  transform: rotate(-1.8deg);
}
h3 { font-size: 1.25rem; font-weight: 700; }

.intro {
  margin: 0 0 0.4rem;
  color: var(--sf-text);
}
.one-liner { color: var(--sf-text); font-weight: 600; }

.lede {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--sf-text);
  margin: 0;
  max-width: 36rem;
}

.price-chip {
  display: inline-block;
  margin-top: 1.45rem;
  font-family: var(--sf-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sf-charcoal);
  background: var(--sf-orange-faint);
  border: 1px solid var(--sf-orange-soft);
  padding: 0.35rem 0.75rem;
  border-radius: var(--sf-radius-pill);
  letter-spacing: 0;
}

/* ——— Sections ——— */
section.block {
  padding: 4.25rem 0;
  border-bottom: 1px solid var(--sf-line);
}
.sec-num {
  font-family: var(--sf-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-ember);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.prose p { margin: 0 0 0.9rem; color: var(--sf-text); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--sf-text); font-weight: 600; }

.list-plain {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}
.list-plain li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.35rem;
  border-top: 1px solid var(--sf-line);
  color: var(--sf-text);
}
.list-plain li:last-child { border-bottom: 1px solid var(--sf-line); }
.list-plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3rem;
  width: 0.5rem;
  height: 2px;
  background: var(--sf-orange);
  border-radius: var(--sf-radius-pill);
}
.list-plain b { color: var(--sf-text); font-weight: 600; }

.steps {
  counter-reset: step;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 2.7rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 0;
  border-top: 1px solid var(--sf-line);
}
.steps li:last-child { border-bottom: 1px solid var(--sf-line); }
.steps li::before { content: none; }
.steps b { display: block; color: var(--sf-text); font-weight: 600; margin-bottom: 0.2rem; }
.steps span { color: var(--sf-text); }

.gate {
  margin-top: 1.35rem;
  padding: 0.25rem 0 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.gate p { margin: 0; color: var(--sf-charcoal); }
.gate .label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sf-font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-ember);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.felt-tick {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}


.flow-pic {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0 0;
  background: transparent;
}
.flow-note {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--sf-grey);
}
.flow-lines {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}
.flow-lines li {
  padding: 0.2rem 0;
  color: var(--sf-grey);
  font-size: 0.95rem;
  line-height: 1.5;
}

.who-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}
@media (min-width: 560px) {
  .who-grid { grid-template-columns: 1fr 1fr; }
}
.who-tile {
  margin: 0;
  padding: 1.25rem 1.2rem 1.2rem;
  background: var(--sf-white);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-lg);
  box-shadow: var(--sf-shadow-sm);
}
.who-icon {
  width: 34px;
  height: 34px;
  margin: 0 0 0.75rem;
  display: block;
}
.who-tile h3 {
  font-family: var(--sf-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 0.3rem;
  color: var(--sf-charcoal);
}
.who-tile p {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--sf-text);
  font-size: 0.95rem;
}

.not-for {
  margin-top: 1.25rem;
  color: var(--sf-grey);
  font-size: 0.95rem;
}
.not-for b { color: var(--sf-charcoal); font-weight: 600; }

.price-block {
  background: var(--sf-white);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-lg);
  box-shadow: var(--sf-shadow-md);
  padding: 1.7rem 1.5rem 1.5rem;
  margin-top: 0.5rem;
}
.price-block .amount {
  font-family: var(--sf-font-display);
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--sf-charcoal);
}
.price-block .amount small {
  font-family: var(--sf-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sf-grey);
  margin-left: 0.25rem;
}
.price-block .gst {
  margin: 0.45rem 0 1rem;
  color: var(--sf-text);
}
.price-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.price-block li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--sf-line);
  color: var(--sf-text);
}
.price-block li:last-child { padding-bottom: 0; }

.exclude {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--sf-grey);
}
.exclude span { color: var(--sf-text); }

.site-footer {
  padding: 1.75rem 0 2.5rem;
  color: var(--sf-grey);
  font-size: 0.85rem;
}
.site-footer a { color: var(--sf-grey); }
.site-footer a:hover { color: var(--sf-ember); }
.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: baseline;
}
.foot-brand {
  font-family: var(--sf-font-display);
  font-weight: 800;
  color: var(--sf-charcoal);
  letter-spacing: -0.02em;
}
.foot-brand .flow { color: var(--sf-orange); }
.foot-brand .systems {
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sf-grey);
  font-size: 0.72em;
  margin-left: 0.35rem;
}

/* ——— Intake page (dark thread, cream header so light lockup reads) ——— */
body.intake-page {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--sf-bg);
}

[data-theme="dark"] .site-header {
  background: var(--sf-cream);
  border-bottom-color: var(--sf-line);
}

.intake-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 42rem);
  margin: 0 auto;
}

.need-bar {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--sf-text-muted);
  border-bottom: 1px solid var(--sf-border-color);
  background: var(--sf-bg-sunken);
  min-height: 2rem;
}
.need-bar .need-ok { color: var(--sf-success); }
.need-bar .need-miss { color: var(--sf-warning); }

.thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1rem 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.msg {
  max-width: 92%;
  margin: 0 0 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--sf-radius-lg);
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.msg p { margin: 0 0 0.55rem; }
.msg p:last-child { margin: 0; }
.msg-bot {
  background: var(--sf-bg-raised);
  border: 1px solid var(--sf-border-color);
  color: var(--sf-text);
  border-bottom-left-radius: var(--sf-radius-xs);
}
.msg-user {
  margin-left: auto;
  background: var(--sf-orange-faint);
  border: 1px solid var(--sf-orange-soft);
  color: var(--sf-charcoal);
  border-bottom-right-radius: var(--sf-radius-xs);
}
[data-theme="dark"] .msg-user {
  background: rgba(255, 138, 61, 0.18);
  border-color: rgba(255, 138, 61, 0.35);
  color: var(--sf-offwhite);
}
.msg-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.file-chip {
  font-family: var(--sf-font-body);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  background: var(--sf-bg-sunken);
  border: 1px solid var(--sf-border-color);
  border-radius: var(--sf-radius-pill);
  color: var(--sf-text-muted);
}

.msg-sys {
  max-width: 100%;
  background: transparent;
  border: 1px dashed var(--sf-border-color);
  color: var(--sf-text-muted);
  font-size: 0.9rem;
}

.composer-wrap {
  flex-shrink: 0;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--sf-border-color);
  background: var(--sf-bg);
}

.attach-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  min-height: 0;
}
.attach-row:empty { display: none; }
.attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-family: var(--sf-font-body);
  background: var(--sf-bg-raised);
  border: 1px solid var(--sf-border-color);
  padding: 0.2rem 0.4rem 0.2rem 0.5rem;
  border-radius: var(--sf-radius-pill);
  color: var(--sf-text);
  max-width: 100%;
}
.attach-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}
.attach-chip button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sf-text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.15rem;
}

.composer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem;
  align-items: end;
}
.composer textarea {
  width: 100%;
  resize: none;
  min-height: 2.75rem;
  max-height: 9rem;
  padding: 0.6rem 0.75rem;
  background: var(--sf-bg-raised);
  color: var(--sf-text);
  border: 1px solid var(--sf-border-color);
  border-radius: var(--sf-radius-md);
  font-family: var(--sf-font-body);
  font-size: 1rem;
  line-height: 1.4;
}
.composer textarea::placeholder { color: var(--sf-text-muted); }
.icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sf-bg-raised);
  border: 1px solid var(--sf-border-color);
  border-radius: var(--sf-radius-md);
  color: var(--sf-text);
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover { background: var(--sf-slate); }
[data-theme="dark"] .icon-btn:hover { background: #343840; }
.icon-btn svg { width: 1.2rem; height: 1.2rem; stroke: currentColor; fill: none; stroke-width: 1.7; }
.icon-btn.send {
  background: var(--sf-orange);
  border-color: var(--sf-orange);
  color: var(--sf-charcoal);
}
.icon-btn.send:hover {
  background: var(--sf-orange-hover);
  color: var(--sf-charcoal);
}
.icon-btn:disabled, .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.done-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 520px) {
  :root { --header-h: 6.25rem; }
  .site-header { padding: 0.75rem 1rem; }
  .brand-lockup { height: 78px; }
}

@media (max-width: 420px) {
  html { font-size: 16px; }
  .site-header { padding: 0.6rem 0.85rem; }
  .wrap, .wrap-narrow { width: min(100% - 1.7rem, var(--wide)); }
  .hero { padding: 3.25rem 0 3rem; }
  section.block { padding: 3.15rem 0; }
  .btn { min-height: 2.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .icon-btn { transition: none; }
}

.btn-lg {
  min-height: 3.1rem;
  padding: 0.7rem 1.45rem;
  font-size: 1.02rem;
}

.test-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--sf-grey);
  max-width: 32rem;
}
.site-footer .test-note { margin-top: 0.65rem; }

/* Q&A */
.qa {
  margin-top: 1.15rem;
  border-top: 1px solid var(--sf-line);
}
.qa details { border-bottom: 1px solid var(--sf-line); }
.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.6rem 0.95rem 0;
  font-weight: 600;
  color: var(--sf-charcoal);
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sf-ember);
  font-weight: 700;
  font-size: 1.15rem;
}
.qa details[open] summary::after { content: "–"; }
.qa details[open] summary { color: var(--sf-ember); }
.qa details p {
  margin: 0 0 1.05rem;
  color: var(--sf-text);
  padding-right: 1rem;
}

/* Resume banner */
.resume-banner {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  background: var(--sf-bg-raised);
  border-bottom: 1px solid var(--sf-border-color);
  font-size: 0.88rem;
  color: var(--sf-text);
}
.resume-banner[hidden] { display: none !important; }
.resume-banner p { margin: 0; max-width: 28rem; }
.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Quieter need-bar */
.need-bar {
  font-size: 0.75rem;
  letter-spacing: 0;
  color: var(--sf-text-muted);
}
.need-bar .need-ok { color: var(--sf-success); }
.need-bar .need-miss { color: var(--sf-text-muted); font-weight: 400; }

/* Tap chips (suggested replies) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: -0.25rem 0 0.95rem;
  max-width: 92%;
}
.tap-chip {
  appearance: none;
  border: 1px solid var(--sf-border-color);
  background: var(--sf-bg-raised);
  color: var(--sf-text);
  border-radius: var(--sf-radius-pill);
  padding: 0.38rem 0.8rem;
  font-family: var(--sf-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 2.15rem;
  touch-action: manipulation;
}
.tap-chip:hover,
.tap-chip:focus-visible {
  border-color: var(--sf-orange);
  background: rgba(255, 138, 61, 0.14);
  color: var(--sf-text);
}
.tap-chip:disabled { opacity: 0.45; cursor: not-allowed; }

.save-hint {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: var(--sf-text-muted);
  text-align: center;
}

.guess-note {
  font-size: 0.8rem;
  color: var(--sf-text-muted);
  margin-top: 0.35rem;
}

@media (max-width: 420px) {
  .hero { padding: 3.25rem 0 3rem; }
  section.block { padding: 3.15rem 0; }
}


/* Typeform-style intake shell (light, one tile) */
body.intake-page {
  min-height: 100dvh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  background: var(--sf-cream);
}
.intake-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 42rem);
  margin: 0 auto;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.save-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sf-grey);
  background: var(--sf-white);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-pill);
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
}
.save-pill.is-flash {
  color: var(--sf-charcoal);
  border-color: var(--sf-orange);
  background: var(--sf-orange-faint);
}

.phase-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.7rem 1rem 0.25rem;
}
.back-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sf-ember);
  font-family: var(--sf-font-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.2rem 0;
  cursor: pointer;
}
.back-btn:disabled {
  color: var(--sf-grey);
  opacity: 0.45;
  cursor: not-allowed;
}
.phase-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: baseline;
  font-family: var(--sf-font-display);
  font-weight: 700;
  color: var(--sf-charcoal);
}
.phase-count {
  font-family: var(--sf-font-body);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--sf-grey);
}

.phase-bar {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem 1rem 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  min-height: 2.4rem;
  -webkit-overflow-scrolling: touch;
}
.phase-bar li { flex: 0 0 auto; }
.phase-dot {
  appearance: none;
  border: 1px solid var(--sf-line);
  background: var(--sf-white);
  color: var(--sf-grey);
  border-radius: var(--sf-radius-pill);
  padding: 0.28rem 0.65rem;
  font-family: var(--sf-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: default;
  white-space: nowrap;
}
.phase-dot.is-now {
  border-color: var(--sf-orange);
  background: var(--sf-orange-faint);
  color: var(--sf-charcoal);
}
.phase-dot.is-done {
  cursor: pointer;
  color: var(--sf-charcoal);
  border-color: var(--sf-orange-soft);
}
.phase-dot.is-done:hover {
  border-color: var(--sf-orange);
}

.tile-wrap {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding: 0.85rem 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
}
.tile { width: 100%; max-width: 36rem; }
.tile-kicker {
  font-family: var(--sf-font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-grey);
  margin: 0 0 0.45rem;
}
.tile-q {
  font-size: clamp(1.45rem, 4.2vw, 2rem);
  line-height: 1.2;
  margin: 0 0 0.55rem;
}
.tile-hint {
  margin: 0 0 1rem;
  color: var(--sf-grey);
  font-size: 0.92rem;
}
.intake-page .chip-row {
  max-width: 100%;
  margin: 0 0 0.75rem;
}
.intake-page .tap-chip {
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem;
  background: var(--sf-white);
  border-color: var(--sf-line);
  color: var(--sf-charcoal);
}
.intake-page .tap-chip:hover,
.intake-page .tap-chip.is-on {
  border-color: var(--sf-orange);
  background: var(--sf-orange-faint);
}

.tile-footer {
  flex-shrink: 0;
  margin-top: 0.85rem;
  padding: 0;
  border-top: 0;
  background: transparent;
}
.tile-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem;
  align-items: end;
}
.tile-form textarea {
  width: 100%;
  resize: none;
  min-height: 3rem;
  max-height: 9rem;
  padding: 0.6rem 0.75rem;
  background: var(--sf-white);
  color: var(--sf-charcoal);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-md);
  font-family: var(--sf-font-body);
  font-size: 1rem;
  line-height: 1.4;
}
.tile-form textarea::placeholder { color: var(--sf-grey); }
.intake-page .icon-btn {
  background: var(--sf-white);
  border-color: var(--sf-line);
  color: var(--sf-charcoal);
}
.intake-page .icon-btn:hover { background: var(--sf-orange-faint); }

.done-panel { margin-top: 0.5rem; }
.done-panel p { margin: 0 0 0.7rem; color: var(--sf-charcoal); }

@media (max-width: 640px) {
  .header-tools .header-cta { display: none; }
  .save-pill { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
}
