:root {
  color-scheme: light;
  --forest-950: #0b2822;
  --forest-900: #123a31;
  --forest-800: #17493d;
  --forest-700: #1e5d4d;
  --sage-500: #75a88f;
  --sage-300: #b8d5c6;
  --sage-100: #e8f2ec;
  --cream-50: #fbfaf5;
  --cream-100: #f5f1e8;
  --ink-900: #18231f;
  --ink-700: #42504a;
  --ink-500: #69756f;
  --line: #dce5df;
  --coral: #e36d55;
  --coral-soft: #fbe6df;
  --white: #ffffff;
  --shadow-sm: 0 10px 30px rgba(24, 55, 45, 0.07);
  --shadow-lg: 0 30px 80px rgba(11, 40, 34, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--cream-50);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 95% 0%, rgba(184, 213, 198, 0.3), transparent 32rem),
    var(--cream-50);
}

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

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
dialog:focus-visible {
  outline: 3px solid rgba(227, 109, 85, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--white);
  background: var(--forest-900);
  transform: translateY(-160%);
}

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

.landing-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(184, 213, 198, 0.3), transparent 27rem),
    var(--cream-50);
}

.landing-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
}

.landing-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  color: var(--forest-950);
  text-decoration: none;
}

.landing-brand__mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: var(--forest-800);
  font-size: 0.72rem;
  font-weight: 850;
}

.landing-brand__mark svg {
  width: 29px;
  fill: none;
  stroke: var(--sage-300);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.landing-brand strong,
.landing-brand small {
  display: block;
}

.landing-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.landing-brand small {
  margin-top: 1px;
  color: var(--forest-700);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 29px;
}

.landing-nav a {
  color: var(--ink-700);
  font-size: 0.76rem;
  font-weight: 720;
  text-decoration: none;
}

.landing-header__cta,
.landing-primary,
.landing-secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border-radius: 13px;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.landing-header__cta {
  width: fit-content;
  justify-self: end;
  color: var(--white);
  background: var(--forest-800);
  box-shadow: 0 10px 28px rgba(23, 73, 61, 0.18);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  width: min(1280px, calc(100% - 48px));
  min-height: 680px;
  margin: 0 auto;
  padding: 70px 0 90px;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest-700);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px var(--coral-soft);
}

.landing-hero h1 {
  max-width: 650px;
  margin: 22px 0 22px;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.45rem, 6vw, 6.25rem);
  font-weight: 520;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.landing-hero__copy > p {
  max-width: 600px;
  margin: 0;
  color: var(--ink-700);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.65;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 32px;
}

.landing-primary {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 14px 30px rgba(227, 109, 85, 0.22);
}

.landing-primary::after {
  content: "→";
  margin-left: 11px;
  font-size: 1rem;
}

.landing-secondary {
  border: 1px solid var(--line);
  color: var(--forest-800);
  background: rgba(255, 255, 255, 0.7);
}

.landing-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
  color: var(--ink-500);
  font-size: 0.68rem;
  font-weight: 720;
}

.landing-assurance span::before {
  content: "✓";
  margin-right: 6px;
  color: var(--forest-700);
  font-weight: 900;
}

.product-scene {
  position: relative;
  min-height: 520px;
}

.product-scene__glow {
  position: absolute;
  inset: 8% 0 0 12%;
  border-radius: 44% 56% 50% 50%;
  background: linear-gradient(145deg, rgba(184, 213, 198, 0.6), rgba(232, 242, 236, 0));
  filter: blur(1px);
  transform: rotate(-7deg);
}

.product-window {
  position: absolute;
  z-index: 2;
  inset: 72px 12px 64px 34px;
  overflow: hidden;
  border: 8px solid var(--forest-950);
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 42px 90px rgba(11, 40, 34, 0.25);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}

.product-window__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 11px 17px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 0.68rem;
  font-weight: 780;
}

.mini-brand {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: var(--forest-800);
  font-size: 0.59rem;
}

.mini-live {
  padding: 5px 7px;
  border-radius: 999px;
  color: #934f3e;
  background: var(--coral-soft);
  font-size: 0.52rem;
}

.product-window__body {
  display: grid;
  grid-template-columns: 58px 1fr;
  min-height: 330px;
}

.mini-sidebar {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 16px;
  padding-top: 24px;
  background: var(--forest-900);
}

.mini-sidebar i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
}

.mini-sidebar i:first-child {
  background: var(--sage-300);
}

.mini-dashboard {
  padding: 35px 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(184, 213, 198, 0.35), transparent 15rem),
    var(--cream-50);
}

.mini-kicker {
  color: var(--forest-700);
  font-size: 0.52rem;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.mini-dashboard > strong {
  display: block;
  margin-top: 10px;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
}

.mini-dashboard > p {
  margin: 3px 0 22px;
  color: var(--ink-500);
  font-size: 0.69rem;
}

.mini-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.mini-card-row span {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-500);
  background: var(--white);
  font-size: 0.58rem;
}

.mini-card-row b {
  display: block;
  margin-bottom: 2px;
  color: var(--forest-800);
  font-size: 1rem;
}

.mini-appointment {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.mini-appointment > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--forest-800);
  font-family: Georgia, serif;
  font-size: 1rem;
}

.mini-appointment b,
.mini-appointment small {
  display: block;
}

.mini-appointment b {
  font-size: 0.67rem;
}

.mini-appointment small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 0.54rem;
}

.mini-appointment > i {
  padding: 5px 7px;
  border-radius: 999px;
  color: var(--forest-700);
  background: var(--sage-100);
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 800;
}

.floating-note {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(11, 40, 34, 0.16);
  backdrop-filter: blur(12px);
}

.floating-note--top {
  top: 30px;
  right: 0;
}

.floating-note--bottom {
  bottom: 18px;
  left: 0;
}

.floating-note > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--forest-800);
  background: var(--sage-100);
  font-weight: 850;
}

.floating-note strong,
.floating-note small {
  display: block;
}

.floating-note strong {
  font-size: 0.67rem;
}

.floating-note small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 0.55rem;
}

.landing-value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.landing-value-strip article {
  padding: 23px 27px;
}

.landing-value-strip article + article {
  border-left: 1px solid var(--line);
}

.landing-value-strip strong,
.landing-value-strip span {
  display: block;
}

.landing-value-strip strong {
  margin-bottom: 5px;
  color: var(--forest-900);
  font-family: Georgia, serif;
  font-size: 0.96rem;
}

.landing-value-strip span {
  color: var(--ink-500);
  font-size: 0.7rem;
  line-height: 1.5;
}

.landing-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 130px 0;
}

.landing-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
}

.landing-section__heading h2,
.landing-cta-section h2,
.safety-panel h2 {
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 4.3vw, 4.25rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.landing-intro > p {
  max-width: 480px;
  align-self: end;
  margin: 0 0 5px;
  color: var(--ink-700);
  font-size: 1rem;
  line-height: 1.7;
}

.journey-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.journey-grid article {
  position: relative;
  min-height: 220px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.journey-grid article::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--sage-100);
}

.journey-grid span,
.role-number {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.journey-grid h3 {
  margin: 48px 0 9px;
  color: var(--forest-900);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.journey-grid p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.76rem;
  line-height: 1.6;
}

.role-section {
  width: auto;
  max-width: none;
  padding-right: max(24px, calc((100% - 1180px) / 2));
  padding-left: max(24px, calc((100% - 1180px) / 2));
  background: var(--cream-100);
}

.landing-section__heading--center {
  max-width: 770px;
  margin: 0 auto 58px;
  text-align: center;
}

.landing-role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.landing-role-card {
  min-height: 440px;
  padding: 25px;
  border-radius: 25px;
  color: var(--white);
  background: var(--forest-900);
}

.landing-role-card--operator {
  color: var(--forest-950);
  background: var(--sage-300);
}

.landing-role-card--participant {
  color: var(--forest-950);
  background: var(--white);
}

.role-illustration {
  position: relative;
  height: 200px;
  margin: 17px 0 23px;
  overflow: hidden;
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 35%, rgba(184, 213, 198, 0.55), transparent 5rem),
    rgba(255, 255, 255, 0.06);
}

.role-illustration i {
  position: absolute;
  border-radius: 50%;
  background: var(--sage-300);
}

.role-illustration i:first-child {
  top: 37px;
  left: calc(50% - 28px);
  width: 56px;
  height: 56px;
}

.role-illustration i:nth-child(2) {
  top: 104px;
  left: calc(50% - 58px);
  width: 116px;
  height: 116px;
  border-radius: 55px 55px 20px 20px;
}

.role-illustration i:nth-child(3) {
  right: 17px;
  bottom: 17px;
  width: 35px;
  height: 35px;
  border: 8px solid rgba(255, 255, 255, 0.7);
  background: var(--coral);
}

.role-illustration--operator {
  background: rgba(255, 255, 255, 0.3);
}

.role-illustration--operator i {
  background: var(--forest-800);
}

.role-illustration--participant {
  border: 1px solid var(--line);
  background: var(--cream-50);
}

.role-illustration--participant i {
  background: var(--sage-500);
}

.landing-role-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: 1.55rem;
}

.landing-role-card p {
  margin: 0;
  color: inherit;
  font-size: 0.78rem;
  line-height: 1.62;
  opacity: 0.72;
}

.safety-section {
  padding-top: 130px;
  padding-bottom: 80px;
}

.safety-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  padding: clamp(40px, 7vw, 82px);
  border-radius: 34px;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0%, rgba(117, 168, 143, 0.35), transparent 26rem),
    var(--forest-950);
}

.landing-kicker--light {
  color: var(--sage-300);
}

.safety-panel p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
  line-height: 1.7;
}

.safety-panel ul {
  display: grid;
  align-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-panel li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  font-weight: 720;
}

.safety-panel li span {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: var(--forest-900);
  background: var(--sage-300);
  font-weight: 900;
}

.landing-cta-section {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 140px;
  text-align: center;
}

.landing-cta-section p {
  max-width: 620px;
  margin: 20px auto 27px;
  color: var(--ink-700);
  line-height: 1.65;
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.landing-brand--footer .landing-brand__mark {
  font-size: 0.65rem;
}

.landing-footer p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.65rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 28px 20px;
  color: rgba(255, 255, 255, 0.84);
  background:
    radial-gradient(circle at 0% 100%, rgba(117, 168, 143, 0.26), transparent 22rem),
    linear-gradient(180deg, var(--forest-950), var(--forest-900));
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 32px;
  color: inherit;
  text-decoration: none;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.brand-lockup small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
  width: 30px;
  fill: none;
  stroke: var(--sage-300);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.side-nav {
  display: grid;
  gap: 7px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 3px 0 var(--coral);
}

.nav-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.1);
}

.sidebar-note strong,
.sidebar-note span {
  display: block;
}

.sidebar-note strong {
  color: var(--white);
  font-size: 0.82rem;
}

.sidebar-note span:not(.status-dot) {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border: 2px solid rgba(184, 213, 198, 0.3);
  border-radius: 50%;
  background: var(--sage-300);
  box-shadow: 0 0 0 4px rgba(184, 213, 198, 0.08);
}

.workspace {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px clamp(24px, 4vw, 58px);
  border-bottom: 1px solid rgba(220, 229, 223, 0.8);
  background: rgba(251, 250, 245, 0.86);
  backdrop-filter: blur(18px);
}

.scope-kicker,
.role-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-500);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scope-button {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  color: var(--ink-900);
  background: transparent;
  opacity: 1;
  text-align: left;
}

.scope-button strong,
.scope-button small {
  display: block;
}

.scope-button strong {
  font-size: 0.94rem;
}

.scope-button small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 0.78rem;
}

.role-switcher {
  text-align: right;
}

.reset-demo-button {
  display: inline-block;
  padding: 2px 0;
  border: 0;
  color: var(--ink-500);
  background: transparent;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: rgba(105, 117, 111, 0.35);
  text-underline-offset: 3px;
}

.topbar-demo-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 7px;
}

.guide-demo-button {
  padding: 2px 0;
  border: 0;
  color: var(--forest-700);
  background: transparent;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 800;
}

.segmented-control {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.segmented-control button {
  padding: 8px 13px;
  border: 0;
  border-radius: 10px;
  color: var(--ink-500);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.segmented-control button[aria-pressed="true"] {
  color: var(--white);
  background: var(--forest-800);
}

.demo-boundary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 24px clamp(24px, 4vw, 58px) 0;
  padding: 14px 17px;
  border: 1px solid #f1c8bb;
  border-radius: 15px;
  background: linear-gradient(90deg, var(--coral-soft), #fff8f4);
}

.demo-boundary__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--coral);
  font-family: Georgia, serif;
  font-weight: 700;
}

.demo-boundary strong {
  font-size: 0.84rem;
}

.demo-boundary p {
  margin: 3px 0 0;
  color: #74544b;
  font-size: 0.76rem;
  line-height: 1.45;
}

.boundary-chip,
.read-only-badge {
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #9b4f3e;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.interactive-badge {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid var(--sage-500);
  border-radius: 999px;
  color: var(--forest-700);
  background: var(--sage-100);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.content {
  padding: 38px clamp(24px, 4vw, 58px) 64px;
}

.hero-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--forest-700);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.hero-panel h1,
.page-heading h1 {
  max-width: 780px;
  margin-bottom: 13px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.hero-panel > div > p,
.page-heading > p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--ink-700);
  font-size: 0.98rem;
  line-height: 1.65;
}

.identity-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-sm);
}

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

.identity-card small {
  color: var(--ink-500);
  font-size: 0.7rem;
}

.identity-card strong {
  margin-top: 3px;
  font-size: 0.88rem;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--forest-900);
  background: var(--sage-100);
  font-size: 0.72rem;
  font-weight: 850;
}

.avatar--large {
  width: 45px;
  height: 45px;
  border-radius: 15px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

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

.metric-card > span {
  color: var(--ink-700);
  font-size: 0.78rem;
  font-weight: 720;
}

.metric-card > strong {
  margin: 14px 0 9px;
  font-family: Georgia, serif;
  font-size: 2.1rem;
  font-weight: 500;
}

.metric-card > small {
  color: var(--ink-500);
  font-size: 0.68rem;
  line-height: 1.4;
}

.metric-card--accent {
  color: var(--white);
  border-color: transparent;
  background:
    radial-gradient(circle at 100% 0%, rgba(184, 213, 198, 0.32), transparent 8rem),
    var(--forest-800);
}

.metric-card--accent > span,
.metric-card--accent > small {
  color: rgba(255, 255, 255, 0.68);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.72fr);
  gap: 22px;
}

.surface-card {
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2,
.focus-card h2,
.principle-card h2,
.boundary-detail h2 {
  margin-bottom: 0;
  font-size: 1.58rem;
}

.section-heading span:not(.eyebrow) {
  display: block;
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 0.74rem;
}

.section-heading--with-boundary {
  align-items: center;
}

.read-only-badge {
  color: var(--forest-700);
  background: var(--sage-100);
}

.text-button {
  padding: 7px 0;
  border: 0;
  color: var(--forest-700);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 750;
}

.appointment-list {
  display: grid;
  gap: 12px;
}

.appointment-list--roomy {
  gap: 15px;
}

.appointment-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream-50);
}

.appointment-card--compact {
  padding: 14px;
  border-color: transparent;
  background: var(--cream-50);
}

.appointment-date {
  display: grid;
  width: 50px;
  height: 54px;
  place-content: center;
  border-radius: 14px;
  color: var(--forest-900);
  background: var(--sage-100);
  text-align: center;
}

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

.appointment-date strong {
  font-family: Georgia, serif;
  font-size: 1.32rem;
  line-height: 1;
}

.appointment-date span {
  margin-top: 3px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.appointment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
  color: var(--ink-500);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.appointment-main h3 {
  margin-bottom: 4px;
  font-size: 0.93rem;
}

.appointment-main p {
  margin-bottom: 0;
  color: var(--ink-500);
  font-size: 0.75rem;
}

.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 9px;
}

.appointment-action-group {
  display: inline-flex;
  gap: 7px;
}

.appointment-card--cancelled {
  opacity: 0.68;
}

.appointment-card--cancelled .appointment-main h3 {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
}

.status-pill--confirmed,
.status-pill--active {
  color: #25624f;
  background: #dff1e8;
}

.status-pill--draft,
.status-pill--pending {
  color: #866221;
  background: #f7edcd;
}

.status-pill--cancelled,
.status-pill--paused {
  color: #94503f;
  background: var(--coral-soft);
}

.focus-card {
  color: rgba(255, 255, 255, 0.78);
  border: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(117, 168, 143, 0.34), transparent 14rem),
    var(--forest-900);
}

.focus-card .eyebrow {
  color: var(--sage-300);
}

.focus-card h2,
.focus-card strong {
  color: var(--white);
}

.focus-card p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.55;
}

.focus-separator {
  height: 1px;
  margin: 22px 0;
  background: rgba(255, 255, 255, 0.13);
}

.small-copy {
  margin-top: 7px;
}

.primary-button,
.secondary-button {
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 780;
}

.danger-text-button {
  min-height: 40px;
  padding: 8px 6px;
  border: 0;
  color: #a34d3d;
  background: transparent;
  cursor: pointer;
  font-size: 0.71rem;
  font-weight: 780;
}

.danger-button {
  min-height: 40px;
  padding: 10px 15px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: #ad513f;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 780;
}

.primary-button {
  width: 100%;
  border: 0;
  color: var(--white);
  background: var(--coral);
  cursor: pointer;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.focus-card > small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.63rem;
}

.secondary-button {
  border: 1px solid var(--forest-700);
  color: var(--forest-800);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
}

.page-heading h1 {
  max-width: 720px;
  margin-bottom: 0;
}

.page-heading > p {
  max-width: 390px;
  padding-bottom: 5px;
  font-size: 0.86rem;
}

.page-heading__actions {
  display: grid;
  max-width: 390px;
  justify-items: end;
  gap: 12px;
  padding-bottom: 5px;
}

.page-heading__actions p {
  margin: 0;
  font-size: 0.86rem;
}

.page-heading__actions .primary-button {
  width: auto;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--ink-500);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--ink-700);
  font-size: 0.78rem;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.person-cell strong,
.person-cell small {
  display: block;
}

.person-cell strong {
  color: var(--ink-900);
}

.person-cell small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 0.65rem;
}

.empty-state {
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--ink-500);
  text-align: center;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.principle-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
}

.principle-card > span {
  display: block;
  margin-bottom: 28px;
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.principle-card p,
.boundary-detail li {
  color: var(--ink-700);
  font-size: 0.82rem;
  line-height: 1.6;
}

.boundary-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1.3fr;
  gap: 40px;
}

.boundary-detail ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.message-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.conversation-list {
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: var(--cream-50);
}

.conversation-list__heading,
.chat-window__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.conversation-list__heading {
  padding: 0 8px 18px;
  font-size: 0.78rem;
}

.conversation-list__heading span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--forest-800);
  background: var(--sage-100);
  font-size: 0.68rem;
  font-weight: 850;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid transparent;
  border-radius: 16px;
}

.conversation-item.is-selected {
  border-color: var(--line);
  background: var(--white);
}

.conversation-item strong,
.conversation-item small,
.chat-window__header strong,
.chat-window__header small {
  display: block;
}

.conversation-item strong,
.chat-window__header strong {
  font-size: 0.78rem;
}

.conversation-item small,
.chat-window__header small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 0.64rem;
}

.chat-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
}

.chat-window__header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(205, 226, 214, 0.48), transparent 19rem),
    var(--white);
}

.chat-message {
  align-self: flex-start;
  max-width: min(78%, 520px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px 18px 18px 18px;
  background: var(--cream-50);
}

.chat-message--own {
  align-self: flex-end;
  color: var(--white);
  border-color: transparent;
  border-radius: 18px 8px 18px 18px;
  background: var(--forest-800);
}

.chat-message strong,
.chat-message time {
  display: block;
  font-size: 0.62rem;
}

.chat-message p {
  margin: 5px 0;
  color: inherit;
  font-size: 0.78rem;
  line-height: 1.5;
}

.chat-message time {
  color: var(--ink-500);
  text-align: right;
}

.chat-message--own time {
  color: rgba(255, 255, 255, 0.62);
}

.chat-composer {
  padding: 16px 22px 18px;
  border-top: 1px solid var(--line);
  background: var(--cream-50);
}

.chat-composer label,
.chat-composer small {
  display: block;
  color: var(--ink-500);
  font-size: 0.64rem;
}

.chat-composer > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin: 7px 0;
}

.chat-composer textarea {
  width: 100%;
  resize: none;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-500);
  background: var(--white);
  font: inherit;
}

.chat-composer .primary-button {
  width: auto;
}

.messaging-empty {
  display: flex;
  align-items: center;
  gap: 18px;
}

.messaging-empty__mark {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: var(--forest-800);
  background: var(--sage-100);
  font-size: 1.3rem;
}

.messaging-empty h2 {
  margin-bottom: 6px;
}

.messaging-empty p {
  margin: 0;
  font-size: 0.82rem;
}

.demo-guide {
  position: fixed;
  z-index: 45;
  right: 24px;
  bottom: 24px;
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0%, rgba(117, 168, 143, 0.32), transparent 14rem),
    var(--forest-950);
  box-shadow: var(--shadow-lg);
}

.demo-guide > header,
.demo-guide > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
}

.demo-guide > header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-guide > header span {
  color: var(--sage-300);
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.demo-guide > header button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

.demo-guide__body {
  padding: 23px 22px;
}

.demo-guide__eyebrow {
  color: var(--coral);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-guide h2 {
  margin: 10px 0 8px;
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.08;
}

.demo-guide p {
  margin: 0 0 13px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  line-height: 1.55;
}

.demo-guide__body small {
  display: block;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--sage-300);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.66rem;
  line-height: 1.45;
}

.demo-guide > footer {
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-guide > footer .secondary-button {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}

.demo-guide > footer .primary-button {
  width: auto;
}

.demo-guide > footer button:disabled {
  opacity: 0.42;
}

.is-tour-highlight {
  position: relative;
  z-index: 2;
  outline: 3px solid var(--coral) !important;
  outline-offset: 4px;
  animation: tour-pulse 1.6s ease-in-out infinite;
}

@keyframes tour-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(227, 109, 85, 0.25);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(227, 109, 85, 0);
  }
}

.form-dialog,
.confirm-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 28px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  color: var(--ink-900);
  background: var(--cream-50);
  box-shadow: var(--shadow-lg);
}

.confirm-dialog {
  width: min(470px, calc(100vw - 28px));
}

.form-dialog::backdrop,
.confirm-dialog::backdrop {
  background: rgba(8, 29, 24, 0.72);
  backdrop-filter: blur(5px);
}

.form-dialog__panel,
.confirm-dialog__panel {
  position: relative;
  padding: clamp(24px, 5vw, 42px);
}

.form-dialog h2,
.confirm-dialog h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 24px 0;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field > span,
.participant-picker legend {
  color: var(--ink-700);
  font-size: 0.72rem;
  font-weight: 780;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-900);
  background: var(--white);
}

.form-field input:disabled,
.form-field select:disabled {
  color: var(--ink-500);
  background: var(--cream-100);
  opacity: 1;
}

.participant-picker {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.participant-picker legend {
  margin-bottom: 9px;
}

.participant-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
}

.participant-option:has(input:checked) {
  border-color: var(--sage-500);
  background: var(--sage-100);
}

.participant-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--forest-700);
}

.participant-option strong,
.participant-option small {
  display: block;
}

.participant-option strong {
  font-size: 0.78rem;
}

.participant-option small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 0.64rem;
}

.form-error {
  margin: 16px 0 0;
  padding: 11px 13px;
  border-radius: 12px;
  color: #8a402f;
  background: var(--coral-soft);
  font-size: 0.74rem;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}

.dialog-actions .primary-button {
  width: auto;
}

.confirm-dialog__mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 16px;
  color: #9b4f3e;
  background: var(--coral-soft);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.confirm-dialog p {
  color: var(--ink-700);
  font-size: 0.84rem;
  line-height: 1.55;
}

.toast {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--white);
  background: var(--forest-900);
  box-shadow: var(--shadow-lg);
  font-size: 0.78rem;
  font-weight: 720;
}

.toast[data-tone="error"] {
  background: #8f4233;
}

.toast[data-tone="warning"] {
  background: #76581f;
}

.waiting-room {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: var(--ink-900);
  background: var(--cream-50);
  box-shadow: var(--shadow-lg);
}

.waiting-room::backdrop {
  background: rgba(8, 29, 24, 0.7);
  backdrop-filter: blur(5px);
}

.waiting-room__panel {
  position: relative;
  padding: clamp(24px, 6vw, 44px);
}

.waiting-room h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.dialog-lead,
.boundary-message {
  color: var(--ink-700);
  font-size: 0.84rem;
  line-height: 1.55;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 1.3rem;
}

.device-preview {
  display: grid;
  min-height: 170px;
  margin: 24px 0 16px;
  place-content: center;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.64);
  background:
    radial-gradient(circle at 50% 20%, rgba(117, 168, 143, 0.35), transparent 10rem),
    var(--forest-950);
  text-align: center;
  font-size: 0.74rem;
}

.device-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  place-items: center;
  border-radius: 20px;
  color: var(--forest-900);
  background: var(--sage-300);
  font-weight: 850;
}

.device-checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.device-checks div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 0.67rem;
  text-align: center;
}

.device-checks span {
  color: var(--forest-700);
  font-weight: 900;
}

.boundary-message {
  padding: 12px;
  border-radius: 12px;
  background: var(--sage-100);
}

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

  .landing-nav {
    display: none;
  }

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

  .landing-hero__copy {
    max-width: 760px;
  }

  .product-scene {
    width: min(720px, 100%);
    margin: 0 auto;
  }

  .landing-intro {
    gap: 36px;
  }

  .journey-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-role-card {
    min-height: 405px;
  }

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

  .app-shell {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 14px;
  }

  .brand-lockup {
    justify-content: center;
    padding-inline: 0;
  }

  .brand-lockup > span:last-child,
  .nav-item > span:last-child,
  .sidebar-note > div {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding-inline: 0;
  }

  .sidebar-note {
    justify-content: center;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .landing-header,
  .landing-hero,
  .landing-value-strip,
  .landing-section,
  .landing-cta-section,
  .landing-footer {
    width: min(100% - 32px, 680px);
  }

  .landing-header {
    gap: 12px;
    padding: 16px 0;
  }

  .landing-header__cta {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.66rem;
  }

  .landing-brand__mark {
    width: 38px;
    height: 38px;
  }

  .landing-brand strong {
    font-size: 1.05rem;
  }

  .landing-hero {
    min-height: auto;
    gap: 26px;
    padding: 60px 0 54px;
  }

  .landing-hero h1 {
    font-size: clamp(3.2rem, 15vw, 5.2rem);
  }

  .landing-actions {
    display: grid;
  }

  .landing-primary,
  .landing-secondary {
    width: 100%;
  }

  .landing-assurance {
    display: grid;
    gap: 9px;
  }

  .product-scene {
    min-height: 400px;
  }

  .product-window {
    inset: 56px 0 42px 0;
    border-width: 6px;
    border-radius: 24px;
    transform: none;
  }

  .product-window__bar {
    min-height: 50px;
  }

  .product-window__body {
    grid-template-columns: 45px 1fr;
    min-height: 282px;
  }

  .mini-dashboard {
    padding: 25px 17px;
  }

  .mini-dashboard > strong {
    font-size: 1.35rem;
  }

  .floating-note--top {
    top: 8px;
    right: 7px;
  }

  .floating-note--bottom {
    display: none;
  }

  .landing-value-strip {
    grid-template-columns: 1fr;
  }

  .landing-value-strip article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .landing-section {
    padding: 86px 0;
  }

  .landing-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .journey-grid {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .journey-grid article {
    min-height: 185px;
  }

  .landing-role-grid {
    grid-template-columns: 1fr;
  }

  .landing-role-card {
    min-height: auto;
  }

  .safety-section {
    padding-top: 86px;
    padding-bottom: 45px;
  }

  .safety-panel {
    gap: 35px;
    padding: 32px 24px;
    border-radius: 25px;
  }

  .landing-cta-section {
    padding: 65px 0 90px;
  }

  .landing-footer {
    display: grid;
    justify-items: start;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 20;
    inset: auto 0 0;
    display: block;
    min-height: auto;
    padding: 8px 12px max(8px, env(safe-area-inset-bottom));
    background: var(--forest-950);
  }

  .brand-lockup,
  .sidebar-note {
    display: none;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .nav-item {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 5px;
    font-size: 0.58rem;
  }

  .nav-item > span:last-child {
    display: block;
  }

  .nav-icon {
    width: 25px;
    height: 25px;
  }

  .nav-item.is-active {
    box-shadow: inset 0 -2px var(--coral);
  }

  .topbar {
    display: block;
    padding: 17px 18px;
  }

  .role-switcher {
    margin-top: 16px;
    text-align: left;
  }

  .reset-demo-button {
    margin-left: 0;
  }

  .topbar-demo-actions {
    justify-content: flex-start;
  }

  .segmented-control {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .segmented-control button {
    padding-inline: 5px;
    font-size: 0.68rem;
  }

  .demo-boundary {
    grid-template-columns: auto 1fr;
    margin: 16px 16px 0;
  }

  .boundary-chip {
    display: none;
  }

  .content {
    padding: 28px 16px 96px;
  }

  .hero-panel,
  .page-heading {
    display: block;
  }

  .identity-card {
    width: 100%;
    margin-top: 20px;
  }

  .page-heading > p {
    margin-top: 14px;
  }

  .page-heading__actions {
    max-width: none;
    margin-top: 14px;
    justify-items: start;
  }

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

  .metric-card {
    padding: 18px;
  }

  .appointment-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .appointment-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    align-items: center;
  }

  .appointment-action-group {
    margin-left: auto;
  }

  .boundary-detail {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .message-shell {
    grid-template-columns: 1fr;
    min-height: 620px;
  }

  .conversation-list {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .conversation-list__heading {
    padding-bottom: 10px;
  }

  .chat-thread {
    padding: 16px;
  }

  .chat-message {
    max-width: 88%;
  }

  .device-checks {
    grid-template-columns: 1fr;
  }

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

  .form-field--wide {
    grid-column: auto;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dialog-actions button,
  .dialog-actions .primary-button {
    width: 100%;
  }

  .toast {
    right: 16px;
    bottom: 86px;
  }

  .demo-guide {
    right: 16px;
    bottom: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
