:root {
  color-scheme: light;
  --ink: #111923;
  --muted: #62717f;
  --stone: #ede8df;
  --warm: #fbf8f1;
  --paper: #fffdf8;
  --navy: #081b2c;
  --navy-2: #0c2941;
  --cyan: #10bfe8;
  --blue: #126ee8;
  --green: #3eaa63;
  --amber: #f0c56c;
  --red: #e45b5f;
  --line: rgba(17, 25, 35, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --shadow: 0 30px 90px rgba(15, 23, 31, 0.18);
  --shadow-soft: 0 18px 50px rgba(15, 23, 31, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--warm);
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 14px;
  z-index: 30;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  box-shadow: var(--shadow-soft);
}

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

.site-header {
  position: fixed;
  inset: 14px 16px auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100vw - 32px));
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 8px 10px 8px 14px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 18px 60px rgba(17, 25, 35, 0.1);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.header-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(17, 25, 35, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.header-cta {
  background: var(--navy);
  color: white;
  padding-inline: 18px;
}

.content-shell {
  width: var(--content);
  margin-inline: auto;
}

section {
  position: relative;
  overflow: clip;
  scroll-margin-top: 88px;
}

.section-dark {
  background:
    radial-gradient(circle at 78% 20%, rgba(16, 191, 232, 0.22), transparent 34%),
    linear-gradient(140deg, #061220, #091c2f 56%, #0a2034);
  color: white;
}

.section-warm {
  background:
    radial-gradient(circle at 10% 0%, rgba(16, 191, 232, 0.14), transparent 28%),
    linear-gradient(180deg, var(--warm), #f5f0e6);
}

.section-stone {
  background: #e9e2d7;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 8.5vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.08;
}

p {
  color: var(--muted);
  font-size: clamp(1.03rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.72);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 16px 38px rgba(18, 110, 232, 0.24);
}

.button-secondary,
.button-light {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-section {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 126px 0 76px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: saturate(0.8) contrast(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 18, 32, 0.96) 0%, rgba(6, 18, 32, 0.72) 52%, rgba(6, 18, 32, 0.88) 100%),
    radial-gradient(circle at 70% 36%, rgba(16, 191, 232, 0.2), transparent 40%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero-lede {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.25rem, 2.2vw, 1.72rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.proof-stack {
  display: grid;
  gap: 18px;
  perspective: 1200px;
}

.metric-plate {
  position: relative;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  padding: 28px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(24px);
}

.metric-plate span,
.metric-plate small {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.metric-plate strong {
  font-size: clamp(4rem, 12vw, 8.5rem);
  line-height: 0.9;
}

.proof-browser,
.proof-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.hero-browser {
  transform: rotateY(-7deg) rotateX(4deg);
  transform-origin: center;
}

.proof-browser img,
.screenshot-card img,
.mail-preview img {
  width: 100%;
  object-fit: cover;
}

.proof-browser figcaption {
  padding: 10px 14px 14px;
  color: rgba(17, 25, 35, 0.62);
  font-size: 0.86rem;
  font-weight: 800;
}

.two-column,
.problem-layout,
.communication-grid,
.proof-layout,
.lessons-layout,
.cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
  padding-block: clamp(86px, 11vw, 150px);
}

.section-copy p {
  max-width: 640px;
}

.photo-board {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  transform: perspective(1200px) rotateY(-5deg);
}

.photo-tile {
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-large {
  grid-row: span 2;
}

.problem-layout {
  grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1fr);
}

.problem-orbit {
  position: relative;
  min-height: 500px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.26)),
    url("assets/proof/galaxy-desk.jpg") center / cover;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.problem-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(237, 232, 223, 0.68);
  backdrop-filter: blur(1px);
}

.problem-orbit span {
  position: absolute;
  z-index: 1;
  max-width: 180px;
  border: 1px solid rgba(17, 25, 35, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 16px 40px rgba(17, 25, 35, 0.12);
  color: var(--ink);
  font-weight: 850;
}

.problem-orbit span:nth-child(1) {
  left: 8%;
  top: 10%;
  transform: rotate(-7deg);
}

.problem-orbit span:nth-child(2) {
  right: 8%;
  top: 15%;
  transform: rotate(4deg);
}

.problem-orbit span:nth-child(3) {
  left: 18%;
  top: 42%;
  transform: rotate(5deg);
}

.problem-orbit span:nth-child(4) {
  right: 12%;
  top: 48%;
  transform: rotate(-5deg);
}

.problem-orbit span:nth-child(5) {
  left: 10%;
  bottom: 12%;
  transform: rotate(3deg);
}

.problem-orbit span:nth-child(6) {
  right: 20%;
  bottom: 13%;
  transform: rotate(-4deg);
}

.question-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.question-list span {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 850;
}

.built-section {
  padding-block: clamp(90px, 12vw, 160px);
}

.center-copy {
  text-align: center;
}

.center-copy h2 {
  margin-inline: auto;
}

.flow-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.flow-line::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 34px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), transparent);
}

.flow-line article {
  position: relative;
  min-height: 170px;
  display: grid;
  align-content: end;
  gap: 20px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.flow-line span {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 191, 232, 0.26), rgba(18, 110, 232, 0.3));
  color: white;
  font-weight: 900;
  box-shadow: 0 0 0 1px var(--line-dark), 0 20px 40px rgba(0, 0, 0, 0.24);
}

.flow-line strong {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.18;
}

.workflow-section {
  padding-block: clamp(84px, 10vw, 136px);
}

.workflow-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: 36px;
  align-items: end;
}

.workflow-heading p {
  margin-bottom: 24px;
}

.experience-switch {
  display: inline-flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.experience-switch button,
.status-preview-controls button,
.status-controls button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.experience-switch button.is-active,
.status-preview-controls button.is-active,
.status-controls button.is-active {
  background: var(--navy);
  color: white;
}

.workflow-stage {
  margin-top: 24px;
  perspective: 1600px;
}

.demo-panel {
  display: none;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: 22px;
  align-items: stretch;
}

.demo-panel.is-active {
  display: grid;
}

.demo-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 253, 248, 0.76)),
    radial-gradient(circle at 18% 0%, rgba(16, 191, 232, 0.14), transparent 38%);
  box-shadow: var(--shadow);
}

.form-card {
  position: relative;
  min-height: 560px;
  padding: clamp(20px, 3vw, 34px);
}

.demo-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.demo-kicker strong {
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(16, 191, 232, 0.12);
  color: var(--navy);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.stepper li {
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(8, 27, 44, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.stepper li.is-active {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
}

.provider-form {
  position: relative;
}

.form-step {
  display: none;
  animation: stepIn 360ms ease both;
}

.form-step.is-active {
  display: grid;
  gap: 14px;
}

.form-step h3 {
  margin-bottom: 4px;
  color: var(--ink);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(17, 25, 35, 0.14);
  border-radius: 14px;
  padding: 14px 15px;
  background: white;
  color: var(--ink);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(16, 191, 232, 0.14);
}

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

.choice-grid label,
.check-row {
  border: 1px solid rgba(17, 25, 35, 0.12);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.choice-grid input,
.check-row input {
  width: auto;
}

.attach-button {
  min-height: 88px;
  border: 1px dashed rgba(18, 110, 232, 0.42);
  border-radius: 18px;
  background: rgba(16, 191, 232, 0.1);
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}

.attached-doc,
.document-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  border-radius: 16px;
  padding: 14px;
  background: rgba(62, 170, 99, 0.11);
  color: var(--ink);
}

.attached-doc span,
.document-chip span {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green);
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
}

.review-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  border-radius: 18px;
  padding: 18px;
  background: rgba(8, 27, 44, 0.06);
}

.review-box span {
  color: var(--muted);
  font-weight: 850;
}

.form-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

.confirmation-card {
  border: 1px solid rgba(62, 170, 99, 0.24);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: linear-gradient(135deg, rgba(62, 170, 99, 0.14), rgba(16, 191, 232, 0.12)), white;
  box-shadow: var(--shadow-soft);
  margin-top: 22px;
}

.proof-card {
  color: var(--ink);
}

.screenshot-card {
  display: grid;
  align-content: start;
}

.screenshot-card img {
  width: 100%;
  max-height: 612px;
  object-fit: contain;
  background: white;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.proof-label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(17, 25, 35, 0.09);
}

.proof-label span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proof-label strong {
  text-align: right;
}

.dme-demo {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.58fr);
}

.inbox-card {
  padding: clamp(18px, 3vw, 30px);
}

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1fr);
  gap: 18px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.case-list {
  display: grid;
  gap: 10px;
  transform: rotateY(4deg) translateZ(-12px);
  pointer-events: auto;
}

.case-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 10px;
  align-items: center;
  min-height: 78px;
  border: 1px solid rgba(17, 25, 35, 0.1);
  border-radius: 18px;
  padding: 13px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
}

.case-row small {
  grid-column: 2 / 3;
  color: var(--muted);
  font-weight: 750;
}

.case-row em {
  grid-row: span 2;
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}

.case-row.is-active {
  border-color: rgba(16, 191, 232, 0.46);
  background: white;
  box-shadow: 0 16px 34px rgba(18, 110, 232, 0.12);
}

.status-dot {
  grid-row: span 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
}

.status-dot.reviewing {
  background: var(--blue);
}

.status-dot.processing {
  background: #8b5cf6;
}

.status-dot.completed {
  background: var(--green);
}

.status-dot.issue {
  background: var(--red);
}

.case-detail {
  min-height: 530px;
  border: 1px solid rgba(16, 191, 232, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 28px);
  background: white;
  box-shadow: var(--shadow-soft);
  transform: rotateY(-2deg) translateZ(28px);
  pointer-events: auto;
}

.case-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

#case-status-pill {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(240, 197, 108, 0.24);
  color: #84601d;
  font-size: 0.8rem;
  font-weight: 950;
}

.case-detail dl {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.case-detail dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  border-bottom: 1px solid rgba(17, 25, 35, 0.08);
  padding-bottom: 10px;
}

.case-detail dt {
  color: var(--muted);
  font-weight: 850;
}

.case-detail dd {
  margin: 0;
  font-weight: 850;
}

.status-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.proof-column {
  display: grid;
  gap: 16px;
  align-content: start;
}

.proof-column .screenshot-card img {
  max-height: 280px;
}

.communication-section {
  padding-block: clamp(90px, 11vw, 150px);
}

.status-preview-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.status-preview-controls button {
  color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}

.status-preview-controls button.is-active {
  background: white;
  color: var(--navy);
}

.mail-preview {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
}

.proof-section {
  padding-block: clamp(90px, 11vw, 150px);
}

.proof-layout {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.05fr);
  padding-block: 0;
}

.proof-number h2 span {
  display: block;
  color: var(--navy);
  font-size: clamp(6rem, 20vw, 16rem);
  line-height: 0.78;
}

.proof-image {
  border-color: rgba(17, 25, 35, 0.12);
}

.lessons-layout {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.1fr);
}

.lesson-list {
  display: grid;
  gap: 14px;
}

.lesson-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  border-top: 1px solid rgba(17, 25, 35, 0.13);
  padding-top: 18px;
}

.lesson-list span {
  color: var(--blue);
  font-weight: 950;
}

.lesson-list p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  font-weight: 780;
}

.next-section {
  padding-block: clamp(92px, 12vw, 160px);
}

.next-card {
  max-width: 860px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 6vw, 70px);
  background:
    radial-gradient(circle at 75% 24%, rgba(16, 191, 232, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.26);
}

.cta-section {
  padding-block: clamp(88px, 12vw, 160px);
}

.cta-layout {
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.62fr);
  align-items: start;
  padding-block: 0;
}

.lead-form {
  display: grid;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.direct-contact-card {
  align-content: start;
}

.direct-contact-card img {
  width: 92px;
  height: auto;
}

.direct-contact-card h3 {
  margin-bottom: 0;
}

.direct-contact-card p {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note.is-warning {
  color: #9b5d00;
  font-weight: 800;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.image-failed {
  position: relative;
  min-height: 180px;
  background: linear-gradient(135deg, rgba(8, 27, 44, 0.08), rgba(16, 191, 232, 0.08));
}

.image-failed::after {
  content: "Proof image unavailable";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 850;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  .nav-links {
    display: none;
  }

  .hero-grid,
  .two-column,
  .problem-layout,
  .workflow-heading,
  .demo-panel,
  .dme-demo,
  .communication-grid,
  .proof-layout,
  .lessons-layout,
  .cta-layout {
    grid-template-columns: 1fr;
  }

  .hero-browser,
  .photo-board,
  .mail-preview,
  .case-list,
  .case-detail {
    transform: none;
  }

  .flow-line {
    grid-template-columns: 1fr;
  }

  .flow-line::before {
    left: 34px;
    right: auto;
    top: 40px;
    bottom: 40px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--cyan), var(--blue), transparent);
  }

  .flow-line article {
    min-height: 120px;
    grid-template-columns: auto 1fr;
    align-items: center;
    align-content: center;
  }

  .photo-board {
    grid-template-columns: 1fr 1fr;
  }

  .form-card {
    min-height: auto;
  }

  .stepper {
    grid-template-columns: repeat(3, 1fr);
  }

  .inbox-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --content: min(100vw - 28px, 1180px);
  }

  .site-header {
    inset: 10px 10px auto;
    width: calc(100vw - 20px);
    gap: 8px;
  }

  .brand span {
    display: none;
  }

  .header-cta {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.78rem;
  }

  .hero-section {
    padding-top: 108px;
  }

  .hero-actions,
  .experience-switch,
  .status-preview-controls {
    width: 100%;
  }

  .hero-actions .button,
  .experience-switch button,
  .status-preview-controls button {
    flex: 1;
  }

  .photo-board {
    grid-template-columns: 1fr;
  }

  .tile-large {
    grid-row: auto;
  }

  .problem-orbit {
    min-height: 380px;
  }

  .problem-orbit span {
    max-width: 150px;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

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

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

  .case-detail dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .proof-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-label strong {
    text-align: left;
  }

  .back-to-top {
    display: none;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .back-to-top,
  .experience-switch,
  .form-controls,
  .status-controls,
  .status-preview-controls {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  section {
    break-inside: avoid;
    min-height: auto !important;
    padding: 32px 0 !important;
    background: white !important;
    color: black !important;
  }

  .section-dark p,
  p {
    color: black !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
