/* hellostem.ai. Design: docs/design/website-prototype.html. One narrow column
   on warm paper; the landing page is a text thread from Stem; signed in, the
   same column holds quiet lists with a floating tab bar. Light theme only. */
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-wght.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #fbf8f5;
  --surface: #ffffff;
  --ink: #24161d;
  --muted: #75686c;
  --line: #e6dcd8;
  --pink: #c2186b;
  --pink-soft: #f8d6e4;
  --ok: #2f7d62;
  --danger: #a3182c;
  --danger-soft: #fbe4e6;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --edge: clamp(20px, 3.2vw, 44px);
}
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 8px; }
.mark { display: block; fill: var(--pink); flex: none; }
.view { min-height: 100vh; display: flex; flex-direction: column; padding: 0 var(--edge); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shared top and bottom */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 25px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; }
.top nav { display: flex; gap: 26px; font-family: var(--sans); font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); padding: 12px 0; transition: color .2s; }
.top nav a:hover { color: var(--ink); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 26px; padding: 24px 0; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.foot a { text-decoration: none; padding: 6px 0; }
.foot a:hover { color: var(--ink); }
.foot .links { display: flex; flex-wrap: wrap; gap: 0 22px; }

/* Landing: a thread from Stem */
.thread { flex: 1; width: 100%; max-width: 580px; margin: 0 auto; padding: 24px 0 40px; display: flex; flex-direction: column; gap: 10px; }
.who { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-family: var(--sans); }
.who b { display: block; font-size: 16px; font-weight: 600; }
.who span { font-size: 14px; color: var(--muted); }
.bubble { margin: 0; max-width: 470px; background: var(--surface); border: 1px solid #ebe1dd; border-radius: 24px 24px 24px 8px; padding: 14px 20px; font-size: 19px; line-height: 1.42; font-weight: 400; }
h1.bubble { max-width: 500px; padding: 18px 22px; font-size: 27px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.bubble u { text-decoration-color: rgba(194, 24, 107, 0.42); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
.reply { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-top: 18px; }
.reply a { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; background: var(--ink); color: var(--paper); border-radius: 26px 26px 8px 26px; padding: 0 24px; font-size: 20px; text-decoration: none; }
.reply a i { font-style: normal; transition: transform .2s; }
.reply a:hover i { transform: translateX(3px); }
.reply span { font-family: var(--sans); font-size: 15px; color: var(--muted); }

/* Narrow column for sign up, log in, the app and the text pages */
.col { width: 100%; max-width: 440px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; }
.wordmark { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 26px 0 22px; font-size: 26px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; }
.step h1, .copy h1 { margin: 28px 0 14px; font-size: 32px; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.lead { margin: 0 0 30px; font-size: 19px; line-height: 1.45; color: var(--muted); }
.step form, .step { display: flex; flex-direction: column; }
.step { flex: 1; padding-bottom: 40px; }
label, .label { display: block; font-family: var(--sans); font-size: 15px; font-weight: 500; margin: 0 0 8px; }
.help { margin: -14px 0 20px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
input[type=tel], input[type=text], input[type=number] { width: 100%; height: 54px; padding: 0 16px; margin: 0 0 20px; border: 1px solid #8f8286; border-radius: 14px; background: var(--surface); font-family: var(--sans); font-size: 17px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; font-weight: 400; font-size: 15px; line-height: 1.45; color: var(--ink); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.seg { display: flex; gap: 8px; margin: 0 0 30px; }
.seg label { flex: 1; margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; min-height: 46px; border-radius: 12px; border: 1px solid #8f8286; background: var(--surface); font-weight: 500; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 3px; }
.big { width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 17px; font-weight: 500; display: grid; place-items: center; text-decoration: none; }
.big:disabled { opacity: 0.6; cursor: default; }
.small { margin: 18px 0 0; font-family: var(--sans); font-size: 15px; color: var(--muted); text-align: center; }
.err { margin: -10px 0 16px; font-family: var(--sans); font-size: 14px; color: var(--danger); }
.spacer { flex: 1; min-height: 30px; }

/* Text pages */
.copy { padding-bottom: 40px; font-size: 18px; line-height: 1.55; }
.copy p { margin: 0 0 16px; }
.copy .small { text-align: left; font-size: 14px; }
.copy a { color: var(--pink); }

/* Signed in */
.app { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
.sec { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 6px; }
.sec h2 { margin: 0; font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.icon-btn { width: 44px; height: 44px; margin: -11px -11px -11px 0; border: 0; background: none; display: grid; place-items: center; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dotted #b9aaa5; font-family: var(--sans); }
.rows > .row:last-child { border-bottom: 0; }
.row .txt { flex: 1; min-width: 0; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.row .txt small { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
.ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: #f3ece9; display: grid; place-items: center; }
.av { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--pink-soft); display: grid; place-items: center; font-size: 14px; font-weight: 600; color: #7a1045; }
.av.grey { background: #eee6e2; color: var(--ink); }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn { flex: none; min-height: 44px; padding: 0 16px; border-radius: 12px; font-family: var(--sans); font-size: 15px; font-weight: 500; background: var(--surface); border: 1px solid #b9aaa5; text-decoration: none; display: inline-grid; place-items: center; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.del { background: var(--danger-soft); border-color: var(--danger-soft); color: var(--danger); }
.btn:disabled { opacity: 0.6; cursor: default; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #22604b; background: #dcefe6; padding: 3px 8px; border-radius: 6px; }
.add { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 0; font-family: var(--sans); }
.add input { margin: 0; height: 44px; font-size: 15px; flex: 1 1 140px; min-width: 0; }
.add select, .row select { height: 44px; border: 1px solid #8f8286; border-radius: 12px; background: var(--surface); padding: 0 8px; font-size: 15px; font-family: var(--sans); }
.note { margin: 6px 0 0; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 14px; font-family: var(--sans); font-size: 15px; }
.confirm p { margin: 0; flex-basis: 100%; }
.row.wrap { flex-wrap: wrap; }
.row.wrap .confirm { flex-basis: 100%; padding: 0 0 0 54px; }
.empty { padding: 14px 0; font-family: var(--sans); font-size: 15px; color: var(--muted); }
.kidpick { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.kidpick button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #b9aaa5; background: var(--surface); font-family: var(--sans); font-size: 15px; }
.kidpick button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tabs { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: #3a2029; box-shadow: 0 12px 30px -12px rgba(36, 22, 29, 0.55); z-index: 5; }
.tabs a { width: 60px; height: 48px; border-radius: 999px; color: #e2d3d8; display: grid; place-items: center; }
.tabs a svg { width: 23px; height: 23px; }
.tabs a[aria-current=page] { background: rgba(255, 255, 255, 0.18); color: #fff; }
.status { padding: 40px 0; font-family: var(--sans); color: var(--muted); text-align: center; }

/* The approval page (/p/) */
#review img.proof { display: block; width: 100%; height: auto; border-radius: 16px; margin: 0 0 20px; }
#review .actions { display: flex; gap: 10px; }
#review .actions button { flex: 1; min-height: 54px; border-radius: 999px; font-family: var(--sans); font-size: 17px; font-weight: 500; border: 1px solid #b9aaa5; background: var(--surface); }
#review .actions button.approve { background: var(--ink); color: var(--paper); border-color: var(--ink); }
#review .actions button:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 420px) { .top nav { gap: 18px; } .bubble { font-size: 18px; } h1.bubble { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
