/* On-chat public landing page. Plain CSS (no framework) so the page renders fast. */

:root {
  --brand: #18181a;
  --brand-strong: #cf431a; /* buttons - passes AA contrast with white text */
  --brand-strong-hover: #b3380f;
  --brand-text: #c03c13;
  --brand-soft: #fff0ea;

  --bg: #fbfaf8;
  --bg-alt: #f3f1ed;
  --surface: #ffffff;
  --ink: #18181a;
  --text: #2a2a2e;
  --muted: #5d5d66;
  --line: #e6e2dc;
  --chat-in: #ffffff;
  --chat-out: #ffe3d8;
  --shadow: 0 1px 2px rgba(24, 24, 26, 0.06), 0 12px 32px -12px rgba(24, 24, 26, 0.18);
  --phone-frame: #18181a;

  --radius: 14px;
  --radius-lg: 22px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --container: 1160px;

  color-scheme: light;
}


[dir="rtl"] {
  --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --font-head: "IBM Plex Sans Arabic", "Bricolage Grotesque", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-text);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only,
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.container.narrow {
  max-width: 820px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font: 600 15px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-lg {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--brand-strong);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-strong-hover);
}
.btn-outline {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--bg-alt);
}
.btn-light {
  background: #fff;
  color: #18181a;
}
.btn-light:hover {
  background: #ffe3d8;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  width: 30px;
  height: 30px;
  fill: var(--brand);
}
.logo-word {
  font: 400 24px/1 var(--font-body);
  letter-spacing: -0.02em;
}
.logo-word b {
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.nav-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-alt);
}
.nav-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-menu.is-open {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    margin: 0;
  }
  .nav-links a {
    padding: 12px;
    font-size: 16px;
  }
  .nav-actions {
    flex-direction: column;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent);
  pointer-events: none;
}
[dir="rtl"] .hero::before {
  inset: -20% auto auto -10%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--brand-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 800;
}
.hero h1 .accent {
  color: var(--brand);
}
.lede {
  max-width: 560px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 19px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.fine-print {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* product mockups (decorative, built in HTML so text stays crisp in both themes) */

.hero-visual {
  position: relative;
  min-height: 520px;
}

.mock-phone {
  position: relative;
  width: 300px;
  margin-inline: auto 24px;
  overflow: hidden;
  border: 10px solid var(--phone-frame);
  border-radius: 38px;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}
.mock-phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.mock-phone-top small {
  display: block;
  color: #1f9d55;
  font-size: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 400px;
  padding: 16px 12px 22px;
}
.bubble {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 14px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.bubble.in {
  align-self: flex-start;
  background: var(--chat-in);
  border-end-start-radius: 4px;
}
.bubble.out {
  align-self: flex-end;
  background: var(--chat-out);
  border-end-end-radius: 4px;
}
.chat .bubble {
  opacity: 0;
  animation: pop 0.5s ease forwards;
}
.chat .bubble:nth-child(2) { animation-delay: 0.5s; }
.chat .bubble:nth-child(3) { animation-delay: 1s; }
.chat .bubble:nth-child(4) { animation-delay: 1.5s; }

@keyframes pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.quick-replies span {
  padding: 6px 10px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-text);
  font-size: 12px;
  font-weight: 600;
}

.mock-card {
  position: absolute;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13px;
}
.mock-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* channels strip */

.channels {
  margin-top: 64px;
  text-align: center;
}
.channels-title {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.channel-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.channel-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.channel-list img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
}
.section-head > p:last-child:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover {
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
  transform: translateY(-2px);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--brand-soft);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--brand-text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  font-size: 20px;
  font-weight: 700;
}
.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

/* split layout */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.split-copy h2 {
  margin-bottom: 20px;
}
.split-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}
.split-copy .btn {
  margin-top: 28px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-inline-start: 32px;
}
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23cf431a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}
.check-list.compact {
  gap: 10px;
  font-size: 15px;
}

/* ticketing workspace mockup */

.mock-workspace {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 14px;
}
.ws-list {
  padding: 16px 10px;
  border-inline-end: 1px solid var(--line);
}
.ws-list .mock-label {
  padding-inline: 8px;
}
.ws-item {
  padding: 10px;
  border-radius: 10px;
}
.ws-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}
.ws-item small {
  color: var(--muted);
}
.ws-item.active {
  background: var(--brand-soft);
}
.ws-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--bg-alt);
}
.ws-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: #e3f5ea;
  color: #17653a;
  font-size: 12px;
  font-weight: 600;
}
.ws-compose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
}
.ws-compose .send {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--brand-strong);
  color: #fff;
  font-weight: 600;
}

/* steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 28px;
  border-top: 3px solid var(--ink);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--brand);
  font: 700 15px/1 var(--font-head);
}
.steps h3 {
  font-size: 22px;
}
.steps p {
  margin-top: 8px;
  color: var(--muted);
}

.use-cases {
  margin-top: 64px;
  text-align: center;
}
.use-cases h3 {
  font-size: 18px;
}
.use-cases ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.use-cases li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

/* pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.plan-featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
}
.plan-badge {
  position: absolute;
  top: -13px;
  inset-inline-start: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-strong);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.plan h3 {
  font-size: 22px;
}
.plan-desc {
  min-height: 1.6em;
  color: var(--muted);
  font-size: 15px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan-price .amount {
  color: var(--ink);
  font: 800 44px/1 var(--font-head);
  letter-spacing: -0.03em;
}
.plan-price .currency,
.plan-price .interval {
  color: var(--muted);
  font-size: 15px;
}
.plans-fallback {
  max-width: 520px;
  margin: 0 auto;
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}
.plans-fallback .btn {
  margin-top: 18px;
}

/* FAQ */

.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--brand-text);
  font: 400 26px/1 var(--font-body);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq summary h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}
.faq details p {
  padding: 0 22px 22px;
  color: var(--muted);
}

/* contact */

.contact-details {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.contact-details a {
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 6px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.contact-form label {
  margin-top: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent);
}
.contact-form [aria-invalid="true"] {
  border-color: #c92a2a;
}
.contact-form .btn {
  margin-top: 18px;
}
.field-error {
  color: #c92a2a;
  font-size: 14px;
}
.form-alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
}
.form-alert.success {
  background: #e3f5ea;
  color: #17653a;
}
.form-alert.error {
  background: #fde8e8;
  color: #a51d1d;
}

/* CTA band */

.cta-band {
  padding: 88px 0;
  background: #18181a;
  color: #e9e6e1;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
}
.cta-band p {
  margin: 14px 0 30px;
  font-size: 18px;
}

/* footer */

.site-footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
}
.footer-tag {
  max-width: 320px;
  margin-top: 14px;
  color: var(--muted);
}
.site-footer h2 {
  margin-bottom: 14px;
  font: 600 14px/1.2 var(--font-body);
  letter-spacing: 0;
}
.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer ul a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer ul a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-visual {
    width: min(560px, 100%);
    margin-inline: auto;
  }
  .lede {
    margin-inline: auto;
  }
  .cta-row {
    justify-content: center;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .container {
    padding-inline: 16px;
  }
  .hero {
    padding-top: 32px;
  }
  .hero-visual {
    min-height: 0;
  }
  .mock-phone {
    width: min(300px, 100%);
    margin-inline: auto;
  }
  .chat {
    min-height: 0;
  }
  .cta-row .btn {
    width: 100%;
  }
  .section {
    padding: 64px 0;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .mock-workspace {
    grid-template-columns: 1fr;
  }
  .ws-list {
    display: none;
  }
  .contact-form {
    padding: 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Solution pages ---------- */

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-inline-end: 6px;
  color: var(--line);
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.breadcrumbs [aria-current] {
  color: var(--ink);
  font-weight: 500;
}

.hero-sub {
  padding-top: 32px;
}
.hero-sub h1 {
  font-size: clamp(32px, 4.4vw, 52px);
}
.hero-visual-sub {
  min-height: 0;
}
.hero-visual-sub .chat {
  min-height: 300px;
}
.hero-center {
  padding-bottom: 8px;
  text-align: center;
}
.hero-center .lede {
  margin-inline: auto;
}

.section-divided {
  border-top: 1px solid var(--line);
}
.section-tight {
  padding-top: 48px;
}
.group-title {
  margin: 0 0 20px;
  font-size: 24px !important;
}
.solution-grid + .group-title {
  margin-top: 56px;
}

.solution-grid {
  display: grid;
  /* at most three columns, dropping to fewer as the screen narrows */
  grid-template-columns: repeat(auto-fill, minmax(max(260px, calc((100% - 40px) / 3)), 1fr));
  gap: 20px;
}
.solution-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.solution-card:hover {
  border-color: color-mix(in srgb, var(--brand) 50%, var(--line));
  transform: translateY(-2px);
}
.solution-card h3 {
  font-size: 20px;
}
.solution-card p {
  color: var(--muted);
  font-size: 15px;
}
.solution-kind {
  color: var(--brand-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.solution-more {
  margin-top: auto;
  padding-top: 6px;
  color: var(--brand-text);
  font-weight: 600;
  font-size: 15px;
}

@media (max-width: 640px) {
  .hero-visual-sub .chat {
    min-height: 0;
  }
}

/* ---------- Flow canvas mock ---------- */

.hero-visual-flow {
  min-height: 0;
}

.flow-canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 28%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  box-shadow: var(--shadow);
  font-size: 13px;
}

.fc-node {
  width: min(320px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.fc-type {
  display: block;
  padding: 6px 10px;
  background: #3b3b42;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.fc-node p {
  padding: 9px 10px;
  color: var(--ink);
  line-height: 1.45;
}
.fc-node code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand-text);
  font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}
.fc-trigger .fc-type {
  background: #1f7a4d;
}
.fc-split .fc-type {
  background: var(--brand-strong);
}
.fc-accent .fc-type {
  background: #2f5fb3;
}
.fc-exits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px 10px;
  border-top: 1px dashed var(--line);
}
.fc-exits span {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.fc-wire {
  width: 2px;
  height: 18px;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
}
.fc-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}
.fc-small {
  width: 100%;
}
.fc-small .fc-type {
  font-size: 10px;
}
.fc-small p {
  font-size: 12px;
}

.card-link {
  color: inherit;
  text-decoration: none;
}
.card-link:hover {
  color: var(--brand-text);
}

@media (max-width: 480px) {
  .fc-branches {
    grid-template-columns: 1fr;
  }
}

/* ---------- Guides ---------- */

.article {
  padding-top: 28px;
  padding-bottom: 80px;
}
.article-head {
  max-width: 820px;
  margin-bottom: 40px;
}
.article-head h1 {
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 800;
}
.article-head .lede {
  max-width: none;
}
.article-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 56px;
}
.article-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 20px;
}
.toc-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-inline-start: 2px solid var(--line);
}
.toc a {
  display: block;
  margin-inline-start: -2px;
  padding: 6px 12px;
  border-inline-start: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
.toc a:hover,
.toc a.is-active {
  border-inline-start-color: var(--brand);
  color: var(--ink);
}
.aside-cta {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
}
.aside-cta p:not(:first-child) {
  color: var(--muted);
}
.aside-cta .btn {
  margin-top: 6px;
}

.prose {
  max-width: 740px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  scroll-margin-top: 92px;
}
.prose h3 {
  margin-top: 1.8em;
  font-size: 21px;
  font-weight: 700;
}
.prose h2 + *,
.prose h3 + * {
  margin-top: 0.6em;
}
.prose a {
  color: var(--brand-text);
  font-weight: 500;
  text-underline-offset: 3px;
}
.prose ul,
.prose ol {
  padding-inline-start: 1.4em;
}
.prose li + li {
  margin-top: 0.35em;
}
.prose strong {
  color: var(--ink);
}
.prose blockquote {
  margin-inline: 0;
  padding: 14px 18px;
  border-inline-start: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: var(--brand-soft);
  color: var(--ink);
}
.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--ink);
  font: 500 0.85em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}
.prose pre {
  overflow-x: auto;
  padding: 18px 20px;
  border-radius: 12px;
  background: #18181a;
  color: #f4f2ef;
  font-size: 14px;
  line-height: 1.6;
}
.prose pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}
.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.prose th {
  color: var(--ink);
  font-weight: 600;
  background: var(--bg-alt);
}

@media (max-width: 1000px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .article-aside {
    position: static;
    order: -1;
  }
  .aside-cta {
    display: none;
  }
}
@media (max-width: 640px) {
  .prose {
    font-size: 17px;
  }
}

/* ---------- GEO: answer-ready content ---------- */

.definition {
  max-width: 560px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}
.hero-copy .definition {
  margin-inline: inherit;
}
@media (max-width: 1000px) {
  .hero-copy .definition {
    margin-inline: auto;
  }
}

.answer-summary {
  max-width: 820px;
  margin-top: 24px;
  padding: 18px 22px;
  border-inline-start: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--brand-soft);
  color: var(--ink);
}
[dir="rtl"] .answer-summary {
  border-radius: var(--radius) 0 0 var(--radius);
}
.answer-summary p + p {
  margin-top: 6px;
}
.answer-label {
  color: var(--brand-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.summary-wrap .answer-summary {
  margin: 8px auto 0;
}
.section-answer {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 17px;
}
.updated-line {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Comparisons ---------- */

.comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.comparison-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.comparison-table thead th {
  background: var(--bg-alt);
  color: var(--ink);
  font-weight: 600;
}
.comparison-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  width: 22%;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}
.source-link {
  margin-inline-start: 6px;
  color: var(--muted);
  font-size: 12px;
  vertical-align: super;
}
.checked-line {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.choose-grid > div {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.choose-grid h3 {
  margin-bottom: 8px;
  font-size: 20px;
}
@media (max-width: 640px) {
  .choose-grid {
    grid-template-columns: 1fr;
  }
}
