:root {
  color-scheme: light;
  --paper: #f5efe3;
  --surface: #fffaf1;
  --ink: #21130f;
  --muted: #6c5d52;
  --line: #d6c4a7;
  --teal: #4b1018;
  --teal-deep: #26070c;
  --saffron: #c9932d;
  --rose: #8c2634;
  --green: #4f6f3a;
  --violet: #142c4c;
  --maroon: #4b1018;
  --maroon-deep: #26070c;
  --blue: #142c4c;
  --blue-deep: #071a32;
  --brown: #5a341d;
  --brown-soft: #8a6447;
  --gold: #c9932d;
  --gold-bright: #e0b45a;
  --success: #4f6f3a;
  --shadow: 0 18px 50px rgba(36, 7, 12, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body.high-contrast {
  --paper: #efe5d3;
  --surface: #fff8e9;
  --ink: #140807;
  --muted: #4f3d32;
  --line: #b99c69;
  --teal: #3a0710;
  --teal-deep: #170306;
  --saffron: #a96f0d;
  --maroon: #3a0710;
  --maroon-deep: #170306;
  --blue: #092142;
  --blue-deep: #041325;
  --gold: #a96f0d;
  --gold-bright: #d69a28;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.topbar {
  align-items: center;
  background: rgba(245, 239, 227, 0.92);
  border-bottom: 1px solid rgba(157, 115, 49, 0.28);
  display: flex;
  gap: 24px;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 54px);
  position: fixed;
  right: 0;
  top: 0;
  backdrop-filter: blur(18px);
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  align-items: center;
  background: transparent;
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  width: 48px;
}

.brand-mark img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  color: var(--maroon);
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--maroon);
}

.icon-button,
.primary-action,
.secondary-action {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  min-height: 44px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.icon-button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 44px;
}

.mobile-label {
  display: none;
}

.primary-action {
  background: linear-gradient(135deg, var(--maroon), #731d28);
  border: 1px solid rgba(224, 180, 90, 0.38);
  color: white;
  padding: 0 18px;
}

.secondary-action {
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid rgba(224, 180, 90, 0.42);
  color: var(--maroon);
  padding: 0 16px;
}

.secondary-action.danger {
  border-color: rgba(183, 91, 107, 0.35);
  color: #8e3447;
}

.primary-action:hover,
.secondary-action:hover,
.icon-button:hover {
  box-shadow: 0 10px 26px rgba(23, 32, 31, 0.14);
  transform: translateY(-1px);
}

.primary-action svg,
.secondary-action svg,
.icon-button svg,
.search-box svg {
  height: 18px;
  width: 18px;
}

.hero {
  align-items: end;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(320px, 360px) minmax(320px, 360px);
  gap: clamp(18px, 3vw, 30px);
  min-height: 92vh;
  overflow: hidden;
  padding: 120px clamp(18px, 4vw, 54px) 32px;
  position: relative;
}

.hero-image,
.hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(38, 7, 12, 0.88), rgba(20, 44, 76, 0.58) 48%, rgba(38, 7, 12, 0.08)),
    linear-gradient(0deg, rgba(38, 7, 12, 0.64), transparent 42%);
}

.hero-content {
  color: white;
  max-width: 720px;
  padding-bottom: 36px;
  position: relative;
  z-index: 1;
}

.swamiji-presence {
  align-self: end;
  background:
    radial-gradient(circle at 50% 20%, rgba(224, 180, 90, 0.45), transparent 42%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.2), rgba(38, 7, 12, 0.52));
  border: 1px solid rgba(224, 180, 90, 0.62);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 238, 184, 0.24),
    0 0 54px rgba(224, 180, 90, 0.38),
    0 24px 64px rgba(38, 7, 12, 0.48);
  color: white;
  display: grid;
  gap: 0;
  margin: 0 0 36px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.swamiji-presence::before {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 230, 154, 0.46), transparent 34%),
    radial-gradient(circle at 50% 34%, rgba(201, 147, 45, 0.38), transparent 58%);
  content: "";
  inset: -28px;
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.swamiji-presence img {
  aspect-ratio: 4 / 5;
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center top;
  width: 100%;
  position: relative;
  z-index: 1;
}

.swamiji-presence figcaption {
  background: linear-gradient(180deg, rgba(38, 7, 12, 0.18), rgba(38, 7, 12, 0.86));
  bottom: 0;
  display: grid;
  gap: 5px;
  left: 0;
  padding: 40px 18px 18px;
  position: absolute;
  right: 0;
  z-index: 2;
}

.swamiji-presence strong,
.swamiji-presence span {
  display: block;
}

.swamiji-presence strong {
  color: #fff6df;
  font-size: 16px;
  line-height: 1.25;
}

.swamiji-presence span {
  color: rgba(255, 239, 202, 0.84);
  font-size: 13px;
  line-height: 1.35;
}

.eyebrow {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 0.98;
  margin: 0;
  max-width: 800px;
}

.hero-copy {
  color: rgba(255, 246, 224, 0.88);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  margin: 22px 0 30px;
  max-width: 610px;
}

.hero-actions,
.tools-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.intake-panel {
  background: rgba(255, 250, 241, 0.95);
  border: 1px solid rgba(224, 180, 90, 0.48);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  justify-self: end;
  max-width: 430px;
  padding: 18px;
  position: relative;
  width: min(360px, calc(100vw - 36px));
  z-index: 2;
}

.panel-heading,
.section-heading {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.panel-heading p {
  font-size: 17px;
  font-weight: 900;
  margin: 0;
}

.panel-heading span {
  background: #f4e6c7;
  border: 1px solid rgba(201, 147, 45, 0.3);
  border-radius: 999px;
  color: var(--brown);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  text-transform: uppercase;
}

input,
select,
textarea {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  outline: none;
  padding: 11px 12px;
  text-transform: none;
  width: 100%;
}

textarea {
  line-height: 1.45;
  min-height: 86px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 147, 45, 0.18);
}

.split-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.full-width {
  width: 100%;
}

.fine-print {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.services-band {
  background: var(--maroon-deep);
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
}

.services-band div {
  background: linear-gradient(135deg, rgba(75, 16, 24, 0.72), rgba(20, 44, 76, 0.64));
  min-height: 150px;
  padding: 24px clamp(18px, 4vw, 54px);
}

.services-band i {
  color: var(--gold-bright);
  height: 26px;
  margin-bottom: 16px;
  width: 26px;
}

.services-band strong,
.services-band span {
  display: block;
}

.services-band strong {
  color: var(--gold-bright);
  font-size: 24px;
  line-height: 1;
}

.services-band span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 8px;
}

.workspace-section,
.flow-section {
  padding: 76px clamp(18px, 4vw, 54px);
}

.workspace-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.72), rgba(245, 239, 227, 0)),
    var(--paper);
}

.flow-section {
  background: #efe3d0;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin: 0 auto 24px;
  max-width: 1220px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  margin: 0;
}

.section-heading .eyebrow {
  color: var(--maroon);
}

.search-box {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  text-transform: none;
  width: min(340px, 100%);
}

.search-box input {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 40px;
  padding: 0;
}

.guide-grid,
.flow-grid {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1220px;
}

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

.guide-card,
.flow-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 18px;
}

.guide-top {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--maroon), var(--blue));
  border-radius: 8px;
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 6px;
  padding: 6px 8px;
  white-space: nowrap;
}

.status::before {
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 8px;
  width: 8px;
}

.status.live {
  background: #e6f6ed;
  color: #0f6b3e;
}

.status.live::before {
  background: #20a464;
}

.status.ready {
  background: #fff0d6;
  color: #8a4c00;
}

.status.ready::before {
  background: #f59e0b;
}

.status.pending {
  background: #fde8e8;
  color: #9f1d2f;
}

.status.pending::before {
  background: #d9293f;
}

.guide-card h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.guide-meta {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 7px;
  line-height: 1.35;
}

.guide-focus {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  background: #f4ead8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  padding: 6px 8px;
}

.card-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 44px;
  margin-top: auto;
}

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

.flow-step {
  min-height: 190px;
  padding: 18px;
}

.flow-index {
  align-items: center;
  background: linear-gradient(135deg, var(--maroon), var(--blue));
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 18px;
  width: 34px;
}

.flow-step h3 {
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 9px;
}

.flow-step p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.empty-state {
  align-items: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  min-height: 180px;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.success-note {
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.toast {
  background: var(--maroon-deep);
  border-radius: 8px;
  bottom: 22px;
  color: white;
  left: 50%;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 20px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  z-index: 20;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.channels-call-anchor {
  min-height: 0;
}

.channels-fallback-call {
  align-items: center;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 14px 36px rgba(23, 32, 31, 0.24);
  color: #21120a;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: 9px;
  min-height: 52px;
  padding: 0 18px;
  position: fixed;
  right: 22px;
  z-index: 60;
}

.channels-fallback-call svg {
  height: 19px;
  width: 19px;
}

.channels-fallback-call.is-hidden {
  display: none;
}

@media (max-width: 1180px) {
  .guide-grid,
  .flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    grid-template-rows: auto auto;
  }

  .swamiji-presence {
    margin-bottom: 0;
  }

  .intake-panel {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 16px;
  }
}

@media (max-width: 820px) {
  .topbar {
    height: 66px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 96px;
  }

  .hero-content {
    padding-bottom: 12px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .swamiji-presence {
    justify-self: center;
    max-width: 340px;
    width: 100%;
  }

  .services-band,
  .guide-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .services-band div {
    min-height: 92px;
  }

  .section-heading,
  .tools-row,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .tools-row select,
  .search-box {
    width: 100%;
  }

  .split-fields {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 460px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero-actions,
  .card-actions {
    grid-template-columns: 1fr;
  }

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

  .card-actions {
    display: grid;
  }

  .card-actions .icon-button {
    width: 100%;
  }

  .mobile-label {
    display: inline;
    font-weight: 800;
  }

  .channels-fallback-call {
    bottom: 14px;
    min-height: 48px;
    right: 14px;
  }
}
