/* One phone interface at every viewport size. No desktop dashboard breakpoint. */
:root { font-family: Arial, sans-serif; color: #001229; background: #e4e7eb; font-synthesis: none; --blue: #002f68; --ink: #001229; --paper: #f8f6f4; --yellow: #ffd240; --muted: #606b77; --line: #dededb; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; color: inherit; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; }
button svg, .text-button svg, .eyebrow svg { width: 20px; height: 20px; flex-shrink: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: 32px; line-height: 1.12; letter-spacing: -.8px; margin-bottom: 16px; overflow-wrap: anywhere; }
h2 { font-size: 24px; line-height: 1.25; }
h3 { font-size: 18px; line-height: 1.4; }
p { font-size: 14px; line-height: 1.6; color: #4e5b67; }
small, .small { font-size: 12px; line-height: 1.6; color: var(--muted); }
[hidden] { display: none !important; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1px; line-height: 1.5; color: var(--blue); }
.eyebrow span { font-weight: 400; letter-spacing: 0; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: -100px; z-index: 10; padding: 16px; background: white; }
.skip:focus { top: 0; }
.loading { padding: 30px; }
#app { width: 100%; max-width: 430px; height: 100dvh; margin: 0 auto; background: var(--paper); display: flex; flex-direction: column; overflow: hidden; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; min-height: 72px; padding: max(12px, env(safe-area-inset-top)) 22px 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { width: 126px; height: auto; }
.points { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--blue); background: #eee9d7; padding: 8px 11px; border-radius: 20px; }
.points svg { width: 18px; height: 18px; fill: var(--yellow); }
main { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px 22px 0; scrollbar-width: thin; }
.bottom-nav { flex-shrink: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 12px max(8px, env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--line); }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 55px; background: none; font-size: 10px; color: var(--muted); border-radius: 6px; }
.nav-item svg { width: 22px; height: 22px; }
.nav-item.selected { color: var(--blue); font-weight: 700; }
.nav-item.selected svg { fill: #ffe9a0; }
.nav-item:hover { background: #f8f6f4; }
.close-activity { background: #e9edf1; border-radius: 50%; width: 44px; height: 44px; font-size: 26px; color: var(--blue); }
.footnote { font-size: 10px; color: var(--muted); padding: 24px 0 18px; text-align: center; }
.home-heading .eyebrow { margin-bottom: 10px; }
.home-heading h1 { font-size: 34px; margin-bottom: 10px; }
.home-heading > p:last-child { margin-bottom: 18px; }
.milestone { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 13px 15px; margin-bottom: 20px; background: #e9edf2; border-radius: 8px; }
.milestone strong { font-size: 11px; color: var(--blue); }
.milestone-icon { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; background: var(--blue); color: var(--yellow); border-radius: 50%; }
.milestone-count { margin-left: auto; font-size: 16px; font-weight: 700; color: var(--blue); }
.milestone-dots { display: flex; gap: 5px; margin-top: 8px; }
.milestone-dots > span { width: 39px; height: 4px; background: #cdd5de; border-radius: 3px; }
.milestone-dots > .filled { background: var(--blue); }
.feature { background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.feature-image { height: 116px; position: relative; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.photo-label { position: absolute; bottom: 11px; left: 15px; padding: 5px 8px; border-radius: 3px; background: white; font-size: 10px; font-weight: 700; }
.feature-content { padding: 18px; }
.feature-content > .eyebrow { display: flex; align-items: center; gap: 7px; letter-spacing: .3px; }
.feature-content h2 { font-size: 25px; margin: 12px 0 18px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; border-radius: 6px; padding: 14px 16px; font-size: 14px; font-weight: 700; text-decoration: none; background: var(--yellow); color: var(--ink); }
.primary:hover { background: #f4c22b; }
.secondary { background: white; border: 1px solid #a4afba; }
.secondary:hover { background: #edf1f5; }
.text-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: none; padding: 12px 0; color: var(--blue); font-size: 13px; font-weight: 700; }
.full { width: 100%; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 25px 0 12px; }
.section-heading h2 { font-size: 21px; margin: 0; }
.section-heading > span { font-size: 10px; color: var(--muted); white-space: nowrap; }
.activity-list { border-top: 1px solid var(--line); }
.activity-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 18px 0; background: none; border-bottom: 1px solid var(--line); }
.activity-row:hover .row-copy strong { color: var(--blue); }
.activity-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 8px; background: #e1e8f0; color: var(--blue); }
.activity-icon svg { width: 22px; height: 22px; }
.activity-icon.cream { background: #f0e6c9; }
.activity-icon.pink { background: #efdfda; }
.row-copy { flex: 1; min-width: 0; display: grid; gap: 5px; }
.row-copy .eyebrow { font-size: 10px; letter-spacing: .1px; }
.row-copy strong { font-size: 13px; line-height: 1.4; font-weight: 500; }
.row-end { display: flex; align-items: center; }
.row-end svg { width: 17px; }
.completed-label { display: none; }
.page-heading .eyebrow { margin-bottom: 12px; }
.page-heading > p:last-child { margin-bottom: 25px; }
.capture-content h1 { font-size: 29px; }
.product-context { display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--line); padding: 13px; margin: 20px 0 14px; border-radius: 6px; }
.product-context > svg { width: 24px; height: 24px; color: var(--blue); flex-shrink: 0; }
.product-context strong { font-size: 12px; }
.product-context span:not(.sample) { display: block; font-size: 10px; line-height: 1.5; color: var(--muted); margin-top: 5px; }
.product-context .sample { margin-left: auto; }
.sample { font-size: 10px; background: #f1eee7; padding: 4px 6px; border-radius: 3px; color: #655e51; white-space: nowrap; }
.focus-label { display: inline-block; font-size: 11px; font-weight: 700; background: #f9e9af; padding: 6px 8px; margin-bottom: 16px; color: #463b17; border-radius: 3px; }
.question { font-size: 22px; line-height: 1.4; margin-bottom: 22px; }
label, legend { display: block; font-size: 13px; font-weight: 700; margin: 18px 0 10px; }
textarea, input:not([type=radio]):not([type=file]), select { width: 100%; border: 1px solid #aab3bc; border-radius: 6px; padding: 13px; background: white; color: var(--ink); line-height: 1.6; font-size: 16px; }
textarea { resize: vertical; min-height: 145px; }
textarea::placeholder { color: #77818a; }
.answer-meta { display: flex; gap: 12px; justify-content: space-between; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.answer-meta > span:last-child { white-space: nowrap; }
.field-error { font-size: 13px; color: #a12525; margin: 14px 0; }
.field-error:empty { margin: 0; }
.action-dock { position: sticky; bottom: 0; padding: 16px 0 max(16px, env(safe-area-inset-bottom)); background: var(--paper); margin-top: 12px; }
blockquote { margin: 0 0 22px; padding: 18px; background: #eee9e2; border-left: 3px solid #d3b674; border-radius: 4px; }
blockquote p { font-family: Georgia, serif; font-size: 18px; line-height: 1.5; color: var(--ink); }
blockquote footer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 11px; }
.avatar { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 11px; font-weight: 700; background: #f0ded8; color: #784b3e; }
.video-capture { border: 1px solid var(--line); padding: 16px; background: #ebeef2; border-radius: 7px; margin-bottom: 22px; }
.video-capture label { font-size: 12px; }
.video-capture .small { margin: 14px 0 0; }
video { width: 100%; max-height: 360px; background: var(--ink); border-radius: 5px; margin: 12px 0; display: block; }
.narrow { margin: 0 0 20px; }
.intro { font-size: 14px; }
.source-note { display: flex; gap: 12px; padding: 16px; background: #eaeef2; margin: 22px 0; font-size: 12px; line-height: 1.7; border-radius: 6px; overflow-wrap: anywhere; }
.source-note svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--blue); }
.source-note p { margin: 7px 0; font-size: 12px; }
.centre { text-align: center; }
.success { text-align: center; padding-top: 12px; }
.success-mark { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: var(--yellow); border-radius: 50%; margin: 0 auto 22px; }
.success-mark svg { width: 30px; height: 30px; }
.success .eyebrow { margin-bottom: 14px; }
.reward { margin: 25px 0 18px; border: 1px solid var(--line); padding: 24px; background: white; border-radius: 8px; }
.reward > span { display: block; font-size: 56px; font-family: Georgia, serif; color: var(--blue); line-height: 1.1; }
.reward > strong { font-size: 13px; }
.reward > p { font-size: 12px; margin: 10px 0 18px; }
.reward > div { display: flex; align-items: center; gap: 8px; text-align: left; font-size: 12px; margin: 9px 0; }
.reward svg { width: 16px; height: 16px; flex-shrink: 0; }
.success > .text-button { margin-top: 10px; }
.contribution-list { display: grid; gap: 14px; }
.contribution { width: 100%; background: white; border: 1px solid var(--line); border-radius: 7px; padding: 18px; text-align: left; overflow-wrap: anywhere; }
.contribution h2 { margin: 12px 0; font-size: 23px; }
.contribution p { font-size: 13px; }
.contribution:hover { border-color: var(--blue); }
.contribution .text-button { padding-bottom: 0; font-size: 12px; flex-wrap: wrap; }
.empty-state { padding: 30px 18px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 7px; }
.empty-state > svg { height: 40px; width: 40px; color: var(--blue); margin-bottom: 18px; }
.empty-state p { font-size: 13px; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.entry-text { font-size: 16px; line-height: 1.7; }
.spaced { margin-top: 25px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats section { display: grid; gap: 8px; background: white; border: 1px solid var(--line); padding: 18px 10px; border-radius: 7px; }
.stats strong { font-family: Georgia, serif; font-size: 34px; font-weight: 400; color: var(--blue); }
.stats span { font-size: 10px; line-height: 1.5; }
.stats small { font-size: 18px; }
.notice { padding: 14px; border: 1px solid #c3a244; background: #fff1c1; margin-bottom: 22px; font-size: 13px; line-height: 1.5; }
details { padding: 16px; background: #eee9e2; margin: 22px 0; border-radius: 6px; }
summary { cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1.5; }
details blockquote { padding: 16px 0 0; border: 0; margin-bottom: 10px; }
.choice-summary { font-size: 13px; }
@media (min-width: 500px) {
  #app { height: min(900px, calc(100dvh - 48px)); margin: 24px auto; border: 1px solid #c8cfd8; border-radius: 24px; box-shadow: 0 12px 45px #0012291a; }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color .15s, border-color .15s; }
  .success-mark { animation: arrive .3s ease-out; }
  @keyframes arrive { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}
/* Daily five is the primary flow; keep the opening to one line. */
.home-heading h1 { font-size: clamp(18px, 5vw, 22px); white-space: nowrap; letter-spacing: -.5px; margin: 0 0 18px; }
.daily-run { padding: 20px 18px; border-radius: 8px; background: var(--blue); color: white; }
.run-heading, .run-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.run-heading .eyebrow { color: #e0e8f3; font-size: 9px; letter-spacing: .8px; }
.run-heading > span:last-child { font-size: 10px; white-space: nowrap; color: #e0e8f3; }
.run-caption { font-size: 13px; margin-top: 18px; }
.daily-run p { color: #dce5f1; font-size: 12px; line-height: 1.5; margin: 10px 0 0; }
.run-steps { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0; }
.run-step { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid #bac5d2; border-radius: 50%; color: #758597; background: #e9eef3; flex-shrink: 0; }
.run-step svg { width: 20px; height: 20px; }
.run-step.current { border: 2px solid var(--blue); color: var(--blue); background: white; }
.run-step.finished { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.daily-run .run-step { background: #264e7a; color: #b9cbe0; border-color: #507095; }
.daily-run .run-step.current { background: white; color: var(--blue); border-color: var(--yellow); outline: 3px solid #ffd24033; outline-offset: 3px; }
.daily-run .run-step.finished { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.next-question { padding: 22px 0 4px; }
.next-question h2 { font-size: 27px; margin: 10px 0; }
.next-question p { margin-bottom: 16px; }
.focused-screen > .run-steps { margin: 0 0 10px; }
.question-position { font-size: 11px; color: var(--muted); margin-bottom: 22px; }
.voice-capture { margin: 20px 0 18px; }
.voice-capture .secondary { background: #e9eef3; border: 1px solid #9dacc0; color: var(--blue); }
.voice-capture > p { margin: 8px 0; font-size: 11px; }
.voice-capture details { background: transparent; padding: 0; margin: 6px 0; }
.voice-capture summary { font-size: 11px; font-weight: 400; color: var(--muted); min-height: 32px; padding: 8px 0; }
.voice-capture input { width: 100%; font-size: 12px; margin-top: 10px; }
audio { display: block; width: 100%; margin: 12px 0; }

/* A continuous question stream with three consistent answer formats. */
.flow-title { flex: 1; font-size: 13px; font-weight: 700; text-align: center; }
.answer-format { padding: 0; border: 0; background: transparent; margin: 10px 0; }
.answer-format .secondary { font-size: 13px; gap: 9px; text-align: left; justify-content: flex-start; }
.answer-format .secondary > span:first-of-type { flex: 1; }
.answer-format > p:empty { display: none; }
.answer-format [data-stop] { margin-top: 8px; }
.format-points { flex-shrink: 0; font-size: 11px; white-space: nowrap; font-weight: 700; color: var(--blue); }
.typed-answer { margin: 10px 0; padding: 0 14px; background: white; border: 1px solid var(--line); }
.typed-answer summary { min-height: 52px; padding: 16px 0; font-weight: 400; }
.typed-answer .format-points { float: right; }
.typed-answer[open] { padding-bottom: 14px; }
.scope-details { padding: 0; margin: 18px 0 6px; background: transparent; }
.scope-details summary { color: var(--muted); font-size: 11px; font-weight: 400; min-height: 40px; padding: 10px 0; }
.saved-feedback { padding: 10px 12px; margin-bottom: 14px; border-radius: 6px; background: #e0efdc; color: #244c26; font-size: 12px; }
.next-question > p { margin: 12px 0 0; }
.recent-answers .contribution { padding: 14px; }
.recent-answers h2 { font-size: 19px; margin: 8px 0; }
.recent-answers p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }

/* Demo sign-in uses the same mobile shell as knowledge capture. */
.login-screen { padding: 32px 24px 20px; }
.login-logo { width: 146px; height: auto; }
.login-intro { margin: 38px 0 28px; }
.login-symbol { display: grid; place-items: center; width: 48px; height: 48px; background: var(--yellow); border-radius: 15px; margin-bottom: 22px; color: var(--blue); transform: rotate(-6deg); }
.login-symbol svg { width: 28px; height: 28px; }
.login-intro h1 { font-size: 38px; margin: 14px 0; }
.login-intro > p:last-child { margin-bottom: 0; max-width: 300px; }
.login-card { padding: 22px 18px 14px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.login-card h2 { margin-bottom: 6px; }
.login-card > p { margin-bottom: 0; }
.login-card label { margin-top: 20px; }
.login-card input[readonly] { background: var(--paper); color: var(--muted); }
.login-card .primary { margin-top: 20px; }
.login-card .small { text-align: center; margin-top: 12px; }
.login-footnote { text-align: center; font-size: 11px; line-height: 1.6; margin: 20px 0 0; color: var(--muted); }
