@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --brand-blue: #004aad;
  --brand-blue-strong: #003883;
  --brand-pink: #ff66c4;
  --bg: #ffffff;
  --panel: #f6f9ff;
  --panel-strong: #eef4fb;
  --border: rgba(0, 74, 173, 0.16);
  --border-strong: rgba(0, 74, 173, 0.28);
  --text: #004aad;
  --muted: rgba(0, 74, 173, 0.68);
  --subtle: rgba(0, 74, 173, 0.46);
  --focus: rgba(255, 102, 196, 0.28);
  --shadow: 0 18px 44px rgba(0, 74, 173, 0.12);
  --radius: 24px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.is-dialog-open {
  overflow: hidden;
}

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

button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  background: rgba(255, 102, 196, 0.2);
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  padding: 10px 16px;
  font-weight: 800;
}

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

.public-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(0, 74, 173, 0.09);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.public-header__inner {
  width: min(1700px, calc(100% - 32px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.public-brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: fit-content;
  color: var(--brand-blue);
  font-weight: 850;
}

.public-brand img,
.footer-logo img {
  width: auto;
  height: 36px;
  object-fit: contain;
}

.public-brand span,
.footer-logo span {
  color: var(--brand-blue);
  font-size: 1rem;
  letter-spacing: 0;
}

.public-nav {
  justify-self: start;
  margin-left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.public-nav a,
.mobile-menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  padding: 0 14px;
  font-size: 0.94rem;
  font-weight: 800;
  transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.public-nav a:hover,
.public-nav a:focus-visible,
.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: rgba(255, 102, 196, 0.14);
  color: var(--brand-pink);
  transform: translateY(-1px);
  outline: none;
}

.public-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.public-language-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.public-language-select {
  width: 242px;
  height: 54px;
  appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0 48px 0 20px;
  color: var(--brand-blue);
  background: #fff;
  font: inherit;
  font-weight: 800;
  text-transform: lowercase;
  cursor: pointer;
}

.public-language-shell::after {
  content: "";
  position: absolute;
  right: 20px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand-blue);
  border-bottom: 2px solid var(--brand-blue);
  transform: translateY(-3px) rotate(45deg);
  pointer-events: none;
}

.public-language-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
}

.public-social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.public-social-link {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #2b6bc7, #004aad);
  box-shadow: 0 8px 18px rgba(0, 74, 173, 0.18);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.public-social-link svg {
  display: block;
  width: 27px;
  height: 27px;
  shape-rendering: geometricPrecision;
}

.public-social-link .social-icon-svg--whatsapp,
.public-social-link .social-icon-svg--facebook,
.public-social-link .social-icon-svg--linkedin {
  color: #fff;
  fill: #fff;
  stroke: none;
}

.public-social-link .social-icon-svg--whatsapp {
  width: 28px;
  height: 28px;
}

.public-social-link:hover,
.public-social-link:focus-visible {
  color: #fff;
  background: var(--brand-pink);
  box-shadow: 0 10px 24px rgba(255, 102, 196, 0.38);
  transform: translateY(-1px);
  outline: none;
}

.btn {
  min-height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 0.94rem;
  font-weight: 850;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

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

.btn--primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 74, 173, 0.18);
}

.btn--primary:hover {
  box-shadow: 0 16px 34px rgba(0, 74, 173, 0.24);
}

.btn--quiet {
  color: var(--brand-blue);
  background: #fff;
  border-color: var(--border);
}

.btn--quiet:hover {
  background: var(--panel);
  border-color: var(--border-strong);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--brand-blue);
  background: #fff;
  align-items: center;
  justify-content: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
  position: relative;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__primary {
  background: var(--brand-blue);
  color: #fff !important;
}

.public-product {
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: stretch;
  padding: clamp(18px, 3vw, 32px) clamp(14px, 2.5vw, 28px) 28px;
}

.preview-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(210px, 20%) minmax(0, 1fr) minmax(210px, 20%);
  border: 1px solid var(--border);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 22px 68px rgba(0, 74, 173, 0.09);
  overflow: hidden;
}

.preview-panel {
  min-width: 0;
  padding: 18px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-panel--left {
  border-right: 1px solid var(--border);
}

.preview-panel--right {
  border-left: 1px solid var(--border);
}

.preview-panel__head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-blue);
  font-size: 0.9rem;
}

.panel-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brand-pink);
  box-shadow: 0 0 0 5px rgba(255, 102, 196, 0.14);
}

.preview-panel button,
.preview-list span {
  width: 100%;
  min-height: 44px;
  border-radius: 16px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-blue);
  background: #fff;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: 0.88rem;
  text-align: left;
}

.preview-panel button:hover,
.preview-panel button:focus-visible {
  border-color: var(--border);
  background: var(--panel);
}

.preview-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.preview-list span {
  background: var(--panel);
  color: var(--muted);
}

.chat-preview {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
}

.chat-preview__topline {
  min-height: 58px;
  padding: 12px clamp(14px, 2vw, 24px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--subtle);
  font-size: 0.85rem;
  font-weight: 800;
}

.status-pill {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 102, 196, 0.12);
  color: var(--brand-blue);
}

.chat-preview__center {
  min-height: 0;
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(36px, 9vh, 86px) 0 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.chat-preview h1 {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(2.25rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.chat-preview p {
  width: min(620px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}

.public-composer {
  width: min(720px, 100%);
  min-height: 82px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 74, 173, 0.12);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "input send"
    "tools send";
  align-items: center;
  gap: 6px 10px;
}

.public-composer:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 74, 173, 0.14), 0 0 0 4px rgba(255, 102, 196, 0.14);
}

.public-composer__field {
  grid-area: input;
  min-width: 0;
}

.public-composer textarea {
  width: 100%;
  max-height: 160px;
  min-height: 34px;
  border: 0;
  resize: none;
  outline: none;
  background: transparent;
  color: var(--brand-blue);
  padding: 7px 10px 0;
  font-size: 1rem;
  line-height: 1.45;
}

.public-composer textarea::placeholder {
  color: var(--subtle);
  opacity: 1;
}

.public-composer__tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.composer-tool {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.composer-tool svg {
  width: 17px;
  height: 17px;
}

.composer-tool:hover,
.composer-tool:focus-visible {
  background: var(--panel);
  color: var(--brand-blue);
}

.composer-send {
  grid-area: send;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.composer-send:hover {
  background: var(--brand-blue-strong);
}

.prompt-chips {
  width: min(720px, 100%);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-chips button {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  padding: 0 13px;
  font-size: 0.82rem;
  font-weight: 800;
}

.prompt-chips button:hover,
.prompt-chips button:focus-visible {
  color: var(--brand-blue);
  border-color: var(--border-strong);
  background: #fff;
}

.preview-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.preview-tabs span,
.source-preview span {
  min-height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--brand-blue);
  font-size: 0.86rem;
  font-weight: 850;
}

.source-preview {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.source-preview span {
  height: 74px;
  background:
    linear-gradient(90deg, rgba(0, 74, 173, 0.08) 28%, rgba(255, 255, 255, 0.76) 28%),
    var(--panel);
}

.info-section,
.workflow-section,
.resources-section,
.pricing-section,
.contact-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(78px, 12vw, 140px) 0;
}

.section-copy {
  width: min(760px, 100%);
}

.section-kicker {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 102, 196, 0.12);
  color: var(--brand-blue);
  padding: 0 13px;
  font-size: 0.78rem;
  font-weight: 900;
}

.section-copy h2 {
  margin: 16px 0 0;
  color: var(--brand-blue);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.section-copy a {
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.info-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-grid article {
  min-width: 0;
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 74, 173, 0.06);
  padding: 24px;
}

.info-grid h3 {
  margin: 0;
  font-size: 1.08rem;
}

.info-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.workflow-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
  counter-reset: workflow;
}

.workflow-list li {
  counter-increment: workflow;
  position: relative;
  min-height: 90px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  padding: 20px 20px 20px 74px;
}

.workflow-list li::before {
  content: counter(workflow);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 900;
}

.workflow-list strong {
  display: block;
  font-size: 1rem;
}

.workflow-list span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.resources-section,
.pricing-section,
.contact-section {
  border-top: 1px solid rgba(0, 74, 173, 0.08);
}

.section-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Public home: reuse the signed-in workspace geometry with safe preview data. */
.public-dashboard-home {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(12px, 2.2vw, 24px) clamp(10px, 2vw, 24px) 0;
}

.dashboard-chatbot .public-preview-app {
  width: min(1440px, 100%);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.public-preview-app {
  width: min(1440px, 100%);
  min-height: calc(100dvh - var(--header-height) - 56px);
  height: auto !important;
  margin: 0 auto;
  grid-template-rows: minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 22px 68px rgba(0, 74, 173, 0.09);
  overflow: hidden;
}

#publicPreviewApp.sidebar-collapsed .mobile-close {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.public-preview-app .sidebar,
.public-preview-app .main-pane,
.public-preview-app .public-preview-workspace {
  height: auto !important;
  min-height: 100%;
}

.public-preview-app .sidebar {
  width: 100%;
  min-height: auto;
  align-self: start;
}

.public-preview-app .sidebar-head {
  min-height: 68px;
  height: 68px;
  box-sizing: border-box;
  padding: 10px 12px;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.public-preview-app .sidebar-brand {
  padding: 0 8px;
}

.public-preview-app .sidebar-apps {
  margin-top: 0;
}

.public-preview-app .main-pane {
  overflow: visible;
}

.public-preview-app .thread-head {
  min-height: 68px;
}

.public-preview-app .public-preview-workspace .source-sidebar-head {
  min-height: 68px;
  box-sizing: border-box;
}

.public-preview-app .chat-scroll {
  overflow: visible;
  padding-top: 0;
}

.public-preview-hero {
  width: min(100%, 920px) !important;
  max-width: none !important;
  min-height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) 48px !important;
  justify-content: center;
}

.public-preview-hero .hero-center {
  padding: 0 0 18px;
}

.public-preview-hero h1 {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.public-preview-composer-shell {
  max-width: 920px !important;
}

.public-preview-composer-shell .composer {
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-rows: auto;
  grid-template-areas: none;
}

.public-preview-composer-shell .attachment-tray {
  display: none;
}

.public-preview-composer-shell .search-shell,
.public-preview-composer-shell .composer-utils,
.public-preview-composer-shell .composer-send {
  grid-area: auto;
}

.public-preview-workspace {
  display: flex !important;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  box-shadow: none !important;
}

.public-preview-workspace .source-sidebar-body {
  overflow: visible;
}

@media (min-width: 981px) {
  .public-preview-app:not(.sidebar-collapsed) .sidebar-topbar {
    position: relative;
    justify-content: center;
  }

  .public-preview-app:not(.sidebar-collapsed) .sidebar-brand {
    justify-content: center;
  }

  .public-preview-app:not(.sidebar-collapsed) .mobile-close {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  #publicPreviewApp,
  #publicPreviewApp.sidebar-collapsed {
    grid-template-columns: 20% minmax(0, 1fr) 20%;
  }

  #publicPreviewApp.workspace-collapsed,
  #publicPreviewApp.sidebar-collapsed.workspace-collapsed {
    grid-template-columns: 20% minmax(0, 1fr) 44px;
  }

  .public-preview-app.workspace-collapsed .public-preview-workspace {
    width: 44px !important;
    min-width: 44px;
  }

  .public-preview-app.workspace-collapsed .public-preview-workspace .source-sidebar-head {
    height: 100%;
    padding: 12px 4px;
    border-bottom: 0;
    align-items: flex-start;
    justify-content: center;
  }

  .public-preview-app.workspace-collapsed .public-preview-workspace .source-sidebar-head h2,
  .public-preview-app.workspace-collapsed .public-preview-workspace .source-sidebar-body {
    display: none;
  }
}

.public-workspace-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.public-workspace-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-blue);
}

.public-workspace-card__head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.public-workspace-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.public-guest-row {
  cursor: default;
}

.public-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-social a {
  width: 38px;
  justify-content: center;
  padding: 0;
}

.footer-social a svg {
  width: 17px;
  height: 17px;
}

.footer-social a:last-child {
  font-size: 0.85rem;
  font-weight: 900;
}

.footer-reveal {
  min-height: clamp(104px, 14vh, 152px);
  position: relative;
  display: grid;
  align-items: end;
}

.footer-loader {
  min-height: clamp(76px, 10vh, 108px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.footer-loader.is-visible {
  opacity: 1;
}

.brand-loader {
  width: 52px;
  height: 52px;
  display: block;
}

.brand-loader svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(-90deg);
}

.brand-loader circle {
  fill: none;
  stroke-width: 3;
}

.brand-loader__track {
  stroke: rgba(0, 74, 173, 0.14);
}

.brand-loader__progress {
  stroke: url(#footerLoaderGradient);
  stroke-linecap: round;
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23;
}

.footer-loader.is-visible .brand-loader__progress {
  animation: brand-loader-complete 760ms linear forwards;
}

@keyframes brand-loader-complete {
  to {
    stroke-dashoffset: 0;
  }
}

.footer-sentinel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
}

.public-footer {
  border-top: 0;
  background: #fff;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.public-footer.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.footer-top-line {
  height: 1px;
  background: var(--brand-blue);
}

.footer-inner {
  width: min(1318px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 78px) 0 34px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: clamp(42px, 7vw, 86px);
}

.footer-logo img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.footer-columns {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 58px);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-columns a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  color: var(--brand-blue);
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: nowrap;
}

.footer-columns a svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  color: var(--brand-blue);
}

.footer-columns a:hover,
.footer-columns a:focus-visible {
  color: var(--brand-pink);
  text-decoration: none;
}

.footer-columns a:hover svg,
.footer-columns a:focus-visible svg {
  color: var(--brand-pink);
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
}

.footer-legal {
  width: auto;
  margin: 0;
  padding: 0;
  border-top: 0;
  display: grid;
  gap: 12px;
  color: var(--brand-blue);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 500;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.footer-legal-links a {
  color: var(--brand-blue);
  white-space: nowrap;
}

.footer-legal-links a + a::before {
  content: "|";
  display: inline-block;
  margin: 0 9px;
  color: var(--brand-blue);
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--brand-pink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-right: 24px;
}

.footer-social a {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--brand-blue);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: #fff;
  background: var(--brand-pink);
  box-shadow: 0 8px 18px rgba(255, 102, 196, 0.3);
  transform: translateY(-1px);
  outline: none;
}

.footer-social a svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

.footer-social a .social-icon-svg--whatsapp,
.footer-social a .social-icon-svg--facebook,
.footer-social a .social-icon-svg--linkedin {
  fill: #fff;
  stroke: none;
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  color: var(--brand-blue);
  font-size: 0.95rem;
}

.footer-back-to-top:hover,
.footer-back-to-top:focus-visible {
  color: var(--brand-pink);
  text-decoration: none;
}

.footer-back-to-top__icon {
  width: 40px;
  height: 40px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
}

.auth-dialog[hidden] {
  display: none;
}

.auth-dialog {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 32, 76, 0.34);
  backdrop-filter: blur(8px);
}

.auth-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  border: 1px solid rgba(0, 74, 173, 0.16);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 74, 173, 0.22);
  padding: clamp(28px, 6vw, 42px);
  text-align: center;
}

.auth-dialog__close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  background: #fff;
}

.auth-dialog h2 {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  line-height: 1.1;
}

.auth-dialog p {
  margin: 14px auto 0;
  max-width: 360px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-dialog__actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .preview-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-panel {
    display: none;
  }

  .chat-preview {
    min-height: calc(100dvh - var(--header-height) - 56px);
  }

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

@media (max-width: 820px) {
  .public-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .public-nav {
    display: none;
  }

  .public-actions .btn {
    display: none;
  }

  .public-language-select {
    width: 150px;
    height: 44px;
  }

  .public-social-links {
    gap: 5px;
  }

  .public-social-link {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .public-social-link svg {
    width: 22px;
    height: 22px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .public-brand img {
    height: 32px;
    max-width: min(190px, calc(100vw - 150px));
  }

  .workflow-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-logo img {
    width: 92px;
    height: 92px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-social {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-right: 0;
  }

  .info-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .info-grid article {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 68px;
  }

  .public-header__inner {
    width: min(100% - 20px, 1240px);
  }

  .public-product {
    padding: 12px 10px 22px;
  }

  .public-language-select {
    width: 110px;
    padding-left: 14px;
  }

  .public-actions {
    gap: 4px;
  }

  .public-social-links {
    gap: 3px;
  }

  .public-social-link {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .public-social-link svg {
    width: 18px;
    height: 18px;
  }

  .preview-shell {
    border-radius: 24px;
  }

  .chat-preview__topline {
    min-height: 52px;
    font-size: 0.78rem;
  }

  .chat-preview__center {
    width: min(100% - 20px, 760px);
    padding-top: 34px;
    justify-content: flex-start;
  }

  .chat-preview h1 {
    font-size: clamp(2.1rem, 13vw, 3.1rem);
  }

  .public-composer {
    min-height: 74px;
    border-radius: 26px;
    grid-template-columns: 1fr 42px;
  }

  .composer-tool span {
    display: none;
  }

  .composer-tool {
    min-width: 36px;
    justify-content: center;
    padding: 0;
  }

  .composer-send {
    width: 42px;
    height: 42px;
  }

  .info-section,
  .workflow-section,
  .resources-section,
  .pricing-section,
  .contact-section {
    width: min(100% - 24px, 1120px);
    padding: 76px 0;
  }

  .footer-reveal {
    min-height: 104px;
  }

  .auth-dialog__actions .btn {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .public-dashboard-home {
    padding: 10px;
  }

  .public-preview-app {
    min-height: 0;
    border-radius: 24px;
    overflow: visible;
  }

  .public-preview-app .main-pane {
    min-height: 720px;
  }

  .public-preview-app .public-preview-workspace {
    min-height: 360px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .public-preview-app.workspace-collapsed .public-preview-workspace {
    min-height: 0;
    height: 58px !important;
    overflow: hidden;
  }

  .public-preview-app.workspace-collapsed .public-preview-workspace .source-sidebar-body {
    display: none;
  }

  .public-preview-app .public-preview-workspace .source-sidebar-head {
    border-left: 0;
  }
}

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

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

  .public-footer {
    transform: none;
  }
}

/* Screenshot-matched public footer navigation. */
.public-footer .footer-inner {
  width: min(1550px, calc(100% - 64px));
  padding: clamp(52px, 6vw, 82px) 0 32px;
}

.public-footer .footer-top-grid {
  grid-template-columns: minmax(300px, 1.1fr) minmax(0, 3fr);
  gap: clamp(42px, 6vw, 92px);
}

.public-footer .footer-brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.public-footer .footer-logo {
  margin-bottom: 24px;
}

.public-footer .footer-logo img {
  width: min(155px, 100%);
  height: auto;
  object-fit: contain;
}

.public-footer .footer-brand h2,
.public-footer .footer-column h2 {
  margin: 0 0 22px;
  color: var(--brand-blue);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 850;
}

.public-footer .footer-brand p {
  max-width: 33rem;
  margin: 0;
  color: var(--brand-blue);
  font-size: 1.02rem;
  line-height: 1.7;
}

.public-footer .footer-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3.4vw, 58px);
}

.public-footer .footer-column {
  gap: 15px;
}

.public-footer .footer-column h2 {
  margin-bottom: 4px;
}

.public-footer .footer-columns a {
  display: block;
  color: var(--brand-blue);
  font-size: 0.98rem;
  line-height: 1.4;
  white-space: normal;
}

.public-footer .footer-columns a:hover,
.public-footer .footer-columns a:focus-visible {
  color: var(--brand-pink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.public-footer .footer-columns a svg {
  display: none;
}

.public-footer .footer-brand .footer-social {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
}

.public-footer .footer-brand .footer-social a {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 1px solid rgba(0, 74, 173, 0.2);
  background: #fff;
  color: var(--brand-blue);
}

.public-footer .footer-brand .footer-social a:hover,
.public-footer .footer-brand .footer-social a:focus-visible {
  border-color: var(--brand-pink);
  background: rgba(255, 102, 196, 0.08);
  color: var(--brand-pink);
  box-shadow: 0 8px 18px rgba(255, 102, 196, 0.2);
}

.public-footer .footer-brand .footer-social a svg {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.public-footer .footer-brand .footer-social a .social-icon-svg--whatsapp,
.public-footer .footer-brand .footer-social a .social-icon-svg--facebook,
.public-footer .footer-brand .footer-social a .social-icon-svg--linkedin {
  fill: currentColor;
  stroke: none;
}

.public-footer .footer-bottom {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 48px;
  padding-top: 27px;
  border-top: 1px solid rgba(0, 74, 173, 0.18);
}

.public-footer .footer-meta {
  display: grid;
  gap: 10px;
  color: var(--brand-blue);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 700;
}

.public-footer .footer-legal-links a {
  color: var(--brand-blue);
}

.public-footer .footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.public-footer .footer-legal-links a + a::before {
  content: "|";
  display: inline-block;
  margin: 0 8px;
  color: var(--brand-blue);
}

.public-footer .footer-back-to-top {
  margin-top: 0;
  color: var(--brand-blue);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .public-footer .footer-top-grid {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 3fr);
    gap: 42px;
  }

  .public-footer .footer-columns {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .public-footer .footer-inner {
    width: min(100% - 32px, 720px);
  }

  .public-footer .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .public-footer .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 34px;
  }
}

@media (max-width: 560px) {
  .public-footer .footer-inner {
    width: min(100% - 24px, 480px);
    padding-top: 44px;
  }

  .public-footer .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
  }

  .public-footer .footer-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .public-footer .footer-meta {
    justify-items: start;
    gap: 10px;
  }
}
