:root {
  color-scheme: light;
  --bg: #f6fafb;
  --ink: #14212f;
  --muted: #5f6f82;
  --line: #d7e2e8;
  --panel: #ffffff;
  --accent: #0ea5a0;
  --accent-strong: #08756f;
  --accent-soft: #dff7f4;
  --blue: #2563eb;
  --navy: #102033;
  --gold: #f4b63f;
  --coral: #e86f51;
  --danger: #b42318;
  --success: #146c43;
  --shadow: 0 18px 44px rgba(16, 32, 51, 0.12);
  --shadow-strong: 0 28px 70px rgba(16, 32, 51, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 360px),
    var(--bg);
  color: var(--ink);
}

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

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 max(16px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 22px;
  color: var(--navy);
}

.brand img {
  display: block;
  filter: drop-shadow(0 8px 18px rgba(14, 165, 160, 0.22));
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #354252;
  font-weight: 650;
}

.nav-cta {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(14, 165, 160, 0.32);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 850;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.message-stack {
  position: fixed;
  z-index: 30;
  right: 18px;
  top: 84px;
  display: grid;
  gap: 10px;
}

.toast {
  max-width: 360px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.toast.success {
  border-color: #bfe6d3;
  color: var(--success);
}

.hero {
  min-height: min(720px, calc(100vh - 104px));
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 251, 0.9) 46%, rgba(223, 247, 244, 0.55) 100%),
    linear-gradient(145deg, rgba(14, 165, 160, 0.2), rgba(37, 99, 235, 0.12));
  box-shadow: var(--shadow);
}

.brand-hero {
  padding: clamp(28px, 7vw, 82px);
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(28px, 5vw, 72px);
}

.brand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 43%, rgba(255, 255, 255, 0.22) 100%),
    repeating-linear-gradient(90deg, rgba(14, 165, 160, 0.08) 0 1px, transparent 1px 72px);
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1,
.page-head h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  color: #4d5c6c;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.supporting-note {
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.7);
  font-size: 16px !important;
  color: #536172 !important;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--accent-strong);
  font-weight: 850;
}

.actions,
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  color: #344455;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--blue));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 28px rgba(14, 165, 160, 0.25);
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 160, 0.4);
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.11);
}

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

.button.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 14px;
}

.demo-video {
  position: absolute;
  z-index: 0;
  right: clamp(18px, 5vw, 70px);
  top: 50%;
  width: min(520px, 46vw);
  min-height: 430px;
  transform: translateY(-50%) rotate(-1deg);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 226, 232, 0.94);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  padding: 18px;
  backdrop-filter: blur(10px);
}

.heygen-video {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(360px, 100%);
  aspect-ratio: 9 / 16;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(215, 226, 232, 0.94);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.heygen-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
}

.video-cta {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: min(210px, calc(100% - 28px));
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 165, 160, 0.96), rgba(37, 99, 235, 0.94));
  box-shadow: 0 12px 26px rgba(16, 32, 51, 0.22);
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
}

.video-cta strong,
.video-cta span {
  display: block;
}

.video-cta strong {
  font-size: 15px;
}

.video-cta span {
  opacity: 0.92;
}

.video-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.video-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dce4ea;
}

.video-topbar span:nth-child(1) { background: var(--coral); }
.video-topbar span:nth-child(2) { background: var(--gold); }
.video-topbar span:nth-child(3) { background: var(--accent); }
.video-topbar strong { margin-left: auto; }

.audio-wave {
  height: 118px;
  margin: 28px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    linear-gradient(180deg, #f7fffe, #eef8ff);
  border: 1px solid #cdebe8;
  border-radius: 8px;
}

.note-snippet {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.note-snippet span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.note-snippet p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #4b5a6b;
  font-size: 13px;
  line-height: 1.45;
}

.audio-wave i {
  display: block;
  width: 12px;
  height: 34px;
  border-radius: 99px;
  background: var(--accent);
  animation: wave 1.35s ease-in-out infinite;
}

.audio-wave i:nth-child(2) { animation-delay: .1s; background: #17b7ae; }
.audio-wave i:nth-child(3) { animation-delay: .2s; height: 58px; background: var(--blue); }
.audio-wave i:nth-child(4) { animation-delay: .3s; }
.audio-wave i:nth-child(5) { animation-delay: .4s; background: var(--coral); }
.audio-wave i:nth-child(6) { animation-delay: .5s; height: 52px; }
.audio-wave i:nth-child(7) { animation-delay: .6s; background: var(--gold); }
.audio-wave i:nth-child(8) { animation-delay: .7s; }

@keyframes wave {
  0%, 100% { transform: scaleY(.65); }
  50% { transform: scaleY(1.35); }
}

.video-timeline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.video-timeline b {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--gold));
  position: relative;
  overflow: hidden;
}

.video-timeline b::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 38%;
  background: rgba(255, 255, 255, 0.5);
  animation: progress 2.8s ease-in-out infinite;
}

@keyframes progress {
  from { transform: translateX(-100%); }
  to { transform: translateX(280%); }
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0 20px;
}

.trust-strip span {
  position: relative;
  padding-left: 18px;
  color: #405266;
  font-weight: 800;
}

.trust-strip span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 0 0 4px rgba(14, 165, 160, 0.12);
}

.differentiator-band {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f9fdfd);
  box-shadow: 0 14px 34px rgba(16, 32, 51, 0.07);
}

.differentiator-band h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
  line-height: 1.05;
}

.differentiator-steps {
  display: grid;
  gap: 12px;
}

.differentiator-steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.differentiator-steps strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
}

.differentiator-steps span {
  color: #445365;
  font-weight: 800;
  line-height: 1.45;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.soap-explainer {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
  background: linear-gradient(180deg, #fff, #f9fdfd);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: 0 14px 34px rgba(16, 32, 51, 0.07);
}

.soap-explainer h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
}

.soap-definition {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.soap-definition p {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #4b5a6b;
  background: #f8fbfc;
  line-height: 1.5;
}

.feature-grid article,
.feature-detail,
.price-card,
.panel,
.auth-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
}

.feature-grid article {
  min-height: 170px;
}

.feature-card {
  position: relative;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.feature-card::after {
  content: "Ver detalle";
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.feature-card:hover,
.feature-card.is-active {
  border-color: rgba(14, 165, 160, 0.42);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-card.is-active h2 {
  color: var(--accent-strong);
}

.feature-card.is-active::after {
  content: "Detalle visible abajo";
}

.feature-details {
  margin-top: 18px;
  scroll-margin-top: 92px;
}

.feature-details:not(:has(.feature-detail.is-active)) {
  display: none;
}

.feature-detail {
  display: none;
  padding: clamp(22px, 4vw, 36px);
}

.feature-detail.is-active {
  display: block;
}

.feature-detail h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.detail-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.detail-steps div {
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f9fbfb;
}

.detail-steps strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  margin-bottom: 12px;
}

.detail-steps span {
  color: #465567;
  line-height: 1.45;
}

.feature-grid h2,
.price-card h2,
.panel h2,
.auth-panel h1,
.auth-panel h2 {
  margin-top: 0;
}

.feature-grid p,
.price-card p,
.legal-page p,
.fine-print {
  color: var(--muted);
  line-height: 1.55;
}

.landing-head {
  align-items: flex-start;
}

.landing-head > div {
  max-width: 900px;
}

.landing-head p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.seo-feature-grid .feature-card {
  cursor: default;
}

.price-card {
  display: grid;
  align-content: start;
  gap: 12px;
  box-shadow: var(--shadow);
}

.price-card.featured {
  border-color: rgba(14, 165, 160, 0.34);
}

.price-card.annual-card {
  border-color: rgba(244, 182, 63, 0.62);
  background: linear-gradient(180deg, #fff, #fffaf0);
}

.price-card h2 {
  font-size: clamp(32px, 4vw, 50px);
  margin-bottom: 4px;
}

.price-card ul {
  padding-left: 18px;
  color: #405062;
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.grid.two,
.editor-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.editor-grid {
  display: grid;
  gap: 20px;
}

.auth-shell {
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 520px);
  gap: 28px;
  align-items: center;
}

.auth-brand {
  padding: clamp(24px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(16, 32, 51, 0.98), rgba(8, 117, 111, 0.92)),
    var(--navy);
  color: #fff;
  border-radius: 8px;
  min-height: 440px;
  display: grid;
  align-content: center;
  justify-items: start;
  box-shadow: var(--shadow);
}

.auth-brand h1 {
  margin: 18px 0 8px;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: 0;
}

.auth-brand p {
  color: #d4dde7;
  max-width: 430px;
  font-size: 19px;
}

.auth-panel {
  max-width: 560px;
  margin: 48px auto;
}

.auth-shell .auth-panel {
  margin: 0;
  max-width: none;
  box-shadow: var(--shadow);
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(14, 165, 160, 0.7);
  box-shadow: 0 0 0 4px rgba(14, 165, 160, 0.12);
}

.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  background: #fff;
}

.file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-picker-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.file-picker-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
}

.password-field input {
  border-radius: 8px 0 0 8px;
}

.password-field button {
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #f8fafb;
  color: var(--accent-strong);
  font-weight: 850;
  padding: 0 13px;
  cursor: pointer;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-row input {
  width: 18px;
  margin-top: 3px;
}

.check-row a,
.fine-print a {
  color: var(--accent-strong);
  font-weight: 800;
}

.upload-zone.is-dragging {
  outline: 3px solid rgba(14, 165, 160, 0.22);
}

.alert {
  border: 1px solid #f2b8b5;
  color: var(--danger);
  background: #fff4f2;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.alert strong {
  display: block;
  margin-bottom: 6px;
}

.alert ul {
  margin: 0;
  padding-left: 18px;
}

.alert.info {
  color: #0f4c81;
  background: #eef7ff;
  border-color: #c7e3ff;
}

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

.dashboard-metrics article {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #f9fdfd);
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.07);
}

.dashboard-metrics span,
.plan-options span,
.plan-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-metrics strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
  color: var(--navy);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading h2 {
  margin-bottom: 0;
}

.subscription-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.clinic-plan {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.clinic-plan:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.usage-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f4;
}

.usage-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--gold));
}

.plan-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.plan-facts div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.plan-facts dd {
  margin: 4px 0 0;
  font-weight: 850;
}

.plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.plan-options article {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 174px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.plan-options strong {
  font-size: 22px;
  line-height: 1.15;
}

.plan-options small {
  color: var(--accent-strong);
  font-weight: 850;
}

.recommended-plan {
  border-color: rgba(244, 182, 63, 0.56) !important;
  background: #fffaf0 !important;
}

.annual-plan-note {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(244, 182, 63, 0.56);
  border-radius: 8px;
  background: #fffaf0;
}

.annual-plan-note span,
.annual-plan-note small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.annual-plan-note strong {
  font-size: 22px;
}

.logo-settings {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.logo-settings span,
.logo-settings strong {
  font-weight: 850;
}

.logo-settings small {
  display: block;
  color: var(--muted);
  font-weight: 750;
  margin-top: 2px;
}

.logo-settings img {
  width: 120px;
  max-height: 70px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
}

.logo-form {
  display: grid;
  gap: 10px;
}

.full {
  margin-top: 20px;
}

.table-toolbar,
.usage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.table-toolbar input {
  max-width: 260px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
}

th {
  color: var(--muted);
  font-size: 13px;
  background: #f8fbfc;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 850;
  background: #eef1f4;
}

.status.completed { background: #e7f7ef; color: var(--success); }
.status.processing,
.status.uploaded { background: #fff7df; color: #8a5b00; }
.status.failed { background: #fff0ee; color: var(--danger); }

.note-preview {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 22px;
  margin-bottom: 20px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdfd);
  box-shadow: var(--shadow);
}

.note-preview > * {
  position: relative;
  z-index: 1;
}

.note-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 2px solid #dfe6ea;
}

.note-preview-header h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0;
}

.note-preview-header span {
  color: var(--muted);
  font-weight: 750;
}

.note-brand-slot {
  min-width: 210px;
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px dashed #b8c4d2;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: #f8fbfc;
}

.note-brand-slot img {
  max-width: 170px;
  max-height: 70px;
  object-fit: contain;
}

.note-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.note-facts div {
  padding: 14px 16px;
  border-radius: 8px;
  background: #f8fbfc;
}

.note-facts dt,
.plan-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.note-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.soap-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.soap-preview-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: #fcfefd;
}

.soap-preview-grid h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e3e9ed;
  color: var(--accent-strong);
}

.soap-preview-grid p {
  margin: 0;
  color: #455466;
  line-height: 1.7;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 54px);
}

.legal-page h1 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0;
  margin-top: 0;
}

.legal-page h2 {
  margin-top: 30px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.site-footer span {
  margin-right: auto;
  color: var(--accent-strong);
  font-weight: 850;
}

@media (max-width: 900px) {
  main { width: min(100% - 20px, 1180px); padding-top: 20px; }
  .grid.two,
  .editor-grid,
  .pricing-grid,
  .auth-shell,
  .dashboard-metrics,
  .plan-options,
  .note-facts,
  .soap-preview-grid {
    grid-template-columns: 1fr;
  }
  .note-preview-header {
    flex-direction: column;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .soap-explainer,
  .soap-definition,
  .differentiator-band {
    grid-template-columns: 1fr;
  }
  .detail-steps {
    grid-template-columns: 1fr;
  }
  .page-head,
  .actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .brand-hero {
    min-height: auto;
    align-items: start;
    grid-template-columns: 1fr;
  }
  .brand-hero::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 251, 0.9) 48%, rgba(246, 250, 251, 0.42) 100%),
      linear-gradient(145deg, rgba(14, 165, 160, 0.18), rgba(37, 99, 235, 0.12));
  }
  .demo-video {
    display: none;
  }
  .heygen-video {
    margin-top: 28px;
  }
  .video-cta {
    top: 10px;
    right: 10px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .video-cta strong {
    font-size: 13px;
  }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .topbar nav {
    flex-wrap: wrap;
  }
  .auth-brand {
    min-height: 280px;
  }
}
