@font-face {
  font-family: Inter;
  src: url("./fonts/Inter-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #12352f;
  --action: #08756b;
  --mint: #dcf4e8;
  --green: #dcf4e8;
  --paper: #f7faf6;
  --line: #cad9d0;
  --muted: #52675f;
  --dark: #12352f;
  --white: #fff;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
pre:focus-visible {
  outline: 3px solid #08756b;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.topbar {
  max-width: none;
  margin: 0;
  padding: 24px 4.5%;
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.wordmark {
  font-size: 34px;
  letter-spacing: -2.3px;
  font-weight: 900;
  text-decoration: none;
}
.wordmark span {
  font-size: 10px;
  letter-spacing: 0;
  vertical-align: top;
  display: inline-block;
  margin: 6px 0 0 3px;
}
.nav-home {
  text-decoration: none;
  font-size: 13px;
}
.environment {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: auto;
  color: var(--muted);
}
main {
  max-width: 1480px;
  margin: auto;
  padding: 48px 4.5%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  letter-spacing: -1.8px;
  line-height: 1.08;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.7px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.6;
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.small {
  font-size: 12px;
  line-height: 1.6;
}
.button {
  border: 0;
  border-radius: 7px;
  padding: 14px 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}
.primary {
  background: var(--ink);
  color: white;
}
.primary:hover {
  background: #08756b;
}
.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.text-link {
  background: none;
  border: 0;
  color: var(--ink);
  text-decoration: none;
  padding: 0;
  font-size: 13px;
}
.text-link:hover {
  text-decoration: underline;
}
.dot {
  width: 6px;
  height: 6px;
  background: #08756b;
  border-radius: 50%;
  display: inline-block;
}
.home-copy h1 {
  font-size: clamp(42px, 5vw, 70px);
  margin: 26px 0;
}
.home-copy h1 em {
  font-style: normal;
  color: #75866a;
}
.home-copy > p {
  max-width: 470px;
  font-size: 16px;
}
.home-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 28px 0 16px;
}
#home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  padding-top: 80px;
}
.home-art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 400px;
  background: radial-gradient(ellipse, #dcf4e8 0, transparent 68%);
}
.art-app {
  background: var(--dark);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 22px 16px;
  border-radius: 15px;
  box-shadow: 0 20px 40px #173e3517;
}
.art-app .eyebrow {
  font-size: 8px;
}
.art-app strong {
  font-family: var(--mono);
  font-size: 36px;
}
.art-app code {
  font-size: 10px;
}
.art-line {
  font-size: 26px;
  margin: 0 12px;
  color: #08756b;
}
.art-service {
  font-size: 45px;
  letter-spacing: -4px;
  font-weight: 900;
}
.art-service span {
  color: #08756b;
}
.mini-phone {
  width: 163px;
  height: 294px;
  border: 5px solid #12352f;
  background: white;
  border-radius: 26px;
  padding: 30px 9px 10px;
  position: relative;
  transform: rotate(5deg);
  box-shadow: 0 22px 30px #173e351a;
}
.island {
  display: block;
  width: 55px;
  height: 13px;
  border-radius: 30px;
  background: #12352f;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.mini-brand {
  display: block;
  font-size: 10px;
  text-align: center;
  margin: 10px 0 30px;
}
.mini-bubble {
  font-size: 13px;
  background: #dcf4e8;
  border-radius: 10px;
  padding: 18px 12px;
  line-height: 1.6;
}
.mini-bubble span {
  display: block;
  margin-top: 20px;
}
.mini-reply {
  font-size: 11px;
  float: right;
  background: #12352f;
  color: white;
  border-radius: 10px;
  padding: 12px;
  margin-top: 15px;
}
.art-caption {
  position: absolute;
  bottom: 0;
  font-size: 11px;
  color: var(--muted);
}
.home-features {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  gap: 32px;
}
.home-features b {
  font-size: 12px;
}
.home-features p {
  font-size: 13px;
  margin-top: 10px;
}
#auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 650px;
}
.auth-copy h1 {
  font-size: 52px;
  margin-top: 24px;
}
.auth-copy > p {
  max-width: 400px;
}
.auth-copy .small {
  margin-top: 32px;
}
.auth-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.auth-card .small {
  max-width: 360px;
  text-align: center;
}
#notice {
  padding: 12px 4.5%;
  font-size: 13px;
  background: #dcf4e8;
}
#notice.error {
  background: #f5e4d8;
}
.hub-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 24px;
}
.hub-heading h1 {
  font-size: 34px;
  margin: 15px 0 10px;
}
.hub-heading p {
  margin: 0;
  font-size: 14px;
}
.identity-badge {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 11px;
  white-space: nowrap;
}
.wizard {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.wizard button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 17px 24px 17px 0;
  margin-right: 30px;
  color: var(--muted);
  background: none;
  border-radius: 0;
  font-size: 12px;
}
.wizard button span {
  margin-right: 8px;
  font-family: var(--mono);
  font-size: 10px;
}
.wizard button.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 700;
}
.studio {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
}
.config-panel {
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.config-panel h2 {
  font-size: 19px;
  margin: 12px 0 22px;
}
.segmented {
  display: flex;
  background: #f7faf6;
  padding: 4px;
  border-radius: 7px;
}
.segmented button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 5px;
  padding: 9px 5px;
  color: var(--muted);
  font-size: 12px;
}
.segmented button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.config-panel label:not(.check) {
  font-size: 11px;
  font-weight: 700;
  display: block;
  margin: 18px 0 8px;
}
.config-panel select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 11px 9px;
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font-size: 12px;
}
.config-panel .small {
  margin: 10px 0 18px;
}
.config-panel fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
  margin: 24px 0 0;
}
.config-panel legend {
  font-size: 11px;
  font-weight: 700;
  padding: 0 0 10px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 12px 0;
  line-height: 1.5;
}
.check input {
  width: 14px;
  height: 14px;
  accent-color: var(--ink);
  margin: 0;
}
.config-panel > .primary {
  width: 100%;
  margin-top: 20px;
}
.stage-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #dcf4e8;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.stage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 26px;
}
.live-pill {
  border: 1px solid #cad9d0;
  border-radius: 20px;
  padding: 6px 9px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.journey-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 10px 28px 28px;
  min-height: 425px;
  flex: 1;
}
.app-node {
  width: 140px;
  flex-shrink: 0;
  background: var(--dark);
  border-radius: 12px;
  padding: 20px 15px;
  color: white;
  box-shadow: 0 16px 30px #173e3514;
}
.node-icon {
  display: block;
  font-size: 27px;
  font-family: var(--mono);
  color: #dcf4e8;
  margin-bottom: 28px;
}
.app-node strong {
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
}
.app-node > span:last-of-type {
  font-size: 10px;
  color: #a9bdb0;
  line-height: 1.5;
  display: block;
}
.server-lines {
  display: flex;
  gap: 5px;
  margin-top: 25px;
}
.server-lines i {
  height: 3px;
  width: 22px;
  background: #436459;
  border-radius: 4px;
}
.app-node.receiving .server-lines i {
  background: var(--green);
}
.transport {
  width: 100%;
  max-width: 165px;
  min-width: 80px;
  display: grid;
  grid-template-columns: minmax(4px, 1fr) auto minmax(4px, 1fr);
  align-items: center;
  position: relative;
  gap: 18px 4px;
}
.track {
  height: 1px;
  flex: 1;
  background: #52675f;
  position: relative;
}
.service-node {
  background: var(--green);
  color: #12352f;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.route-label {
  grid-column: 1 / -1;
  position: static;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  color: #52675f;
}
#return-label {
  grid-row: 3;
}
.conversation-panel {
  margin: 0 26px 22px;
  padding: 20px;
  border: 1px solid #cad9d0;
  border-radius: 12px;
  background: #f7faf6;
}
.conversation-panel h3 {
  margin: 8px 0;
  font-size: 20px;
}
.conversation-panel p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 65ch;
}
.conversation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.packet {
  display: none;
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #08756b;
  box-shadow: 0 0 0 4px #08756b26;
}
.flow-out .packet {
  display: block;
  animation: outbound 1.2s linear infinite;
}
.flow-back .packet {
  display: block;
  animation: outbound 1.2s linear infinite reverse;
  background: #8f6233;
}
.paused .packet {
  animation-play-state: paused;
}
.phone {
  width: 248px;
  flex-shrink: 0;
  min-height: 405px;
  border: 6px solid #12352f;
  border-radius: 32px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 28px #173e3520;
  position: relative;
}
.phone-top {
  height: 35px;
  display: flex;
  justify-content: space-between;
  padding: 9px 18px;
  font-size: 8px;
  color: #12352f;
}
.phone-top .island {
  top: 8px;
}
.phone-contact {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px 12px;
  border-bottom: 1px solid #e7eae2;
}
.back-arrow {
  font-size: 25px;
  color: #7a8b7c;
}
.avatar {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.phone-contact strong {
  font-size: 11px;
  display: block;
}
.phone-contact div > span {
  font-size: 8px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.phone-inbox {
  padding: 14px 10px;
  min-height: 267px;
  max-height: 380px;
  overflow: auto;
  scrollbar-width: thin;
}
.empty-inbox {
  text-align: center;
  margin: 55px 16px;
  color: #879380;
}
.empty-inbox > span {
  display: block;
  font-size: 27px;
  margin-bottom: 14px;
}
.empty-inbox strong {
  font-size: 11px;
}
.empty-inbox p {
  font-size: 10px;
  margin-top: 8px;
}
.phone-composer {
  margin: 0 10px 12px;
  border: 1px solid #e4e9de;
  border-radius: 15px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  color: #8f998d;
  font-size: 10px;
}
.message-bubble {
  background: #edf2e5;
  border-radius: 12px;
  padding: 12px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  animation: appear 0.35s ease;
}
.message-bubble .media-art {
  height: 105px;
  background: #d1dcc0;
  border-radius: 7px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  overflow: hidden;
}
.media-art:before {
  content: "";
  width: 81px;
  height: 54px;
  background: #567a50;
  border: 2px solid #37583e;
  border-radius: 10px 10px 14px 14px;
  box-shadow: 15px 15px 0 #b3c498;
  transform: rotate(-7deg);
}
.media-art:after {
  content: "";
  width: 30px;
  height: 17px;
  border: 4px solid #37583e;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  position: absolute;
  top: 16px;
  transform: rotate(-7deg);
}
.message-bubble h4 {
  font-size: 12px;
  line-height: 1.4;
  margin: 5px 0;
}
.message-bubble p {
  font-size: 10px;
  line-height: 1.5;
  margin: 0;
  color: #45634f;
}
.carousel {
  display: flex;
  gap: 7px;
  overflow: auto;
  scroll-snap-type: x mandatory;
}
.carousel .message-bubble {
  flex: 0 0 90%;
  scroll-snap-align: start;
}
.reply-button {
  background: white;
  border: 1px solid #bed19e;
  border-radius: 16px;
  color: #385e2c;
  width: 100%;
  font-size: 10px;
  margin: 10px 0 0;
  padding: 9px 5px;
}
.delivery-label {
  text-align: right;
  font-size: 8px;
  margin: 7px 1px;
  color: #7e8e79;
}
.incoming-bubble {
  background: #294e3b;
  color: white;
  border-radius: 11px 11px 3px 11px;
  padding: 9px 11px;
  margin: 12px 0 0 30px;
  font-size: 11px;
  line-height: 1.5;
  animation: appear 0.35s ease;
}
.phone-note {
  font-size: 9px;
  color: #7b8974;
  margin: 10px 0;
  text-align: center;
}
.step-explanation {
  display: flex;
  gap: 17px;
  padding: 22px 26px;
  border-top: 1px solid #d8e0d0;
  background: #f8faf5;
  min-height: 120px;
}
.step-explanation > span {
  font: 9px var(--mono);
  color: #708366;
  white-space: nowrap;
  padding-top: 4px;
  min-width: 34px;
}
.step-explanation h3 {
  margin-bottom: 6px;
  font-size: 14px;
}
.step-explanation p {
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 570px;
}
.playback {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 26px;
  background: #f8faf5;
}
.playback .button {
  padding: 8px 12px;
  font-size: 11px;
}
.playback > .text-link {
  font-size: 11px;
}
#journey-progress {
  font: 10px var(--mono);
  margin-left: auto;
  color: #77876a;
}
.integration {
  margin-top: 44px;
}
.integration-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 22px;
}
.integration-heading h2 {
  margin: 12px 0 8px;
}
.integration-heading p {
  font-size: 13px;
  margin: 0;
}
.contract-note {
  font-size: 10px;
  color: #7b6d49;
  border: 1px solid #e2dcc9;
  padding: 8px 11px;
  border-radius: 5px;
  white-space: nowrap;
}
.developer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.code-panel {
  background: #122f29;
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
  color: #e6eee1;
}
.code-tabs {
  display: flex;
  gap: 20px;
  padding: 15px 20px;
  border-bottom: 1px solid #315047;
}
.code-tabs button {
  background: none;
  border: 0;
  color: #90aa9c;
  font-size: 11px;
  padding: 5px 0;
  border-radius: 0;
}
.code-tabs button[aria-pressed="true"] {
  color: var(--green);
}
#copy-code {
  margin-left: auto;
  color: #bccdbf;
}
.endpoint {
  padding: 17px 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 11px var(--mono);
}
.endpoint b {
  font-size: 9px;
  color: var(--green);
}
pre {
  font: 11px/1.75 var(--mono);
  margin: 0;
  padding: 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 330px;
  overflow: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
}
.code-note {
  font-size: 10px;
  color: #93a99b;
  margin: 0;
  padding: 5px 20px 20px;
}
.webhook-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}
.inbox-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 0;
  gap: 12px;
}
.inbox-heading h3 {
  font-size: 14px;
  margin: 0;
}
.inbox-heading h3 span {
  font: 10px var(--mono);
  background: #edf1e6;
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: 5px;
}
.ephemeral {
  font-size: 9px;
  color: #819078;
}
.webhook-panel > .small {
  padding: 0 20px;
  margin: 12px 0;
}
.webhook-content {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  border-top: 1px solid var(--line);
  min-height: 255px;
}
.webhook-content pre {
  font-size: 9px;
  padding: 16px;
  max-height: 290px;
  background: #f8faf5;
}
#webhook-list {
  border-right: 1px solid var(--line);
  max-height: 290px;
  overflow: auto;
  padding: 7px;
}
.empty-events {
  font-size: 11px;
  padding: 10px;
}
.event-item {
  padding: 11px 7px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font: 9px var(--mono);
  color: #65805e;
  overflow-wrap: anywhere;
  margin-bottom: 3px;
}
.event-item[aria-pressed="true"] {
  background: #e7efdc;
  color: #204b30;
}
.event-item small {
  display: block;
  font:
    8px Arial,
    sans-serif;
  color: #829576;
  margin-top: 5px;
}
.webhook-ack {
  font: 9px/1.7 var(--mono);
  border-top: 1px solid var(--line);
  padding: 12px 17px;
  overflow-wrap: anywhere;
}
.webhook-ack span {
  font-weight: 700;
  margin-right: 5px;
}
.webhook-ack b {
  color: #54813c;
  font-size: 9px;
}
.takeaway {
  display: flex;
  gap: 35px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  align-items: start;
}
.takeaway strong {
  font-size: 13px;
  max-width: 280px;
  line-height: 1.7;
  flex: 1;
}
.takeaway p {
  font-size: 12px;
  flex: 2;
  margin: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  max-width: none;
  padding: 25px 4.5%;
  font-size: 11px;
  color: #7c8975;
  border: 0;
  margin: 0;
}
footer a {
  text-decoration: none;
}
.packet {
  pointer-events: none;
}
@keyframes outbound {
  from {
    left: 0;
  }
  to {
    left: 100%;
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1450px) {
  .journey-stage {
    gap: 10px;
  }
  .transport {
    max-width: 220px;
  }
  .phone {
    width: 270px;
  }
  .app-node {
    width: 170px;
  }
}
@media (max-width: 1100px) {
  .studio {
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 16px;
  }
  .config-panel {
    padding: 20px;
  }
  .journey-stage {
    padding: 10px 15px 25px;
  }
  .app-node {
    width: 105px;
    padding: 16px 10px;
  }
  .transport {
    min-width: 70px;
  }
  .phone {
    width: 220px;
  }
  .service-node {
    width: 48px;
    height: 48px;
    font-size: 12px;
  }
  .integration-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .art-service,
  .home-art > .art-line:nth-of-type(2) {
    display: none;
  }
  .webhook-content {
    grid-template-columns: 115px minmax(0, 1fr);
  }
}
@media (max-width: 850px) {
  #home {
    grid-template-columns: 1fr;
    padding-top: 45px;
    gap: 25px;
  }
  .home-art {
    min-height: 350px;
  }
  .home-copy h1 {
    font-size: 54px;
  }
  .home-features {
    gap: 20px;
  }
  .studio {
    grid-template-columns: 1fr;
  }
  .config-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 22px;
  }
  .config-panel > .eyebrow,
  .config-panel > h2,
  .config-panel > .primary,
  .config-panel > .small:last-child {
    grid-column: 1/-1;
  }
  .config-panel > h2 {
    margin-bottom: 10px;
  }
  .config-panel > * {
    grid-column: 1/-1;
  }
  .config-panel fieldset {
    margin-top: 10px;
  }
  .journey-stage {
    padding: 10px 30px 28px;
    gap: 10px;
  }
  .transport {
    max-width: 180px;
  }
  .app-node {
    width: 140px;
  }
  .phone {
    width: 245px;
  }
  .developer-grid {
    grid-template-columns: 1fr;
  }
  .wizard button {
    font-size: 11px;
    margin-right: 15px;
    padding-right: 5px;
  }
  #auth {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .auth-copy h1 {
    font-size: 40px;
  }
  .auth-copy .small {
    margin-top: 18px;
  }
  .hub-heading {
    align-items: start;
  }
  .identity-badge {
    white-space: normal;
    max-width: 140px;
  }
  .hub-heading h1 {
    font-size: 29px;
  }
}
@media (max-width: 520px) {
  .topbar {
    padding: 18px 20px;
    gap: 18px;
  }
  .wordmark {
    font-size: 29px;
  }
  .environment {
    font-size: 8px;
    max-width: 95px;
    text-align: right;
  }
  .nav-home {
    font-size: 11px;
  }
  main {
    padding: 30px 18px;
  }
  .home-copy h1 {
    font-size: 43px;
  }
  .home-copy > p {
    font-size: 14px;
  }
  .home-actions {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .home-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .home-art {
    min-height: 330px;
  }
  .home-art .art-app {
    padding: 18px 12px;
  }
  .hub-heading {
    display: block;
  }
  .identity-badge {
    display: inline-block;
    margin-top: 18px;
    max-width: none;
  }
  .wizard {
    gap: 7px;
    justify-content: space-between;
  }
  .wizard button {
    font-size: 10px;
    line-height: 1.5;
    text-align: left;
    max-width: 110px;
    margin: 0;
    padding: 12px 2px;
  }
  .wizard button span {
    display: block;
  }
  .journey-stage {
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 18px 25px;
    gap: 0;
  }
  .app-node {
    width: 110px;
    padding: 14px;
    font-size: 10px;
    margin-right: 0;
  }
  .node-icon {
    margin-bottom: 12px;
  }
  .server-lines {
    margin-top: 12px;
  }
  .transport {
    width: 130px;
    max-width: 130px;
    flex-shrink: 0;
  }
  .phone {
    margin: 30px 25px 0;
    width: 248px;
  }
  .stage-top {
    padding: 20px 18px;
  }
  .step-explanation {
    padding: 18px;
    gap: 10px;
  }
  .step-explanation p {
    font-size: 11px;
  }
  .playback {
    padding: 12px 18px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .playback .text-link {
    font-size: 10px;
  }
  .integration-heading h2 {
    font-size: 23px;
  }
  .contract-note {
    white-space: normal;
  }
  .webhook-content {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .takeaway {
    flex-direction: column;
    gap: 10px;
  }
  .takeaway strong {
    max-width: none;
  }
  .auth-card {
    min-width: 0;
  }
  .auth-card > div {
    max-width: 100%;
  }
  .auth-copy h1 {
    font-size: 36px;
  }
  footer {
    gap: 20px;
    padding: 22px 18px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

.art-app code {
  max-width: 115px;
  font-size: 8px;
  overflow-wrap: anywhere;
}

#session-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
#user-greeting {
  font-size: 12px;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#sign-out {
  padding: 8px 12px;
  white-space: nowrap;
  font-size: 11px;
}
#auth-recovery {
  padding: 14px 4.5%;
  background: #fff1dd;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
#auth-recovery-message {
  font-size: 13px;
}
@media (max-width: 650px) {
  .topbar {
    flex-wrap: wrap;
  }
  #session-controls {
    width: 100%;
    justify-content: flex-end;
  }
  #user-greeting {
    margin-right: auto;
    max-width: 65%;
  }
}

.hub-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.setup-cta,
.setup-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
}
.setup-cta {
  border-top: 1px solid var(--line);
  margin-top: 35px;
}
.setup-cta h2,
.setup-overview h2 {
  font-size: 28px;
  letter-spacing: -1px;
}
.setup-disclosure {
  background: #dcf4e8;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 13px;
}
.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.setup-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.setup-card h2 {
  font-size: 23px;
  margin: 0;
  letter-spacing: -0.7px;
}
.setup-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.setup-card input,
.setup-card select,
.setup-card textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafbf8;
  color: var(--dark);
  font: inherit;
  box-sizing: border-box;
}
.setup-card textarea {
  min-height: 90px;
  resize: vertical;
}
.setup-card .button {
  margin-top: auto;
}
.setup-readiness {
  padding: 30px;
  border-radius: 14px;
  background: #dcf4e8;
}
.readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 30px;
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 1000px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }
  .setup-cta,
  .setup-overview {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .readiness-grid {
    grid-template-columns: 1fr;
  }
  .hub-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

.wordmark img {
  display: block;
  width: 164px;
  height: auto;
}
.service-node img {
  width: 60%;
  height: auto;
}

.art-service img {
  display: block;
  width: 64px;
  height: 64px;
}

.setup-overview {
  flex-wrap: wrap;
}
.setup-overview > div:first-child {
  min-width: 0;
  flex: 1 1 260px;
  overflow-wrap: anywhere;
}
.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Shared marketing navigation and a single visible simulation notice. */
.topbar {
  flex-wrap: wrap;
  gap: 22px;
  padding: 25px max(24px, calc((100vw - 1116px) / 2));
}
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
}
.site-nav a {
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--action);
}
.site-nav .contact {
  border: 1px solid var(--ink);
  border-radius: 30px;
  padding: 7px 17px;
}
.site-nav [aria-current] {
  color: var(--action);
}
.preview-banner {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 14px;
  padding: 13px 24px;
  background: var(--mint);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
#auth {
  max-width: 1180px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  padding-top: 48px;
  padding-bottom: 64px;
  min-height: 620px;
}
.auth-copy h1 {
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.08;
  margin-bottom: 20px;
}
.auth-copy > p {
  font-size: 16px;
  line-height: 1.6;
}
.auth-preview {
  margin: 28px 0 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 12px 36px #12352f08;
}
.preview-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.preview-heading > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}
.preview-workspace {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  min-height: 210px;
}
.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 12px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.preview-sidebar strong {
  color: var(--action);
}
.preview-conversation {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.preview-label {
  font: 8px var(--mono);
  letter-spacing: 0.05em;
  color: var(--muted);
}
.preview-bubble {
  font-size: 12px;
  line-height: 1.5;
  padding: 11px 13px;
  max-width: 95%;
  border-radius: 12px;
}
.preview-bubble small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
  opacity: 0.8;
}
.preview-bubble.outgoing {
  background: var(--mint);
  align-self: flex-end;
  animation: preview-arrive 0.6s 0.2s both;
}
.preview-bubble.incoming {
  background: var(--paper);
  border: 1px solid var(--line);
  align-self: flex-start;
  animation: preview-arrive 0.6s 1.7s both;
}
.preview-event {
  color: var(--action);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: preview-arrive 0.6s 2.8s both;
}
.preview-event > span {
  width: 5px;
  height: 5px;
  background: var(--action);
  border-radius: 50%;
}
@keyframes preview-arrive {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 850px) {
  .topbar {
    gap: 18px;
  }
  .site-nav {
    gap: 16px;
    font-size: 13px;
  }
  #auth {
    grid-template-columns: 1fr;
    max-width: 600px;
    gap: 32px;
    padding-top: 32px;
  }
  .auth-preview {
    max-width: 420px;
  }
}
@media (max-width: 520px) {
  .topbar {
    padding: 18px 22px;
  }
  .site-nav {
    margin-left: 0;
    width: 100%;
    gap: 15px;
    font-size: 12px;
  }
  .site-nav .contact {
    padding: 5px 10px;
  }
  .preview-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 12px 22px;
    font-size: 12px;
  }
  .preview-workspace {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .preview-sidebar {
    padding: 18px 9px;
    font-size: 9px;
  }
  .preview-conversation {
    padding: 18px 12px;
  }
}
@media (max-width: 850px) {
  #auth {
    gap: 18px;
  }
  .auth-copy {
    display: contents;
  }
  .auth-copy h1 {
    margin: 4px 0 0;
  }
  .auth-copy > p {
    margin: 0 0 8px;
  }
  .auth-card {
    order: 1;
  }
  .auth-preview {
    order: 2;
    width: 100%;
    justify-self: center;
    margin: 10px 0 0;
  }
  .auth-copy > .text-link {
    order: 3;
  }
}

/* First connection onboarding */
#onboarding-workspace {
  max-width: 860px;
  margin: 30px auto 70px;
  padding: 36px;
  background: var(--paper, #fafcf8);
  border: 1px solid #dce5df;
  border-radius: 22px;
}
.onboarding-header h2 {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.04em;
  margin: 10px 0;
}
.onboarding-header p {
  color: #52645b;
}
.onboarding-steps {
  display: flex;
  gap: 28px;
  padding: 18px 24px;
  border-block: 1px solid #dce5df;
  color: #52645b;
  font-size: 14px;
  flex-wrap: wrap;
}
.onboarding-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.onboarding-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
#onboarding-workspace label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
#onboarding-workspace input:not([type="checkbox"]),
#onboarding-workspace select {
  width: 100%;
  min-width: 0;
  padding: 13px;
  border: 1px solid #b9c9bf;
  border-radius: 8px;
  background: white;
  font: inherit;
  color: #12241e;
  box-sizing: border-box;
}
#onboarding-workspace .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
#onboarding-workspace .check input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}
#onboarding-workspace details label {
  margin: 14px 0;
}
#onboarding-workspace summary {
  cursor: pointer;
  padding: 10px 0;
}
#onboarding-workspace p {
  overflow-wrap: anywhere;
}
.onboarding-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
}
.onboarding-brand h3 {
  font-size: 26px;
  margin: 8px 0;
}
.onboarding-brand p {
  margin: 0;
}
#onboarding-monogram {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: #c0f4ce;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 26px;
}
#onboarding-devices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.onboarding-device {
  padding: 18px;
  border: 1px solid #dce5df;
  border-radius: 14px;
}
.onboarding-device > p {
  font-size: 13px;
  color: #52645b;
}
.onboarding-phone {
  border: 6px solid #162a21;
  border-radius: 26px;
  min-height: 250px;
  padding: 25px 16px;
  background: white;
}
.onboarding-phone small {
  font-size: 9px;
  letter-spacing: 0.09em;
  color: #52645b;
}
.onboarding-phone .button {
  font-size: 12px;
  margin: 6px 4px 0 0;
  padding: 10px;
}
.onboarding-bubble {
  background: #eef3ef;
  border-radius: 14px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.onboarding-bubble.reply {
  background: #c0f4ce;
}
.onboarding-extra {
  border-bottom: 1px solid #dce5df;
  padding: 14px 0;
}
.onboarding-extra form {
  display: grid;
  gap: 12px;
}
#onboarding-feedback {
  color: #365d46;
  font-size: 14px;
}
.onboarding-form > .button {
  justify-self: start;
}
@media (max-width: 600px) {
  #onboarding-workspace {
    padding: 20px;
    margin-top: 16px;
  }
  .onboarding-fields {
    grid-template-columns: 1fr;
  }
  .onboarding-steps {
    gap: 12px;
    font-size: 12px;
  }
  .onboarding-brand {
    align-items: flex-start;
  }
  .onboarding-brand > div:last-child {
    min-width: 0;
  }
}

.exchange-sequence {
  padding: 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.sequence-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sequence-heading h3 {
  margin: 0;
}
.exchange-sequence > p {
  margin: 10px 0 20px;
}
#sequence-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.sequence-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.sequence-item[aria-current="step"] {
  border-color: var(--action);
  background: #e0f2e9;
}
.sequence-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  margin-bottom: 7px;
}
.sequence-status {
  font-weight: 600;
}
.sequence-route {
  color: var(--muted);
}
.sequence-item > code {
  font-size: 12px;
  overflow-wrap: anywhere;
  display: block;
}
.sequence-item summary {
  cursor: pointer;
  font-size: 13px;
  margin-top: 10px;
}
.sequence-item p {
  font-size: 13px;
}
.sequence-item pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 240px;
  overflow: auto;
  font-size: 12px;
  padding: 12px;
  background: #12352f;
  color: #eef7ef;
  border-radius: 6px;
}
.webhook-scope {
  font-size: 14px;
  line-height: 1.7;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.webhook-scope code {
  overflow-wrap: anywhere;
  font-size: 12px;
}
@media (max-width: 700px) {
  .exchange-sequence {
    padding: 18px;
  }
  .sequence-item {
    padding: 12px;
  }
  .sequence-row {
    gap: 8px;
  }
}

#step-protocol {
  display: block;
  font-size: 12px;
  color: var(--action);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

/* One stable narration area; the stage only shows the result of its current step. */
.journey-context {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 26px 16px;
  background: var(--paper);
}
.journey-context p {
  margin: 0;
  min-width: 0;
}
.journey-context span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 5px;
}
.journey-context strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}
.stage-panel > .step-explanation {
  min-height: 150px;
  background: var(--paper);
}
.stage-panel > .playback {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
#journey-stage {
  flex: none;
  padding-top: 28px;
}
#journey-stage[data-focus="app"] .app-node,
#journey-stage[data-focus="phone"] .phone {
  outline: 3px solid var(--action);
  outline-offset: 6px;
}
.app-node.receiving .server-lines i {
  animation: none;
}
@media (max-width: 700px) {
  .journey-context {
    padding: 0 18px 16px;
    gap: 14px;
  }
  .stage-panel > .step-explanation {
    min-height: 170px;
  }
}

.rcs-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.rcs-steps span {
  padding: 10px 14px;
  border: 1px solid #d9dce4;
  border-radius: 24px;
  font-size: 13px;
}
.rcs-sender {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}
.rcs-json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  max-height: 320px;
  overflow: auto;
  background: #f5f5f7;
  padding: 16px;
  border-radius: 12px;
}
.rcs-sender textarea {
  width: 100%;
  box-sizing: border-box;
}
.rcs-sender details {
  margin-top: 16px;
}
.rcs-feedback {
  min-height: 24px;
}
@media (max-width: 700px) {
  .rcs-sender {
    grid-template-columns: 1fr;
  }
  .rcs-steps {
    gap: 6px;
  }
  .rcs-steps span {
    font-size: 12px;
  }
}

.rcs-sender .phone-status {
  display: inline-flex;
  margin: 8px 0;
}
.rcs-sender .button {
  margin: 0 8px 8px 0;
}
.rcs-sender label {
  display: grid;
  gap: 6px;
}
.rcs-sender input,
.rcs-sender textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #ced8d3;
  border-radius: 8px;
  font: inherit;
}
