:root {
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --ink: #233e38;
  --muted: #66736a;
  --line: #dfe3d9;
  --green: #265c4c;
  --orange: #edb586;
  --mint: #dfebdc;
  --purple: #e9e1ee;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    18px/1.6 "Trebuchet MS",
    Arial,
    sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
}
a {
  color: var(--green);
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ba724e;
  outline-offset: 4px;
}
header {
  max-width: 1280px;
  margin: auto;
  padding: 27px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  background: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: -0.8px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px 11px 11px 2px;
  background: var(--green);
  color: #f7ead6;
  font-size: 28px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav button {
  background: none;
  color: var(--muted);
  font-size: 16px;
  font-weight: bold;
}
.urgent {
  border: 1px solid #d9aa8c !important;
  background: #fff8ef !important;
  color: #935b39 !important;
  padding: 9px 14px;
  border-radius: 9px;
}
main {
  max-width: 1192px;
  margin: 0 auto;
  padding: 40px 0 60px;
}
.eyebrow {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #778173;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 16px 0 34px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font:
    normal 64px/1.08 Georgia,
    serif;
  letter-spacing: -2px;
  margin: 19px 0 20px;
}
h1 em {
  color: #57836b;
  font-weight: normal;
}
h2 {
  font:
    normal 36px/1.2 Georgia,
    serif;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 22px;
  line-height: 1.3;
}
.hero p {
  color: var(--muted);
  max-width: 455px;
  font-size: 18px;
}
.primary {
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
}
.primary:hover {
  background: #1b4438;
}
.secondary {
  border: 1px solid #cfd7ca;
  background: var(--paper);
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 16px;
  color: var(--ink);
  font-weight: bold;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin: 25px 0 16px;
}
.privacy {
  font-size: 14px;
  color: var(--muted);
}
.hero-art {
  position: relative;
  background: #e4e9dc;
  border-radius: 90px 24px 24px 24px;
  padding: 20px;
  height: 280px;
}
.hero-art svg {
  width: 100%;
  height: 100%;
}
.quote {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: #fffdf7ef;
  border: 1px solid #fff;
  border-radius: 14px;
  padding: 13px 17px;
  font:
    italic 20px Georgia,
    serif;
}
.quote small {
  display: block;
  margin-top: 7px;
  font:
    14px "Trebuchet MS",
    sans-serif;
  color: var(--muted);
}
.trustline {
  display: flex;
  gap: 35px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.trustline b {
  color: var(--green);
  margin-right: 6px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 31px 0 19px;
}
.section-head h2 {
  margin: 7px 0 0;
}
.section-head p {
  font-size: 16px;
  color: var(--muted);
  max-width: 270px;
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 17px;
  overflow: hidden;
}
.portrait {
  height: 150px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait svg {
  width: 160px;
  height: 150px;
}
.portrait .topic {
  position: absolute;
  top: 13px;
  left: 14px;
  background: #fffdf7ce;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 14px;
  color: #4d6354;
}
.card-content {
  padding: 20px;
}
.card-content h3 {
  margin-bottom: 9px;
}
.card-content p {
  font-size: 16px;
  color: var(--muted);
  min-height: 42px;
}
.card-content blockquote {
  font:
    italic 21px/1.4 Georgia,
    serif;
  margin: 0 0 17px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.card-bottom span {
  font-size: 14px;
  color: var(--muted);
}
.card-bottom button {
  color: var(--green);
  font-weight: bold;
  background: none;
  font-size: 16px;
}
.how {
  margin-top: 30px;
  background: #ecefe5;
  border-radius: 17px;
  padding: 23px 25px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 23px;
}
.how strong {
  font-size: 16px;
}
.how p {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 0;
}
.num {
  display: inline-grid;
  place-items: center;
  border: 1px solid #cdd8c6;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 7px;
}
footer {
  max-width: 1192px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}
.steps {
  display: flex;
  gap: 30px;
  margin: 8px 0 27px;
  font-size: 14px;
  color: var(--muted);
}
.steps .active {
  color: var(--green);
  font-weight: bold;
}
.back {
  background: none;
  color: var(--muted);
  padding: 0;
  margin-bottom: 16px;
  font-size: 16px;
}
.prep-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 27px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  padding: 27px;
}
.scenario-intro .portrait {
  border-radius: 13px;
  height: 210px;
  margin-bottom: 22px;
}
.scenario-intro .portrait svg {
  height: 210px;
  width: 225px;
}
.scenario-intro blockquote {
  font:
    italic 29px/1.4 Georgia,
    serif;
  margin: 15px 0;
}
.muted {
  color: var(--muted);
  font-size: 17px;
}
.tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.tip {
  border-radius: 12px;
  padding: 16px;
  background: var(--mint);
  font-size: 16px;
}
.tip.avoid {
  background: #f3e8df;
}
.tip strong {
  display: block;
  margin-bottom: 7px;
}
.tip p {
  margin: 0;
}
.breath {
  background: #eee8f3;
  border-radius: 13px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 16px;
}
.breath button {
  background: #fff;
  border-radius: 8px;
  padding: 7px 13px;
  color: var(--ink);
  font-size: 14px;
}
.practice {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr) 270px;
  gap: 20px;
}
.practice .panel {
  padding: 20px;
}
.practice .portrait {
  border-radius: 12px;
  height: 145px;
}
.practice h3 {
  font-size: 20px;
}
.zone {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin: 12px 0;
}
.meter {
  height: 9px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    #dfb397 25%,
    #e8cf9b 25%,
    #e8cf9b 50%,
    #aec7a8 50%,
    #aec7a8 75%,
    #5c9178 75%
  );
  position: relative;
  margin: 13px 0;
}
.marker {
  position: absolute;
  top: -4px;
  height: 17px;
  width: 4px;
  background: var(--ink);
  border: 1px solid #fff;
  transition: left 0.3s;
}
.zones {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}
.feeling {
  margin-top: 25px;
  background: #f0ecef;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
}
.feeling strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}
.sim-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 15px;
  line-height: 1.5;
}
.chatlog {
  min-height: 190px;
  max-height: 360px;
  overflow: auto;
  padding: 6px 0 14px;
}
.bubble {
  font-size: 17px;
  border-radius: 13px 13px 13px 3px;
  padding: 13px 15px;
  background: #edf0e7;
  margin-bottom: 12px;
  max-width: 90%;
}
.bubble.parent {
  background: #e3ece5;
  border-radius: 13px 13px 3px 13px;
  margin-left: auto;
}
.speaker {
  font-size: 14px;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
}
.replies {
  display: grid;
  gap: 9px;
}
.reply {
  border: 1px solid #d8ddd2;
  background: var(--paper);
  border-radius: 10px;
  padding: 11px 13px;
  text-align: left;
  color: var(--ink);
  font-size: 16px;
}
.reply:hover {
  background: #eef2e8;
  border-color: #6b927e;
}
.formlabel {
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin: 17px 0 7px;
}
textarea {
  border: 1px solid #ccd6c8;
  border-radius: 10px;
  width: 100%;
  padding: 12px;
  resize: vertical;
  min-height: 76px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.actions button {
  font-size: 14px;
}
.coach-icon {
  width: 35px;
  height: 35px;
  background: var(--mint);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.coach p {
  font-size: 16px;
  color: var(--muted);
}
.feedback {
  background: #eef2e8;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  margin: 15px 0;
}
.feedback strong {
  display: block;
  margin-bottom: 6px;
}
.repair {
  width: 100%;
  background: #f4e9dc;
  border: 1px solid #dec3a6;
  border-radius: 10px;
  padding: 10px;
  font-weight: bold;
  color: #825b36;
  font-size: 14px;
  margin-top: 10px;
}
.tag {
  display: inline-block;
  background: var(--mint);
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 14px;
  margin: 2px;
}
.summary {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 23px;
}
.chart {
  width: 100%;
  height: 160px;
  background: #f2f4eb;
  border-radius: 14px;
  margin: 20px 0;
}
.turn {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.turn p {
  margin: 5px 0;
  color: var(--muted);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 17px;
  margin: 14px 0;
}
.check input {
  accent-color: var(--green);
  margin-top: 6px;
}
.resource {
  display: block;
  text-decoration: none;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  margin: 12px 0;
}
.resource strong {
  display: block;
  font-size: 18px;
}
.resource span {
  font-size: 16px;
  color: var(--muted);
}
.script {
  font:
    italic 30px/1.5 Georgia,
    serif;
  color: var(--green);
  border-left: 3px solid #a4ba98;
  padding-left: 22px;
  margin: 25px 0;
}
.notice {
  background: #f1e7dc;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
}
/* Containers focused from code (for screen readers) aren't controls, so no ring. */
.focus-destination:focus,
[tabindex="-1"]:focus {
  outline: none;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 16px;
  z-index: 5;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1230px) {
  main,
  footer {
    margin-left: 30px;
    margin-right: 30px;
  }
  .practice {
    grid-template-columns: 230px 1fr;
  }
  .coach {
    grid-column: 1/-1;
  }
  .coach .feedback {
    max-width: 650px;
  }
  .hero h1 {
    font-size: 54px;
  }
}
@media (max-width: 720px) {
  header {
    padding: 18px 20px;
  }
  .brand {
    font-size: 23px;
  }
  nav {
    gap: 12px;
  }
  nav button {
    font-size: 14px;
  }
  nav .aboutnav {
    display: none;
  }
  main {
    margin: 0;
    padding: 25px 20px 35px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 0;
  }
  h1 {
    font-size: 47px !important;
  }
  .hero-art {
    height: 235px;
  }
  .cards,
  .prep-layout,
  .practice,
  .summary {
    grid-template-columns: 1fr;
  }
  .how {
    grid-template-columns: 1fr 1fr;
  }
  .trustline {
    gap: 12px;
    flex-wrap: wrap;
  }
  .section-head {
    display: block;
  }
  .section-head p {
    margin-top: 10px;
  }
  .tips {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 17px;
    font-size: 14px;
  }
  .practice .portrait {
    height: 110px;
  }
  .practice .portrait svg {
    height: 110px;
  }
  .coach {
    grid-column: auto;
  }
  footer {
    margin: 0 20px;
    display: block;
  }
  .panel {
    padding: 20px;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* The Talk Kit: a calm, tactile card system. Fonts are served locally. */
@font-face {
  font-family: "DM Sans";
  src: url("./fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url("./fonts/fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #faf9f5;
  --paper: #fffefa;
  --ink: #253f37;
  --muted: #657269;
  --line: #dfe3d8;
  --green: #254e42;
  --orange: #e6b79a;
  --mint: #e7eddc;
  --purple: #eee6f2;
  --shadow: 0 12px 35px #263f3710;
}
body {
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font-family: inherit;
}
button {
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9e633f;
  outline-offset: 4px;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
h1,
h2,
.child-quote,
.feedback-title {
  font-family: Fraunces, Georgia, serif;
  font-weight: 400;
  letter-spacing: -1.1px;
}
h1 {
  font-size: 64px;
  line-height: 1.12;
}
h1 em {
  font-style: normal;
  color: #52765c;
}
h2 {
  font-size: 34px;
}
h3 {
  letter-spacing: -0.3px;
}
header {
  max-width: 1280px;
  padding: 23px 42px;
  min-height: 91px;
}
.brand {
  font-size: 30px;
  letter-spacing: -1.3px;
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px 13px 13px 4px;
  font-size: 35px;
  padding-bottom: 9px;
}
.brand-dot {
  color: #ad7c5c;
  margin-left: -9px;
}
nav {
  gap: 30px;
}
nav button {
  font-size: 16px;
}
.urgent {
  border-radius: 24px;
  padding: 10px 18px !important;
  background: transparent !important;
  color: #725441 !important;
  border-color: #d9c8b8 !important;
}
main {
  max-width: 1150px;
  padding: 44px 0 65px;
}
footer {
  max-width: 1150px;
  font-size: 14px;
  align-items: center;
}
footer b {
  font-size: 18px;
  color: var(--ink);
  margin-right: 8px;
}
.eyebrow {
  font-size: 14px;
  letter-spacing: 1.6px;
  color: #627463;
  font-weight: 700;
}
.primary,
.secondary {
  font-size: 17px;
  border-radius: 12px;
  padding: 14px 21px;
}
.primary {
  box-shadow: 0 3px 0 #173b30;
}
.primary:hover {
  background: #32604f;
  box-shadow: 0 5px 14px #254e4226;
}
.primary span {
  margin-left: 20px;
}
.secondary:hover {
  background: #eef1e6;
}
.text-button {
  padding: 8px 3px;
  background: transparent;
  color: var(--green);
  font-size: 16px;
  font-weight: 600;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-button.small {
  font-size: 14px;
}
.full-width {
  width: 100%;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  background: white;
  padding: 12px;
  z-index: 50;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.loading {
  padding: 100px 20px;
  text-align: center;
}
.loading .brand-icon {
  margin: auto;
}
.hero.new-hero {
  grid-template-columns: 1.12fr 1fr;
  gap: 65px;
  padding: 10px 0 48px;
}
.new-hero h1 {
  margin: 22px 0 21px;
  font-size: 64px;
  letter-spacing: -2.5px;
}
.new-hero p {
  font-size: 20px;
  line-height: 1.8;
  max-width: 450px;
}
.tiny-spark {
  color: #986149;
  font-size: 20px;
  margin-right: 6px;
}
.hero-actions {
  align-items: center;
  gap: 22px;
  margin: 26px 0 19px;
}
.privacy {
  font-size: 14px;
}
.privacy span {
  font-size: 22px;
  vertical-align: middle;
  margin-right: 5px;
}
.hero-stage {
  position: relative;
  min-height: 425px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #eef0e4 0%, #faf9f500 68%);
}
.hero-demo {
  background: #fffefa;
  border: 1px solid #d9dfce;
  border-radius: 22px;
  width: 310px;
  padding: 20px 23px;
  z-index: 2;
  box-shadow: 0 18px 35px #3a493219;
  transform: rotate(3deg);
}
.demo-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #718064;
}
.pill {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  background: #ffffff9e;
  border: 1px solid #ffffff7a;
  border-radius: 20px;
  padding: 5px 9px;
}
.hero-demo .pill {
  background: #eef1e7;
  color: #5d7257;
  font-size: 14px;
}
.demo-character {
  height: 138px;
  width: 180px;
  margin: 8px auto 0;
  border-radius: 50%;
  background: #e8eddf;
  overflow: hidden;
}
.demo-character svg {
  height: 160px;
  width: 180px;
}
.hero-demo blockquote {
  font:
    400 34px/1.22 Fraunces,
    Georgia,
    serif;
  text-align: center;
  margin: 16px 0 20px;
  letter-spacing: -0.6px;
}
.demo-response {
  border: 1px solid #dce6d3;
  border-radius: 11px;
  background: #eef4e7;
  font-size: 14px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.demo-response > span {
  font-size: 23px;
}
.demo-bottom {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  color: #6b7764;
}
.little-dot {
  background: #6c8b5d;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.back-card {
  position: absolute;
  width: 306px;
  height: 353px;
  top: 40px;
  border: 1px solid #d8dfce;
  border-radius: 22px;
}
.back-card.one {
  background: #e2e9d7;
  transform: rotate(-9deg);
  left: 62px;
}
.back-card.two {
  background: #efe5db;
  transform: rotate(10deg);
  right: 51px;
}
.floating-tag {
  position: absolute;
  padding: 8px 14px;
  background: #fffefa;
  border: 1px solid #e0e1d6;
  border-radius: 9px;
  box-shadow: 0 4px 13px #263f370c;
  font-size: 14px;
  font-weight: 500;
  z-index: 3;
}
.top-tag {
  top: 0;
  right: 11px;
  transform: rotate(7deg);
}
.bottom-tag {
  bottom: 2px;
  left: 9px;
  transform: rotate(-5deg);
  background: #f6eadf;
}
.bottom-tag span {
  font-size: 20px;
  margin-right: 4px;
}
.spark {
  position: absolute;
  font-size: 44px;
  color: #a9b693;
  z-index: 3;
}
.spark-one {
  left: 8px;
  top: 68px;
}
.trustline {
  justify-content: space-between;
  font-size: 14px;
  padding: 19px 12px;
}
.section-head {
  margin: 39px 0 22px;
}
.section-head h2 {
  font-size: 37px;
  margin: 8px 0 0;
}
.section-head p {
  font-size: 16px;
  max-width: 290px;
  line-height: 1.8;
}
.cards {
  gap: 23px;
}
.card {
  border-radius: 19px;
  box-shadow: 0 3px 0 #dfdfd442;
}
.scenario-card {
  transition:
    transform 0.22s,
    box-shadow 0.22s;
}
.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.scenario-card .portrait {
  height: 160px;
  background: var(--theme);
  align-items: end;
}
.scenario-card .portrait svg {
  height: 165px;
  width: 184px;
  transform: translateY(12px);
}
.theme-0 {
  --theme: #e6ecd8;
  --theme-dark: #637b50;
}
.theme-1 {
  --theme: #f1e3d5;
  --theme-dark: #9a7155;
}
.theme-2 {
  --theme: #eae4f0;
  --theme-dark: #897395;
}
.portrait .topic {
  font-size: 14px;
  padding: 4px 9px;
  border-radius: 20px;
  top: 13px;
  left: 14px;
}
.card-number {
  position: absolute;
  top: 16px;
  right: 17px;
  font:
    400 22px Fraunces,
    serif;
  color: var(--theme-dark);
  opacity: 0.8;
}
.card-content {
  padding: 21px 23px;
}
.character-meta {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.character-meta > span:last-child {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
.age {
  font-weight: 400;
  color: var(--muted);
}
.card-content h3 {
  font-size: 22px;
  line-height: 1.35;
  min-height: 49px;
}
.card-content blockquote {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  min-height: 80px;
  margin-bottom: 17px;
}
.deck-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  background: none;
}
.deck-button span {
  font-size: 23px;
}
.review-strip {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 31px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 23px;
  background: #f3f4ed;
}
.review-strip h3 {
  font-size: 17px;
  margin-bottom: 3px;
}
.review-strip p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  max-width: 620px;
}
.seal {
  border: 1px solid #b7c1a7;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  font-size: 29px;
  flex-shrink: 0;
}
.review-badge {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 14px;
  white-space: nowrap;
  background: #fffefa;
  border: 1px solid #d9dece;
  border-radius: 20px;
  color: #56664f;
  padding: 8px 12px;
}
.review-badge:hover {
  background: #e6eddb;
}
.review-strip .review-badge {
  margin-left: auto;
}
.how {
  margin-top: 40px;
  background: transparent;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 29px 0 0;
  gap: 34px;
  grid-template-columns: 1.05fr 1fr 1fr 1fr;
}
.how h2 {
  font-size: 29px;
  margin: 8px 0 0;
}
.how-number {
  font:
    400 26px Fraunces,
    serif;
  color: #809171;
  display: block;
  margin-bottom: 9px;
}
.how strong {
  font-size: 16px;
  display: block;
}
.how p {
  font-size: 14px;
  line-height: 1.8;
}
.steps {
  list-style: none;
  padding: 0;
  justify-content: center;
  gap: 45px;
  margin: 0 0 32px;
  font-size: 14px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.steps li > span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
}
.steps .active > span {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.steps .complete > span {
  background: #e3ead9;
  color: #456445;
}
.back {
  font-size: 16px;
  margin-bottom: 20px;
}
.prep-title {
  margin-bottom: 28px;
}
.prep-title h1 {
  font-size: 47px;
  margin: 10px 0;
}
.prep-layout {
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  max-width: 990px;
  margin: 0 auto;
}
.panel {
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 3px 0 #e5e5db55;
}
.scenario-intro {
  background: linear-gradient(180deg, var(--theme) 0 39%, var(--paper) 39%);
}
.scenario-intro .portrait {
  background: transparent;
  height: 195px;
  margin-bottom: 24px;
}
.scenario-intro blockquote {
  font-family: Fraunces, serif;
  font-style: normal;
  font-size: 30px;
}
.scenario-intro .review-badge {
  margin-top: 14px;
}
.preparation h2 {
  font-size: 34px;
  margin-top: 0;
}
.coach-icon {
  background: #e7eddc;
  color: #527046;
  font-size: 28px;
  width: 42px;
  height: 42px;
}
.feedback {
  padding: 17px;
  background: #edf1e4;
  font-size: 17px;
  border-radius: 12px;
}
.tip {
  font-size: 14px;
  line-height: 1.8;
  padding: 14px;
}
.tip strong {
  font-size: 16px;
}
.breath-launch {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: #eee8f1;
  border: 1px solid #e4dbe9;
  border-radius: 13px;
  color: var(--ink);
  padding: 15px;
  margin: 20px 0;
}
.breath-launch > span:last-child {
  margin-left: auto;
}
.breath-launch strong {
  font-size: 16px;
  display: block;
}
.breath-launch small {
  font-size: 14px;
  color: #6b6172;
}
.breath-icon {
  font-size: 35px;
  color: #8c79a0;
}
.practice-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.practice-heading h1 {
  font-size: 42px;
  margin: 7px 0 0;
}
.practice-heading .secondary {
  font-size: 14px;
  padding: 10px 16px;
}
.practice-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: auto;
  align-items: start;
}
.character-panel {
  border: 1px solid #dce1d4;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--theme) 0 310px, #f5f5ee 310px);
  padding: 19px 23px;
  position: sticky;
  top: 20px;
}
.character-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffffaa;
  color: var(--green);
  font-size: 25px;
}
.live-character {
  position: relative;
  height: 207px;
  text-align: center;
  margin-top: 10px;
}
.live-character > svg {
  height: 197px;
  width: 228px;
  transition: transform 0.4s;
}
.mood-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background: #fffefade;
  border: 1px solid #ffffff;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
}
.character-name {
  text-align: center;
  font:
    400 31px Fraunces,
    serif;
  margin: 19px 0 24px;
}
.character-name span {
  display: block;
  font:
    14px "DM Sans",
    sans-serif;
  margin-top: 5px;
  color: #67705c;
}
.character-panel .feeling {
  background: var(--paper);
  border: 1px solid #e4e6db;
  margin-top: 0;
  font-size: 16px;
  min-height: 113px;
  line-height: 1.7;
}
.feeling strong {
  letter-spacing: 1px;
  font-size: 14px;
  color: #687660;
}
.openness {
  margin: 19px 0 7px;
  font-size: 14px;
}
.openness > b {
  float: right;
  font-size: 14px;
  color: #526b4a;
}
.meter {
  height: 7px;
  margin: 10px 0;
}
.marker {
  width: 5px;
  height: 15px;
  border: 1px solid #fff;
}
.zones {
  font-size: 14px;
}
.sim-label {
  font-size: 14px;
  line-height: 1.65;
  margin-top: 13px;
  color: #6b7467;
}
.deck-progress {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #62715f;
  margin: 0 4px 13px;
}
.deck-progress b {
  color: var(--green);
  font-size: 18px;
}
.progress-hint {
  margin-left: 4px;
  color: #778170;
}
.progress-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.progress-dots > span {
  width: 30px;
  height: 5px;
  border-radius: 6px;
  background: #e2e7da;
}
.progress-dots .done {
  background: #5b7b50;
}
.progress-dots .current {
  background: #b0c29a;
}
.flashcard {
  border: 1px solid #dbe0d2;
  border-radius: 23px;
  padding: 27px 31px;
  background: var(--paper);
  box-shadow:
    0 5px 0 #e8ebdf,
    0 9px 0 -2px #faf9f5,
    0 10px 0 -2px #dbe0d2;
  animation: card-enter 0.3s ease both;
  outline: none;
}
.flashcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.voice-button {
  background: #f2f4ed;
  border: 1px solid #dfe4d6;
  border-radius: 20px;
  color: #536a48;
  padding: 6px 11px;
  font-size: 14px;
  white-space: nowrap;
}
.voice-button[aria-pressed="true"] {
  background: #e0e9d5;
}
.voice-caption {
  text-align: right;
  font-size: 14px;
  color: #727b6b;
  margin: 5px 0 0;
}
.child-quote {
  font-size: 34px;
  line-height: 1.4;
  margin: 26px 0 28px;
  letter-spacing: -0.5px;
}
.choice-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.choice-header h2 {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0;
}
.choice-header > span {
  font-size: 14px;
  color: #73806d;
}
.replies {
  gap: 10px;
  margin-bottom: 18px;
}
.reply {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 16px;
  border-radius: 12px;
  min-height: 70px;
  padding: 12px;
  background: #fffefa;
  line-height: 1.6;
  border-color: #dde2d5;
}
.reply:hover {
  background: #f3f6ec;
  border-color: #9aaa87;
  transform: translateX(3px);
}
.reply.selected {
  background: #eaf1df;
  border-color: #6b8957;
  box-shadow: 0 0 0 1px #6b8957;
}
.choice-letter {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  height: 28px;
  background: #f0f2e9;
  border: 1px solid #e0e5d7;
  border-radius: 8px;
  font-size: 14px;
  color: #69785d;
}
.selected .choice-letter {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.choice-mark {
  margin-left: auto;
  color: #769261;
  padding: 0 2px;
}
.custom-entry {
  margin-top: 21px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
summary {
  cursor: pointer;
  font-size: 14px;
  color: #5b6b52;
}
summary > span {
  float: right;
  font-size: 14px;
  color: #778170;
}
.custom-entry textarea {
  min-height: 100px;
  font-size: 16px;
}
.custom-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #6d7765;
  margin: 4px 0 12px;
}
.repair-link {
  display: block;
  margin: 14px auto 0;
  font-size: 14px;
}
.under-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 19px 2px 14px;
  gap: 10px;
}
.under-card > span {
  font-size: 14px;
  color: #7a826f;
}
.under-card button {
  font-size: 14px;
}
.transcript {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.transcript .chatlog {
  margin-top: 15px;
  min-height: 0;
}
.transcript .bubble {
  font-size: 16px;
}
.feedback-side {
  background: linear-gradient(155deg, #f6f9ef, var(--paper) 60%);
}
.feedback-symbol {
  font-size: 36px;
  color: #849b6d;
}
.your-choice {
  font-size: 14px;
  color: #6c7a61;
  background: #eef2e7;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 15px 0 22px;
  overflow-wrap: anywhere;
}
.feedback-title {
  font-size: 37px;
  line-height: 1.2;
  margin: 0 0 17px;
  max-width: 440px;
}
.feedback-title > span {
  color: #b98867;
}
.feedback-copy {
  font-size: 17px;
  line-height: 1.85;
  color: #617055;
}
.tag {
  background: #e4ecd9;
  border: 1px solid #d8e4ca;
  color: #4f6941;
  font-size: 14px;
  padding: 4px 10px;
}
.tag-list {
  margin: 15px 0 23px;
}
.next-line {
  border-top: 1px solid #e0e6d6;
  padding: 19px 0;
}
.next-line blockquote {
  font:
    400 25px/1.5 Fraunces,
    serif;
  letter-spacing: -0.2px;
  margin: 10px 0 14px;
}
.another-line {
  background: #f4efe5;
  border-radius: 11px;
  padding: 14px 17px;
  margin-bottom: 24px;
  font-size: 16px;
  color: #79664d;
}
.another-line strong {
  font-size: 14px;
}
.another-line p {
  margin: 4px 0 0;
}
.repair-now {
  margin-top: 12px;
}
.inline-error {
  padding: 10px 13px;
  background: #fff0e9;
  color: #8b3d28;
  border: 1px solid #e4bba6;
  border-radius: 9px;
  font-size: 14px;
  margin: 10px 0;
}
.inline-error[hidden] {
  display: none;
}
.summary {
  margin-top: 24px;
}
.summary h3 {
  font-size: 20px;
}
.turn {
  overflow-wrap: anywhere;
}
.script {
  font-family: Fraunces, serif;
  font-style: normal;
}
.toast {
  box-shadow: var(--shadow);
  max-width: calc(100% - 30px);
  text-align: center;
  z-index: 10;
}
dialog {
  position: fixed;
  width: min(510px, calc(100% - 30px));
  max-height: calc(100% - 40px);
  overflow: auto;
  border: 1px solid #d7decf;
  border-radius: 23px;
  padding: 35px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px #182e3440;
}
dialog[open] {
  animation: dialog-enter 0.2s ease;
}
dialog::backdrop {
  background: #22382f70;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 34px;
  line-height: 1.2;
  margin: 11px 0 17px;
}
dialog p {
  font-size: 17px;
  color: #66745e;
  line-height: 1.8;
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 12px;
  width: 30px;
  height: 30px;
  background: transparent;
  color: #637159;
  font-size: 29px;
}
.modal-kicker {
  font-size: 14px;
  letter-spacing: 1.5px;
  color: #6e805e;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 23px;
}
.modal-actions > * {
  flex: 1;
  font-size: 14px;
  min-width: 160px;
}
.breathing-orbit {
  display: grid;
  place-items: center;
  width: 216px;
  height: 216px;
  border: 1px solid #d7decc;
  border-radius: 50%;
  margin: 30px auto;
  background: #eef2e7;
}
.breathing-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 167px;
  height: 167px;
  border-radius: 50%;
  background: #e0e9d1;
  box-shadow: 0 0 0 10px #e8eedf;
}
.breathing-circle > span {
  font:
    400 57px Fraunces,
    serif;
}
.breathing-circle small {
  font-size: 14px;
  color: #697d55;
}
.breathing .breathing-circle {
  animation: breathe 8s ease-in-out infinite;
}
#calm-status {
  text-align: center;
  font-size: 16px;
}
.status-pending {
  font-size: 14px;
  padding: 7px 12px;
  display: inline-block;
  background: #f2e9d8;
  border-radius: 20px;
  color: #786340;
  margin-bottom: 14px;
}
.review-process {
  padding: 4px 0;
}
.review-process > div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 12px;
}
.review-process b {
  font-size: 16px;
}
.review-process p {
  font-size: 16px;
  margin: 6px 0;
}
.rule-list > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 16px;
}
.rule-list dd {
  font-weight: 700;
}
.load-error {
  max-width: 700px;
  margin: 50px auto;
}
.load-error h1 {
  font-size: 37px;
}
.load-error .primary {
  margin-bottom: 20px;
}
.category-tabs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.category-tabs button {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 1px solid #dbe1d1;
  border-radius: 24px;
  padding: 9px 15px;
  font-size: 14px;
  color: #65775a;
}
.category-tabs button[aria-pressed="true"] {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.category-tabs button > span {
  font-size: 14px;
  opacity: 0.85;
  border-radius: 50%;
  background: #ffffff26;
  padding: 1px 5px;
}
.category-description {
  font-size: 16px;
  color: #6d7966;
  margin: -5px 0 23px;
}
#situations,
#how {
  scroll-margin-top: 25px;
}
@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(9px) rotateX(3deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes breathe {
  50% {
    transform: scale(1.12);
  }
}
@media (min-width: 1350px) {
  main {
    padding-top: 50px;
  }
  .hero.new-hero {
    padding-top: 13px;
    padding-bottom: 58px;
  }
  .hero-stage {
    min-height: 425px;
  }
}
@media (max-width: 1230px) {
  main,
  footer {
    margin-left: 35px;
    margin-right: 35px;
  }
  .hero.new-hero {
    gap: 25px;
  }
  .new-hero h1 {
    font-size: 55px;
  }
  .hero-stage {
    min-height: 415px;
  }
  .hero-demo {
    width: 280px;
  }
  .back-card {
    width: 275px;
  }
  .back-card.one {
    left: 35px;
  }
  .back-card.two {
    right: 28px;
  }
  .top-tag {
    right: 0;
  }
  .bottom-tag {
    left: 0;
  }
  .review-strip {
    gap: 13px;
  }
  .review-strip .review-badge {
    font-size: 14px;
  }
  .practice-shell {
    grid-template-columns: 275px minmax(0, 1fr);
    gap: 23px;
  }
  .character-panel {
    padding: 18px;
  }
  .flashcard {
    padding: 23px;
  }
  .choice-header {
    flex-wrap: wrap;
    gap: 4px;
  }
}
@media (max-width: 950px) {
  .new-hero h1 {
    font-size: 47px !important;
  }
  .hero-actions {
    gap: 14px;
    flex-wrap: wrap;
  }
  .hero-demo {
    width: 250px;
  }
  .hero-stage {
    min-height: 410px;
  }
  .hero-demo blockquote {
    font-size: 30px;
  }
  .back-card {
    width: 250px;
    height: 350px;
  }
  .back-card.one {
    left: 10px;
  }
  .back-card.two {
    right: 5px;
  }
  .card-content {
    padding: 18px;
  }
  .card-content h3 {
    font-size: 21px;
  }
  .card-content blockquote {
    min-height: 116px;
  }
  .review-strip {
    flex-wrap: wrap;
  }
  .review-strip .review-badge {
    margin-left: 55px;
  }
  .practice-shell {
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 17px;
  }
  .live-character > svg {
    width: 200px;
  }
  .character-panel {
    padding: 14px;
  }
  .live-character {
    height: 195px;
  }
  .openness > b {
    float: none;
    display: block;
  }
  .flashcard {
    padding: 21px;
  }
  .child-quote {
    font-size: 30px;
  }
  .feedback-title {
    font-size: 35px;
  }
  .under-card {
    align-items: flex-start;
  }
  .under-card > span {
    text-align: right;
    max-width: 130px;
  }
}
@media (max-width: 720px) {
  header {
    padding: 18px 20px;
    min-height: 77px;
  }
  .brand {
    font-size: 25px;
    gap: 8px;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 31px;
  }
  .brand-dot {
    margin-left: -6px;
  }
  nav {
    gap: 10px;
  }
  nav button {
    font-size: 14px;
  }
  nav #how-nav {
    display: none;
  }
  .urgent {
    padding: 8px 13px !important;
  }
  main {
    padding: 28px 20px 40px;
    margin: 0;
  }
  .hero.new-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 8px 0 32px;
  }
  .new-hero h1 {
    font-size: 47px !important;
    letter-spacing: -1.8px;
  }
  .new-hero p {
    font-size: 18px;
    max-width: 480px;
  }
  .hero-actions {
    margin-top: 22px;
  }
  .primary,
  .secondary {
    padding: 13px 17px;
    font-size: 16px;
  }
  .hero-stage {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    min-height: 390px;
  }
  .hero-demo {
    width: 267px;
  }
  .back-card {
    width: 265px;
    height: 342px;
  }
  .back-card.one {
    left: 40px;
    top: 25px;
  }
  .back-card.two {
    right: 31px;
    top: 25px;
  }
  .top-tag {
    right: 0;
    top: 4px;
  }
  .bottom-tag {
    bottom: 2px;
  }
  .spark-one {
    left: 13px;
    top: 59px;
  }
  .trustline {
    padding: 17px 0;
    gap: 12px 19px;
    justify-content: flex-start;
    font-size: 14px;
  }
  .section-head {
    margin-top: 30px;
  }
  .section-head h2 {
    font-size: 36px;
  }
  .section-head p {
    max-width: none;
    margin-top: 11px;
  }
  .category-tabs {
    gap: 8px;
  }
  .category-tabs button {
    padding: 8px 12px;
    font-size: 14px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .scenario-card .portrait {
    height: 160px;
  }
  .card-content h3,
  .card-content blockquote {
    min-height: 0;
  }
  .card-content h3 {
    font-size: 23px;
  }
  .card-content {
    padding: 21px 23px;
  }
  .card-content blockquote {
    margin: 12px 0 20px;
  }
  .review-strip {
    padding: 18px;
    gap: 12px;
  }
  .review-strip > div:nth-child(2) {
    flex: 1;
  }
  .review-strip p {
    font-size: 14px;
  }
  .review-strip .review-badge {
    margin-left: 49px;
  }
  .how {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .how h2 {
    font-size: 30px;
  }
  .how strong {
    font-size: 16px;
  }
  footer {
    margin: 0 20px;
    padding-top: 19px;
    display: block;
    font-size: 14px;
  }
  footer > span {
    display: block;
    margin-bottom: 7px;
  }
  .steps {
    gap: 18px;
    font-size: 14px;
    margin-bottom: 24px;
  }
  .steps li {
    gap: 5px;
  }
  .steps li > span {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }
  .prep-title h1 {
    font-size: 38px !important;
  }
  .prep-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .panel {
    padding: 22px;
  }
  .scenario-intro .portrait {
    height: 180px;
  }
  .scenario-intro blockquote {
    font-size: 29px;
  }
  .tips {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .tip {
    padding: 12px;
    font-size: 14px;
  }
  .tip strong {
    font-size: 14px;
  }
  .practice-heading {
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 19px;
  }
  .practice-heading .eyebrow {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .practice-heading h1 {
    font-size: 35px !important;
    margin-top: 9px;
  }
  .practice-heading .secondary {
    white-space: nowrap;
    padding: 8px 11px;
    font-size: 14px;
  }
  .practice-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .character-panel {
    position: relative;
    top: 0;
    padding: 16px 18px 16px 134px;
    min-height: 175px;
    border-radius: 17px;
    background: var(--theme);
  }
  .character-top {
    display: block;
  }
  .character-top .pill {
    font-size: 14px;
    padding: 3px 7px;
  }
  .character-top .icon-button {
    position: absolute;
    right: 10px;
    top: 10px;
  }
  .live-character {
    position: absolute;
    left: 1px;
    top: 18px;
    width: 127px;
    height: 124px;
    margin: 0;
  }
  .live-character > svg {
    width: 132px;
    height: 132px;
  }
  .mood-label {
    font-size: 14px;
    padding: 3px 6px;
    bottom: -10px;
  }
  .character-name {
    text-align: left;
    font-size: 26px;
    margin: 8px 0;
  }
  .character-name span {
    font-size: 14px;
    margin-top: 3px;
  }
  .character-panel .feeling {
    background: transparent;
    border: 0;
    padding: 0;
    min-height: 0;
    border-radius: 0;
    font-size: 14px;
    margin: 10px 0;
  }
  .character-panel .feeling strong {
    display: none;
  }
  .openness,
  .character-panel > .sim-label {
    display: none;
  }
  .character-panel > .text-button {
    font-size: 14px;
    text-align: left;
    padding: 0;
  }
  .deck-progress {
    font-size: 14px;
  }
  .flashcard {
    padding: 20px;
    border-radius: 18px;
  }
  .flashcard-top .eyebrow {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .child-quote {
    font-size: 30px;
    margin: 22px 0;
  }
  .choice-header h2 {
    font-size: 17px;
  }
  .choice-header > span {
    font-size: 14px;
  }
  .reply {
    font-size: 16px;
    gap: 10px;
    padding: 11px;
    min-height: 75px;
  }
  .choice-letter {
    flex-basis: 24px;
    height: 25px;
  }
  .choice-mark {
    font-size: 14px;
  }
  .feedback-title {
    font-size: 36px;
  }
  .feedback-copy {
    font-size: 16px;
  }
  .under-card > span {
    font-size: 14px;
  }
  .under-card button {
    font-size: 14px;
  }
  .summary {
    grid-template-columns: 1fr;
  }
  .summary h1 {
    font-size: 35px !important;
  }
  dialog {
    padding: 29px 23px;
    width: calc(100% - 26px);
  }
  dialog h2 {
    font-size: 35px;
  }
  .breathing-orbit {
    width: 195px;
    height: 195px;
  }
  .breathing-circle {
    width: 150px;
    height: 150px;
  }
  .review-badge {
    font-size: 14px;
  }
}
@media (max-width: 370px) {
  .steps {
    gap: 10px;
  }
  .new-hero h1 {
    font-size: 42px !important;
  }
  .hero-demo {
    width: 242px;
  }
  .back-card {
    width: 235px;
  }
  .back-card.one {
    left: 21px;
  }
  .back-card.two {
    right: 16px;
  }
  .hero-actions .primary {
    font-size: 14px;
  }
  .review-strip .review-badge {
    margin-left: 0;
  }
  .choice-header > span {
    display: none;
  }
  .character-panel {
    padding-left: 119px;
  }
  .live-character {
    width: 114px;
  }
  .live-character > svg {
    width: 118px;
  }
  .tips {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reply:hover,
  .scenario-card:hover {
    transform: none;
  }
}
.brand-icon {
  padding: 0;
}
.arrow-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  flex-shrink: 0;
}
.deck-button .arrow-icon {
  width: 18px;
  height: 18px;
}
.pause-session {
  position: fixed;
  z-index: 4;
  right: 24px;
  bottom: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  border: 1px solid #d7cbe0;
  border-radius: 30px;
  background: #f4eef8;
  color: #60516b;
  box-shadow: 0 4px 18px #48305518;
  font-size: 14px;
}
.pause-session > span:first-child {
  font-size: 28px;
}
.pause-session b {
  margin-left: 5px;
  font-weight: 700;
}
.pause-session:hover {
  background: #e9dff0;
}
.in-session footer {
  padding-bottom: 85px;
}
.calm-cue {
  text-align: center;
  font-family: Fraunces, serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 7px;
}
.breathing .breathing-circle {
  animation: guided-breathe 10s ease-in-out infinite;
}
.tag.off {
  background: transparent;
  color: #77816e;
  border-color: #d9dfd1;
}
.now-steps {
  padding-left: 23px;
}
.now-steps li {
  padding: 8px 0 13px 5px;
  font-size: 17px;
  line-height: 1.85;
  border-bottom: 1px solid var(--line);
}
.now-steps li::marker {
  color: #728c5b;
  font-weight: 700;
}
@keyframes guided-breathe {
  0%,
  100% {
    transform: scale(0.92);
  }
  40% {
    transform: scale(1.12);
  }
}
@media (max-width: 720px) {
  .pause-session {
    right: 50%;
    transform: translateX(50%);
    bottom: 13px;
    white-space: nowrap;
    padding: 9px 16px;
    font-size: 14px;
    max-width: calc(100% - 25px);
  }
  .pause-session:active:not(:disabled) {
    transform: translateX(50%) translateY(1px);
  }
  .pause-session b {
    margin-left: 4px;
  }
  .toast {
    bottom: 75px;
  }
}
body.modal-open {
  overflow: hidden;
}
@media (max-width: 720px) {
  .in-session footer {
    padding-bottom: 80px;
  }
}
/* Full-screen relaxation pause with a slowly drifting landscape. */
dialog.calm-fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  inset: 0;
  padding: 24px 16px;
  border: 0;
  border-radius: 0;
  background: #cfdcd6;
  box-shadow: none;
  overflow: auto;
}
dialog.calm-fullscreen[open] {
  animation: calm-fade 1.2s ease;
}
dialog.calm-fullscreen::backdrop {
  background: #cfdcd6;
}
dialog.calm-fullscreen #modal-content {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
}
.calm-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.calm-picture {
  position: absolute;
  inset: -4%;
  background: url("calm-scene.svg") center / cover no-repeat;
  animation: calm-drift 40s ease-in-out infinite alternate;
}
.calm-mote {
  position: absolute;
  bottom: -20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff8e6;
  box-shadow: 0 0 14px 4px #fff3d4aa;
  opacity: 0;
  animation: calm-float 18s linear infinite;
}
.calm-mote:nth-child(3) { left: 12%; animation-delay: 0s; }
.calm-mote:nth-child(4) { left: 28%; animation-delay: 6s; width: 7px; height: 7px; }
.calm-mote:nth-child(5) { left: 47%; animation-delay: 11s; }
.calm-mote:nth-child(6) { left: 63%; animation-delay: 3s; width: 6px; height: 6px; }
.calm-mote:nth-child(7) { left: 78%; animation-delay: 9s; }
.calm-mote:nth-child(8) { left: 90%; animation-delay: 14s; width: 8px; height: 8px; }
dialog.calm-fullscreen .modal-close {
  position: fixed;
  z-index: 2;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fffdf8b3;
  backdrop-filter: blur(6px);
}
.calm-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 20px 8px;
  text-align: center;
  color: #1d3a31;
  text-shadow:
    0 0 18px #fff8ee,
    0 0 6px #fff8eecc;
}
.calm-panel h2 {
  font-size: 38px;
}
.calm-panel h2 {
  color: #1d3a31;
}
.calm-panel p,
.calm-panel #calm-status {
  color: #1d3a31;
  font-size: 20px;
}
.calm-panel .calm-cue {
  font-size: 32px;
}
.calm-panel .modal-actions {
  justify-content: center;
}
.calm-panel .modal-actions > * {
  flex: 0 1 260px;
  font-size: 18px;
  text-shadow: none;
}
.calm-fullscreen .breathing-orbit {
  background: transparent;
  border: 2px solid #ffffffcc;
}
.calm-fullscreen .breathing-circle {
  background: transparent;
  border: 3px solid #ffffff;
  box-shadow: 0 0 40px #fff3d8;
}
.calm-fullscreen .breathing-circle small {
  color: #1d3a31;
  font-size: 16px;
}
@keyframes calm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes calm-drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.5%, -1%); }
}
@keyframes calm-float {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: 0.8; }
  85% { opacity: 0.6; }
  100% { transform: translate(40px, -90vh); opacity: 0; }
}
@media (max-width: 720px) {
  dialog.calm-fullscreen {
    padding-top: 72px;
  }
  .calm-panel {
    padding: 12px 4px;
  }
  .calm-panel h2 {
    font-size: 30px;
  }
}
/* Visual cues: line icons that replace explanatory text. */
.icon {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cat-icon {
  margin-right: 4px;
}
.review-note {
  margin-top: 28px;
  text-align: center;
}
.how .how-number .icon {
  width: 48px;
  height: 48px;
  color: var(--green);
  stroke-width: 1.5;
}
.how strong {
  font-size: 20px;
}
.face-scale {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #526b4a;
}
.face-scale .icon {
  width: 30px;
  height: 30px;
}
.face-scale .meter {
  flex: 1;
}
.character-panel .feeling {
  min-height: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 18px;
}
.character-panel .feeling .icon {
  width: 28px;
  height: 28px;
  color: #687660;
}
.feedback-emoji .icon {
  width: 52px;
  height: 52px;
  stroke-width: 1.5;
}
.result-good,
.result-repair,
.good-icon {
  color: #3f7a55;
}
.result-neutral,
.result-unknown {
  color: #7a8a6c;
}
.result-promise {
  color: #b07a2a;
}
.result-harmful,
.bad-icon {
  color: #b5553d;
}
.breath-icon .icon {
  width: 30px;
  height: 30px;
  color: var(--green);
}
.about-list p {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 18px;
}
.about-list p > .icon {
  width: 32px;
  height: 32px;
  color: var(--green);
}
.pause-session .icon {
  width: 24px;
  height: 24px;
  color: var(--green);
}
.preparation .tip p {
  font-size: 17px;
  line-height: 1.7;
}
.preparation .tip strong {
  font-size: 19px;
}
.summary aside h3 + .tag,
.summary aside .tag + h3 {
  margin-top: 22px;
}
.summary aside .tag:last-of-type {
  margin-bottom: 18px;
}
.mood-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mood-label .icon {
  width: 18px;
  height: 18px;
}
.character-panel {
  top: 110px;
}

/* Instant reaction: result, child's reply and next choices on one card. */
.reaction {
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: #cfeec4;
  border: 2px solid #6fbf5c;
  color: #1d3f2a;
}
.reaction.kind-harmful {
  background: #ffd3c6;
  border-color: #e0725a;
  color: #5a2014;
}
.reaction.kind-promise {
  background: #ffe3a8;
  border-color: #dba53c;
  color: #553a08;
}
.reaction.kind-neutral,
.reaction.kind-unknown {
  background: #e3e8d6;
  border-color: #a9b394;
  color: #33402a;
}
.reaction-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.reaction-head > .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.8;
}
.reaction .feedback-title {
  flex: 1;
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: inherit;
}
.reaction .your-choice {
  margin: 8px 0 0 52px;
  padding: 0;
  background: transparent;
  color: inherit;
  opacity: 0.85;
  font-size: 16px;
}
.reaction .also-try {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 10px 0 0 52px;
  font-size: 17px;
  font-weight: 600;
  color: inherit;
}
.reaction .also-try .icon {
  margin-top: 2px;
}
.result-good,
.result-repair {
  color: #2f8a45;
}
.result-harmful {
  color: #c4432a;
}
.result-promise {
  color: #b9811c;
}
.choice-header span {
  color: var(--muted);
}
.reply:hover .choice-mark,
.reply:focus-visible .choice-mark {
  transform: translateX(4px);
}
.choice-mark {
  transition: transform 0.15s;
}
.flashcard.react-up .reaction,
.flashcard.react-down .reaction,
.flashcard.react-flat .reaction {
  animation: reaction-in 0.35s ease-out;
}
.flashcard.react-up .child-quote,
.flashcard.react-down .child-quote,
.flashcard.react-flat .child-quote {
  animation: reaction-in 0.35s ease-out 0.1s both;
}

/* Emotion mechanic: the child visibly reacts to each answer. */
.character-panel.mood-happy {
  box-shadow: 0 0 0 4px #b9dcae, 0 18px 40px #3f7a5533;
}
.character-panel.mood-calm {
  box-shadow: 0 0 0 4px #d6e6cf;
}
.character-panel.mood-worried {
  box-shadow: 0 0 0 4px #f0dcb4;
}
.character-panel.mood-sad {
  box-shadow: 0 0 0 4px #efc0b2, 0 18px 40px #b5553d2e;
}
.react-up .mood-label,
.react-down .mood-label,
.react-flat .mood-label {
  animation: label-pop 0.4s ease-out 0.2s both;
}
@keyframes reaction-in {
  from {
    opacity: 0;
  }
}
@keyframes child-bounce {
  30% {
    transform: translateY(-14px) scale(1.04);
  }
  60% {
    transform: translateY(0) scale(0.98);
  }
}
@keyframes child-shake {
  20%,
  60% {
    transform: translateX(-9px) rotate(-3deg);
  }
  40%,
  80% {
    transform: translateX(9px) rotate(3deg);
  }
}
@keyframes child-tilt {
  40% {
    transform: rotate(-5deg);
  }
}
@keyframes label-pop {
  from {
    transform: translateX(-50%) scale(0.6);
    opacity: 0;
  }
}















@media (max-width: 720px) {
  .character-panel {
    top: auto;
  }
  .splash-brand {
    font-size: 32px;
  }
  .splash-face {
    width: 58px;
    height: 58px;
  }
}

/* One header for the whole site; Back and Home appear in it inside a session. */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--bg);
  clip-path: inset(0 -100vmax);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.nav-back,
.nav-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px !important;
  border-radius: 999px;
  font-size: 17px !important;
  font-weight: 700;
  white-space: nowrap;
}
.nav-back {
  background: var(--paper);
  color: var(--green);
  border: 2px solid #cfd8c9;
}
.nav-back:hover {
  border-color: var(--green);
}
nav .nav-home {
  background: var(--green);
  color: #fffdf8;
}
.nav-back[hidden],
.nav-home[hidden],
nav button[hidden] {
  display: none;
}
#situations {
  scroll-margin-top: 110px;
}

/* Scenario cards: the label sits above the child, never on top of them. */
.scenario-card .portrait {
  height: 205px;
}
.scenario-card .portrait svg {
  height: 150px;
  width: 168px;
  transform: translateY(8px);
}
.deck-button {
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fffdf8;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 0 #173a30;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.deck-button:hover {
  background: #2c6a58;
}
.deck-button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #173a30;
}
.deck-button span {
  font-size: inherit;
}
@media (max-width: 720px) {
  .inside .brand-name {
    display: none;
  }
  .header-left {
    gap: 10px;
  }
  .nav-back,
  .nav-home {
    font-size: 15px !important;
    padding: 6px 14px !important;
    min-height: 40px;
  }
  .scenario-card .portrait {
    height: 195px;
  }
  #situations {
    scroll-margin-top: 90px;
  }
}
.brand-name {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .inside .brand {
    display: none;
  }
  nav .urgent {
    white-space: nowrap;
  }
  .reaction {
    padding: 14px 16px;
  }
  .reaction .feedback-title {
    font-size: 22px;
  }
  .reaction-head > .icon {
    width: 32px;
    height: 32px;
  }
  .reaction .your-choice,
  .reaction .also-try {
    margin-left: 0;
  }
}

/* ---------- Living characters: idle motion everywhere a child appears ---------- */
.child .c-head {
  transform-box: view-box;
  transform-origin: 115px 150px;
  animation: head-sway 7s ease-in-out infinite;
}
.child .c-eyes {
  transform-box: view-box;
  animation: eyes-look 6s ease-in-out infinite;
}
.child .c-blink {
  transform-box: view-box;
  transform-origin: 115px 102px;
  animation: blink 4.6s infinite;
}
.child .c-mouth-open {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.child .c-tear {
  opacity: 0;
}
.child .c-body {
  transform-box: view-box;
  transform-origin: 115px 205px;
  animation: breathe-body 4s ease-in-out infinite;
}
.child.mood-happy .c-head {
  animation: head-happy 2.4s ease-in-out infinite;
}
.child.mood-sad .c-head {
  animation: head-sad 5s ease-in-out infinite;
}
.child.mood-sad .c-tear {
  animation: tear-fall 2.2s ease-in infinite;
}
.child.mood-sad .c-tear-2 {
  animation-delay: 1.1s;
}
.child.mood-sad .c-eyes {
  animation: eyes-down 6s ease-in-out infinite;
}
/* Talking: mouth opens and closes for the length of the line, or while audio plays. */
.talking .child .c-mouth-open {
  animation: talk 0.3s ease-in-out var(--talk-n, 8) alternate;
}
.talking .child .c-mouth {
  animation: mouth-hide calc(var(--talk-n, 8) * 0.3s) step-end;
}
.speaking .child .c-mouth-open {
  animation: talk 0.3s ease-in-out infinite alternate;
}
.speaking .child .c-mouth {
  opacity: 0;
}
@keyframes head-sway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-4deg); }
  50% { transform: rotate(0deg) translateY(-1px); }
  75% { transform: rotate(4deg); }
}
@keyframes head-happy {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-4px); }
}
@keyframes head-sad {
  0%, 100% { transform: translateY(6px) rotate(-2deg); }
  50% { transform: translateY(8px) rotate(2deg); }
}
@keyframes eyes-look {
  0%, 18%, 100% { transform: translateX(0); }
  25%, 40% { transform: translateX(-2.5px); }
  50%, 62% { transform: translateX(0); }
  70%, 85% { transform: translateX(2.5px); }
}
@keyframes eyes-down {
  0%, 100% { transform: translate(0, 2px); }
  50% { transform: translate(-2px, 3px); }
}
@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.08); }
}
@keyframes breathe-body {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.02); }
}
@keyframes talk {
  from { opacity: 1; transform: scaleY(0.25); }
  to { opacity: 1; transform: scaleY(1); }
}
@keyframes mouth-hide {
  from, to { opacity: 0; }
}
@keyframes tear-fall {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(26px); }
}

/* ---------- Reactions: big, Duolingo-style feedback that is hard to miss ---------- */
.live-character {
  overflow: visible;
}
.react-up .live-character > svg {
  animation: joy-jump 0.9s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.react-down .live-character > svg {
  animation: sad-slump 1.1s ease-out;
}
.react-flat .live-character > svg {
  animation: puzzled 0.8s ease-in-out;
}
@keyframes joy-jump {
  0% { transform: scale(1); }
  25% { transform: translateY(-26px) scale(1.12) rotate(-4deg); }
  50% { transform: translateY(0) scale(0.94, 1.06); }
  70% { transform: translateY(-8px) scale(1.04) rotate(3deg); }
  100% { transform: none; }
}
@keyframes sad-slump {
  0% { transform: none; filter: none; }
  20% { transform: translateX(-8px) rotate(-3deg); }
  40% { transform: translateX(8px) rotate(3deg); filter: saturate(0.5); }
  70% { transform: translateY(10px) scale(0.95); filter: saturate(0.5) brightness(0.92); }
  100% { transform: none; filter: none; }
}
@keyframes puzzled {
  30% { transform: rotate(-7deg); }
  65% { transform: rotate(5deg); }
}
.burst {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.burst span {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px;
  border-radius: 3px;
  background: var(--c);
  opacity: 0;
  animation: confetti 1.3s cubic-bezier(0.15, 0.8, 0.3, 1) forwards;
}
.burst span:nth-child(even) {
  border-radius: 50%;
  width: 10px;
  height: 10px;
}
@keyframes confetti {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(0.4); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-130px) rotate(200deg) scale(1); }
}
.rain {
  position: absolute;
  left: 50%;
  top: -6px;
  width: 0;
  z-index: 3;
  pointer-events: none;
}
.rain .cloud {
  position: absolute;
  left: -55px;
  top: 0;
  width: 110px;
  height: 34px;
  border-radius: 30px;
  background: #7f8c96;
  box-shadow: -22px 10px 0 -4px #7f8c96, 24px 8px 0 -2px #7f8c96;
  opacity: 0;
  animation: cloud-in 2.6s ease forwards;
}
.rain i {
  position: absolute;
  left: var(--x);
  top: 36px;
  width: 4px;
  height: 14px;
  border-radius: 4px;
  background: #4b9fd6;
  opacity: 0;
  animation: drop 0.7s ease-in var(--d) 3;
}
@keyframes cloud-in {
  0% { opacity: 0; transform: translateY(-14px); }
  15%, 75% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes drop {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(60px); }
}
.flashcard.react-up .reaction {
  animation: card-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.flashcard.react-down .reaction {
  animation: card-shake 0.5s ease-in-out;
}
@keyframes card-pop {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: none; }
}
@keyframes card-shake {
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}
/* Banner slides up from the bottom of the screen, then away. */
.burst-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: #2fa84f;
  box-shadow: 0 -8px 30px #0003;
  transform: translateY(110%);
  pointer-events: none;
  animation: banner 2.6s cubic-bezier(0.3, 1.3, 0.5, 1) forwards;
}
.burst-banner .icon {
  width: 38px;
  height: 38px;
  color: #fff;
  stroke-width: 2.2;
}
.burst-banner.kind-harmful {
  background: #e0452c;
}
.burst-banner.kind-promise {
  background: #e8a317;
}
.burst-banner.kind-neutral,
.burst-banner.kind-unknown {
  background: #6f7f5f;
}
@keyframes banner {
  0% { transform: translateY(110%); }
  14%, 82% { transform: translateY(0); }
  100% { transform: translateY(110%); }
}

/* ---------- Openness meter: the score mechanic, saturated and animated ---------- */
.openness {
  margin: 18px 0 8px;
}
.openness-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #3d5240;
}
.openness-head b {
  color: #1f8a3e;
  font-size: 16px;
}
.meter-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: #e4e7de;
  box-shadow: inset 0 2px 3px #0000001f;
}
.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--to);
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4d3a, #ffb020 45%, #2fcf5a);
  background-size: 260px 100%;
  animation: meter-grow 0.9s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.meter-knob {
  position: absolute;
  top: 50%;
  left: var(--to);
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #1f8a3e;
  color: #1f8a3e;
  box-shadow: 0 3px 8px #0003;
  animation: knob-move 0.9s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.meter-knob .icon {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}
.meter-delta {
  position: absolute;
  bottom: 30px;
  left: var(--to);
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  background: #6f7f5f;
  white-space: nowrap;
  animation: delta-pop 0.6s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.meter-delta.up {
  background: #1fae4b;
}
.meter-delta.down {
  background: #e0452c;
}
.meter-track.pulse-up {
  animation: glow-up 1.2s ease-out 2;
}
.meter-track.pulse-down {
  animation: glow-down 1.2s ease-out 2;
}
.meter-track.pulse-down .meter-knob {
  border-color: #e0452c;
  color: #e0452c;
}
@keyframes meter-grow {
  from { width: var(--from); }
}
@keyframes knob-move {
  from { left: var(--from); }
}
@keyframes delta-pop {
  0% { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.4); }
  100% { opacity: 1; transform: translateX(-50%); }
}
@keyframes glow-up {
  0% { box-shadow: inset 0 2px 3px #0000001f, 0 0 0 0 #2fcf5a99; }
  100% { box-shadow: inset 0 2px 3px #0000001f, 0 0 0 14px #2fcf5a00; }
}
@keyframes glow-down {
  0% { box-shadow: inset 0 2px 3px #0000001f, 0 0 0 0 #ff4d3a99; }
  100% { box-shadow: inset 0 2px 3px #0000001f, 0 0 0 14px #ff4d3a00; }
}
@media (max-width: 720px) {
  .character-panel .openness {
    display: block;
    grid-column: 1 / -1;
    margin: 14px 4px 6px;
  }
  .burst-banner {
    font-size: 19px;
    padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
  }
}

/* ---------- Take a pause: horizon fixed at 63.6% of the screen; text sits on the lake ---------- */
.calm-picture {
  background-position: center 63.6%;
  transform-origin: center 63.6%;
  animation-name: calm-drift-soft;
}
@keyframes calm-drift-soft {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}
dialog.calm-fullscreen #modal-content {
  display: block;
  min-height: 100%;
}
.calm-panel {
  width: 100%;
  min-height: calc(100dvh - 48px);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-rows: calc(63.6dvh - 24px) auto;
  text-shadow: none;
  color: #fff;
}
.calm-sky {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.calm-lake {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 8px;
}
.calm-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 40px;
  text-shadow: 0 2px 12px #1d3a31cc, 0 1px 2px #1d3a31;
}
.calm-panel .calm-cue {
  margin: 0 0 6px;
  font-size: 34px;
  color: #fff;
  text-shadow: 0 2px 10px #12302acc;
}
.calm-panel p,
.calm-panel #calm-status {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 8px #12302a;
}
.calm-fullscreen .breathing-orbit {
  margin: 0;
}
.calm-fullscreen .breathing-circle span,
.calm-fullscreen .breathing-circle small {
  color: #fff;
  text-shadow: 0 1px 8px #1d3a31aa;
}
.calm-panel .modal-actions {
  margin-top: 4px;
}
@media (max-width: 720px) {
  dialog.calm-fullscreen {
    padding-top: 24px;
  }
  .calm-panel h2 {
    font-size: 32px;
  }
  .calm-panel .calm-cue {
    font-size: 28px;
  }
  .calm-fullscreen .breathing-orbit {
    width: 170px;
    height: 170px;
  }
  .calm-fullscreen .breathing-circle {
    width: 130px;
    height: 130px;
  }
}
.meter-track {
  margin-bottom: 40px;
}
.meter-delta {
  bottom: auto;
  top: 28px;
}
.openness-head b {
  white-space: nowrap;
}

/* ---------- UI refine: logo, edge-to-edge header, depth, living decor ---------- */
:root {
  --depth-1: 0 1px 2px #1f3a3012, 0 4px 12px #1f3a3010;
  --depth-2: 0 2px 4px #1f3a3010, 0 12px 28px #1f3a3016, 0 32px 60px -24px #1f3a3030;
  --depth-3: 0 4px 8px #1f3a3014, 0 22px 44px #1f3a3022, 0 44px 80px -28px #1f3a3040;
  --edge: clamp(16px, 3vw, 40px);
}
/* The full stop sits after the whole name, never on the last letter. */
.brand-dot,
.splash-brand .brand-dot {
  margin-left: 1px;
}
/* Logo hugs the left edge, buttons hug the right; the rule stops short of both sides. */
header {
  max-width: none;
  margin: 0;
  padding: 16px var(--edge);
  min-height: 84px;
  border-bottom: 0;
  box-shadow: none;
  clip-path: none;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
}
header::after {
  content: "";
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  bottom: 0;
  height: 1px;
  border-radius: 1px;
  background: var(--line);
}

/* The +15 / -20 under the meter pops in, holds, then fades away. */
.meter-delta {
  animation: delta-life 2.8s ease-out forwards;
}
@keyframes delta-life {
  0% { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.4); }
  12% { opacity: 1; transform: translateX(-50%) scale(1.12); }
  20%, 72% { opacity: 1; transform: translateX(-50%); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.9); }
}

/* Depth: layered soft shadows so cards sit above the page. */
.panel,
.flashcard,
.card,
.hero-demo {
  box-shadow: var(--depth-2);
}
.scenario-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--depth-3);
}
.reply {
  box-shadow: 0 3px 0 #dfe3d9, var(--depth-1);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
/* No lift on hover: moving the hit area under a resting pointer makes it flicker. */
.reply:hover {
  box-shadow: 0 4px 0 #cfd8c9, var(--depth-2);
}
.reply:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #cfd8c9;
}
.category-tabs button {
  box-shadow: var(--depth-1);
}
.character-panel.mood-happy {
  box-shadow: 0 0 0 4px #b9dcae, var(--depth-3);
}
.character-panel.mood-calm {
  box-shadow: 0 0 0 4px #d6e6cf, var(--depth-2);
}
.character-panel.mood-worried {
  box-shadow: 0 0 0 4px #f0dcb4, var(--depth-2);
}
.character-panel.mood-sad {
  box-shadow: 0 0 0 4px #efc0b2, var(--depth-3);
}

/* Home hero: a bigger, sharper card that floats among swaying sprigs. */
.hero-stage {
  min-height: 540px;
  isolation: isolate;
}
.hero-demo {
  width: min(360px, 100%);
  transform: none;
  animation: card-float 6s ease-in-out infinite;
}
.demo-character {
  width: 230px;
  height: 200px;
  border-radius: 120px 120px 28px 28px;
}
.demo-character svg {
  width: 230px;
  height: 205px;
}
.back-card {
  width: min(340px, 88%);
  height: 450px;
  top: 30px;
}
.back-card.one {
  left: 6%;
  animation: back-sway-a 9s ease-in-out infinite;
}
.back-card.two {
  right: 6%;
  animation: back-sway-b 9s ease-in-out infinite;
}
.top-tag {
  --r: 7deg;
}
.bottom-tag {
  --r: -5deg;
}
.floating-tag {
  animation: tag-bob 4.5s ease-in-out infinite;
}
.bottom-tag {
  animation-delay: -2.2s;
}
.spark {
  color: #6fa27a;
  animation: spark-spin 16s linear infinite;
}
.blob {
  position: absolute;
  z-index: -1;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  animation: blob-morph 14s ease-in-out infinite alternate;
}
.blob-one {
  width: 300px;
  height: 300px;
  left: -10px;
  bottom: -10px;
  background: #dcebd3;
}
.blob-two {
  width: 200px;
  height: 200px;
  right: -20px;
  top: -10px;
  background: #e9f1df;
  animation-duration: 11s;
}
.sprig {
  position: absolute;
  z-index: 0;
  width: 150px;
  height: 212px;
  transform-origin: 50% 100%;
  animation: sprig-sway 6s ease-in-out infinite;
}
.sprig-left {
  left: -24px;
  bottom: -14px;
}
.sprig-right {
  right: -24px;
  top: -30px;
  animation-delay: -3s;
}
.sprig-leaf {
  transform-box: view-box;
  transform-origin: 0 0;
  animation: leaf-flutter 3.2s ease-in-out infinite alternate;
  animation-delay: calc(var(--d, 0s) * -1);
}
.twinkle {
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 22px;
  color: #4f8f68;
  animation: twinkle 2.8s ease-in-out infinite;
}
.tw-one {
  left: 14%;
  top: 4%;
}
.tw-two {
  right: 4%;
  bottom: 22%;
  width: 16px;
  height: 16px;
  animation-delay: -1s;
}
.tw-three {
  left: 2%;
  top: 46%;
  width: 14px;
  height: 14px;
  color: #8fbf86;
  animation-delay: -1.8s;
}
.section-head {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 4px;
  position: relative;
}
.sprig-head {
  position: relative;
  width: 46px;
  height: 66px;
  left: auto;
  margin-bottom: 4px;
  animation-duration: 5s;
}
.tw-head {
  position: relative;
  align-self: flex-start;
  margin-top: 6px;
}
/* Scenario cards: a bigger child drawn at its natural size, so it stays crisp. */
.scenario-card .portrait {
  height: 240px;
}
.scenario-card .portrait svg {
  width: 230px;
  height: 205px;
  transform: translateY(18px);
}
.scenario-card .portrait svg.tw-card {
  width: 20px;
  height: 20px;
}
.tw-card {
  top: 16px;
  right: 18px;
  left: auto;
  color: var(--theme-dark, #4f8f68);
  opacity: 0.8;
}
.scenario-card:nth-child(2) .tw-card {
  animation-delay: -0.9s;
}
.scenario-card:nth-child(3) .tw-card {
  animation-delay: -1.8s;
}
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes back-sway-a {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(-6deg) translateY(-6px); }
}
@keyframes back-sway-b {
  0%, 100% { transform: rotate(10deg); }
  50% { transform: rotate(13deg) translateY(-4px); }
}
@keyframes tag-bob {
  0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); }
  50% { transform: rotate(var(--r, 0deg)) translateY(-9px); }
}
@keyframes spark-spin {
  to { transform: rotate(360deg); }
}
@keyframes blob-morph {
  0% { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; transform: scale(1); }
  100% { border-radius: 58% 42% 45% 55% / 40% 56% 44% 60%; transform: scale(1.06) rotate(8deg); }
}
@keyframes sprig-sway {
  0%, 100% { transform: scaleX(var(--flip, 1)) rotate(-3deg); }
  50% { transform: scaleX(var(--flip, 1)) rotate(3deg); }
}
@keyframes leaf-flutter {
  from { transform: rotate(-8deg); }
  to { transform: rotate(8deg); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(0.55) rotate(0deg); opacity: 0.35; }
  50% { transform: scale(1.1) rotate(45deg); opacity: 1; }
}

/* Get ready: the name belongs to the coloured top; the story starts below it. */
.scenario-intro {
  background: var(--paper);
  overflow: hidden;
}
.intro-hero {
  margin: -28px -28px 24px;
  padding: 22px 28px 20px;
  background: var(--theme);
  text-align: center;
}
.scenario-intro .intro-hero .portrait {
  height: 205px;
  margin: 0;
  background: transparent;
}
.scenario-intro .intro-hero .portrait svg {
  width: 230px;
  height: 205px;
}
.intro-name {
  margin-top: 10px;
  font: 400 32px/1.1 Fraunces, Georgia, serif;
  color: var(--ink);
}
.intro-name span {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fffdf8cc;
  color: var(--theme-dark, #4b5f45);
  font: 700 14px/1.4 "DM Sans", sans-serif;
  vertical-align: middle;
}

/* Practice: "1 / 3" spans both columns, so the child card and the question card line up. */
.practice-shell > .deck-progress {
  grid-column: 1 / -1;
  margin: 0 4px -10px;
}
.character-age {
  text-align: center;
  font-size: 14px;
  color: #67705c;
}
@media (min-width: 721px) {
  .character-panel {
    --pad-y: 19px;
    --pad-x: 23px;
    padding: var(--pad-y) var(--pad-x);
    background: #f5f5ee;
  }
  /* Name sits inside the coloured top; the lighter part begins with the age. */
  .character-hero {
    margin: calc(var(--pad-y) * -1) calc(var(--pad-x) * -1) 0;
    padding: var(--pad-y) var(--pad-x) 16px;
    background: var(--theme);
  }
  .character-hero .character-name {
    margin: 16px 0 0;
  }
  .character-age {
    margin: 12px 0 18px;
  }
}
@media (min-width: 721px) and (max-width: 1230px) {
  .character-panel {
    --pad-y: 18px;
    --pad-x: 18px;
  }
}
@media (min-width: 721px) and (max-width: 950px) {
  .character-panel {
    --pad-y: 14px;
    --pad-x: 14px;
  }
}
@media (max-width: 950px) {
  .hero-stage {
    overflow-x: clip;
  }
}
@media (max-width: 720px) {
  .character-hero {
    display: contents;
  }
  .character-age {
    text-align: left;
    margin: 0 0 4px;
  }
  .intro-hero {
    margin: -22px -22px 20px;
    padding: 18px 22px 16px;
  }
  .scenario-intro .intro-hero .portrait {
    height: 190px;
  }
  .intro-name {
    font-size: 28px;
  }
  .hero-stage {
    min-height: 500px;
  }
  .hero-demo {
    width: min(320px, 84vw);
  }
  .demo-character {
    width: 210px;
    height: 182px;
  }
  .demo-character svg {
    width: 210px;
    height: 187px;
  }
  .back-card {
    height: 420px;
  }
  .sprig {
    width: 110px;
    height: 156px;
  }
  .sprig-left {
    left: -14px;
  }
  .sprig-right {
    right: -14px;
  }
  .blob-one {
    width: 220px;
    height: 220px;
  }
  .sprig-head {
    width: 40px;
    height: 57px;
  }
  .scenario-card .portrait {
    height: 230px;
  }
}
/* With motion off, the score change simply stays visible instead of fading. */
@media (prefers-reduced-motion: reduce) {
  .meter-delta {
    opacity: 1;
  }
}

/* ---------- Expert review button, centred steps, About and review pages ---------- */
nav .review-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
nav .review-nav .icon {
  width: 20px;
  height: 20px;
  color: var(--green);
}
.how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 230px));
  justify-content: center;
  gap: clamp(20px, 6vw, 80px);
  text-align: center;
}
.how > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.how .how-number {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 0 12px;
  border-radius: 50%;
  background: #e3eedb;
  box-shadow: var(--depth-1);
}
.page-title {
  max-width: 760px;
  margin-bottom: 30px;
}
.page-title h1 {
  font-size: 47px;
  margin: 10px 0 12px;
}
.page-title .lead {
  font-size: 20px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 14px;
}
.review-status {
  margin-top: 12px;
  font-size: 16px;
}
.info-grid,
.review-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.info-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--depth-2);
}
.info-card h2,
.info-callout h2 {
  margin: 12px 0 6px;
  font-size: 24px;
}
.info-card p,
.info-callout p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.info-icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 16px;
  background: #e3eedb;
  color: var(--green);
  stroke-width: 1.8;
}
.review-num {
  position: absolute;
  top: 20px;
  right: 22px;
  font: 400 34px Fraunces, Georgia, serif;
  color: #b9cdb0;
}
.info-callout {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: #e8f1e1;
  border: 1px solid #cfe0c6;
}
.info-callout > div {
  flex: 1 1 280px;
}
.info-callout h2 {
  margin-top: 0;
}
.look-for {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.footer-links {
  display: inline-flex;
  gap: 18px;
}
.footer-links button {
  background: none;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}
@media (max-width: 720px) {
  nav #review-nav {
    display: none;
  }
  .how {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .how .how-number {
    width: 64px;
    height: 64px;
  }
  .how strong {
    font-size: 16px;
  }
  .page-title h1 {
    font-size: 38px;
  }
  .page-title .lead {
    font-size: 18px;
  }
  .info-callout .primary {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Living background: a fixed layer of leaves behind every page ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-blob {
  position: absolute;
  border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%;
  animation: blob-morph 18s ease-in-out infinite alternate;
}
.bg-blob-a {
  width: 420px;
  height: 420px;
  left: -180px;
  top: 30%;
  background: #e6efdd;
}
.bg-blob-b {
  width: 360px;
  height: 360px;
  right: -150px;
  top: -80px;
  background: #e9f1e1;
  animation-duration: 15s;
}
.bg-blob-c {
  width: 300px;
  height: 300px;
  right: -110px;
  bottom: -90px;
  background: #e2ecd8;
  animation-duration: 21s;
}
.fern {
  position: absolute;
  width: 250px;
  height: 250px;
  opacity: 0.55;
}
.bg-fern-a {
  left: -36px;
  bottom: -40px;
}
.bg-fern-b {
  right: -40px;
  top: 70px;
  transform: scale(-1, -1);
  width: 210px;
  height: 210px;
  opacity: 0.4;
}
.fern-leaf {
  transform-box: view-box;
  transform-origin: 0 0;
  animation: fern-sway 5s ease-in-out infinite alternate;
  animation-delay: calc(var(--d, 0s) * -1);
}
.bg-decor .sprig {
  width: 96px;
  height: 136px;
  opacity: 0.45;
}
.bg-sprig-a {
  left: 1.5%;
  top: 22%;
}
.bg-sprig-b {
  right: 2%;
  bottom: 24%;
  animation-delay: -2s;
}
.bg-decor .twinkle {
  opacity: 0.6;
}
.bg-tw-a {
  left: 6%;
  top: 14%;
}
.bg-tw-b {
  right: 7%;
  top: 46%;
  width: 16px;
  height: 16px;
  animation-delay: -1.2s;
}
.bg-tw-c {
  left: 4%;
  bottom: 30%;
  width: 14px;
  height: 14px;
  animation-delay: -2s;
}
.bg-tw-d {
  right: 14%;
  bottom: 8%;
  width: 18px;
  height: 18px;
  animation-delay: -0.6s;
}
@keyframes fern-sway {
  from { transform: rotate(-4deg); }
  to { transform: rotate(4deg); }
}
/* Phones: smaller and fainter, so text over it stays easy to read. */
@media (max-width: 720px) {
  .fern {
    width: 160px;
    height: 160px;
    opacity: 0.35;
  }
  .bg-fern-b {
    width: 130px;
    height: 130px;
    top: 90px;
    opacity: 0.25;
  }
  .bg-decor .sprig,
  .bg-tw-b,
  .bg-tw-d {
    display: none;
  }
  .bg-blob-a {
    width: 260px;
    height: 260px;
    left: -150px;
  }
}
@media (min-width: 951px) {
  .info-grid,
  .review-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Results ("Well done!"): rebuilt from the Talk Kit results design system ---------- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.tk-results {
  --page: #f7f5ef;
  --card: #fffdf8;
  --ink: #233e38;
  --ink-muted: #66736a;
  --line: #dfe3d9;
  --line-strong: #868f7d;
  --brand: #265c4c;
  --brand-hover: #2d6b59;
  --brand-deep: #1a4135;
  --on-brand: #ffffff;
  --brand-soft: #e3eedb;
  --brand-soft-2: #e8f1e1;
  --accent: #edb586;
  --good: #2fa84f;
  --good-ink: #1f7a3a;
  --good-soft: #e2f3e6;
  --hurtful: #e0452c;
  --hurtful-ink: #b8321c;
  --hurtful-soft: #fbe4df;
  --risky: #e8a317;
  --risky-ink: #8a5a00;
  --risky-soft: #fbefd6;
  --neutral: #6f7f5f;
  --neutral-ink: #55634a;
  --neutral-soft: #eceee6;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-sm: 14px;
  --radius-btn: 16px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(35, 62, 56, 0.06), 0 4px 12px rgba(35, 62, 56, 0.06), 0 16px 32px -8px rgba(35, 62, 56, 0.1);
  --shadow-soft: 0 1px 2px rgba(35, 62, 56, 0.1), 0 3px 8px rgba(35, 62, 56, 0.08);
  max-width: 1200px;
  margin: var(--space-4) auto 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}
.tk-results :where(p, h1, h2, ul, ol, li, figure) {
  margin: 0;
  padding: 0;
}
.tk-results :where(ul, ol) {
  list-style: none;
}
.tk-results .icon {
  width: 24px;
  height: 24px;
  flex: none;
  stroke-width: 2;
}

/* Cards */
.tk-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}
.tk-col > .tk-card + .tk-card {
  margin-top: var(--space-4);
}
.tk-card-title {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: var(--space-4) !important;
}
.tk-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

/* 1. Celebration header */
.tk-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-5);
}
.tk-child {
  position: relative;
  width: 168px;
  height: 168px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--theme, var(--brand-soft));
  overflow: visible;
  animation: tk-hop 700ms cubic-bezier(0.3, 1.4, 0.5, 1) both 100ms;
}
.tk-child > svg.child {
  width: 190px;
  height: 169px;
  margin-top: -2px;
  clip-path: circle(84px at 50% 49.5%);
}
.tk-child .burst {
  top: 50%;
}
.tk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: var(--space-2) !important;
}
.tk-chip .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}
.tk-display {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.05;
  color: var(--brand);
  letter-spacing: -0.01em;
}
.tk-sub {
  font-size: 20px;
  margin-top: var(--space-1) !important;
  color: var(--ink);
}

/* 2. Openness journey */
.tk-plot {
  position: relative;
  height: 220px;
  margin-top: var(--space-2);
}
.tk-zones {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.tk-zones > div {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.z-good {
  background: var(--good-soft);
  color: var(--good-ink);
}
.z-open {
  background: var(--brand-soft-2);
  color: var(--brand);
}
.z-risky {
  background: var(--risky-soft);
  color: var(--risky-ink);
}
.z-hurt {
  background: var(--hurtful-soft);
  color: var(--hurtful-ink);
}
.tk-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: tk-reveal 1100ms cubic-bezier(0.4, 0, 0.2, 1) both 300ms;
}
.tk-line path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tk-dot-start {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  border: 4px solid var(--card);
  box-shadow: var(--shadow-soft);
  transform: translate(-50%, -50%);
}
.tk-dot.tk-badge {
  --pop-from: translate(-50%, -50%) scale(0.4);
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 3px solid var(--card);
  box-shadow: var(--shadow-soft), inset 0 0 0 2px var(--ring);
  animation: tk-pop 380ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
  animation-delay: calc(500ms + var(--i) * 330ms);
}
.tk-axis {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 2% 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}
.tk-compare {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-4) !important;
  padding: 10px 16px !important;
  border-radius: var(--radius-pill);
  background: var(--brand-soft-2);
  font-size: 16px;
  width: fit-content;
}
.tk-compare .icon {
  color: var(--brand);
}
.tk-compare strong {
  color: var(--brand);
}

/* Result badge, used on the chart and in the answer list */
.tk-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
  background: var(--soft);
  color: var(--glyph);
  box-shadow: inset 0 0 0 2px var(--ring);
}
.tk-badge .icon {
  color: var(--glyph);
}
.tk-results .is-good {
  --soft: var(--good-soft);
  --glyph: var(--good-ink);
  --ring: var(--good);
}
.tk-results .is-repair {
  --soft: var(--brand-soft-2);
  --glyph: var(--brand);
  --ring: var(--brand);
}
.tk-results .is-harmful {
  --soft: var(--hurtful-soft);
  --glyph: var(--hurtful-ink);
  --ring: var(--hurtful);
}
.tk-results .is-promise {
  --soft: var(--risky-soft);
  --glyph: var(--risky-ink);
  --ring: var(--risky);
}
/* Middle-of-the-road answers are yellow, like risky promises; hurtful ones are red. */
.tk-results .is-neutral,
.tk-results .is-unknown {
  --soft: var(--risky-soft);
  --glyph: var(--risky-ink);
  --ring: var(--risky);
}
.tk-results .tk-dot.is-harmful {
  background: var(--hurtful);
  --glyph: #fff;
}
.tk-results .tk-dot.is-promise,
.tk-results .tk-dot.is-neutral,
.tk-results .tk-dot.is-unknown {
  background: var(--risky);
  --glyph: #3d2a00;
}
.tk-results .tk-dot.is-good {
  background: var(--good);
  --glyph: #fff;
}
.tk-also {
  display: flex;
  gap: 8px;
  margin-top: var(--space-2) !important;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
}
.tk-also .icon {
  width: 20px;
  height: 20px;
}
.tk-coach {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-top: var(--space-4);
  background: var(--risky-soft);
  border-color: #f0d9a6;
}
.tk-coach .tk-card-title {
  margin-bottom: var(--space-2) !important;
}
.tk-coach-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--risky-ink);
}
.tk-coach-note {
  margin-top: var(--space-2) !important;
  color: var(--ink-muted);
  font-size: 16px;
}
@media (min-width: 900px) {
  .tk-coach {
    margin-top: var(--space-5);
  }
}

/* 3. Your answers */
.tk-answer {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4) 0 !important;
  border-top: 1px solid var(--line);
}
.tk-answer:first-child {
  border-top: 0;
  padding-top: 0 !important;
}
.tk-answer:last-child {
  padding-bottom: 0 !important;
}
.tk-verdict {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--glyph);
}
.tk-quote {
  margin-top: var(--space-1) !important;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
}

/* 4. Values */
.tk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tk-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 16px !important;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  animation: tk-pop 360ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
  animation-delay: calc(900ms + var(--i) * 70ms);
}
.tk-tag .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}
.tk-tag.is-on {
  padding-left: 10px !important;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 2px 0 var(--brand-deep);
}
.tk-tag.is-off {
  color: var(--ink-muted);
  border: 1.5px dashed var(--line-strong);
}

/* 5. Next time */
.tk-todos li + li {
  margin-top: var(--space-2);
}
.tk-todo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: 6px 8px 6px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 150ms;
}
.tk-todo:hover {
  background: var(--brand-soft-2);
}
.tk-todo-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft-2);
  color: var(--brand);
  flex: none;
}
.tk-todo-label {
  flex: 1;
  font-weight: 600;
}
.tk-tick {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--card);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: background-color 150ms, border-color 150ms;
}
.tk-tick::after {
  content: "";
  width: 12px;
  height: 6px;
  border-left: 3px solid var(--on-brand);
  border-bottom: 3px solid var(--on-brand);
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 150ms;
}
.tk-tick:checked {
  background: var(--good-ink);
  border-color: var(--good-ink);
}
.tk-tick:checked::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}
.tk-todo:has(.tk-tick:checked) .tk-todo-label {
  color: var(--ink-muted);
}

/* 6. Actions */
.tk-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.tk-actions-row {
  display: grid;
  gap: var(--space-3);
}
.tk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  border: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 100ms, box-shadow 100ms, background-color 150ms;
}
.tk-btn-primary {
  min-height: 56px;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 4px 0 var(--brand-deep);
  font-size: 20px;
}
.tk-btn-primary:hover {
  background: var(--brand-hover);
}
.tk-btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--brand-deep);
}
.tk-btn-secondary {
  background: var(--card);
  color: var(--brand);
  border: 2px solid var(--line-strong);
  box-shadow: 0 3px 0 var(--line-strong);
}
.tk-btn-secondary:hover {
  background: var(--brand-soft-2);
}
.tk-btn-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--line-strong);
}
.tk-btn-quiet {
  background: transparent;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.tk-btn-quiet:hover {
  background: var(--brand-soft-2);
}
.tk-todo:focus-within {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.tk-todo:focus-within .tk-tick:focus-visible {
  outline: none;
}

/* Desktop: header across the top, two columns below */
@media (min-width: 900px) {
  .tk-results {
    margin-top: var(--space-5);
  }
  .tk-hero {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    gap: var(--space-6);
    padding: var(--space-6) var(--space-7);
  }
  .tk-hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .tk-display {
    font-size: 52px;
  }
  .tk-sub {
    font-size: 22px;
  }
  .tk-grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-5);
    margin-top: var(--space-5);
    align-items: start;
  }
  .tk-col > .tk-card + .tk-card {
    margin-top: var(--space-5);
  }
  .tk-card {
    padding: var(--space-6);
  }
  .tk-plot {
    height: 260px;
  }
  .tk-actions-row {
    grid-template-columns: 1fr 1fr;
  }
}

@keyframes tk-hop {
  from { transform: translateY(16px) scale(0.92); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes tk-pop {
  from { opacity: 0; transform: var(--pop-from, scale(0.5)); }
  to { opacity: 1; }
}
@keyframes tk-reveal {
  from { clip-path: inset(-10% 100% -10% 0); }
  to { clip-path: inset(-10% 0 -10% 0); }
}
/* Beat the older .turn styles so verdicts keep their result colour. */
.tk-answer .tk-verdict {
  color: var(--glyph);
  font-size: 18px;
}
.tk-answer .tk-quote {
  color: var(--ink);
}
.tk-answer .tk-also {
  color: var(--brand);
}

/* ---------- Compact result banner: a pill that never hides the meter's +/- ---------- */
.burst-banner {
  left: 0;
  right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: fit-content;
  max-width: calc(100vw - 32px);
  margin: 0 auto;
  gap: 10px;
  padding: 10px 22px 10px 14px;
  border-radius: 999px;
  font-size: 18px;
  box-shadow: 0 10px 28px -6px #1a413566, 0 2px 6px #1a413533;
  transform: translateY(calc(100% + 160px));
  animation-name: banner-pill;
  animation-duration: 2.4s;
}
.burst-banner .icon {
  width: 26px;
  height: 26px;
}
@keyframes banner-pill {
  0% { transform: translateY(calc(100% + 160px)); }
  14%, 80% { transform: translateY(0); }
  100% { transform: translateY(calc(100% + 160px)); }
}
@media (max-width: 720px) {
  .burst-banner {
    font-size: 16px;
    padding: 8px 18px 8px 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

/* ---------- Pop: green-tinted depth on the things you tap, calm everywhere else ---------- */
:root {
  --glow-green: 0 10px 22px -8px #265c4c80, 0 3px 6px -2px #265c4c40;
  --depth-2: 0 2px 4px #1f3a3012, 0 14px 30px #1f3a301c, 0 34px 64px -24px #1f3a3038;
}
.primary,
.deck-button,
nav .nav-home,
.tk-btn-primary {
  box-shadow: 0 4px 0 #173a30, var(--glow-green);
}
.primary:active,
.deck-button:active,
.tk-btn-primary:active {
  box-shadow: 0 1px 0 #173a30, 0 4px 10px -4px #265c4c66;
}
.category-tabs button[aria-pressed="true"] {
  box-shadow: var(--glow-green);
}
.scenario-card:hover {
  box-shadow: 0 0 0 2px #cfe0c6, var(--depth-3);
}
.reply:hover {
  border-color: #6b927e;
  box-shadow: 0 4px 0 #b9d2b6, 0 12px 24px -10px #265c4c55;
}
.tk-tag.is-on {
  box-shadow: 0 2px 0 #1a4135, 0 6px 14px -6px #265c4c80;
}
.tk-badge {
  box-shadow: inset 0 0 0 2px var(--ring), 0 4px 10px -4px #1f3a3040;
}
.flashcard,
.character-panel,
.tk-card {
  box-shadow: var(--depth-2);
}
.how .how-number,
.info-icon,
.tk-todo-icon {
  box-shadow: inset 0 0 0 1px #cfe0c6, 0 6px 14px -8px #265c4c66;
}

/* ---------- Round 4: review button everywhere, compact practice, attempts, results, calm ---------- */

/* Expert review stays in the header on every screen; on phones it shrinks to its shield. */
nav #review-nav {
  display: inline-flex;
}
@media (max-width: 720px) {
  nav #review-nav {
    display: inline-flex;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid #cfd8c9;
  }
  nav #review-nav .review-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  nav #review-nav .icon {
    width: 22px;
    height: 22px;
  }
}

/* Home: the first screen is just the welcome; "Pick a moment" waits below the fold. */
@media (min-width: 721px) {
  .hero.new-hero {
    min-height: calc(100svh - 84px - 44px);
    align-content: center;
  }
}

/* Attempts: "Attempt 1 of 2" next to the question count; the last try is amber. */
.deck-progress {
  align-items: center;
  gap: 12px;
}
.attempt-pill {
  margin-right: auto;
  padding: 3px 12px;
  border-radius: 999px;
  background: #e3eedb;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #cfe0c6;
}
.attempt-pill.last {
  background: #fbefd6;
  color: #8a5a00;
  box-shadow: inset 0 0 0 1px #f0d9a6;
}

/* Results: the child sits dead-centre in the circle; missed values are red after a hard talk. */
.tk-child-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  flex: none;
  animation: tk-hop 700ms cubic-bezier(0.3, 1.4, 0.5, 1) both 100ms;
}
.tk-child-wrap .tk-child {
  position: relative;
  width: 168px;
  height: 168px;
  overflow: hidden;
  animation: none;
  box-shadow: inset 0 0 0 4px #ffffff99, 0 10px 24px -10px #265c4c66;
}
/* The drawing's own circle (r=83 at 115,100) is scaled to fill the 168px disc exactly. */
.tk-child-wrap .tk-child > svg.child {
  position: absolute;
  width: 233px;
  height: 208px;
  left: -32.5px;
  top: -17.3px;
  margin: 0;
  clip-path: none;
}
.tk-child-wrap .burst {
  top: 50%;
  left: 50%;
}
.tk-tag.is-missed {
  color: #b8321c;
  background: #fbe4df;
  border: 1.5px solid #f2b8ab;
  padding-left: 10px !important;
}
.tk-tag.is-missed .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

/* Take a pause: a clear green pill with a slow breathing halo, noticeable but calm. */
.pause-session {
  gap: 10px;
  padding: 12px 22px 12px 14px;
  border: 0;
  background: var(--green);
  color: #fffdf8;
  font-size: 17px;
  box-shadow: 0 4px 0 #173a30, 0 12px 28px -8px #265c4c99;
}
.pause-session .icon {
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 50%;
  background: #fffdf8;
  color: var(--green);
}
.pause-session b {
  font-size: 17px;
  margin-left: 0;
}
.pause-session:hover {
  background: #2c6a58;
}
/* The breathing glow lives inside the pill and never spills past its edge. */
.pause-session::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px #ffffff, inset 0 0 18px #ffffff80;
  opacity: 0;
  animation: pause-halo 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pause-halo {
  0%, 100% { opacity: 0; }
  45% { opacity: 0.55; }
}
@media (max-width: 720px) {
  .pause-session {
    padding: 10px 20px 10px 12px;
    font-size: 16px;
  }
}

/* "Take a breath first": a soft lilac card with a breathing leaf. */
.breath-launch {
  padding: 18px 20px;
  border: 1px solid #d9cce6;
  border-radius: 18px;
  background: linear-gradient(135deg, #f3edf8, #e9e0f2);
  box-shadow: 0 3px 0 #d9cce6, 0 12px 26px -14px #6b4f8a66;
  transition: transform 0.15s, box-shadow 0.15s;
}
.breath-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #d9cce6, 0 16px 30px -14px #6b4f8a80;
}
.breath-launch strong {
  font-size: 18px;
}
.breath-launch .breath-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fffdf8;
  color: #6b4f8a;
  box-shadow: 0 0 0 0 #6b4f8a33;
  animation: leaf-breathe 5s ease-in-out infinite;
}
.breath-launch .breath-icon .icon {
  width: 26px;
  height: 26px;
}
@keyframes leaf-breathe {
  0%, 100% { box-shadow: 0 0 0 0 #6b4f8a2e; transform: scale(1); }
  45% { box-shadow: 0 0 0 10px #6b4f8a00; transform: scale(1.06); }
}

/* Small phones: Home becomes its house icon so Back, review, help and Home all fit. */
@media (max-width: 420px) {
  nav .nav-home {
    width: 44px;
    padding: 0 !important;
    justify-content: center;
  }
  nav .nav-home .home-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  nav {
    gap: 8px;
  }
}

/* Attempts: a clear badge in the question card, with two pips (one used, one left). */
.choice-header {
  align-items: center;
}
.choice-header .attempt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 14px 6px 10px;
  font-size: 16px;
  box-shadow: inset 0 0 0 1.5px #b9d2b6, 0 4px 10px -6px #265c4c66;
}
.choice-header .attempt-pill {
  color: var(--green);
  background: #e3eedb;
}
.choice-header .attempt-pill.last {
  color: #8a5a00;
  background: #fbefd6;
  box-shadow: inset 0 0 0 1.5px #e8c77a, 0 4px 10px -6px #8a5a0066;
}
.attempt-pill .pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid currentColor;
}
.attempt-pill .pip.on {
  background: currentColor;
}
.attempt-pill .pip:last-of-type {
  margin-right: 4px;
}
@media (max-width: 720px) {
  .choice-header > span.attempt-pill {
    display: inline-flex;
    font-size: 14px;
  }
}

/* About and Expert review: start close to the header so both rows of cards show. */
main[data-stage="about"],
main[data-stage="review"] {
  padding-top: 18px;
}
main[data-stage="about"] .page-title,
main[data-stage="review"] .page-title {
  margin-bottom: 20px;
}
main[data-stage="about"] .page-title h1,
main[data-stage="review"] .page-title h1 {
  margin-top: 0;
}
main[data-stage="about"] .info-card,
main[data-stage="review"] .info-card {
  padding: 20px 22px;
}

/* ---------- Soul: paper grain, hand-drawn underlines, a leaf on the footer line ---------- */
/* A faint paper grain over the background, so the page feels like card stock, not a screen. */
.bg-decor::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .24 0 0 0 0 .2 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Green words in page titles get a hand-drawn underline that sketches itself in once. */
.new-hero h1 em,
.page-title h1 em,
.prep-title h1 em,
.practice-heading h1 em {
  padding-bottom: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8C30 3 52 10 80 6S130 3 160 7 190 5 198 6' fill='none' stroke='%23edb586' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 12px;
  animation: underline-draw 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both;
}
@keyframes underline-draw {
  from { background-size: 0% 12px; }
  to { background-size: 100% 12px; }
}
/* A small leaf sits on the footer's top line, like a bookmark in a journal. */
footer {
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 44px;
  height: 24px;
  margin-left: -22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 24'%3E%3Cpath d='M22 20C22 12 16 6 8 5c0 8 6 14 14 15zM22 20c0-8 6-14 14-15 0 8-6 14-14 15z' fill='%23a9c99a'/%3E%3Cpath d='M22 21V9' stroke='%233f7a5c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 30px 18px no-repeat;
}

/* ---------- Take a pause: painted dawn lake with a breathing sun (from the Talk Kit design) ---------- */
dialog.calm-fullscreen {
  padding: 0;
  overflow: hidden;
  background: #d6e4e0;
}
dialog.calm-fullscreen::backdrop {
  background: #d6e4e0;
}
dialog.calm-fullscreen #modal-content {
  display: block;
  height: 100%;
  min-height: 0;
}
.pause {
  --ink: #233e38;
  --brand: #265c4c;
  --card: #fffdf8;
  --on-lake: #ffffff;
  --sun-core: #fff8ec;
  --sun-edge: #f6d4b0;
  --radius-btn: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(35, 62, 56, 0.1), 0 3px 8px rgba(35, 62, 56, 0.08);
  --font-serif: Fraunces, Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
}
dialog.calm-fullscreen .modal-close {
  position: fixed;
  z-index: 5;
  font-size: 28px;
  line-height: 1;
}
.pause, .pause * { box-sizing: border-box; }
.pause {
  --orb: clamp(150px, 25vh, 240px);
  --lake: 34.5%;                       /* the lake is the bottom 34.5% (horizon at 65.5%) */
  position: relative; overflow: hidden;
  height: 100vh; height: 100dvh; min-height: 560px;
  display: grid; grid-template-rows: 1fr var(--lake);
  color: var(--ink); font-family: var(--font-sans);
  isolation: isolate;
}
.pause p, .pause h1 { margin: 0; }

/* Painted landscape and ambient layers */
.pause-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.pause-ambient { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

/* Close (×) */
dialog.calm-fullscreen .modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-pill);
  background: rgba(255, 253, 248, .72); color: var(--ink); box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pause-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Sky: title + breathing sun */
.pause-sky {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: clamp(16px, 4vh, 40px); padding: clamp(56px, 9vh, 84px) 24px 0; text-align: center;
}
.pause-title { font-family: var(--font-serif); font-weight: 300; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }

/* The breathing sun */
.breath { position: relative; overflow: visible; width: calc(var(--orb) * 1.34); height: calc(var(--orb) * 1.34); display: grid; place-items: center; flex: none; }
.breath > * { grid-area: 1 / 1; }
.breath { grid-template: 100% / 100%; }
.breath-halo {
  position: absolute; left: 50%; top: 50%; width: calc(var(--orb) * 1.9); height: calc(var(--orb) * 1.9); margin: calc(var(--orb) * -.95); border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 200, 150, .95) 0%, rgba(248, 205, 160, .55) 34%, rgba(248, 214, 178, .18) 52%, rgba(248, 214, 178, 0) 70%);
  transform: scale(.8); opacity: .6;
}
.breath-ring { width: var(--orb); height: var(--orb); border-radius: 50%; border: 1.5px solid rgba(255, 250, 240, .9); opacity: 0; }
.breath-core {
  width: var(--orb); height: var(--orb); border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--sun-core) 0%, #fdf0dd 52%, var(--sun-edge) 100%);
  box-shadow: 0 0 40px 6px rgba(248, 210, 165, .75), 0 0 0 1px rgba(255, 255, 255, .6) inset;
  transform: scale(.72);
}
.countdown {
  position: relative; font-family: var(--font-serif); font-weight: 300; font-variant-numeric: lining-nums tabular-nums;
  font-size: calc(var(--orb) * .34); line-height: 1; color: var(--ink); letter-spacing: -.02em;
}
.breath-done { display: none; color: var(--brand); }
.breath-done .pause-icon { width: 44px; height: 44px; stroke-width: 1.6; }

/* Lake: cue, status, buttons */
.pause-lake {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(18px, 3.4vh, 36px) 16px 24px; gap: 8px;
  color: var(--on-lake);
}
.cue-line {
  min-height: 1.25em; font-family: var(--font-serif); font-weight: 300; font-size: 30px; line-height: 1.25; letter-spacing: -.005em;
  color: var(--on-lake); text-shadow: 0 1px 2px rgba(18, 38, 32, .35), 0 2px 18px rgba(18, 38, 32, .55);
  transition: opacity 500ms cubic-bezier(.4, 0, .2, 1), transform 500ms cubic-bezier(.4, 0, .2, 1);
}
.cue-line.is-fading { opacity: 0; transform: translateY(4px); }
.status-line {
  font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--on-lake);
  text-shadow: 0 1px 8px rgba(18, 38, 32, .55);
}
.pause-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 358px; margin-top: clamp(12px, 2.6vh, 28px); }
.pause-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px;
  border-radius: var(--radius-btn); border: 0; font-family: var(--font-sans); font-size: 18px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color 200ms, transform 100ms, box-shadow 100ms;
}
.btn-ready { background: var(--card); color: var(--brand); box-shadow: 0 3px 0 rgba(18, 38, 32, .35), 0 8px 24px rgba(18, 38, 32, .25); }
.btn-ready:hover { background: #ffffff; }
.btn-ready:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(18, 38, 32, .35); }
.btn-again { background: rgba(18, 38, 32, .18); color: var(--on-lake); border: 2px solid rgba(255, 255, 255, .85); }
.btn-again:hover { background: rgba(18, 38, 32, .32); }
.btn-end {
  min-height: 48px; align-self: center; padding: 10px 20px; background: transparent; color: var(--on-lake); font-weight: 600;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; text-shadow: 0 1px 8px rgba(18, 38, 32, .55);
}
.btn-end:hover { background: rgba(18, 38, 32, .2); }
.pause a:focus-visible, .pause button:focus-visible { outline: 3px solid var(--on-lake); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(18, 38, 32, .55); }
dialog.calm-fullscreen .modal-close:focus-visible { outline-color: var(--brand); box-shadow: none; }

/* Light on the water under the sun */
.breath-reflection {
  position: absolute; left: 50%; top: 65.5%; width: calc(var(--orb) * .6); height: 10%;
  transform: translateX(-50%); transform-origin: 50% 0;
  background: radial-gradient(50% 100% at 50% 0%, rgba(250, 214, 172, .42) 0%, rgba(250, 214, 172, 0) 100%);
  opacity: .5;
}
.ripple {
  position: absolute; left: 50%; top: calc(65.5% + 2.2%); width: calc(var(--orb) * 1.1); height: calc(var(--orb) * .16);
  margin-left: calc(var(--orb) * -.55); border-radius: 50%; border: 1.5px solid rgba(255, 244, 228, .55); opacity: 0;
}
.speck { position: absolute; left: var(--x); top: var(--y); width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%; background: #fff7ea; box-shadow: 0 0 6px 1px rgba(255, 236, 210, .9); opacity: 0; animation: pause-speck var(--d, 12s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
.shimmer { position: absolute; left: var(--x); top: var(--y); width: var(--w, 48px); height: 2px; border-radius: 2px; background: rgba(255, 246, 232, .7); opacity: 0; animation: pause-shimmer var(--d, 7s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
.birds { position: absolute; left: 0; top: 17%; width: 72px; height: 28px; animation: pause-birds 90s linear infinite; animation-delay: -22s; }
.birds path { fill: none; stroke: #55736a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .55; transform-box: fill-box; transform-origin: 50% 100%; animation: pause-flap 1.8s ease-in-out infinite alternate; }
.birds path:nth-child(2) { animation-delay: -.6s; }
.birds path:nth-child(3) { animation-delay: -1.1s; }

/* Running: three 10-second breaths, all parts on the same clock */
.pause.is-running .breath-core       { animation: pause-breath 10s linear 3 both; }
.pause.is-running .breath-halo       { animation: pause-halo 10s linear 3 both; }
.pause.is-running .breath-ring       { animation: pause-ring 10s linear 3 both; }
.pause.is-running .breath-reflection { animation: pause-reflect 10s linear 3 both; }
.pause.is-running .ripple            { animation: pause-ripple 10s linear 3 both; }
.pause.is-running .ripple:nth-child(2) { animation-delay: .7s; }
.pause.is-running .ripple:nth-child(3) { animation-delay: 1.4s; }
.pause.is-looping .breath-core, .pause.is-looping .breath-halo, .pause.is-looping .breath-ring,
.pause.is-looping .breath-reflection, .pause.is-looping .ripple { animation-iteration-count: infinite; }

/* Complete */
.pause.is-done .countdown { display: none; }
.pause.is-done .breath-done { display: grid; animation: pause-fade-in 900ms ease both; }
.pause.is-done .pause-actions { animation: pause-fade-in 700ms 200ms ease both; }

/* Desktop */
@media (min-width: 768px) {
  dialog.calm-fullscreen .modal-close { top: 24px; right: 24px; }
  .pause-title { font-size: 40px; }
  .cue-line { font-size: 38px; }
  .status-line { font-size: 18px; }
  .pause-lake { gap: 10px; }
  .pause-actions { max-width: none; width: auto; align-items: center; }
  .pause.is-done .pause-actions { flex-direction: row; justify-content: center; }
  .btn-ready { min-width: 200px; }
  .btn-again { min-width: 160px; }
}

/* --- The breath. One cycle = 10s: in 4s (0.3s rest + 3.4s rise + 0.3s hold), out 6s (5.7s fall + 0.3s rest). --- */
@keyframes pause-breath {
  0%   { transform: scale(.72); animation-timing-function: linear; }                   /* 0.0s  rest at the bottom */
  3%   { transform: scale(.72); animation-timing-function: cubic-bezier(.45, 0, .3, 1); } /* 0.3s  breathe in begins */
  37%  { transform: scale(1);   animation-timing-function: linear; }                    /* 3.7s  full */
  40%  { transform: scale(1);   animation-timing-function: cubic-bezier(.33, 0, .2, 1); } /* 4.0s  breathe out begins */
  97%  { transform: scale(.72); animation-timing-function: linear; }                    /* 9.7s  empty */
  100% { transform: scale(.72); }                                                        /* 10s   rest, then repeat */
}
@keyframes pause-halo {
  0%   { transform: scale(.8);  opacity: .6; animation-timing-function: linear; }
  3%   { transform: scale(.8);  opacity: .6; animation-timing-function: cubic-bezier(.45, 0, .3, 1); }
  37%  { transform: scale(1.1); opacity: 1;  animation-timing-function: linear; }
  40%  { transform: scale(1.1); opacity: 1;  animation-timing-function: cubic-bezier(.33, 0, .2, 1); }
  97%  { transform: scale(.8);  opacity: .6; animation-timing-function: linear; }
  100% { transform: scale(.8);  opacity: .6; }
}
@keyframes pause-ring {                       /* a ring of light lets go on each out-breath */
  0%, 40% { transform: scale(1);    opacity: 0; animation-timing-function: cubic-bezier(.2, .6, .35, 1); }
  46%     { transform: scale(1.06); opacity: .7; animation-timing-function: cubic-bezier(.25, .1, .25, 1); }
  92%     { transform: scale(1.42); opacity: 0; }
  100%    { transform: scale(1.42); opacity: 0; }
}
@keyframes pause-reflect {                    /* light on the water brightens with the in-breath */
  0%   { transform: translateX(-50%) scale(.8, .85); opacity: .5; animation-timing-function: linear; }
  3%   { transform: translateX(-50%) scale(.8, .85); opacity: .5; animation-timing-function: cubic-bezier(.45, 0, .3, 1); }
  37%  { transform: translateX(-50%) scale(1, 1.15); opacity: 1;  animation-timing-function: linear; }
  40%  { transform: translateX(-50%) scale(1, 1.15); opacity: 1;  animation-timing-function: cubic-bezier(.33, 0, .2, 1); }
  97%  { transform: translateX(-50%) scale(.8, .85); opacity: .5; animation-timing-function: linear; }
  100% { transform: translateX(-50%) scale(.8, .85); opacity: .5; }
}
@keyframes pause-ripple {                     /* ripples spread across the lake as you breathe out */
  0%, 40% { transform: scale(.35); opacity: 0; animation-timing-function: ease-out; }
  48%     { opacity: .8; animation-timing-function: cubic-bezier(.25, .1, .25, 1); }
  100%    { transform: scale(1.7); opacity: 0; }
}
@keyframes pause-speck { 0% { opacity: 0; transform: translate(0, 0); } 30%, 70% { opacity: .75; } 100% { opacity: 0; transform: translate(14px, -48px); } }
@keyframes pause-shimmer { 0%, 100% { opacity: 0; transform: translateX(0); } 50% { opacity: .55; transform: translateX(8px); } }
@keyframes pause-birds { from { transform: translate(-90px, 0); } 50% { transform: translate(50vw, -14px); } to { transform: translate(calc(100vw + 90px), 6px); } }
@keyframes pause-flap { from { transform: scaleY(1); } to { transform: scaleY(.65); } }
@keyframes pause-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Reduced motion: a still dawn. The sun rests half-open; the countdown and cue still update as text. */
@media (prefers-reduced-motion: reduce) {
  .pause *, .pause *::before, .pause *::after { animation: none !important; transition: none !important; }
  .pause .breath-core { transform: scale(.86); }
  .pause .breath-halo { transform: scale(.95); opacity: .85; }
  .pause .breath-reflection { opacity: .75; }
  .pause .speck, .pause .shimmer, .pause .birds, .pause .ripple, .pause .breath-ring { display: none; }
}

/* Our app's details on top of the design. */
.pause .pause-actions {
  align-items: center;
}
.pause .pause-btn[hidden] {
  display: none;
}
.pause .pause-btn .icon {
  width: 22px;
  height: 22px;
}
.pause #calm-status {
  text-align: center;
  font-size: 16px;
}
.pause .breath-done .icon {
  width: 44px;
  height: 44px;
  stroke-width: 1.6;
  color: var(--brand);
}
@media (max-width: 767px) {
  .pause.is-done .pause-actions .pause-btn {
    width: 100%;
  }
}
@media (min-width: 768px) {
  .pause #calm-status {
    font-size: 18px;
  }
}
/* Neutralise older pause-era rules that share class names with the new design. */
.pause .breath {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: inherit;
  justify-content: initial;
}
dialog.calm-fullscreen .modal-close {
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  color: #233e38;
}
/* The old pause centred its content; the new scene must fill the whole screen. */
dialog.calm-fullscreen #modal-content {
  place-items: normal;
  justify-items: normal;
}
.pause {
  width: 100%;
}

/* ---------- Final tweaks: a quieter pause pill, a lower cue, a solid "End pause" ---------- */
/* No ring: the leaf in the pill simply breathes, slowly and in place. */
.pause-session::before {
  content: none;
  animation: none;
}
.pause-session .icon {
  animation: pill-leaf 5s ease-in-out infinite;
}
@keyframes pill-leaf {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.12); }
}
/* The breathing words sit lower on the lake, clear of the sun's reflection. */
.pause-lake {
  padding-top: clamp(40px, 7vh, 72px);
}
/* "End pause" is a white button, matching "I'm ready". */
.pause .btn-end {
  min-height: 52px;
  min-width: 200px;
  padding: 12px 24px;
  background: var(--card);
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
  box-shadow: 0 3px 0 rgba(18, 38, 32, 0.35), 0 8px 24px rgba(18, 38, 32, 0.25);
}
.pause .btn-end:hover {
  background: #ffffff;
}
.pause .btn-end:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(18, 38, 32, 0.35);
}

/* ---------- Next steps: the child peeks out from behind the steps card ---------- */
/* The card is a wall. The child stands behind its left edge and leans out, so the head,
   neck and a shoulder show; the shirt fades out below as if it continues behind the card. */
.peek-wrap {
  position: relative;
}
.peek-wrap > .panel {
  position: relative;
  z-index: 1;
}
.peek {
  position: absolute;
  z-index: 0;
  width: 200px;
  height: 178px;
  top: 30px;
  left: -90px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
  animation: peek-out-left 0.8s cubic-bezier(0.3, 1.5, 0.5, 1) 0.4s both;
}
/* The whole child leans from the hips, so shoulder, neck and head move together. */
.peek-kid {
  width: 100%;
  height: 100%;
  transform-origin: 100px 178px;
  transform: rotate(-27deg);
  animation: peek-lean 3s ease-in-out 1.2s infinite alternate;
  filter: drop-shadow(-6px 8px 10px #1f3a3030);
}
.peek-kid > svg.child {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.peek svg.child > circle:first-child {
  display: none;
}
.peek-hands {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(2px 3px 3px #1f3a3040);
  animation: peek-hands-in 0.45s ease-out 0.9s both;
}
.peek-hands svg {
  display: block;
  overflow: visible;
}
.peek-hands .hands-side {
  width: 48px;
  height: 150px;
}
.peek-hands .hands-top {
  display: none;
  width: 150px;
  height: 46px;
}
@media (min-width: 951px) {
  /* Room on the left of the card for the child to lean into. */
  .peek-wrap {
    margin-left: 110px;
  }
  .peek-hands {
    top: 96px;
    left: -20px;
  }
}
/* Phones and tablets: the card is full width, so the child pops up over its top-left edge. */
@media (max-width: 950px) {
  .peek-wrap {
    margin-top: 64px;
  }
  .peek {
    width: 150px;
    height: 134px;
    top: -88px;
    left: 20px;
    -webkit-mask-image: none;
    mask-image: none;
    animation-name: peek-out-top;
  }
  .peek-kid {
    transform-origin: 75px 120px;
    transform: rotate(0deg);
    animation-name: peek-sway-top;
  }
  .peek-hands {
    top: -28px;
    left: 20px;
  }
  .peek-hands .hands-side {
    display: none;
  }
  .peek-hands .hands-top {
    display: block;
  }
}
@keyframes peek-out-left {
  from { transform: translateX(90px); }
  to { transform: none; }
}
@keyframes peek-out-top {
  from { transform: translateY(80px); }
  to { transform: none; }
}
@keyframes peek-lean {
  from { transform: rotate(-22deg); }
  to { transform: rotate(-31deg); }
}
@keyframes peek-sway-top {
  from { transform: rotate(-6deg); }
  to { transform: rotate(6deg); }
}
@keyframes peek-hands-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: none; }
}

/* Footer: the "About us · Expert review" links sit in the true centre on every page. */
footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}
footer > span:last-child {
  justify-self: end;
  text-align: right;
}
.footer-links {
  justify-content: center;
}
@media (max-width: 720px) {
  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 6px;
  }
  footer > span:last-child {
    justify-self: center;
    text-align: center;
  }
}

/* Peek, refined: lean further out so the face is clear, a longer shirt behind the card,
   and hands closer together with the top one at chin and chest height. */
.peek {
  height: 280px;
  left: -100px;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.peek-kid {
  position: relative;
  height: 178px;
  transform: rotate(-30deg);
}
/* The torso continues below the drawing, so the lean never shows a cut-off edge. */
.peek-kid::after {
  content: "";
  position: absolute;
  left: 45px;
  top: 172px;
  width: 110px;
  height: 120px;
  border-radius: 0 0 18px 18px;
  background: var(--shirt);
}
.peek-hands .hands-side {
  height: 94px;
}
@keyframes peek-lean {
  from { transform: rotate(-26deg); }
  to { transform: rotate(-34deg); }
}
@media (min-width: 951px) {
  .peek-hands {
    top: 160px;
  }
}
@media (max-width: 950px) {
  .peek {
    height: 134px;
    left: 20px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .peek-kid {
    height: 134px;
    transform: rotate(0deg);
  }
  .peek-kid::after {
    left: 34px;
    top: 128px;
    width: 82px;
    height: 60px;
  }
}

/* Peek order: the hands grip the edge first, then the child slides out, then the sway begins. */
.peek-hands {
  animation: peek-hands-grip 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) 0.3s both;
}
.peek {
  animation-delay: 0.8s;
}
.peek-kid {
  animation-delay: 1.7s;
}
@keyframes peek-hands-grip {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 950px) {
  .peek-hands {
    animation-name: peek-hands-grip-top;
  }
}
@keyframes peek-hands-grip-top {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
/* Start fully hidden behind the card, so only the hands show at first. */
@keyframes peek-out-left {
  from { transform: translateX(130px); }
  to { transform: none; }
}
@keyframes peek-out-top {
  from { transform: translateY(110px); }
  to { transform: none; }
}
/* A gentler lean (about 20 degrees) with the child standing a little further from the card. */
@media (min-width: 951px) {
  .peek-wrap {
    margin-left: 124px;
  }
  .peek {
    left: -122px;
  }
  .peek-kid {
    transform: rotate(-20deg);
  }
}
@keyframes peek-lean {
  from { transform: rotate(-16deg); }
  to { transform: rotate(-24deg); }
}
/* Lean a little further out from the card (about 26 degrees). */
@media (min-width: 951px) {
  .peek-kid {
    transform: rotate(-26deg);
  }
}
@keyframes peek-lean {
  from { transform: rotate(-22deg); }
  to { transform: rotate(-30deg); }
}

/* ---------- Logo: "Where words meet", the all-green version beside "talk kit." ---------- */
/* Two speech bubbles lean in; the leaf-shaped gap between them is the page showing through. */
.brand .brand-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 0;
  background: none;
}
.brand-icon .logo-mark {
  display: block;
  width: 100%;
  height: 100%;
}

.tk-load-mark path {
  transform-box: view-box;
}
.tk-load-mark .lm-parent {
  transform-origin: 24.9px 23.3px;
  animation: lm-parent 600ms cubic-bezier(0.2, 0.7, 0.3, 1) both, lm-breathe-p 4s 1.6s ease-in-out infinite alternate;
}
.tk-load-mark .lm-child {
  transform-origin: 12.1px 13.7px;
  animation: lm-child 800ms 300ms cubic-bezier(0.3, 1.5, 0.5, 1) both, lm-breathe-c 4s 1.6s ease-in-out infinite alternate;
}
@keyframes lm-parent {
  from { opacity: 0; transform: translateY(2px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes lm-child {
  0% { opacity: 0; transform: translate(-5px, -4px) scale(0.6); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes lm-breathe-p {
  from { transform: none; }
  to { transform: translate(0.35px, 0.25px); }
}
@keyframes lm-breathe-c {
  from { transform: none; }
  to { transform: translate(-0.35px, -0.25px); }
}
@media (max-width: 720px) {
  .brand .brand-icon {
    width: 34px;
    height: 34px;
  }
}

/* ---------- Comfortable default scale: wide screens render at 90%, like browser zoom ---------- */
/* Phones and small tablets stay at 100%. The full-screen pause cancels the zoom so it
   still fills the screen, and the home page's first screen is measured in the zoomed units. */
@media (min-width: 1024px) {
  html {
    zoom: 0.9;
  }
  dialog.calm-fullscreen {
    zoom: calc(1 / 0.9);
  }
  .hero.new-hero {
    min-height: calc(100svh / 0.9 - 84px - 44px);
  }
}
/* Scenario pages (Get ready, the conversation, results, Next steps) sit a step further
   out, at about 80% overall, so the child, the answers and the reactions fit on screen.
   0.9 (whole page) x 0.889 (these pages) = 0.8. The header stays at 90%. */
@media (min-width: 1024px) {
  main[data-stage="prep"],
  main[data-stage="practice"],
  main[data-stage="reflect"],
  main[data-stage="plan"] {
    zoom: 0.889;
  }
}

/* Answer options: same size and space as before, but semi-bold and full ink colour so they
   read clearly at the 80% scenario scale, still well below the child's line and feedback. */
.reply > span:nth-child(2) {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.reply .choice-letter {
  font-weight: 700;
}

/* Progress steps (Choose, Prepare, Practice, Reflect): larger, easier to read, same layout. */
.steps {
  font-size: 18px;
  font-weight: 600;
}
.steps li > span {
  width: 30px;
  height: 30px;
  font-size: 16px;
  font-weight: 700;
}
.steps li:not(.active):not(.complete) {
  color: #4f5d55;
}
@media (max-width: 720px) {
  .steps {
    font-size: 14px;
    gap: 10px;
    justify-content: space-between;
  }
  .steps li {
    gap: 4px;
  }
  .steps li > span {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  .steps {
    font-size: 13px;
    gap: 6px;
  }
  .steps li > span {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}

/* "Listen again": a clear, raised green button so parents know they can replay the line. */
.flashcard-top .voice-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 18px 9px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fffdf8;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 4px 0 #173a30, 0 10px 22px -8px #265c4c80;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.flashcard-top .voice-button .icon {
  width: 22px;
  height: 22px;
  color: #fffdf8;
}
.flashcard-top .voice-button:hover {
  background: #2c6a58;
}
.flashcard-top .voice-button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #173a30, 0 4px 10px -4px #265c4c66;
}
.flashcard-top .voice-button[aria-pressed="true"] {
  background: #fffdf8;
  color: var(--green);
  box-shadow: inset 0 0 0 2px var(--green), 0 4px 0 #cfd8c9;
}

/* Ages on every character card: larger and easier to read, sitting a little closer to the name. */
.character-age {
  font-size: 17px;
  font-weight: 600;
  color: #4f5d55;
}
@media (min-width: 721px) {
  .character-hero {
    padding-bottom: 12px;
  }
  .character-age {
    margin: 8px 0 16px;
  }
}
@media (max-width: 720px) {
  .character-age {
    font-size: 15px;
  }
}
.intro-name span {
  font-size: 16px;
  padding: 4px 13px;
  margin-left: 8px;
}
.character-meta,
.character-meta .age {
  font-size: 16px;
}
.character-meta .age {
  font-weight: 600;
}
.character-meta > span:last-child {
  font-size: 16px;
}
.scenario-card .character-meta > span:last-child {
  font-size: 17px;
  font-weight: 600;
  color: #4f5d55;
}
.scenario-card .character-meta .age {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
/* Home story cards: the age sits in a small pill beside the name, like on the Get ready card. */
.scenario-card .character-meta > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.scenario-card .character-meta .age {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--theme, #e3eedb);
  color: var(--theme-dark, #4b5f45);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

/* "How this works": a clear, tappable link on the Get ready card and under the meter. */
.rules-link,
.character-panel > .text-button.rules-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #e3eedb;
  color: var(--green);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  box-shadow: inset 0 0 0 1.5px #b9d2b6, 0 3px 0 #cfe0c6;
}
.rules-link:hover {
  background: #d6e8cb;
}
.scenario-intro .rules-link {
  margin-top: 16px;
}
@media (max-width: 720px) {
  .rules-link,
  .character-panel > .text-button.rules-link {
    font-size: 15px;
    padding: 6px 14px;
  }
}
/* "What would you say?" reads as the question to answer, a step above the options. */
.choice-header h2 {
  font-size: 22px;
  font-weight: 700;
}
@media (max-width: 720px) {
  .choice-header h2 {
    font-size: 19px;
  }
}
.panel.scenario-intro .text-button.rules-link {
  font-size: 17px;
  padding: 8px 16px;
}
@media (max-width: 720px) {
  .panel.scenario-intro .text-button.rules-link {
    font-size: 15px;
    padding: 6px 14px;
  }
}

/* ---------- "How this works" popup: a live demo meter ---------- */
.rules-lead {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 8px;
}
.rules-demo {
  margin: 30px 4px 18px;
}
.rules-demo .openness-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}
.rules-demo .openness-head b {
  color: #1f7a3a;
}
.demo-meter .meter-fill,
.demo-meter .meter-knob {
  animation: none;
  transition: width 0.6s cubic-bezier(0.3, 1.3, 0.5, 1), left 0.6s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.demo-meter .meter-delta {
  animation: none;
  transition: left 0.6s;
}
.meter-delta.flat {
  background: #7c8a73;
}
.rule-list [data-rule] {
  border-radius: 10px;
  padding-left: 8px;
  padding-right: 8px;
  transition: background 0.25s;
}
.rule-list [data-rule].active {
  background: #e8f1e1;
}
.rules-points {
  margin: 14px 0 18px;
  padding-left: 20px;
  display: grid;
  gap: 4px;
  font-size: 16px;
  color: var(--ink);
}
/* Get ready: the link sits under "Take a breath first". */
.preparation .prep-rules {
  justify-self: start;
  margin: 0 0 4px;
}
.preparation .text-button.prep-rules {
  font-size: 17px;
  padding: 8px 16px;
}
@media (max-width: 720px) {
  .preparation .text-button.prep-rules {
    font-size: 15px;
    padding: 6px 14px;
  }
}
/* Get ready: a larger "How this works" button under the description. */
.panel.scenario-intro .text-button.prep-rules {
  margin-top: 18px;
  padding: 11px 22px;
  font-size: 19px;
  gap: 8px;
}
.panel.scenario-intro .text-button.prep-rules .icon {
  width: 22px;
  height: 22px;
}
@media (max-width: 720px) {
  .panel.scenario-intro .text-button.prep-rules {
    font-size: 17px;
    padding: 9px 18px;
  }
}
/* Points table: answer, 1st try, 2nd try. */
.rule-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 70px;
  align-items: center;
}
.rule-table dd {
  text-align: right;
  margin: 0;
}
.rule-table .rule-head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 8px 4px;
}

/* Hero sparkle: drawn, not a text character, so phones never show it as an emoji. */
.spark {
  width: 40px;
  height: 40px;
  line-height: 0;
}
.spark svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 720px) {
  .spark {
    width: 30px;
    height: 30px;
  }
}

/* ---------- Scenario pages: steps closer to the header, larger controls ---------- */
main[data-stage="prep"],
main[data-stage="practice"],
main[data-stage="reflect"],
main[data-stage="plan"] {
  padding-top: 14px;
}
main[data-stage] .steps {
  margin-bottom: 18px;
  font-size: 20px;
}
main[data-stage] .steps li > span {
  width: 34px;
  height: 34px;
  font-size: 17px;
}
/* "Start over": a clear, raised button. */
.practice-heading #restart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 0;
  background: #fffdf8;
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px #b9d2b6, 0 4px 0 #cfe0c6;
  transition: transform 0.12s, box-shadow 0.12s;
}
.practice-heading #restart:hover {
  background: #e8f1e1;
}
.practice-heading #restart:active {
  transform: translateY(3px);
  box-shadow: inset 0 0 0 2px #b9d2b6, 0 1px 0 #cfe0c6;
}
/* "How this works": bigger everywhere. */
.character-panel > .text-button.rules-link,
.panel.scenario-intro .text-button.prep-rules {
  font-size: 20px;
  padding: 12px 24px;
}
@media (max-width: 720px) {
  main[data-stage="prep"],
  main[data-stage="practice"],
  main[data-stage="reflect"],
  main[data-stage="plan"] {
    padding-top: 10px;
  }
  main[data-stage] .steps {
    font-size: 14px;
    margin-bottom: 14px;
  }
  main[data-stage] .steps li > span {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
  .practice-heading #restart {
    font-size: 16px;
    min-height: 42px;
    padding: 8px 16px;
  }
  .character-panel > .text-button.rules-link,
  .panel.scenario-intro .text-button.prep-rules {
    font-size: 17px;
    padding: 10px 18px;
  }
}
@media (max-width: 380px) {
  main[data-stage] .steps {
    font-size: 13px;
  }
}

/* ---------- Phone homepage: calmer hero ---------- */
@media (max-width: 720px) {
  .new-hero .floating-tag,
  .new-hero .spark,
  .new-hero .back-card.two,
  .new-hero .blob-two {
    display: none;
  }
  .new-hero .hero-copy h1 {
    font-size: 46px;
  }
  .new-hero .hero-copy p {
    font-size: 18px;
    line-height: 1.6;
  }
  .new-hero .hero-stage {
    max-width: 300px;
    margin: 8px auto 0;
  }
  .new-hero .hero-demo {
    padding: 18px 18px 20px;
  }
  .new-hero .hero-demo blockquote {
    font-size: 26px;
  }
  .new-hero .demo-response {
    font-size: 15px;
  }
  /* The pause pill tucks into the corner instead of covering the page. */
  .pause-session {
    left: auto;
    right: 14px;
    bottom: 14px;
    transform: none;
    padding: 8px 14px 8px 8px;
    font-size: 16px;
  }
  .pause-session .icon {
    width: 30px;
    height: 30px;
  }
}
