:root {
  color-scheme: light;
  font: 100%/1.5 system-ui, sans-serif;
  color: #1f2b23;
  background: #f3f5ee;
  --ink: #1f2b23;
  --muted: #4c5e51;
  --green: #1d473b;
  --line: #c9d2c5;
  --mint: #d9e9c7;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #34795d; outline-offset: 4px; }
.shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.45rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-size: 1.15rem; font-weight: 750; }
.mark { display: inline-flex; justify-content: center; align-items: center; gap: .16rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--green); }
.mark i { width: .17rem; height: .86rem; background: #e3efcf; transform: rotate(30deg); border-radius: 1rem; }
.mark i:nth-child(2) { height: 1.17rem; }
.switch { display: flex; padding: .2rem; border: 1px solid var(--line); border-radius: 2rem; }
.switch button { color: var(--ink); border: 0; background: transparent; border-radius: 2rem; min-height: 2.25rem; min-width: 2.75rem; font-size: .875rem; font-weight: 750; }
.switch button[aria-pressed="true"] { color: white; background: var(--green); }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(1.5rem, 6vw, 6rem); padding-block: clamp(3rem, 9vw, 7rem); align-items: center; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.4vw, 6.5rem); line-height: .95; letter-spacing: -.068em; margin: 0 0 1.55rem; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.95rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 1rem; }
p { margin: 0 0 1.1rem; }
.intro { font-size: clamp(1rem, 2vw, 1.3rem); color: var(--muted); max-width: 35rem; margin-bottom: 1.5rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .35rem; color: white; background: var(--green); border: 1px solid var(--green); border-radius: 1.7rem; min-height: 2.85rem; padding: .55rem 1.1rem; font-weight: 700; text-decoration: none; }
.button:hover { background: #2d5b4d; }
.button.secondary { background: transparent; color: var(--green); }
.button.secondary:hover { background: var(--mint); }
.button:disabled { cursor: wait; opacity: .65; }
.hero-card { background: var(--green); color: #f4f7ef; border-radius: 1.6rem; padding: clamp(1.3rem, 4vw, 2.4rem); }
.hero-card h2 { font-size: clamp(1.65rem, 2.8vw, 2.4rem); }
.facts { padding: 0; margin: 0; }
.facts div { border-top: 1px solid #769387; padding-block: .8rem; }
.facts div:last-child { padding-bottom: 0; }
.facts dt { font-size: .875rem; font-weight: 750; }
.facts dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.hero-card dt { color: #cde5b8; }
.demo-band { background: #e5ecdd; border-block: 1px solid #d6e0d1; padding-block: clamp(2.5rem, 6vw, 5rem); }
.demo-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.25rem, 5vw, 5rem); }
.note { font-size: .875rem; color: var(--muted); }
.panel { background: #fcfdf9; border: 1px solid var(--line); border-radius: 1.15rem; padding: clamp(1rem, 4vw, 2rem); min-width: 0; }
.question { font-size: clamp(1.1rem, 3vw, 1.35rem); font-weight: 650; }
.answer { border-inline-start: .2rem solid #92a98a; background: #edf3e7; border-radius: .2rem .55rem .55rem .2rem; padding: .8rem; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.actions + p { margin-top: .9rem; margin-bottom: 0; }
.plan { margin-bottom: 1.35rem; }
.plan div { border-color: var(--line); }
.session { max-width: 42rem; padding-block: 2.5rem; }
.session h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
.session textarea { width: 100%; min-height: 6rem; resize: vertical; margin-block: .35rem .85rem; padding: .7rem; border: 1px solid #859889; border-radius: .5rem; background: white; }
.session-nav { margin-top: 1rem; }
footer { padding-block: 1.5rem; color: var(--muted); }
@media (max-width: 43rem) {
  .shell { width: calc(100% - 2rem); }
  .hero, .demo-grid { grid-template-columns: 1fr; }
  .top { padding-block: .85rem; }
  .session { padding-block: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.hero-card .example-label { font-size: .875rem; font-weight: 650; color: #cde5b8; }
.turn-notice { white-space: pre-line; overflow-wrap: anywhere; }
.case-options button[aria-pressed="true"] { color: white; background: var(--green); }

.method { padding-block: clamp(2.5rem, 6vw, 5rem); }
.method .intro { max-width: 43rem; }
.method-topics { max-width: 52rem; border-bottom: 1px solid var(--line); }
.method-topics details { border-top: 1px solid var(--line); }
.method-topics summary {
  padding-block: 1rem;
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
}
.method-topics details div { padding: 0 0 1.15rem 1.2rem; }
.method-topics ul { margin: 0; padding-inline-start: 1.25rem; }
.method-topics li + li { margin-top: .45rem; }
.method-topics a { color: var(--green); text-underline-offset: .18em; overflow-wrap: anywhere; }

.session-header-actions { display: flex; justify-content: end; margin-bottom: .85rem; }
.account-panels { display: grid; gap: 1rem; }
.account-panels h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); }
.account-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.account-heading h2 { margin: 0; }
.account-panels h3 { margin: 1.25rem 0 .4rem; font-size: 1rem; }
.account-list { margin: 0; padding: 0; list-style: none; }
.account-list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .55rem; padding-block: .75rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.account-list .note { margin: 0; }
.account-list .button { min-height: 2.65rem; font-size: .875rem; }
#referral-url { width: 100%; margin: .45rem 0 .75rem; padding: .6rem .75rem; border: 1px solid #859889; border-radius: .5rem; color: var(--ink); background: white; font: inherit; }
#referral-status { min-height: 1.3em; margin: .55rem 0 0; }
.transcript { display: grid; gap: .6rem; padding: 0; margin: 0 0 1.15rem; list-style: none; }
.transcript li { border: 1px solid var(--line); border-radius: .85rem; padding: .65rem .85rem; max-width: 100%; overflow-wrap: anywhere; }
.transcript p { margin: .25rem 0 0; white-space: pre-wrap; }
.transcript strong { font-size: .875rem; color: var(--muted); }
.transcript .from-user { margin-inline-start: clamp(1rem, 6vw, 3rem); background: #edf3e7; }
.transcript .from-coach { margin-inline-end: clamp(1rem, 6vw, 3rem); }

.session-header-actions { margin-bottom: 1rem; }
.session-header-actions button[aria-pressed="true"] { color: white; background: var(--green); }
.session .method { width: 100%; padding-block: 1rem; }

.session { padding-block: 1.35rem max(1.5rem, env(safe-area-inset-bottom)); }
.session h1 { font-size: clamp(2rem, 7vw, 3.15rem); line-height: 1.05; margin-bottom: .9rem; }
.session-header-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .25rem;
  padding: .25rem;
  border-radius: .95rem;
  background: #e5ecdf;
  margin-bottom: 1rem;
}
.session-header-actions .button {
  min-height: 2.75rem;
  padding: .25rem .15rem;
  border: 0;
  border-radius: .7rem;
  font-size: .875rem;
}
.bot-entry { padding: 1rem; margin-bottom: 1rem; border-radius: 1.1rem; background: #e5ecdf; }
.bot-entry p { margin-bottom: .7rem; }
.bot-entry .button { min-height: 2.75rem; }
.account-heading { align-items: start; flex-direction: column; }
.account-heading .button, .account-list .button { min-height: 2.75rem; padding: .35rem .65rem; border-radius: .65rem; font-size: .875rem; }
.account-list li { gap: .4rem; }
.account-list li > .actions { gap: .35rem; }
.account-trash { border-top: 1px solid var(--line); margin-top: .55rem; padding-top: .5rem; }
.account-trash summary { cursor: pointer; min-height: 2.75rem; padding-block: .5rem; font-weight: 700; }
.account-trash summary span { color: var(--muted); font-weight: 500; margin-left: .35rem; }
.method-art { width: 100%; height: auto; display: block; border-radius: 1rem; }

/* CL-007 · Concept B landing, example library and Mini App overview */
.eyebrow { font-size: .8125rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.text-link { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; color: var(--green); font-weight: 700; text-underline-offset: .2em; }
.text-button { min-height: 2.75rem; padding: .35rem 0; margin-inline-start: 1rem; color: var(--green); background: none; border: 0; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.25rem; }
.hero-cta .note, .closing .note, .example-end .note { flex-basis: 100%; margin: .35rem 0 0; }
.format-note { margin-top: 1.25rem; font-size: .9375rem; color: var(--muted); }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); }

.reasoning-card { background: #fcfdf9; border: 1px solid var(--line); border-radius: 1.4rem; padding: clamp(1.25rem, 3.5vw, 2.1rem); box-shadow: 0 1.2rem 2.5rem -1.8rem rgb(29 71 59 / .35); min-width: 0; }
.hero-reasoning { background: var(--green); color: #f4f7ef; border: 0; }
.hero-reasoning .eyebrow, .hero-reasoning .text-link { color: #cde5b8; }
.reasoning-path { list-style: none; margin: 0 0 .75rem; padding: 0; }
.reasoning-path li { position: relative; padding: 0 0 1.05rem 1.75rem; }
.reasoning-path li::before { content: ''; position: absolute; left: .37rem; top: 1rem; bottom: -.1rem; width: 1px; background: currentColor; opacity: .3; }
.reasoning-path li:last-child { padding-bottom: 0; }
.reasoning-path li:last-child::before { display: none; }
.path-dot { position: absolute; left: 0; top: .3rem; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid currentColor; }
.reasoning-path li:nth-child(3) .path-dot { background: currentColor; }
.reasoning-path li:last-child .path-dot { border-style: dashed; }
.reasoning-path h3 { margin: 0 0 .2rem; font-size: .875rem; font-weight: 750; }
.reasoning-path p { margin: 0; overflow-wrap: anywhere; }
.hero-reasoning .reasoning-path h3 { color: #cde5b8; }

.process-band { background: #e5ecdd; border-block: 1px solid #d6e0d1; padding-block: clamp(2.5rem, 6vw, 5rem); }
.process-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); margin: 2rem 0 1.25rem; padding: 0; counter-reset: none; }
.process-steps li { border-top: 2px solid var(--green); padding-top: 1rem; }
.process-steps span { font-family: Georgia, serif; font-size: 1.6rem; color: var(--green); }
.process-steps h3 { margin: .35rem 0 .4rem; font-size: 1.1rem; }
.process-steps p { margin: 0; color: var(--muted); }

.example-library { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section-heading { max-width: 44rem; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.example-card { display: grid; align-content: start; gap: .35rem; padding: 1.35rem; border: 1px solid var(--line); border-radius: 1.15rem; background: #fcfdf9; text-decoration: none; min-width: 0; }
.example-card:hover { border-color: var(--green); background: white; }
.example-card h3 { margin: .2rem 0 0; font-size: 1.2rem; }
.example-card p { margin: 0; color: var(--muted); }
.example-card .text-link { margin-top: .25rem; text-decoration: underline; }
.example-number { font-family: Georgia, serif; font-size: 1.25rem; color: var(--green); }
.status-label { justify-self: start; display: inline-block; padding: .2rem .6rem; border-radius: 1rem; background: var(--mint); color: var(--green); font-size: .8125rem; font-weight: 700; }

.detail-shell { max-width: 46rem; padding-block: clamp(1.5rem, 5vw, 3.5rem); }
.example-detail h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
.example-detail .reasoning-card { margin-block: 1.5rem; }
.conversation-example { margin-bottom: 1.25rem; }
.conversation-example summary { cursor: pointer; min-height: 2.75rem; padding-block: .6rem; font-weight: 750; }
.example-end { border-top: 1px solid var(--line); padding-top: 1.25rem; }

.method-editorial { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; padding-block: clamp(1rem, 4vw, 3rem); }
.method-editorial img { width: 100%; height: auto; border-radius: 1.2rem; display: block; }
.method-editorial .method { width: 100%; padding-block: 0; }

.trust-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin-block: 1.25rem; }
.trust-grid h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.trust-grid p { margin: 0; color: var(--muted); }
.privacy-details { margin-bottom: 1rem; }
.privacy-details summary { cursor: pointer; min-height: 2.75rem; padding-block: .6rem; font-weight: 700; }
.privacy-details p { max-width: 46rem; color: var(--muted); }

.closing { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.closing h2 { max-width: 40rem; }

.session-header-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.overview-current, .overview-empty, .recent-panel, .clarity-card { margin-bottom: 1rem; }
.overview-current h2, .overview-empty h2, .recent-panel h2, .clarity-card h2 { font-size: clamp(1.45rem, 4.5vw, 2rem); }
.overview-current .bot-entry, .overview-empty .bot-entry { margin: .75rem 0 0; }
.empty-symbol { display: block; font-size: 1.8rem; color: var(--green); margin-bottom: .4rem; }
.clarity-card { background: #fcfdf9; border: 1px solid var(--line); border-radius: 1.15rem; padding: clamp(1rem, 4vw, 1.75rem); }
.clarity-section { border-top: 1px solid var(--line); padding-block: .75rem; }
.clarity-section h3, .experiment-note h3 { margin: 0 0 .3rem; font-size: .9375rem; }
.clarity-section ul { margin: 0; padding-inline-start: 1.2rem; }
.clarity-section p { margin: 0; overflow-wrap: anywhere; }
.hypotheses { list-style: none; padding: 0 !important; display: grid; gap: .6rem; }
.hypotheses li { border: 1px solid var(--line); border-radius: .8rem; padding: .7rem .8rem; }
.hypotheses .clarity-section { border: 0; padding: .35rem 0 0; }
.hypotheses .clarity-section h3 { font-size: .8125rem; color: var(--muted); }
.experiment-note { border-top: 1px dashed #92a98a; padding-top: .75rem; margin-bottom: .75rem; }
.experiment-note p { overflow-wrap: anywhere; }

@media (max-width: 43rem) {
  .process-steps, .example-grid, .trust-grid, .method-editorial { grid-template-columns: 1fr; }
  .method-editorial img { max-height: 16rem; object-fit: cover; }
  .hero-cta .button { width: 100%; }
  .session-header-actions .button { font-size: .8125rem; }
}
