:root {
  --ink: #19383a;
  --ink-deep: #102b2d;
  --ink-soft: #285052;
  --coral: #ef5b3d;
  --coral-dark: #d9472b;
  --cream: #f4f0e7;
  --paper: #fbfaf6;
  --white: #ffffff;
  --mint: #b9d9c8;
  --mint-light: #dcece3;
  --green: #3f8b61;
  --green-light: #dff2e6;
  --yellow: #f3d77d;
  --red: #be3f31;
  --line: rgba(25, 56, 58, 0.18);
  --muted: #687877;
  --shadow: 0 24px 70px rgba(10, 36, 38, 0.15);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --font-display: "Manrope", "Avenir Next", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 em,
h2 em {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  width: 100%;
  min-height: 88px;
  padding: 0 3.5vw;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.site-header.is-scrolled {
  position: fixed;
  min-height: 74px;
  color: var(--ink);
  background: rgba(251, 250, 246, 0.93);
  border-color: var(--line);
  box-shadow: 0 5px 20px rgba(17, 44, 46, 0.07);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: headerDown 0.35s ease;
}

@keyframes headerDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  width: 33px;
  height: 33px;
  padding: 8px 7px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--coral);
}

.brand-mark span {
  display: block;
  width: 4px;
  border-radius: 5px;
  background: currentColor;
  transform-origin: bottom;
}

.brand-mark span:nth-child(1) { height: 9px; transform: rotate(-12deg); }
.brand-mark span:nth-child(2) { height: 16px; }
.brand-mark span:nth-child(3) { height: 11px; transform: rotate(12deg); }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 42px);
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding: 11px 0;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 17px;
}

.text-button,
.text-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(25, 56, 58, 0.35);
  text-underline-offset: 5px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.button-small {
  min-height: 44px;
  padding: 0 19px;
  font-size: 13px;
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.site-header.is-scrolled .button-light {
  color: var(--white);
  background: var(--ink);
}

.button-coral {
  color: var(--ink-deep);
  background: var(--coral);
  box-shadow: 0 10px 32px rgba(239, 91, 61, 0.25);
}

.button-coral:hover {
  background: #ff6d4f;
  box-shadow: 0 14px 38px rgba(239, 91, 61, 0.32);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-dark:hover {
  background: var(--ink-soft);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(185, 217, 200, 0.12), transparent 29%),
    var(--ink);
}

.hero::before {
  position: absolute;
  top: -20vh;
  left: 47%;
  width: 50vw;
  height: 50vw;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(450px, 0.96fr);
  min-height: calc(100vh - 92px);
  padding-top: 88px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh 5vw 7vh 6.5vw;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.69);
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.live-dot::before {
  position: absolute;
  inset: -5px;
  border: 1px solid var(--mint);
  border-radius: inherit;
  content: "";
  animation: pulse 2s infinite ease-out;
}

@keyframes pulse {
  0% { opacity: 0.9; transform: scale(0.5); }
  75%, 100% { opacity: 0; transform: scale(1.45); }
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 36px;
  font-size: clamp(69px, 7.6vw, 138px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.hero h1 em {
  letter-spacing: -0.07em;
}

.hero-intro {
  max-width: 570px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.hero-account-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.hero-account-entry button {
  padding: 0;
  border: 0;
  color: var(--white);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.round-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 600;
}

.round-link-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transition: background 0.2s ease;
}

.round-link:hover .round-link-icon {
  color: var(--ink);
  background: var(--white);
}

.hero-visual {
  position: relative;
  min-height: 670px;
  margin: 28px 28px 28px 0;
  overflow: hidden;
  border-radius: 5px;
  background: #d9d7c8;
}

.hero-room {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 59%, rgba(255, 255, 255, 0.3) 59.2%, transparent 59.5%),
    linear-gradient(180deg, #dbddd1 0 66%, #baa58c 66% 67%, #d4c3ad 67%);
}

.hero-room::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 70%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), transparent 60%);
  clip-path: polygon(0 0, 100% 0, 61% 100%, 0 82%);
  content: "";
}

.hero-room::after {
  position: absolute;
  right: 8%;
  bottom: 7%;
  width: 56%;
  height: 7%;
  border-radius: 50%;
  background: rgba(43, 53, 45, 0.16);
  filter: blur(12px);
  content: "";
}

.room-window {
  position: absolute;
  top: 6%;
  left: 6%;
  width: 44%;
  height: 35%;
  overflow: hidden;
  border: 12px solid #ecede5;
  background: linear-gradient(#bed6d6, #f4ddbb);
  box-shadow: 0 18px 30px rgba(51, 74, 68, 0.11);
}

.room-window::after {
  position: absolute;
  top: 0;
  left: 48%;
  width: 8px;
  height: 100%;
  background: rgba(250, 250, 246, 0.8);
  content: "";
}

.sun {
  position: absolute;
  top: 15%;
  right: 14%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f2c878;
}

.land {
  position: absolute;
  right: -10%;
  bottom: -40%;
  width: 90%;
  height: 75%;
  border-radius: 50%;
  background: #94b4a6;
}

.land-two {
  right: 37%;
  bottom: -45%;
  background: #789887;
}

.room-plant {
  position: absolute;
  right: 2%;
  bottom: 31%;
  z-index: 1;
  width: 110px;
  height: 180px;
}

.room-plant::before {
  position: absolute;
  right: 24px;
  bottom: 0;
  width: 56px;
  height: 66px;
  border-radius: 10px 10px 28px 28px;
  background: #b26545;
  content: "";
}

.room-plant span {
  position: absolute;
  right: 48px;
  bottom: 55px;
  width: 21px;
  height: 100px;
  border-radius: 100% 0;
  background: #5c7d68;
  transform-origin: bottom;
}

.room-plant span:nth-child(1) { transform: rotate(-34deg); }
.room-plant span:nth-child(2) { height: 120px; transform: rotate(3deg); }
.room-plant span:nth-child(3) { transform: rotate(36deg); }

.phone-stand {
  position: absolute;
  bottom: 13%;
  left: 7%;
  z-index: 3;
  width: 65px;
  height: 210px;
}

.phone-screen {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 98px;
  overflow: hidden;
  border: 5px solid #263a3a;
  border-radius: 11px;
  background: #bfd0c4;
  box-shadow: 0 8px 18px rgba(26, 45, 43, 0.25);
}

.phone-person {
  position: absolute;
  top: 17px;
  left: 20px;
  width: 10px;
  height: 43px;
  border-radius: 8px;
  background: var(--coral);
}

.phone-person::before {
  position: absolute;
  top: -9px;
  left: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b97359;
  content: "";
}

.phone-person::after {
  position: absolute;
  top: 37px;
  left: -9px;
  width: 28px;
  height: 2px;
  background: #294847;
  content: "";
  transform: rotate(70deg);
}

.stand-line {
  position: absolute;
  top: 94px;
  left: 27px;
  width: 4px;
  height: 108px;
  background: #304a49;
}

.stand-line::before,
.stand-line::after {
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 4px;
  height: 55px;
  background: inherit;
  content: "";
  transform-origin: bottom;
}

.stand-line::before { transform: rotate(24deg); }
.stand-line::after { transform: rotate(-24deg); }

.tracked-person {
  position: absolute;
  right: 7%;
  bottom: 4%;
  z-index: 2;
  width: 63%;
  max-height: 88%;
  filter: drop-shadow(0 18px 10px rgba(31, 49, 44, 0.14));
}

.tracked-person .skin { fill: #b97359; }
.tracked-person .hair { fill: #d7d3c8; }
.tracked-person .shirt { fill: url(#shirtGradient); }
.tracked-person .pants { fill: #314c4c; }
.tracked-person .shoe { fill: #f1eee6; }
.tracked-person .chair {
  fill: none;
  stroke: #916747;
  stroke-linecap: round;
  stroke-width: 13;
}
.tracked-person .pose-lines {
  fill: none;
  stroke: rgba(228, 255, 236, 0.85);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}
.tracked-person .pose-points circle {
  fill: #e0f6e8;
  stroke: var(--green);
  stroke-width: 3;
}

.tracking-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px 11px 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(28, 54, 49, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 11px;
  line-height: 1.25;
}

.tracking-card strong,
.tracking-card span {
  display: block;
}

.tracking-card strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.tracking-card-top {
  top: 18%;
  right: 4%;
  animation: float 4s ease-in-out infinite;
}

.tracking-card-bottom {
  bottom: 15%;
  left: 6%;
  animation: float 4.5s 0.8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.tracking-icon {
  display: grid !important;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--ink);
  background: var(--coral);
  font-size: 15px;
  font-weight: 800;
}

.tracking-icon-good {
  color: #1b5135;
  background: var(--green-light);
}

.hero-index {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 5;
  color: rgba(25, 56, 58, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 0 3.5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hero-bottom p {
  margin: 0;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 36px;
}

.trust-row span {
  position: relative;
}

.trust-row span::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: var(--mint);
  content: "";
}

.manifesto,
.journey-section,
.progress-section {
  padding: 110px 6.5vw 120px;
}

.section-kicker {
  display: grid;
  grid-template-columns: minmax(70px, 0.28fr) 1fr;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker-light {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.55);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 8vw;
  padding-top: 80px;
}

.manifesto h2,
.section-heading h2,
.progress-story h2,
.safety-content h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(48px, 5.7vw, 96px);
  font-weight: 520;
}

.manifesto-copy {
  align-self: end;
  max-width: 540px;
  color: #4f6564;
}

.manifesto-copy p {
  margin-bottom: 22px;
  font-size: 18px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.arrow-link span {
  transition: transform 0.2s ease;
}

.arrow-link:hover span {
  transform: translateX(5px);
}

.journey-section {
  background: var(--cream);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 72px;
}

.section-heading .eyebrow {
  align-self: start;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(25, 56, 58, 0.18);
  border: 1px solid var(--line);
}

.journey-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: 28px;
  overflow: hidden;
}

.journey-card-coral { background: var(--coral); }
.journey-card-cream { background: var(--paper); }
.journey-card-mint { background: var(--mint); }
.journey-card-dark { color: var(--white); background: var(--ink); }

.journey-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.journey-card h3 {
  margin-bottom: 14px;
  font-size: clamp(25px, 2vw, 33px);
  font-weight: 600;
}

.journey-card p {
  margin: 0;
  opacity: 0.74;
  font-size: 15px;
}

.journey-icon {
  position: relative;
  align-self: center;
  width: 150px;
  height: 150px;
  margin: 25px 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.8;
}

.icon-profile::before {
  position: absolute;
  top: 31px;
  left: 54px;
  width: 40px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.icon-profile::after {
  position: absolute;
  bottom: 28px;
  left: 36px;
  width: 74px;
  height: 43px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 50px 50px 0 0;
  content: "";
}

.icon-profile span {
  position: absolute;
  right: 5px;
  bottom: 20px;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--yellow);
}

.icon-profile span::before,
.icon-profile span::after {
  position: absolute;
  top: 18px;
  left: 11px;
  width: 17px;
  height: 2px;
  background: var(--ink);
  content: "";
}

.icon-profile span::after { transform: rotate(90deg); }

.icon-plan {
  display: grid;
  align-content: center;
  gap: 15px;
  padding: 34px;
}

.icon-plan span {
  display: block;
  height: 9px;
  border-radius: 10px;
  background: currentColor;
  opacity: 0.75;
}

.icon-plan span:nth-child(2) { width: 68%; }
.icon-plan span:nth-child(3) { width: 85%; }

.icon-plan::after {
  position: absolute;
  top: 58px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--white);
  background: var(--coral);
  content: "✓";
  font-weight: 800;
}

.icon-camera::before {
  position: absolute;
  inset: 34px 26px;
  border: 2px solid currentColor;
  border-radius: 9px;
  content: "";
}

.icon-camera::after {
  position: absolute;
  top: 58px;
  left: 57px;
  width: 31px;
  height: 42px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.icon-camera span {
  position: absolute;
  top: 50px;
  left: 68px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: -14px 35px 0 var(--coral), 15px 35px 0 var(--coral);
}

.icon-care::before,
.icon-care::after {
  position: absolute;
  top: 46px;
  width: 46px;
  height: 54px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 45% 45%;
  content: "";
}

.icon-care::before { left: 27px; }
.icon-care::after { right: 27px; }

.icon-care span:first-child {
  position: absolute;
  top: 68px;
  left: 62px;
  z-index: 1;
  width: 26px;
  height: 2px;
  background: var(--coral);
}

.icon-care span:last-child {
  position: absolute;
  top: 56px;
  left: 74px;
  z-index: 1;
  width: 2px;
  height: 26px;
  background: var(--coral);
}

.practice-section {
  padding: 110px 3.5vw;
  color: var(--white);
  background: var(--ink);
}

.practice-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 58px 3vw 55px;
}

.practice-heading h2 {
  margin: 0;
  font-size: clamp(48px, 5.5vw, 92px);
  font-weight: 520;
}

.session-readiness {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.readiness-check {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #164a31;
  background: var(--mint);
  font-weight: 800;
}

.session-readiness p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  line-height: 1.4;
}

.session-readiness strong {
  display: block;
  color: var(--white);
  font-size: 13px;
}

.practice-app {
  display: grid;
  grid-template-columns: minmax(0, 1.56fr) minmax(360px, 0.7fr);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 20px;
  background: var(--ink-deep);
  box-shadow: 0 40px 80px rgba(4, 19, 20, 0.35);
}

.camera-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stage {
  position: relative;
  flex: 1;
  min-height: 650px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(185, 217, 200, 0.13), transparent 24%),
    linear-gradient(150deg, #183638, #0b2022);
}

#webcam,
#overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#webcam {
  background: #071617;
}

#overlay {
  z-index: 2;
  pointer-events: none;
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  background:
    linear-gradient(rgba(31, 67, 69, 0.88), rgba(12, 38, 40, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 89px, rgba(255,255,255,.03) 90px),
    repeating-linear-gradient(0deg, transparent 0 89px, rgba(255,255,255,.03) 90px);
  transition: opacity 0.3s ease;
}

.camera-active .camera-placeholder {
  visibility: hidden;
  opacity: 0;
}

.camera-placeholder p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
  font-size: 14px;
}

.camera-placeholder strong {
  display: block;
  margin-bottom: 5px;
  color: var(--white);
  font-size: 19px;
}

.position-guide {
  position: relative;
  width: 180px;
  height: 330px;
  border: 1px dashed rgba(185, 217, 200, 0.65);
  border-radius: 90px 90px 26px 26px;
}

.guide-head {
  position: absolute;
  top: 34px;
  left: 68px;
  width: 44px;
  height: 44px;
  border: 3px solid var(--mint);
  border-radius: 50%;
}

.guide-body,
.guide-arm,
.guide-leg {
  position: absolute;
  width: 3px;
  border-radius: 5px;
  background: var(--mint);
  transform-origin: top;
}

.guide-body { top: 78px; left: 89px; height: 122px; }
.guide-arm { top: 102px; left: 89px; height: 100px; }
.guide-arm-left { transform: rotate(45deg); }
.guide-arm-right { transform: rotate(-45deg); }
.guide-leg { top: 199px; left: 89px; height: 105px; }
.guide-leg-left { transform: rotate(21deg); }
.guide-leg-right { transform: rotate(-21deg); }

.camera-topbar {
  position: absolute;
  top: 20px;
  right: 20px;
  left: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(9, 28, 30, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
}

.status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.camera-active .status::before {
  background: #77d89c;
}

.sound-toggle {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(9, 28, 30, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.setup-tip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 13px 20px;
  color: rgba(255, 255, 255, 0.54);
  background: rgba(6, 23, 24, 0.76);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.hand-frame-guide {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  pointer-events: none;
}

.hand-guide-outline {
  display: grid;
  place-items: center;
  width: min(46vw, 310px);
  aspect-ratio: 1;
  border: 2px dashed rgba(185, 217, 200, 0.9);
  border-radius: 34px;
  background: rgba(8, 30, 31, 0.18);
  font-size: clamp(72px, 11vw, 120px);
  opacity: 0.68;
}

.hand-frame-guide > span {
  padding: 8px 12px;
  border-radius: 7px;
  background: rgba(6, 23, 24, 0.78);
  font-size: 12px;
  font-weight: 650;
}

.hand-frame-guide.is-arm-mode .hand-guide-outline {
  width: min(72vw, 560px);
  aspect-ratio: 1.7;
  border-radius: 28px;
  font-size: clamp(54px, 8vw, 88px);
}

.calibration-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px 28px 58px;
  pointer-events: none;
  background: linear-gradient(transparent 30%, rgba(5, 22, 23, 0.5));
}

.calibration-dialog {
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: var(--white);
  background: rgba(11, 36, 38, 0.94);
  box-shadow: 0 22px 60px rgba(3, 16, 17, 0.35);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.calibration-step-label {
  display: block;
  margin-bottom: 8px;
  color: var(--mint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.calibration-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
}

.calibration-dots span {
  width: 28px;
  height: 3px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
}

.calibration-dots span.active {
  background: var(--coral);
}

.calibration-dialog h3 {
  margin-bottom: 10px;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.calibration-dialog > p {
  margin-bottom: 17px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.calibration-dialog .calibration-status {
  min-height: 20px;
  margin-bottom: 12px;
  color: var(--yellow);
  font-weight: 650;
}

.calibration-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.calibration-cancel {
  color: rgba(255, 255, 255, 0.74);
}

.calibration-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.calibration-result span {
  padding: 11px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
}

.calibration-result strong {
  display: block;
  color: var(--white);
  font-size: 20px;
}

.camera-safety {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 0 24px;
  color: rgba(255, 255, 255, 0.5);
  background: #0a2224;
  font-size: 11px;
}

.camera-safety span {
  color: var(--mint);
}

.camera-safety p {
  margin: 0;
}

.panel {
  min-width: 0;
  padding: 30px;
  color: var(--ink);
  background: var(--paper);
}

.panel-step {
  display: flex;
  justify-content: space-between;
  margin-bottom: 23px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.personalization-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #c6dcd0;
  border-radius: 11px;
  background: var(--mint-light);
}

.personalization-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--mint);
}

.personalization-card span,
.personalization-card strong,
.personalization-card small {
  display: block;
}

.personalization-card span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.personalization-card strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personalization-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personalization-card button {
  padding: 5px 8px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
  font-weight: 750;
  text-decoration: underline;
  cursor: pointer;
}

.calibration-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.calibration-control span,
.calibration-control small {
  display: block;
}

.calibration-control span {
  font-size: 11px;
  font-weight: 750;
}

.calibration-control small {
  color: var(--muted);
  font-size: 9px;
}

.calibration-control .text-link {
  flex: 0 0 auto;
  font-size: 11px;
}

.calibration-control button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.65;
}

.control-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  margin-bottom: 18px;
}

.control-row label,
.field-label,
.booking-reason > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.control-row select,
.field-grid input,
.field-grid select,
.history-field textarea,
.booking-reason textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  font-weight: 650;
}

.side-and-dose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.dose-card {
  min-width: 0;
  height: 81px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
}

.dose-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dose-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rep-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 4px 0 19px;
  padding: 15px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rep-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.rep-count {
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.rep-label {
  color: var(--muted);
  font-size: 13px;
}

.rep-goal {
  padding-right: 5px;
  text-align: right;
}

.rep-goal span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.rep-goal strong {
  font-family: var(--font-display);
  font-size: 25px;
}

.feedback-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 69px;
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: 11px;
  color: #255a3d;
  background: var(--green-light);
  transition: background 0.2s ease, color 0.2s ease;
}

.feedback-banner.needs-adjustment {
  color: #744113;
  background: #fff0d4;
}

.feedback-banner.tracking-uncertain {
  color: var(--ink-soft);
  background: #e7eeeb;
}

.feedback-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
}

.needs-adjustment .feedback-symbol {
  background: #dc8233;
}

.tracking-uncertain .feedback-symbol {
  background: var(--muted);
}

.feedback-banner strong,
.feedback-banner span {
  display: block;
}

.feedback-banner strong {
  margin-bottom: 2px;
  font-size: 14px;
}

.feedback-banner div > span {
  opacity: 0.72;
  font-size: 11px;
}

.phase-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0 11px;
}

.phase-chip {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.phase-chip.active {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.phase-arrow {
  color: var(--muted);
  font-size: 10px;
}

.progress-wrap {
  height: 7px;
  overflow: hidden;
  border-radius: 10px;
  background: #e4e5df;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width 0.15s ease;
}

.progress-label {
  margin: 7px 0 15px;
  color: var(--muted);
  font-size: 11px;
}

.cue-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.cue-list li,
.sym-warning,
.tracking-warning {
  padding: 10px 11px;
  border: 1px solid #ebc88b;
  border-radius: 8px;
  color: #764817;
  background: #fff4dd;
  font-size: 12px;
}

.sym-warning {
  margin-bottom: 11px;
  border-color: #d0bedf;
  color: #67467b;
  background: #f4ecfa;
}

.tracking-warning {
  margin-bottom: 11px;
}

.hidden {
  display: none !important;
}

.camera-button {
  width: 100%;
  margin-top: 4px;
}

.hand-tracking-card {
  margin: 4px 0 12px;
  padding: 14px;
  border: 1px solid rgba(25, 56, 58, 0.14);
  border-radius: 10px;
  background: #edf6f1;
}

.hand-tracking-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hand-tracking-heading div > span,
.hand-model-status {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hand-tracking-heading strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.hand-model-status {
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(25, 56, 58, 0.08);
  white-space: nowrap;
}

.hand-model-status.is-ready {
  color: #1f7043;
  background: rgba(70, 158, 103, 0.12);
}

.hand-model-status.is-error {
  color: #9b4d2b;
  background: rgba(194, 91, 54, 0.12);
}

.hand-tracking-card > p {
  margin: 9px 0 11px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.hand-tracking-button {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(25, 56, 58, 0.18);
  color: var(--ink);
  background: var(--white);
  font-size: 11px;
}

.hand-tracking-readout {
  margin: 12px 0 0;
}

.hand-tracking-readout > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-top: 1px solid rgba(25, 56, 58, 0.1);
  font-size: 10px;
}

.hand-tracking-readout dt {
  color: var(--muted);
}

.hand-tracking-readout dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* ── Stretch hold timer ──────────────────────────────────────────────── */
.hold-inline {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  text-align: right;
}

#holdInlineCountdown {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
  line-height: 1;
  transition: color 0.2s ease;
}

.hold-inline-unit {
  max-width: 44px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.hold-inline.active #holdInlineCountdown,
.hold-inline.active .hold-inline-unit {
  color: var(--green);
}

.hold-progress {
  background: var(--green);
}

/* ── Phase illustration strip ────────────────────────────────────────── */
.pose-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 190px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 18px;
  background: var(--ink-deep);
}

.pose-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pose-card svg {
  width: 120px;
  height: auto;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pose-card svg.landscape {
  width: 160px;
}

.pose-card.active svg {
  border-color: var(--coral);
  box-shadow: 0 0 22px rgba(239, 91, 61, 0.24);
}

.pose-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pose-card.active .pose-label {
  color: var(--coral);
}

.pose-arrow-sep {
  align-self: center;
  margin-top: -24px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 20px;
}

/* ── Draft exercise library ─────────────────────────────────────────── */
.exercise-library {
  margin-top: 32px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 24px;
  background: var(--ink-deep);
}

.exercise-library-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.exercise-library-heading .eyebrow {
  margin-bottom: 12px;
  color: var(--mint);
}

.exercise-library-heading h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(32px, 4vw, 54px);
}

.exercise-library-status {
  flex: none;
  padding: 8px 12px;
  border: 1px solid rgba(243, 215, 125, 0.4);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.exercise-library-notice {
  display: grid;
  gap: 4px;
  margin: 30px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(243, 215, 125, 0.08);
}

.exercise-library-notice strong {
  color: var(--white);
}

.exercise-library-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr);
  gap: 16px;
}

.exercise-library-controls label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.exercise-library-controls input,
.exercise-library-controls select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.exercise-library-controls input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.exercise-library-controls option {
  color: var(--ink);
  background: var(--paper);
}

.exercise-library-count {
  margin: 24px 0 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.exercise-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 16px;
}

.exercise-library-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
}

.exercise-library-card.is-live {
  border: 2px solid var(--mint);
}

.exercise-card-metadata {
  margin-bottom: 10px;
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exercise-library-card h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.exercise-card-status {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.exercise-card-status.is-live {
  color: var(--green);
  font-weight: 800;
}

.exercise-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.exercise-card-tags span {
  padding: 5px 7px;
  border-radius: 6px;
  color: var(--ink-soft);
  background: var(--mint-light);
  font-size: 10px;
  font-weight: 750;
}

.exercise-card-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.exercise-card-uses {
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.55;
}

.exercise-card-details {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.exercise-card-details summary {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.exercise-card-details p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.exercise-card-safety {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--red);
  font-size: 12px;
  font-weight: 650;
}

.exercise-library-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 36px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

/* ── Debug metrics (collapsible) ─────────────────────────────────────── */
details.metrics {
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

details.metrics summary {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.metrics ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.metrics li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(25, 56, 58, 0.09);
  font-size: 11px;
}

.metrics b {
  font-variant-numeric: tabular-nums;
}

.metrics b.low-conf {
  color: #bd772b;
  font-style: italic;
  font-weight: 500;
}

.fps {
  color: var(--muted);
  font-size: 10px;
}

.progress-section {
  background: var(--paper);
}

.progress-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.62fr) minmax(530px, 1fr);
  gap: 8vw;
  align-items: center;
  padding-top: 88px;
}

.progress-story h2 {
  margin-bottom: 36px;
}

.large-copy {
  max-width: 590px;
  color: #526867;
  font-size: 19px;
}

.care-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 35px;
}

.dashboard-preview {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.dashboard-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-label,
.metric-card > span,
.chart-title span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-top h3 {
  margin: 7px 0 0;
  font-size: 27px;
  letter-spacing: -0.045em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 29px;
  padding: 0 11px;
  border: 0;
  border-radius: 100px;
  color: #2e6948;
  background: var(--green-light);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-pill-review {
  color: #7a4019;
  background: #ffe0c3;
}

.status-pill-watch {
  color: #6c5918;
  background: #f9eab3;
}

.status-pill-good {
  color: #2e6948;
  background: var(--green-light);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}

.metric-card strong {
  display: block;
  margin: 12px 0 5px;
  font-family: var(--font-display);
  font-size: 33px;
  letter-spacing: -0.06em;
}

.metric-card small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 12px;
}

.metric-card em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.metric-card .trend-up { color: var(--green); }
.metric-card .trend-down { color: var(--coral-dark); }

.chart-card {
  margin-top: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}

.chart-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.chart-title strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

.chart-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.chart-card svg {
  width: 100%;
  margin: 3px 0;
}

.chart-grid line {
  stroke: rgba(25, 56, 58, 0.09);
  stroke-width: 1;
}

.chart-area { fill: url(#chartFill); }
.chart-line {
  fill: none;
  stroke: var(--coral);
  stroke-linecap: round;
  stroke-width: 3;
}
.chart-points circle {
  fill: var(--white);
  stroke: var(--coral);
  stroke-width: 3;
}

.chart-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #fff0df;
}

.alert-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: var(--white);
  background: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.chart-note p {
  margin: 0;
  color: #765646;
  font-size: 9px;
  line-height: 1.35;
}

.chart-note strong {
  display: block;
  color: var(--ink);
  font-size: 10px;
}

.chart-note button,
.table-heading button {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.safety-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 780px;
  color: var(--white);
  background: var(--ink);
}

.safety-orbit {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--mint);
}

.safety-orbit::before {
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(25, 56, 58, 0.24);
  border-radius: 50%;
  content: "";
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(25, 56, 58, 0.23);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one { width: 52%; height: 52%; }
.orbit-two { width: 75%; height: 75%; }

.orbit-dot {
  position: absolute;
  top: 18%;
  left: 49%;
  width: 16px;
  height: 16px;
  border: 4px solid var(--mint);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px var(--ink);
  animation: orbitMotion 7s ease-in-out infinite;
}

@keyframes orbitMotion {
  0%, 100% { transform: translate(-175px, 70px); }
  50% { transform: translate(175px, 190px); }
}

.safety-shield {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 165px;
  height: 190px;
  color: var(--white);
  background: var(--ink);
  clip-path: polygon(50% 0, 94% 20%, 88% 72%, 50% 100%, 12% 72%, 6% 20%);
  font-family: var(--font-display);
  font-size: 55px;
  font-weight: 300;
  transform: translate(-50%, -50%);
}

.safety-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 8vw;
}

.safety-content h2 {
  margin-bottom: 35px;
}

.safety-content > p:not(.eyebrow) {
  max-width: 630px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 18px;
}

.safety-content ul {
  max-width: 650px;
  margin: 35px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
}

.safety-content li {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.safety-content li span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 700;
}

.final-cta {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 720px;
  padding: 120px 6vw;
  overflow: hidden;
  background: var(--cream);
  text-align: center;
}

.final-cta h2 {
  position: relative;
  z-index: 2;
  margin-bottom: 42px;
}

.final-cta .button,
.final-cta .eyebrow {
  position: relative;
  z-index: 2;
}

.cta-rings span {
  position: absolute;
  top: 54%;
  left: 50%;
  border: 1px solid rgba(25, 56, 58, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cta-rings span:nth-child(1) { width: 420px; height: 420px; }
.cta-rings span:nth-child(2) { width: 680px; height: 680px; }
.cta-rings span:nth-child(3) { width: 960px; height: 960px; }

.site-footer {
  padding: 75px 6.5vw 28px;
  color: var(--white);
  background: var(--ink-deep);
}

.footer-main {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1.5fr;
  gap: 6vw;
  align-items: start;
  padding-bottom: 70px;
}

.brand-footer {
  color: var(--white);
}

.footer-main > p {
  color: rgba(255, 255, 255, 0.59);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links span {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s, opacity 0.25s;
}

.modal-shell.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 25, 0.79);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.modal {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 30px 110px rgba(3, 17, 18, 0.48);
  transform: translateY(24px) scale(0.985);
  transition: transform 0.3s ease;
}

.is-open .modal {
  transform: none;
}

.plan-modal,
.profile-modal,
.booking-modal {
  padding: 42px 48px 46px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.modal-close-light {
  border-color: rgba(255,255,255,.2);
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.modal-progress {
  display: flex;
  gap: 6px;
  margin: 0 60px 40px 0;
}

.modal-progress span {
  width: 34px;
  height: 3px;
  border-radius: 4px;
  background: #d8d9d3;
}

.modal-progress span.active {
  background: var(--coral);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: stepIn 0.35s ease;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}

.modal h2 {
  max-width: 650px;
  margin-bottom: 14px;
  font-size: clamp(37px, 5vw, 55px);
  font-weight: 580;
}

.form-intro {
  margin-bottom: 28px;
  color: var(--muted);
}

.goal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.choice-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
  min-height: 98px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
}

.choice-card:has(input:checked) {
  border: 2px solid var(--ink);
  background: var(--mint-light);
}

.choice-card input {
  position: absolute;
  opacity: 0;
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  font-size: 20px;
}

.choice-card:has(input:checked) .choice-icon {
  background: var(--coral);
}

.choice-card strong,
.choice-card span {
  display: block;
}

.choice-card strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.choice-card span:last-child {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.modal-next {
  width: 100%;
}

.wellness-screening {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.wellness-screening fieldset {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}

.wellness-screening legend {
  display: block;
  width: 100%;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.wellness-screening label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  color: var(--muted);
  background: #fafbf9;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.wellness-screening label + label {
  margin-left: 6px;
}

.wellness-screening label:has(input:checked) {
  border-color: var(--green);
  color: var(--ink);
  background: var(--mint-light);
}

.wellness-screening input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.wellness-screening-note {
  margin: 0 0 18px;
  padding: 11px 13px;
  border-left: 3px solid var(--coral);
  color: var(--muted);
  background: var(--cream);
  font-size: 11px;
  line-height: 1.45;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-grid label,
.history-field {
  position: relative;
  display: block;
}

.profile-path-status {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--cream);
}

.profile-path-status span,
.profile-path-status strong,
.profile-path-status small {
  display: block;
}

.profile-path-status span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-path-status strong {
  font-size: 11px;
}

.profile-path-status small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.field-grid label > span,
.history-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.field-grid label em {
  position: absolute;
  right: 14px;
  bottom: 15px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.history-field {
  margin-top: 12px;
}

.history-field textarea,
.booking-reason textarea {
  min-height: auto;
  padding: 12px 15px;
  resize: vertical;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin: 18px 0;
  padding: 13px;
  border-radius: 9px;
  background: var(--cream);
  color: var(--muted);
  font-size: 11px;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.plan-created-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 25px;
  border-radius: 50%;
  color: #225b3b;
  background: var(--green-light);
  font-size: 25px;
  font-weight: 800;
}

.plan-created-icon.review {
  color: #8c2c21;
  background: #fbe8e4;
}

.generated-plan {
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
}

.generated-day {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.generated-day > span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 10px;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.generated-day strong,
.generated-day small {
  display: block;
}

.generated-day strong {
  font-size: 14px;
}

.generated-day small {
  color: var(--muted);
  font-size: 10px;
}

.generated-day em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.plan-note {
  display: flex;
  gap: 10px;
  margin: 16px 0 20px;
  padding: 12px;
  border-radius: 8px;
  color: #715225;
  background: #fff0d2;
  font-size: 10px;
}

.plan-note span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  color: var(--white);
  background: #bd7a29;
  font-weight: 700;
}

.plan-note p {
  margin: 0;
}

.plan-note.warning {
  color: #7c3028;
  background: #fbe8e4;
}

.wellness-review-outcome ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.full-button {
  width: 100%;
}

@media (max-width: 640px) {
  .wellness-screening label {
    width: 100%;
  }

  .wellness-screening label + label {
    margin-top: 6px;
    margin-left: 0;
  }
}

.profile-modal {
  width: min(820px, calc(100vw - 32px));
}

.profile-safety-note {
  display: flex;
  gap: 10px;
  margin: 18px 0;
  padding: 13px;
  border-radius: 9px;
  color: #315446;
  background: var(--mint-light);
  font-size: 11px;
}

.profile-safety-note > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 750;
}

.profile-safety-note p {
  margin: 0;
}

.care-link-card {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #c7dcd1;
  border-radius: 12px;
  background: var(--mint-light);
}

.care-link-card h3,
.clinician-workflow-card h3 {
  margin: 3px 0 8px;
  font-size: 19px;
}

.care-link-card > p:not(.eyebrow),
.clinician-workflow-card > p:not(.eyebrow) {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.care-link-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.care-link-form label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.care-link-form input {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.care-workflow-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.booking-modal {
  width: min(720px, calc(100vw - 32px));
}

.therapist-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  margin: 26px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.avatar-mei { color: #5c341f; background: #edb292; }
.avatar-lee { color: #2c5a43; background: #b9dfc7; }
.avatar-chan { color: #5e4520; background: #edcf8f; }
.avatar-wong { color: #4c3e66; background: #d2c4e7; }

.therapist-summary strong,
.therapist-summary span {
  display: block;
}

.therapist-summary strong {
  font-size: 14px;
}

.therapist-summary div > span {
  color: var(--muted);
  font-size: 10px;
}

.booking-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
}

.date-options,
.time-options {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.date-options {
  grid-template-columns: repeat(4, 1fr);
}

.time-options {
  grid-template-columns: 1fr 1fr;
}

.date-options button,
.time-options button {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.date-options button.selected,
.time-options button.selected {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.date-options span,
.date-options strong {
  display: block;
}

.date-options span {
  font-size: 9px;
  text-transform: uppercase;
}

.date-options strong {
  font-size: 17px;
}

.time-options button {
  font-size: 12px;
  font-weight: 700;
}

.booking-reason {
  display: block;
  margin: 20px 0;
}

.booking-reason > span {
  display: block;
  margin-bottom: 7px;
}

.booking-footnote {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 9px;
}

.therapist-modal {
  display: grid;
  grid-template-columns: 220px 1fr;
  width: min(1200px, calc(100vw - 32px));
  min-height: min(760px, calc(100vh - 32px));
  overflow: hidden;
  background: var(--cream);
}

.therapist-sidebar {
  display: flex;
  flex-direction: column;
  padding: 27px 20px;
  color: var(--white);
  background: var(--ink);
}

.therapist-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 70px;
}

.therapist-sidebar nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: rgba(255,255,255,.56);
  background: transparent;
  text-align: left;
  font-size: 11px;
  cursor: pointer;
}

.therapist-sidebar nav button.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.therapist-sidebar nav button span {
  color: var(--coral);
  font-size: 15px;
}

.clinician-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.clinician-profile strong,
.clinician-profile span {
  display: block;
}

.clinician-profile strong { font-size: 11px; }
.clinician-profile span { color: rgba(255,255,255,.5); font-size: 9px; }

.therapist-content {
  min-width: 0;
  padding: 38px;
  overflow: auto;
}

.therapist-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 25px;
}

.therapist-heading h2 {
  margin: 0;
  font-size: 40px;
}

.clinician-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.clinician-stats > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}

.clinician-stats span,
.clinician-stats strong,
.clinician-stats em {
  display: block;
}

.clinician-stats span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.clinician-stats strong {
  margin: 10px 0 4px;
  font-family: var(--font-display);
  font-size: 31px;
  letter-spacing: -0.06em;
}

.clinician-stats em {
  color: var(--green);
  font-size: 9px;
  font-style: normal;
}

.clinician-stats em.attention {
  color: var(--coral-dark);
}

.clinician-stats strong.demo-status {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.clinician-access-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid #e5c79d;
  border-radius: 11px;
  color: #715225;
  background: #fff0d2;
  font-size: 12px;
  line-height: 1.5;
}

.clinician-access-message strong,
.clinician-access-message span {
  display: block;
}

.clinician-access-message strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
}

.clinician-auth-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}

.clinician-auth-actions .text-button {
  color: #715225;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.clinician-workflow-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(380px, 1.25fr);
  gap: 14px;
  margin-bottom: 18px;
}

.clinician-workflow-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}

.invite-code-result {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed var(--green);
  border-radius: 9px;
  color: var(--ink);
  background: var(--mint-light);
}

.invite-code-result span,
.invite-code-result strong,
.invite-code-result small {
  display: block;
}

.invite-code-result span,
.invite-code-result small {
  color: var(--muted);
  font-size: 9px;
}

.invite-code-result strong {
  margin: 5px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 25px;
  letter-spacing: 0.14em;
}

#prescriptionForm {
  display: grid;
  gap: 10px;
}

#prescriptionForm label > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

#prescriptionForm textarea {
  min-height: 62px;
  resize: vertical;
}

.prescription-dose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.clinician-patient-row {
  grid-template-columns: 1.2fr 1.5fr 0.7fr 1fr;
}

.clinician-empty-state {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font-size: 11px;
}

.patient-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}

.table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
}

.table-heading strong,
.table-heading span {
  display: block;
}

.table-heading strong { font-size: 13px; }
.table-heading span { color: var(--muted); font-size: 9px; }

.patient-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr .85fr .65fr .8fr;
  gap: 10px;
  align-items: center;
  min-height: 67px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.patient-row-head {
  min-height: 35px;
  color: var(--muted);
  background: var(--cream);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.patient-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.patient-name strong,
.patient-name small {
  display: block;
}

.patient-name strong {
  color: var(--ink);
  font-size: 11px;
}

.patient-name small {
  color: var(--muted);
  font-size: 8px;
}

.mini-trend {
  font-size: 18px;
}

.trend-falling { color: var(--coral-dark); }
.trend-flat { color: #aa8b2d; }
.trend-rising { color: var(--green); }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 340px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 20px 60px rgba(7, 28, 30, .3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .25s, transform .25s;
}

.toast.show {
  opacity: 1;
  transform: none;
}

.toast > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 50%;
  color: #225b3b;
  background: var(--green-light);
  font-weight: 800;
}

.toast p {
  margin: 0;
  color: rgba(255,255,255,.6);
  font-size: 10px;
}

.toast strong {
  display: block;
  color: var(--white);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(410px, 1.1fr);
  }

  .hero-copy {
    padding-left: 4.5vw;
  }

  .hero h1 {
    font-size: clamp(65px, 8.7vw, 104px);
  }

  .journey-grid {
    grid-template-columns: 1fr 1fr;
  }

  .journey-card {
    min-height: 440px;
  }

  .practice-app {
    grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.7fr);
  }

  .progress-layout {
    gap: 4vw;
  }

  .safety-content {
    padding: 80px 6vw;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 76px;
    padding: 0 22px;
  }

  .header-actions .text-button,
  .header-actions .button {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header.is-scrolled .menu-toggle {
    background: rgba(25, 56, 58, 0.08);
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 0;
    visibility: hidden;
    padding: 92px 22px 24px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 20px 50px rgba(14, 42, 43, .2);
    opacity: 0;
    transform: translateY(-20px);
    transition: all .25s ease;
  }

  .mobile-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .mobile-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
  }

  .mobile-nav .mobile-profile-button {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
  }

  .mobile-nav .button {
    margin-top: 18px;
  }

  .clinician-access-message,
  .clinician-auth-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 76px;
  }

  .hero-copy {
    min-height: 650px;
    padding: 100px 7vw 80px;
  }

  .hero h1 {
    font-size: clamp(72px, 15vw, 115px);
  }

  .hero-visual {
    min-height: 680px;
    margin: 0 22px 22px;
  }

  .hero-bottom {
    display: none;
  }

  .manifesto,
  .journey-section,
  .progress-section {
    padding: 85px 7vw 90px;
  }

  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-top: 60px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 35px;
  }

  .practice-section {
    padding: 85px 22px;
  }

  .practice-heading {
    display: block;
    padding: 48px 0 40px;
  }

  .session-readiness {
    width: fit-content;
    margin-top: 28px;
  }

  .practice-app {
    grid-template-columns: 1fr;
  }

  .stage {
    min-height: 620px;
  }

  .progress-layout {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .dashboard-preview {
    transform: none;
  }

  .safety-section {
    grid-template-columns: 1fr;
  }

  .safety-orbit {
    min-height: 590px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    grid-column: 1 / -1;
  }

  .therapist-modal {
    grid-template-columns: 80px 1fr;
  }

  .therapist-sidebar {
    padding: 20px 13px;
  }

  .therapist-sidebar .brand > span:last-child,
  .therapist-sidebar nav button:not(.active) {
    display: none;
  }

  .therapist-sidebar nav button {
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .therapist-sidebar nav button span {
    font-size: 18px;
  }

  .clinician-profile div:last-child {
    display: none;
  }

  .clinician-workflow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .brand {
    font-size: 17px;
  }

  .hero-copy {
    min-height: 610px;
    padding: 110px 22px 65px;
  }

  .hero h1 {
    margin-bottom: 28px;
    font-size: clamp(62px, 20vw, 91px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 550px;
    margin: 0 12px 12px;
  }

  .tracked-person {
    right: -3%;
    width: 78%;
  }

  .room-window {
    width: 56%;
  }

  .tracking-card-top {
    top: 13%;
  }

  .tracking-card-bottom {
    bottom: 8%;
  }

  .section-kicker {
    grid-template-columns: 40px 1fr;
  }

  .manifesto,
  .journey-section,
  .progress-section {
    padding: 70px 22px 75px;
  }

  .manifesto h2,
  .section-heading h2,
  .progress-story h2,
  .safety-content h2,
  .final-cta h2 {
    font-size: clamp(43px, 13vw, 65px);
  }

  .journey-grid {
    grid-template-columns: 1fr;
  }

  .journey-card {
    min-height: 410px;
  }

  .practice-section {
    padding: 70px 12px;
  }

  .practice-heading {
    padding-right: 10px;
    padding-left: 10px;
  }

  .practice-heading h2 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .exercise-library {
    padding: 22px 16px;
  }

  .exercise-library-heading {
    display: block;
  }

  .exercise-library-status {
    display: inline-block;
    margin-top: 18px;
  }

  .exercise-library-controls {
    grid-template-columns: 1fr;
  }

  .stage {
    min-height: 520px;
  }

  .camera-topbar {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .sound-toggle {
    font-size: 0;
  }

  .sound-toggle span {
    font-size: 13px;
  }

  .panel {
    padding: 24px 18px;
  }

  .side-and-dose {
    grid-template-columns: 1fr;
  }

  .dose-card {
    height: auto;
    min-height: 70px;
  }

  .dashboard-preview {
    padding: 15px;
  }

  .dashboard-top {
    display: block;
  }

  .dashboard-top .status-pill {
    margin-top: 12px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .chart-note {
    grid-template-columns: auto 1fr;
  }

  .chart-note button {
    display: none;
  }

  .safety-orbit {
    min-height: 450px;
  }

  .safety-content {
    padding: 75px 22px;
  }

  .final-cta {
    min-height: 610px;
    padding: 95px 22px;
  }

  .site-footer {
    padding: 58px 22px 25px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .plan-modal,
  .profile-modal,
  .booking-modal {
    padding: 35px 20px 26px;
  }

  .calibration-overlay {
    padding: 16px 12px 48px;
  }

  .calibration-dialog {
    padding: 18px;
  }

  .calibration-dialog h3 {
    font-size: 23px;
  }

  .calibration-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 12px;
  }

  .calibration-actions .button {
    width: 100%;
  }

  .modal-progress {
    margin-bottom: 30px;
  }

  .goal-options,
  .field-grid,
  .booking-columns {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 82px;
  }

  .modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .generated-day {
    grid-template-columns: 43px 1fr;
  }

  .generated-day > em {
    display: none;
  }

  .therapist-summary {
    grid-template-columns: auto 1fr;
  }

  .therapist-summary .status-pill {
    grid-column: 1 / -1;
  }

  .therapist-modal {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 20px);
  }

  .therapist-sidebar {
    display: none;
  }

  .therapist-content {
    padding: 28px 15px;
  }

  .therapist-heading {
    display: block;
  }

  .therapist-heading .button {
    margin-top: 18px;
  }

  .clinician-stats {
    grid-template-columns: 1fr;
  }

  .prescription-dose-grid {
    grid-template-columns: 1fr 1fr;
  }

  .care-link-form {
    grid-template-columns: 1fr;
  }

  .care-link-form label {
    grid-column: auto;
  }

  .patient-table-wrap {
    overflow-x: auto;
  }

  .patient-row {
    width: 720px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Pain check-in ─────────────────────────────────────────── */
.pain-checkin {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--surface-2, #f4f7f6);
  border: 1px solid #d4e4dc;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pain-checkin.hidden { display: none; }
.pain-checkin-context {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pain-checkin-label {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.pain-checkin-label span {
  font-weight: 400;
  color: #666;
}
.pain-checkin-buttons {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.pain-checkin-buttons button {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  border: 1.5px solid #d0d8d4;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.pain-checkin-buttons button:hover {
  background: #e8f4ef;
  border-color: #4caf80;
}
.pain-checkin-buttons button:focus-visible,
.recovery-choices button:focus-visible,
.voice-answer-button:focus-visible {
  outline: 3px solid rgba(22, 101, 82, 0.28);
  outline-offset: 2px;
}
.pain-checkin-buttons button[data-pain="8"],
.pain-checkin-buttons button[data-pain="9"],
.pain-checkin-buttons button[data-pain="10"] {
  border-color: #e8a0a0;
  color: #c0392b;
}
.recovery-choices.hidden { display: none; }
.recovery-choices p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.recovery-choices > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.recovery-choices button {
  min-height: 2.6rem;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid #c8d8d0;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: 700 0.82rem/1.2 var(--font-body);
  cursor: pointer;
}
.voice-checkin-status {
  min-height: 1.25rem;
  margin: 0;
  color: #4f6159;
  font-size: 0.82rem;
}
.pain-checkin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}
.voice-answer-button {
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--green);
  color: var(--green);
  background: #fff;
}
.voice-answer-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pain-safety-note {
  color: #68766f;
  font-size: 0.75rem;
  line-height: 1.45;
}
#painSkip {
  font-size: 0.8rem;
  color: #888;
  align-self: flex-start;
}

/* ── Role-specific Gemini assistant ───────────────────────── */
.agent-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 89;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink-deep);
  box-shadow: 0 14px 40px rgba(6, 24, 25, 0.28);
  font: 700 14px/1 var(--font-body);
  cursor: pointer;
}

.agent-chat-launcher span {
  color: var(--coral);
  font-size: 18px;
}

.agent-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 82px;
  z-index: 90;
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto auto auto;
  width: min(390px, calc(100vw - 32px));
  height: min(590px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid rgba(23, 56, 58, 0.12);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(6, 24, 25, 0.3);
}

.agent-chat-panel[hidden] {
  display: none;
}

.agent-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 20px 17px;
  color: var(--white);
  background: var(--ink-deep);
}

.agent-chat-header span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.agent-chat-header h2 {
  margin: 0;
  color: inherit;
  font-size: 19px;
}

.agent-chat-header button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.agent-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 18px;
}

.agent-chat-message {
  max-width: 88%;
  margin: 0;
  padding: 11px 13px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.agent-chat-message-assistant {
  align-self: flex-start;
  color: var(--ink);
  background: #e8f1eb;
  border-bottom-left-radius: 5px;
}

.agent-chat-message-user {
  align-self: flex-end;
  color: var(--white);
  background: var(--ink);
  border-bottom-right-radius: 5px;
}

.agent-chat-message-error {
  align-self: flex-start;
  color: #8c2c21;
  background: #fbe8e4;
}

.agent-chat-status {
  min-height: 18px;
  margin: 0;
  padding: 0 18px;
  color: #637172;
  font-size: 11px;
}

.agent-chat-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 10px 14px 8px;
  border-top: 1px solid var(--line);
}

.agent-chat-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.agent-chat-form textarea {
  min-height: 46px;
  max-height: 100px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  font: 14px/1.35 var(--font-body);
}

.agent-chat-form .button {
  align-self: end;
  min-height: 46px;
  padding: 0 17px;
}

.agent-chat-voice {
  align-self: end;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--green);
  background: var(--white);
  font-size: 18px;
  cursor: pointer;
}

.agent-chat-voice:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.agent-chat-disclaimer {
  margin: 0;
  padding: 0 16px 13px;
  color: #6c7778;
  font-size: 10px;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .agent-chat-launcher {
    right: 14px;
    bottom: 14px;
  }

  .agent-chat-panel {
    right: 8px;
    bottom: 72px;
    width: calc(100vw - 16px);
    height: min(620px, calc(100vh - 88px));
  }
}
