:root {
  --primary: oklch(0.572 0.236 277.462);
  --primary-hover: oklch(0.487 0.208 276.975);
  --primary-foreground: #fff;
  --secondary: oklch(0.952 0.024 288.488);
  --background: oklch(0.982 0.002 247.839);
  --card: #fff;
  --foreground: oklch(0.235 0.027 274.760);
  --muted-foreground: oklch(0.551 0.023 264.364);
  --border: oklch(0.928 0.006 264.531);
  --border-strong: #c7c4d7;
  --ring: oklch(0.572 0.236 277.462);
  --success: #11b981;
  --warning: #f59e09;
  --info: #1447e6;
  --error: #ef4444;
  --whatsapp: #25d366;
  --whatsapp-bubble: #d9fdd3;
  --radius: 0.625rem;
  --radius-md: 8px;
  --radius-xl: 14px;
  --navbar-height: 4rem;
  --page: 72rem;
  --page-wide: 80rem;
  --shadow-sm: 0 1px 2px rgb(26 29 43 / 0.05);
  --shadow-soft: 0 10px 40px -10px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 20px 50px -20px rgb(26 29 43 / 0.18);
  --font: Geist, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 1rem);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--background);
  color: var(--foreground);
  font: 400 0.9375rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

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

button, input { font: inherit; }
button { cursor: pointer; color: inherit; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--foreground);
}
h1 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.625rem, 2.4vw, 2.25rem); }
h3 { font-size: 1.0625rem; }
h1 em, h2 em {
  font-style: normal;
  color: var(--primary);
}

:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--ring) 50%, transparent);
  outline-offset: 2px;
}

::selection {
  background: color-mix(in oklch, var(--primary) 22%, white);
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-20 { width: 20px; height: 20px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 500;
}

.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 2rem, var(--page));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container { width: min(100% - 3rem, var(--page)); }
}

@media (min-width: 1280px) {
  .container { width: min(100% - 4rem, var(--page-wide)); }
}

/* ── Header ───────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--navbar-height);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--card) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo { width: 36px; height: 36px; object-fit: contain; }
footer .logo { width: 32px; height: 32px; }

.site-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background-color 240ms ease, color 240ms ease, transform 240ms ease;
}

.site-nav a:hover {
  background: color-mix(in srgb, var(--muted-foreground) 10%, transparent);
  color: var(--foreground);
}

.site-nav a:hover { transform: scale(1.02); }

.nav-login { display: none !important; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--foreground);
}

.icon-btn:hover { background: var(--secondary); }

.menu-btn { order: -1; }
.menu-btn .menu-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-close { display: block; }

.nav-scrim {
  position: fixed;
  inset: var(--navbar-height) 0 0;
  z-index: 40;
  background: color-mix(in oklch, var(--foreground) 28%, transparent);
}

.nav-scrim[hidden] { display: none !important; }

@media (max-width: 1279px) {
  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    z-index: 45;
    top: var(--navbar-height);
    left: 0;
    width: min(85vw, 24rem);
    height: calc(100dvh - var(--navbar-height));
    margin: 0;
    padding: 16px;
    gap: 6px;
    background: var(--card);
    border-right: 1px solid var(--border);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms ease;
  }

  body.nav-open .site-nav {
    transform: none;
    visibility: visible;
  }

  .site-nav a {
    height: 44px;
    padding-inline: 16px;
    background: color-mix(in srgb, var(--muted-foreground) 8%, transparent);
    color: var(--foreground);
  }

  .site-nav a:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: none;
  }

  .nav-login { display: inline-flex !important; }
  .header-login { display: none; }
  .header-actions { margin-left: auto; }
}

@media (min-width: 1280px) {
  .menu-btn { display: none; }
  .site-nav { display: flex; }
  .header-actions { margin-left: 12px; }
}

/* ── Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn-lg { height: 40px; padding-inline: 20px; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline {
  background: var(--card);
  border-color: var(--border);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: var(--secondary); color: var(--primary); }
.btn-ghost { color: var(--foreground); }
.btn-ghost:hover { background: var(--secondary); color: var(--primary); }

/* ── Shared section chrome ────────────────────────────── */

.section { padding-block: 4.5rem; }
.band { background: var(--card); border-block: 1px solid var(--border); }

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head .lead { margin-top: 0.75rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.pill .icon { color: var(--primary); }

.lead {
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.sample-note {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  text-align: center;
}

.tile {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--secondary);
  color: var(--primary);
}

.tile-success { background: color-mix(in srgb, var(--success) 14%, white); color: var(--success); }

.chip, .tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 500;
}

.chip-success, .tag-success {
  background: color-mix(in srgb, var(--success) 14%, white);
  color: var(--success);
}

.chip-stage {
  background: color-mix(in srgb, var(--stage, var(--info)) 12.5%, transparent);
  color: var(--stage, var(--info));
}

.av, .av-brand {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 600;
}

.checks, .features, .ops { display: grid; gap: 12px; }

.checks li, .features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--foreground);
  font-size: 0.9375rem;
}

.checks .icon { margin-top: 3px; color: var(--primary); }

.features li { gap: 14px; }
.features h3 { margin-bottom: 4px; }
.features p { color: var(--muted-foreground); font-size: 0.875rem; }

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 3rem 0 2.5rem;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(70%, 520px);
  background:
    radial-gradient(60% 80% at 85% 0%, color-mix(in oklch, var(--primary) 12%, transparent), transparent 70%),
    radial-gradient(40% 60% at 10% 20%, color-mix(in oklch, var(--primary) 7%, transparent), transparent 65%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
  display: grid;
  gap: 2rem;
}

.hero-copy { max-width: 40rem; }
.hero-copy h1 { margin: 1rem 0; }
.hero-copy .lead { max-width: 36rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 1.25rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero-points .icon { color: var(--primary); }

.hero-visual { min-width: 0; }

/* Product window */

.window {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--background) 70%, white);
}

.window-dots { display: flex; gap: 6px; }
.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.window-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-family: var(--mono);
  font-size: 0.6875rem;
}

.window-url span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
}

.app-brand img { width: 24px; height: 24px; }

.app-pills {
  display: none;
  flex: 1;
  min-width: 0;
  gap: 4px;
  overflow: hidden;
}

.app-pills i {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: color-mix(in srgb, var(--muted-foreground) 8%, transparent);
}

.app-pills .is-on {
  background: var(--primary);
  color: var(--primary-foreground);
}

.app-user {
  margin-left: auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 600;
}

.builder {
  display: grid;
  grid-template-columns: 44px 1fr;
  min-height: 420px;
  background: var(--background);
}

.activity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 6px;
  border-right: 1px solid var(--border);
  background: var(--card);
}

.activity span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted-foreground);
}

.activity .is-on {
  background: var(--secondary);
  color: var(--primary);
}

.canvas {
  position: relative;
  min-width: 0;
  padding: 12px;
  overflow: hidden;
}

.canvas-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.8125rem;
}

.canvas-meta {
  margin-left: auto;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.canvas-meta i { font-style: normal; }

.stage {
  position: relative;
  height: 360px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 14px 14px;
  background-color: var(--card);
  overflow: hidden;
}

.edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: color-mix(in oklch, var(--primary) 35%, white);
  stroke-width: 1.5;
  pointer-events: none;
}

.node {
  position: absolute;
  width: 168px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.node.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 20%, transparent);
}

.node-head { display: flex; gap: 8px; align-items: flex-start; }
.node-ic {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--secondary);
  color: var(--primary);
}
.node-tx { min-width: 0; }
.node-tx b { display: block; font-size: 0.75rem; }
.node-tx small { display: block; margin-top: 2px; color: var(--muted-foreground); font-size: 0.625rem; }
.node-body { margin-top: 8px; }
.node-body p { font-size: 0.6875rem; color: var(--muted-foreground); line-height: 1.4; }
.node-body-fixed { min-height: 2.2rem; }
.node-opts { display: grid; gap: 4px; margin-top: 8px; }
.opt {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--background);
  border: 1px solid var(--border);
  font-size: 0.625rem;
  font-weight: 500;
}
.opt i { font-style: normal; }
.var {
  display: inline-flex;
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--info) 10%, white);
  color: var(--info);
  font-family: var(--mono);
  font-size: 0.5625rem;
}
.var i { font-style: normal; }

.node-thumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.node-thumbs i, .thumb, .wa-card i, .t1, .t2, .t3 {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-block;
}

.t1, .node-thumbs .t1, .wa-card .t1 { background: linear-gradient(135deg, #d4c4a8, #a8895f); }
.t2, .node-thumbs .t2, .wa-card .t2 { background: linear-gradient(135deg, #c9d4e8, #7f92b5); }
.t3, .node-thumbs .t3, .wa-card .t3 { background: linear-gradient(135deg, #d9c8d4, #9a7a8f); }

.node-thumbs span {
  margin-left: 2px;
  font-size: 0.625rem;
  color: var(--muted-foreground);
}

.n-start { left: 16px; top: 88px; width: 130px; }
.n-welcome { left: 186px; top: 48px; width: 180px; }
.n-product { left: 430px; top: 18px; width: 156px; }
.n-ask { left: 430px; top: 168px; width: 156px; }
.n-reply { left: 430px; top: 296px; width: 156px; }
.n-end { left: 645px; top: 308px; width: 88px; }

.preview {
  display: none;
  border-left: 1px solid var(--border);
  background: var(--card);
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

.preview-head .tag { margin-left: auto; }

.wa { display: flex; flex-direction: column; height: calc(100% - 44px); }
.wa-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.wa-av {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 600;
}
.wa-name b { display: block; font-size: 0.8125rem; }
.wa-name small { display: block; color: var(--muted-foreground); font-size: 0.6875rem; }
.wa-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #f0f2f5;
  overflow: hidden;
}
.wa-msg, .msg {
  max-width: 88%;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.08);
  font-size: 0.75rem;
  line-height: 1.4;
  align-self: flex-start;
}
.wa-msg.is-out, .msg.is-out {
  align-self: flex-end;
  background: var(--whatsapp-bubble);
}
.wa-msg time, .msg time {
  display: block;
  margin-top: 4px;
  text-align: right;
  color: var(--muted-foreground);
  font-size: 0.625rem;
}
.wa-btns, .quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wa-btns span, .quick span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--whatsapp) 35%, white);
  background: #fff;
  color: #128c7e;
  font-size: 0.6875rem;
  font-weight: 500;
}
.wa-btns i, .quick span { font-style: normal; }
.wa-cards { display: flex; gap: 8px; }
.wa-card {
  width: 110px;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.08);
}
.wa-card i { width: 100%; height: 54px; border-radius: 8px; margin-bottom: 6px; }
.wa-card b { display: block; font-size: 0.6875rem; }
.wa-card small { color: var(--muted-foreground); font-size: 0.625rem; }
.wa-input, .composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}
.wa-input b, .composer b {
  margin-left: auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
}

@media (min-width: 900px) {
  .app-pills { display: flex; }
}

@media (min-width: 1100px) {
  .builder { grid-template-columns: 44px 1fr 260px; }
  .preview { display: block; }
}

@media (min-width: 1280px) {
  .hero { padding-top: 4rem; padding-bottom: 3.5rem; }
  .hero > .container {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 2.5rem;
  }
  .hero-copy { max-width: none; }
  .hero > .container > .sample-note {
    grid-column: 2;
    text-align: left;
    margin-top: -1rem;
  }
}

@media (max-width: 900px) {
  .stage { height: 300px; }
  .n-start { left: 10px; top: 70px; transform: scale(0.92); transform-origin: top left; }
  .n-welcome { left: 140px; top: 40px; transform: scale(0.92); transform-origin: top left; }
  .n-product, .n-ask, .n-reply, .n-end { display: none; }
  .edges { display: none; }
}

/* ── Journey ──────────────────────────────────────────── */

.journey {
  display: grid;
  gap: 12px;
}

.journey li {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--background);
  box-shadow: var(--shadow-sm);
}

.step-ic {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--secondary);
  color: var(--primary);
  flex-shrink: 0;
}

.step-n {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-foreground);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.journey h3 { margin-bottom: 4px; }
.journey p { color: var(--muted-foreground); font-size: 0.875rem; }

@media (min-width: 900px) {
  .journey {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
  .journey li { flex-direction: column; min-height: 100%; }
}

/* ── Platform tabs ────────────────────────────────────── */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted-foreground) 10%, transparent);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 240ms ease, color 240ms ease;
}

.tab[aria-selected="true"] {
  background: var(--primary);
  color: var(--primary-foreground);
}

.panel {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.panel[hidden] { display: none !important; }

.panel-copy h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
.panel-copy > p { color: var(--muted-foreground); margin-bottom: 1rem; }
.panel-visual { min-width: 0; }

@media (min-width: 1024px) {
  .panel {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    padding: 1.75rem;
    gap: 2rem;
  }
}

.mock {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  font-size: 0.875rem;
}

.mock-bar .chip { margin-left: auto; }
.mock-bar .chip + .chip { margin-left: 0; }

.blocks { display: grid; gap: 8px; padding: 12px; }
.block {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}
.block b { display: block; font-size: 0.8125rem; }
.block small { display: block; margin-top: 2px; color: var(--muted-foreground); font-size: 0.6875rem; }

.prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px;
  padding: 10px 12px;
  border: 1px dashed color-mix(in oklch, var(--primary) 35%, white);
  border-radius: 10px;
  background: color-mix(in oklch, var(--primary) 4%, white);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}
.prompt .icon { color: var(--primary); }
.prompt b {
  margin-left: auto;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
}
.card > .prompt { margin: 0 0 1rem; }

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
}

.kcol {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
}

.khead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.khead i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stage, var(--info));
}

.khead span {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--background);
  font-size: 0.625rem;
}

.kcard {
  padding: 10px;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
}

.kcard b { display: block; font-size: 0.8125rem; }
.kprod {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: var(--muted-foreground);
  font-size: 0.6875rem;
}
.kfoot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted-foreground);
  font-size: 0.6875rem;
}
.kfoot .av { width: 20px; height: 20px; margin-left: auto; font-size: 0.5625rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
}

.stat {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}
.stat small { display: block; color: var(--muted-foreground); font-size: 0.6875rem; }
.stat b { display: block; margin-top: 4px; font-size: 1.125rem; }

.breakdown { padding: 0 12px 12px; }
.breakdown-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.8125rem;
}
.breakdown-head small { color: var(--muted-foreground); }

.bar {
  display: flex;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}
.bar i { display: block; height: 100%; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend b { color: var(--foreground); font-weight: 600; }

.mock-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 12px 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}
.mock-row b { display: block; font-size: 0.8125rem; }
.mock-row small { display: block; margin-top: 2px; color: var(--muted-foreground); font-size: 0.6875rem; }

.store {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.product {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}
.product .thumb {
  width: 100%;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  color: #fff;
}
.product b { display: block; font-size: 0.75rem; }
.product small { color: var(--muted-foreground); font-size: 0.6875rem; }

.checkout {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}
.checkout-title { display: block; margin-bottom: 10px; font-size: 0.875rem; }
.line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.line-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--foreground);
  font-weight: 600;
}
.checkout-label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted-foreground);
  font-size: 0.6875rem;
}
.pay {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
}
.pay i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
}
.pay.is-on {
  border-color: var(--primary);
  background: var(--secondary);
}
.pay.is-on i {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 3px var(--primary);
}
.fake-btn {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  height: 36px;
  align-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
}

@media (min-width: 700px) {
  .store { grid-template-columns: 1.1fr 0.9fr; }
}

/* ── Agent app ────────────────────────────────────────── */

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.split-copy .lead { margin: 0.75rem 0 1.5rem; }
.features { margin-bottom: 1.25rem; }

.platforms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.device-stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 20%, color-mix(in oklch, var(--primary) 10%, transparent), transparent 55%),
    var(--background);
}

.phone {
  width: min(100%, 280px);
  padding: 10px;
  border-radius: 28px;
  background: var(--foreground);
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.chat-who { min-width: 0; flex: 1; }
.chat-who b { display: block; font-size: 0.875rem; }
.chat-who small { display: block; color: var(--warning); font-size: 0.6875rem; }
.switch {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--primary);
  position: relative;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  min-height: 260px;
  background: #f0f2f5;
}

.sys {
  align-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--warning) 14%, white);
  color: #92400e;
  font-size: 0.625rem;
  font-weight: 500;
}

.quick { padding: 0 12px 10px; background: #f0f2f5; }

.push {
  display: flex;
  gap: 10px;
  width: min(100%, 320px);
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.push img { width: 28px; height: 28px; }
.push small { display: block; color: var(--muted-foreground); font-size: 0.625rem; }
.push b { display: block; font-size: 0.8125rem; }
.push > span > span { display: block; color: var(--muted-foreground); font-size: 0.75rem; }

@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

/* ── AI + ops ─────────────────────────────────────────── */

.ai-grid {
  display: grid;
  gap: 12px;
}

.card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted-foreground); font-size: 0.875rem; }

.ops {
  display: grid;
  gap: 12px;
}

.ops li {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--background);
  box-shadow: var(--shadow-sm);
}

.ops .tile { margin-bottom: 12px; }
.ops h3 { margin-bottom: 6px; }
.ops p { color: var(--muted-foreground); font-size: 0.875rem; }

@media (min-width: 768px) {
  .ai-grid { grid-template-columns: repeat(3, 1fr); }
  .ops { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .ops { grid-template-columns: repeat(3, 1fr); }
}

/* ── FAQ ──────────────────────────────────────────────── */

.faq {
  display: grid;
  gap: 2rem;
}

.faq-intro .lead { margin: 0.75rem 0 1.25rem; }

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 1.05rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon {
  color: var(--primary);
  transition: transform 180ms ease;
}
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p {
  padding: 0 2rem 1rem 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .faq {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
  }
}

/* ── Closing + footer ─────────────────────────────────── */

.closing { padding: 1rem 0 4rem; }

.cta {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in oklch, var(--primary) 14%, transparent), transparent 42%),
    var(--card);
  box-shadow: var(--shadow-sm);
}

.cta h2 { margin-bottom: 0.75rem; }
.cta .lead { max-width: 32rem; margin: 0 auto 1.5rem; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cta-contact,
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.cta-contact {
  justify-content: center;
  margin-top: 1.25rem;
}

.footer-contact { margin-top: 1rem; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-link .icon { color: var(--primary); }
.contact-link:hover { color: var(--primary); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  background: var(--card);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  max-width: 18rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.site-footer nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.site-footer nav h2 {
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--foreground);
  font-size: 0.875rem;
}

.site-footer nav a:hover { color: var(--primary); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

.footer-base-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-base-contact a:hover { color: var(--primary); }

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ── Tour dialog ──────────────────────────────────────── */

.tour {
  width: min(32rem, calc(100% - 2rem));
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-lg);
}

.tour::backdrop {
  background: color-mix(in oklch, var(--foreground) 28%, transparent);
}

.tour[open] { animation: dialog-in 200ms ease; }

@keyframes dialog-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.tour-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.tour h2 { margin: 0.25rem 2rem 0.5rem 0; font-size: 1.5rem; }
.tour-text { color: var(--muted-foreground); font-size: 0.9375rem; }

.tour-stage {
  margin-top: 1.25rem;
  padding: 1.25rem;
  min-height: 180px;
  border-radius: 12px;
  background: var(--background);
  border: 1px solid var(--border);
}

.tour-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1.25rem;
}

.tour-dots { display: flex; gap: 6px; }
.tour-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
}
.tour-dots .is-on { background: var(--primary); }

.chat-plain, .quick-plain { background: transparent; padding: 0; min-height: 0; }
.tour-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}
.tour-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tour-card-head b { display: block; font-size: 0.9375rem; }
.tour-card-head small { display: block; color: var(--muted-foreground); font-size: 0.75rem; }
.tour-card-head .chip { margin-left: auto; }

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

/* ── Legal / Privacy Policy page ──────────────────────── */

.policy-hero {
  padding: 3.25rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.policy-hero-inner {
  max-width: 48rem;
}

.policy-hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  margin-bottom: 0.75rem;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

.policy-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.policy-meta-item .icon {
  color: var(--primary);
}

.policy-layout {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem 4.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .policy-layout {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 3.25rem;
  }
}

.policy-toc {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 960px) {
  .policy-toc {
    position: sticky;
    top: calc(var(--navbar-height) + 1.5rem);
  }
}

.policy-toc h2 {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.policy-toc ol {
  display: grid;
  gap: 6px;
}

.policy-toc a {
  display: block;
  padding: 5px 8px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  transition: background-color 180ms ease, color 180ms ease;
}

.policy-toc a:hover {
  background: var(--secondary);
  color: var(--primary);
}

.policy-content {
  min-width: 0;
  max-width: 48rem;
  display: grid;
  gap: 2.5rem;
}

.policy-section {
  scroll-margin-top: calc(var(--navbar-height) + 1.5rem);
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.policy-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.policy-section h2 {
  font-size: clamp(1.3125rem, 2vw, 1.625rem);
  margin-bottom: 0.875rem;
}

.policy-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--foreground);
}

.policy-section p {
  color: var(--foreground);
  line-height: 1.65;
}

.policy-section p + p {
  margin-top: 0.875rem;
}

.policy-section ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
  display: grid;
  gap: 8px;
}

.policy-section li {
  line-height: 1.6;
  color: var(--foreground);
}

.policy-section li strong {
  font-weight: 600;
}

.policy-section a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-section a:hover {
  color: var(--primary-hover);
}

.policy-section code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--secondary);
  color: var(--foreground);
  font: 500 0.8125rem/1.4 var(--mono);
}

.policy-callout {
  margin-top: 1.125rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.policy-callout p {
  font-size: 0.9375rem;
}

.policy-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .policy-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.policy-card {
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.policy-card h3 {
  margin-top: 0;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
}

.policy-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.55;
}

.policy-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.policy-table th,
.policy-table td {
  padding: 0.875rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.policy-table th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  background: var(--background);
}

.policy-table tr:last-child td {
  border-bottom: 0;
}

.policy-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}
