/* Sameish — working visual direction (§16).
   Mint + black, rounded, warm, slightly quirky. Deliberately NOT the generic
   healthcare/wellness look: no gradients, no stock-photo blue, no clinical grey.
   Everything is a token so the brand can be revised without a rewrite. */

:root {
  /* Sampled from the approved screens: pure white ground, pure black type, and
     mint stepped through four tones so a list of choices reads as a gradient. */
  --mint-pale:   #C7F5DC;   /* the big soft circle in the mark */
  --mint:        #6EF2AD;   /* the saturated circle */
  --tone1:       #DFFBEC;
  --tone2:       #B4F5D5;
  --tone3:       #86EEBD;
  --tone4:       #5CE9A6;
  --mint-deep:   #17A56A;
  --mint-soft:   #DFFBEC;
  --mint-wash:   #F2FDF7;
  --ink:         #000000;
  --ink-soft:    #4A5157;
  --ink-faint:   #838C93;
  --paper:       #FFFFFF;
  --card:        #FFFFFF;
  --line:        #E4E4E4;
  --warn:        #B4552F;
  --radius:      20px;
  --radius-lg:   28px;
  --pill:        999px;
  --shadow:      0 1px 2px rgba(20,23,26,.04), 0 8px 24px rgba(20,23,26,.06);
  --font: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Archivo Black', 'Fira Sans Extra Condensed', Impact, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* Phone-shaped on desktop so the team can demo it without a device. */
#app {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  position: relative;
  padding-bottom: 92px;
}
@media (min-width: 520px) {
  body { background: #EDEBE6; }
  #app { box-shadow: 0 0 60px rgba(0,0,0,.07); }
}

/* ── Type ─────────────────────────────────────────────────────────────── */
h1, h2, h3 { margin: 0 0 10px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p  { margin: 0 0 14px; color: var(--ink-soft); }
.lead { font-size: 19px; color: var(--ink); }
.small { font-size: 14px; color: var(--ink-faint); }
.quiet { color: var(--ink-faint); }
.center { text-align: center; }

.wordmark {
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -.045em;
  position: relative;
  display: inline-block;
  z-index: 1;
}
/* The mark: two overlapping organic mint blobs behind "ish"; the word still
   reads continuously across them. */
.wordmark .ish { position: relative; z-index: 2; }
.wordmark .blobs { position: absolute; right: -18px; top: -14px; z-index: -1; }
.blob { fill: var(--mint); opacity: .72; }
.blob.two { fill: var(--mint-deep); opacity: .45; }

.screen { padding: 26px 22px 20px; animation: rise .28s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 22px; border: none; border-radius: var(--pill);
  background: var(--ink); color: #fff; font-family: var(--font);
  font-size: 18px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn.mint { background: var(--tone4); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn.quiet-btn { background: var(--mint-wash); color: var(--ink); }
.btn.sm { width: auto; padding: 10px 18px; font-size: 15px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.linkish {
  background: none; border: none; color: var(--ink-faint); font-family: var(--font);
  font-size: 15px; text-decoration: underline; cursor: pointer; padding: 8px 0;
}

/* ── Choice chips — the core onboarding control ──────────────────────── */
.choices { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 18px; }
.choice {
  padding: 11px 16px; border-radius: var(--pill); border: 2px solid var(--line);
  background: var(--card); font-family: var(--font); font-size: 15.5px;
  font-weight: 600; color: var(--ink); cursor: pointer; text-align: left;
  transition: all .14s ease;
}
.choice:active { transform: scale(.97); }
.choice[aria-pressed="true"] {
  background: var(--mint-soft); border-color: var(--mint-deep); color: #0B231A;
}
.choice.block { width: 100%; }
.choice .sub { display: block; font-weight: 500; font-size: 13.5px; color: var(--ink-faint); margin-top: 2px; }
.choice[aria-pressed="true"] .sub { color: #3C6B54; }

/* Barrier chips get a distinct, non-alarming treatment. */
.choice.sorted-easy[aria-pressed="true"]    { background: var(--mint-soft); border-color: var(--mint-deep); }
.choice.sorted-clunky[aria-pressed="true"]  { background: #FFF4E4; border-color: #E5B77A; }
.choice.sorted-barrier[aria-pressed="true"] { background: #FDECE4; border-color: #D89A7C; }

input[type="text"], input[type="email"], textarea, select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius);
  border: 2px solid var(--line); background: var(--card); font-family: var(--font);
  font-size: 16px; color: var(--ink); margin-bottom: 14px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--mint-deep); }
textarea { min-height: 96px; resize: vertical; }
label.field { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }
.card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--mint-soft);
  display: grid; place-items: center; font-size: 26px; flex: none;
}
.avatar.lg { width: 74px; height: 74px; font-size: 36px; }
.meta { font-size: 14px; color: var(--ink-faint); }

.why { margin: 14px 0 4px; }
.why-title { font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-faint); margin-bottom: 9px; }
.reason {
  display: flex; gap: 9px; align-items: flex-start; padding: 8px 0;
  border-top: 1px solid var(--line); font-size: 15.5px;
}
.reason:first-child { border-top: none; }
.reason .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint-deep);
  margin-top: 8px; flex: none; }
.reason.enriching .dot { background: var(--ink-faint); }
.reason.enriching { color: var(--ink-soft); font-style: italic; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px;
  border-radius: var(--pill); background: var(--mint-soft); color: #21503C;
  font-size: 13px; font-weight: 800;
}
.badge.plain { background: var(--mint-wash); color: var(--ink-soft); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: 13px; padding: 5px 11px; border-radius: var(--pill);
  background: var(--mint-wash); color: var(--ink-soft); }

.quote { border-left: 3px solid var(--mint); padding: 2px 0 2px 14px;
  font-style: italic; color: var(--ink); margin: 0 0 14px; }

.note {
  background: var(--mint-wash); border-radius: var(--radius); padding: 15px 17px;
  font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px;
}
.note strong { color: var(--ink); }
.note.privacy { background: #F4F1FA; }

/* ── Progress ─────────────────────────────────────────────────────────── */
.progress { height: 5px; background: var(--line); border-radius: var(--pill);
  margin: 0 22px 6px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--mint-deep);
  border-radius: var(--pill); transition: width .3s ease; }
.step-back { background: none; border: none; font-size: 15px; color: var(--ink-faint);
  font-family: var(--font); cursor: pointer; padding: 12px 22px 0; }

/* ── Chat ─────────────────────────────────────────────────────────────── */
.msgs { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 16px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 20px; font-size: 16px; }
.msg.them { background: var(--card); border: 1px solid var(--line); align-self: flex-start;
  border-bottom-left-radius: 6px; }
.msg.mine { background: var(--mint-soft); align-self: flex-end; border-bottom-right-radius: 6px;
  color: #0B231A; }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 48px; margin: 0; border-radius: var(--radius); }
.composer .btn { width: auto; padding: 13px 18px; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; max-width: 460px; margin: 0 auto;
  background: rgba(251,250,248,.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: flex; padding: 8px 4px 22px; z-index: 40;
}
.tabbar button {
  flex: 1; background: none; border: none; font-family: var(--font); font-size: 11px;
  font-weight: 700; color: var(--ink-faint); cursor: pointer; display: grid;
  gap: 3px; justify-items: center; padding: 4px 0;
}
.tabbar button .ic { font-size: 21px; line-height: 1; }
.tabbar button[aria-current="true"] { color: var(--ink); }
.tabbar .dotmark { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-deep);
  position: absolute; margin: -2px 0 0 15px; }

.topbar { display: flex; align-items: center; gap: 12px; padding: 18px 22px 4px; }
.topbar .back { background: none; border: none; font-size: 22px; cursor: pointer;
  color: var(--ink); padding: 0; line-height: 1; }
.topbar h2 { margin: 0; font-size: 20px; }

.empty { text-align: center; padding: 46px 20px; color: var(--ink-faint); }
.empty .big { font-size: 44px; display: block; margin-bottom: 12px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 108px;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--pill);
  font-size: 15px; font-weight: 600; z-index: 90; box-shadow: var(--shadow);
  animation: rise .2s ease both; max-width: 400px; text-align: center;
}
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-faint);
  font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.sort-legend { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.sort-legend button {
  border: 2px solid var(--line); background: var(--card); border-radius: var(--pill);
  padding: 8px 14px; font-family: var(--font); font-weight: 700; font-size: 14px;
  cursor: pointer; color: var(--ink);
}
.sort-legend button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

.kid-card { border: 2px dashed var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }


/* ── Brand lockup — "Sameish", capital S, mint circles behind and right ──── */
.brand { margin: 0 0 30px; }
.brandrow { position: relative; display: inline-block; }
.wordmark {
  font-family: var(--display); font-weight: 900; font-size: 40px;
  letter-spacing: -.035em; color: var(--ink); position: relative; z-index: 2;
}
.blobs { position: absolute; right: -66px; top: 50%; transform: translateY(-52%); z-index: 1; }
.tagline {
  font-family: var(--display); font-weight: 900; font-size: 15px;
  letter-spacing: -.01em; color: var(--ink); margin: 10px 0 0;
}

/* ── Big centred hero type, as approved ─────────────────────────────────── */
.welcome { padding-top: 12vh; }
.hero-h {
  font-size: clamp(30px, 8.6vw, 40px); font-weight: 700; line-height: 1.14;
  letter-spacing: -.028em; margin: 34px 0 22px; text-wrap: balance; color: var(--ink);
}
.hero-sub {
  font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 26px; line-height: 1.4;
}
.hero-sub.italic { font-style: italic; font-weight: 500; }
.body-lg {
  font-size: 17.5px; line-height: 1.5; color: var(--ink); margin: 0 0 24px; font-weight: 500;
}
.body-lg.strong { font-weight: 700; }
.footlinks {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-top: 30px; color: var(--ink-faint);
}
.linkish.sm { font-size: 13px; padding: 4px 0; }

/* ── Pathway cards — graded mint, the approved treatment ─────────────────── */
.choices.stack { flex-direction: column; gap: 12px; }
.pathcard {
  width: 100%; border: 2px solid transparent; border-radius: 18px;
  padding: 18px 20px; font-family: var(--font); cursor: pointer; text-align: center;
  display: block; transition: transform .12s ease, box-shadow .12s ease;
}
.pathcard.tone1 { background: var(--tone1); }
.pathcard.tone2 { background: var(--tone2); }
.pathcard.tone3 { background: var(--tone3); }
.pathcard.tone4 { background: var(--tone4); }
.pathcard:active { transform: scale(.985); }
.pathcard[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.pc-label { display: block; font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.pc-sub { display: block; font-size: 15.5px; font-style: italic; color: var(--ink); margin-top: 3px; }

@media (min-width: 420px) {
  .wordmark { font-size: 46px; }
  .hero-h { font-size: clamp(32px, 7vw, 42px); }
}
