:root {
  --bg: #f7efe3;
  --surface: #fffdf8;
  --surface-soft: #fff6ea;
  --ink: #17312e;
  --muted: #5f6f6a;
  --primary: #d56f31;
  --primary-strong: #b85722;
  --accent: #1f5c52;
  --success: #137f47;
  --danger: #b93131;
  --line: #e7d6bf;
  --shadow: 0 18px 48px rgba(48, 45, 37, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 650px at -10% -10%, rgba(213, 111, 49, 0.18), transparent 55%),
    radial-gradient(1000px 600px at 115% -10%, rgba(31, 92, 82, 0.14), transparent 55%),
    linear-gradient(180deg, #fffaf2 0%, var(--bg) 100%);
}

.wrap { width: min(1120px, 94vw); margin: 0 auto; }
.main { padding: 22px 0 42px; animation: riseIn .34s ease-out; }

.topbar {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(190, 206, 224, .7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #d87b3f, #b85722);
  color: #fff;
  font-size: .92rem;
  box-shadow: 0 8px 20px rgba(213, 111, 49, .28);
}
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
}
.nav a:hover { color: var(--primary); background: #fff1df; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.narrow { max-width: 640px; }

.page-head { margin: 4px 0 14px; }
.page-head h1 { margin: 0 0 6px; font-size: 1.85rem; }
.page-head p { margin: 0; color: var(--muted); }
.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  font-size: .72rem;
  color: var(--primary);
}

h1, h2, h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  letter-spacing: -.03em;
}

.kpi-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 16px; }
.kpi {
  background:
    radial-gradient(320px 130px at 10% -35%, rgba(22, 113, 197, .13), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.kpi h2 { margin: 0; font-size: .84rem; color: var(--muted); }
.kpi p { margin: 9px 0 0; font-size: 1.8rem; font-weight: 800; }

form p { margin: 0 0 12px; }
label { display: block; font-size: .86rem; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
input, select, textarea, button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(213, 111, 49, .2);
  border-color: #e7ab7a;
}
button, .btn {
  background: linear-gradient(130deg, var(--primary), var(--primary-strong));
  color: #fff;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
}
button:hover, .btn:hover { filter: brightness(1.04); }
.btn { width: auto; padding: 9px 13px; }
.btn-ghost {
  width: auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 600;
}
.btn-secondary { display: inline-block; margin-left: 8px; color: var(--muted); text-decoration: none; }
.linkbtn { background: transparent; border: none; color: var(--muted); width: auto; padding: 0; font-weight: 600; }
.guest-actions { display: flex; align-items: center; gap: 8px; }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.filters p { margin-bottom: 8px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 10px 8px; font-size: .93rem; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.responsive-table td[data-label]::before {
  content: none;
}
.actions { display: flex; gap: 8px; }
.actions a { color: var(--primary); text-decoration: none; font-weight: 600; }
.status-form { display: flex; gap: 8px; }
.status-form select { min-width: 130px; }
.status-form button { width: auto; padding: 8px 10px; }
.status-stack {
  display: grid;
  gap: 8px;
}
.status-stack small {
  color: var(--danger);
  font-weight: 600;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid transparent;
}
.status-pill.status-at_risk {
  background: #fff1ea;
  color: #a24722;
  border-color: #efc1ab;
}
.status-pill.status-pending_confirmation {
  background: #fff6db;
  color: #8a6411;
  border-color: #e8d18d;
}
.status-pill.status-confirmed {
  background: #e8f6ee;
  color: #1f7745;
  border-color: #b8dfc6;
}
.status-pill.status-scheduled {
  background: #edf4fb;
  color: #265c8e;
  border-color: #c8ddef;
}
.status-pill.status-canceled,
.status-pill.status-assente,
.status-pill.status-completed {
  background: #f3eee8;
  color: #6b645c;
  border-color: #ddd1c1;
}
.row-risk td {
  background: linear-gradient(180deg, rgba(255, 244, 236, .78) 0%, rgba(255, 250, 245, .78) 100%);
}
.list-alert {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #efc1ab;
  background: linear-gradient(180deg, #fff2e9 0%, #fff8f3 100%);
}
.list-alert strong {
  color: #8f3f1f;
}
.list-alert span {
  color: var(--muted);
  line-height: 1.5;
}

.messages { margin-bottom: 12px; }
.msg { padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; font-weight: 600; }
.msg.success { background: #e9f7ef; color: var(--success); }
.msg.error { background: #fcebea; color: var(--danger); }

.calendar-shell { margin-bottom: 0; }
.calendar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.calendar-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.calendar-nav h1 { margin: 0 0 0 4px; font-size: 1.2rem; }
.calendar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.calendar-filter-label { font-size: .82rem; color: var(--muted); }
.calendar-filter-select { width: auto; min-width: 170px; }
.operator-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.operator-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .78rem;
  color: var(--muted);
}
.operator-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.calendar-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.calendar-kpis div {
  background: var(--surface-soft);
  border: 1px solid #ecdcc4;
  border-radius: 10px;
  padding: 10px;
}
.calendar-kpis span { display: block; font-size: 1.2rem; font-weight: 700; }
.calendar-kpis small { color: var(--muted); }

.calendar-grid {
  overflow-x: auto;
}
.day-headers {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 8px;
  min-width: 1120px;
}
.day-head {
  font-size: .86rem;
  color: var(--muted);
  text-transform: capitalize;
  padding: 4px 6px;
  font-weight: 700;
}
.week-body {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 8px;
  min-width: 1120px;
}
.day-column {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(to bottom, #fff 0%, #fdfefe 100%);
  overflow: hidden;
}
.hour-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hour-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed #edf0f4;
}
.hour-line span {
  position: absolute;
  left: 4px;
  top: -8px;
  font-size: .65rem;
  color: #b0bac4;
  background: rgba(255,255,255,.8);
  padding: 0 2px;
}

.calendar-event {
  position: absolute;
  left: 5px;
  right: 5px;
  border-radius: 8px;
  color: #fff;
  padding: 6px 8px 14px;
  font-size: .76rem;
  cursor: move;
  box-shadow: 0 4px 12px rgba(22, 65, 111, 0.18);
  z-index: 5;
  background: var(--event-color, #1565c0);
}
.calendar-event strong { display: block; font-size: .8rem; margin-bottom: 1px; }
.calendar-event small { display: block; opacity: 0.95; line-height: 1.2; }
.calendar-event.dragging, .calendar-event.resizing { opacity: .85; z-index: 8; }
.calendar-selection {
  position: absolute;
  left: 5px;
  right: 5px;
  border-radius: 8px;
  border: 1px solid #1565c0;
  background: rgba(21, 101, 192, 0.22);
  z-index: 4;
  pointer-events: none;
}

.status-scheduled { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 4px 12px rgba(22, 65, 111, 0.18); }
.status-confirmed { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 4px 12px rgba(18, 104, 54, 0.22); }
.status-canceled { opacity: .72; }
.status-completed { box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 4px 12px rgba(71, 48, 118, 0.22); }
.status-assente { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 4px 12px rgba(138, 42, 42, 0.24); }

.resize-handle {
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  width: 24px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 0;
  cursor: ns-resize;
  padding: 0;
}

.editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 22, 34, 0.46);
  backdrop-filter: blur(1.5px);
  z-index: 34;
}
.editor {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  z-index: 36;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.editor-actions {
  display: flex;
  gap: 8px;
}
.inline-client-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -6px 0 8px;
}
.inline-client-msg {
  font-size: .82rem;
  color: var(--muted);
}
.inline-client-msg.ok { color: var(--success); }
.inline-client-msg.error { color: var(--danger); }
.inline-client-box {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  background: #fafcfe;
}
.editor-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.editor-checkbox input[type="checkbox"] {
  width: auto;
  padding: 0;
}
.hidden { display: none; }
.no-select { user-select: none; }

.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: stretch;
}
.auth-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(500px 230px at 15% -25%, rgba(11, 111, 207, .2), transparent 62%),
    radial-gradient(450px 200px at 90% 120%, rgba(19, 127, 71, .15), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}
.auth-hero h1 { margin: 0 0 8px; font-size: 2rem; line-height: 1.15; }
.auth-hero p { color: var(--muted); margin: 0 0 10px; }
.auth-points { margin: 4px 0 0; padding-left: 20px; color: #264055; }
.auth-points li { margin-bottom: 6px; }
.auth-card h2 { margin-top: 0; }

.risk-panel {
  background:
    radial-gradient(360px 170px at 100% 0%, rgba(213, 111, 49, .12), transparent 62%),
    linear-gradient(180deg, #fffdf8 0%, #fff4ea 100%);
}
.risk-panel h2 {
  margin: 0;
}
.risk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.risk-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #efc1ab;
  background: rgba(255, 255, 255, .88);
}
.risk-card strong {
  font-size: 1rem;
}
.risk-card span,
.risk-card small {
  color: var(--muted);
  line-height: 1.45;
}
.risk-card a {
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: none;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(500px 230px at 0% 0%, rgba(213, 111, 49, .12), transparent 64%),
    radial-gradient(380px 180px at 100% 100%, rgba(31, 92, 82, .1), transparent 60%),
    linear-gradient(180deg, #fffdf8 0%, #fff8ef 100%);
}
.landing-copy {
  padding: 10px 6px 6px;
}
.landing-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  line-height: .96;
  max-width: 10ch;
}
.landing-copy p { margin: 0 0 12px; color: var(--muted); max-width: 58ch; }
.landing-lead {
  font-size: 1.05rem;
  line-height: 1.65;
}
.landing-cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.landing-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.landing-badges span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .82);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
}
.landing-microproof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.landing-microproof div {
  border: 1px solid rgba(231, 214, 191, .85);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 253, 248, .76);
}
.landing-microproof strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}
.landing-microproof span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
.landing-visual {
  display: grid;
  gap: 14px;
  align-content: start;
}
.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.landing-stats article {
  border-radius: 18px;
  padding: 16px 14px;
  background: linear-gradient(180deg, #fffaf2 0%, #fff 100%);
  border: 1px solid rgba(231, 214, 191, .92);
}
.landing-stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
}
.landing-stats span {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}
.landing-preview-card {
  padding: 14px;
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(31, 92, 82, .1), rgba(213, 111, 49, .08));
  border: 1px solid rgba(231, 214, 191, .9);
  box-shadow: 0 26px 55px rgba(72, 53, 28, 0.12);
}
.landing-preview-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}
.landing-roi {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(31, 92, 82, .08), transparent 62%),
    linear-gradient(180deg, #fffdf8 0%, #fff8ef 100%);
}
.landing-roi h2 {
  margin-top: 0;
  margin-bottom: 10px;
}
.landing-roi p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.landing-roi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.landing-roi-grid article {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .8);
}
.landing-roi-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}
.landing-roi-grid span {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}
.landing-logo-strip {
  display: grid;
  gap: 14px;
  text-align: center;
  background: rgba(255, 253, 248, .72);
}
.landing-logo-strip p {
  margin: 0;
  font-weight: 600;
  color: var(--accent);
}
.landing-segments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.landing-segments span {
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff7eb;
  border: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
}
.landing-flow h2 { margin-top: 0; }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.flow-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #fffdf9 0%, #fff8ef 100%);
}
.flow-grid span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ffe9d2;
  color: var(--primary-strong);
  font-weight: 800;
}
.flow-grid h3 { margin: 12px 0 8px; font-size: 1.15rem; }
.flow-grid p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.landing-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.landing-benefit-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
}
.benefit-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}
.benefit-list li + li {
  margin-top: 8px;
}
.landing-message-card {
  background:
    radial-gradient(340px 170px at 100% 0%, rgba(31, 92, 82, .1), transparent 62%),
    linear-gradient(180deg, #fffdf8 0%, #fff7ec 100%);
}
.message-preview {
  border-radius: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.message-preview p {
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.45;
}
.message-preview p:last-child {
  margin-bottom: 0;
}
.message-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.message-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.message-actions span:first-child {
  background: #e7f6ec;
  color: #1b6d3f;
}
.message-actions span:last-child {
  background: #fff0eb;
  color: #a04828;
}
.landing-objections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.objection-list {
  display: grid;
  gap: 12px;
}
.objection-list article {
  padding: 14px 0;
  border-top: 1px solid rgba(231, 214, 191, .9);
}
.objection-list article:first-child {
  border-top: 0;
  padding-top: 0;
}
.objection-list h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}
.objection-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.landing-final-card {
  background:
    radial-gradient(320px 180px at 0% 100%, rgba(213, 111, 49, .12), transparent 62%),
    linear-gradient(180deg, #fffdf8 0%, #fff7ec 100%);
}
.landing-final-card h2 {
  margin-top: 0;
}
.landing-final-card p {
  color: var(--muted);
  line-height: 1.65;
}
.landing-pricing {
  display: grid;
  grid-template-columns: minmax(0, .9fr) repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.pricing-intro {
  background:
    radial-gradient(320px 170px at 0% 0%, rgba(31, 92, 82, .08), transparent 62%),
    linear-gradient(180deg, #fffdf8 0%, #fff8ef 100%);
}
.pricing-intro h2 {
  margin-top: 0;
}
.pricing-intro p:last-child {
  color: var(--muted);
  line-height: 1.65;
}
.pricing-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
}
.pricing-card-featured {
  background:
    radial-gradient(360px 170px at 100% 0%, rgba(213, 111, 49, .14), transparent 62%),
    linear-gradient(180deg, #fffdf8 0%, #fff4e5 100%);
  border-color: #ddb88e;
}
.pricing-badge {
  margin: 0;
  color: var(--primary-strong);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pricing-name {
  margin: 0;
  font-size: .95rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pricing-price {
  margin: 0;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
}
.pricing-price span {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  color: var(--muted);
  margin-left: 6px;
}
.pricing-target {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.landing-proof {
  text-align: center;
  background:
    radial-gradient(420px 180px at 0% 100%, rgba(213, 111, 49, .1), transparent 62%),
    linear-gradient(180deg, #fffdf8 0%, #fff7ec 100%);
}
.landing-proof h2 {
  margin-top: 0;
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
  text-align: left;
}
.proof-grid article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid var(--line);
}
.proof-grid h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}
.proof-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.landing-cta-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.landing-cta-footer p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}
.landing-faq h2 {
  margin-top: 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.faq-grid article {
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 18px;
  background: linear-gradient(180deg, #fffdf9 0%, #fff8ef 100%);
}
.faq-grid h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}
.faq-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .auth-layout { grid-template-columns: 1fr; }
  .landing-hero { grid-template-columns: 1fr; }
  .landing-roi { grid-template-columns: 1fr; }
  .landing-roi-grid { grid-template-columns: 1fr; }
  .landing-copy h1 { max-width: 12ch; }
  .landing-benefits { grid-template-columns: 1fr; }
  .landing-objections { grid-template-columns: 1fr; }
  .landing-pricing { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { width: min(100%, calc(100vw - 18px)); }
  .main { padding: 16px 0 28px; }
  .panel { padding: 14px; border-radius: 14px; }
  .topbar-inner { align-items: flex-start; flex-direction: column; }
  .brand { width: 100%; justify-content: space-between; }
  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .nav a {
    text-align: center;
    padding: 10px 8px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
  }
  .guest-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .guest-actions .btn,
  .guest-actions .btn-ghost {
    width: 100%;
  }
  .row-between { align-items: stretch; }
  .row-between > .btn,
  .row-between > .btn-ghost {
    width: 100%;
  }
  .search-row { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .filters button,
  .search-row button {
    width: 100%;
  }
  .status-form { flex-direction: column; }
  .status-form select,
  .status-form button {
    width: 100%;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .actions a {
    display: inline-flex;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }
  table.responsive-table {
    min-width: 0;
    border-collapse: separate;
  }
  .responsive-table thead {
    display: none;
  }
  .responsive-table tbody {
    display: grid;
    gap: 10px;
  }
  .responsive-table tr {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
  }
  .responsive-table td {
    display: grid;
    gap: 4px;
    padding: 0;
    border-bottom: 0;
    min-width: 0;
  }
  .responsive-table td[data-label]::before {
    content: attr(data-label);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .table-wrap {
    overflow: visible;
  }
  .table-wrap.panel {
    padding: 12px;
  }
  .calendar-kpis { grid-template-columns: 1fr; }
  .calendar-head,
  .calendar-nav,
  .calendar-actions {
    align-items: stretch;
  }
  .calendar-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .calendar-nav h1 {
    grid-column: 1 / -1;
    margin: 0;
    text-align: center;
    padding-top: 2px;
  }
  .calendar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .calendar-filter-select,
  .calendar-actions .btn,
  .calendar-actions .btn-ghost {
    width: 100%;
    min-width: 0;
  }
  .operator-legend {
    display: grid;
    grid-template-columns: 1fr;
  }
  .day-headers,
  .week-body {
    min-width: 840px;
  }
  .editor {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100vw;
    max-height: min(90vh, 820px);
    border-radius: 18px 18px 0 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .editor-actions { flex-direction: column; }
  .editor-actions button,
  .editor-actions .btn-ghost { width: 100%; }
  .inline-client-tools {
    flex-direction: column;
    align-items: stretch;
  }
  .inline-client-tools .btn-ghost { width: 100%; }
  .page-head h1 { font-size: 1.5rem; }
  .auth-hero h1 { font-size: 1.5rem; }
  .risk-cards { grid-template-columns: 1fr; }
  .landing-copy h1 { font-size: 2.35rem; max-width: none; }
  .landing-microproof { grid-template-columns: 1fr; }
  .landing-stats { grid-template-columns: 1fr; }
  .landing-segments { justify-content: flex-start; }
  .landing-cta-row > .btn,
  .landing-cta-row > .btn-ghost {
    width: 100%;
  }
  .message-actions { flex-direction: column; }
  .message-actions span { width: 100%; }
}
