/* ==================================================
   PockUp — landing site
   Same colours as the app: black + orange (dark, default)
   and white + orange (light).
   ================================================== */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #111111;
  --card: #161616;
  --card-2: #1d1d1d;
  --border: #262626;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --subtle: #8a8a8a;
  --accent: #e0520a;
  --accent-hover: #c94a09;
  --accent-text: #ff9a4d;
  --accent-soft: rgba(255, 122, 26, 0.14);
  --on-accent: #ffffff;
  --good: #4ade80;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --glow: radial-gradient(60% 60% at 70% 20%, rgba(224, 82, 10, 0.22), transparent 70%);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafafa;
  --surface: #f3f3f4;
  --card: #ffffff;
  --card-2: #f6f6f7;
  --border: #e5e5e5;
  --text: #111111;
  --muted: #4d4d4d;
  --subtle: #6b6b6b;
  --accent: #e0520a;
  --accent-hover: #c94a09;
  --accent-text: #c2410c;
  --accent-soft: rgba(224, 82, 10, 0.1);
  --on-accent: #ffffff;
  --good: #15803d;
  --shadow: 0 24px 60px -28px rgba(17, 17, 17, 0.25);
  --glow: radial-gradient(60% 60% at 70% 20%, rgba(224, 82, 10, 0.12), transparent 70%);
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Tamil", "Latha", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

/* line icons from assets/icons.svg */
.i {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

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


/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--subtle);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 10px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}


/* ---------- header ---------- */

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--card);
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.menu-toggle {
  display: none;
}

@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .site-header[data-open="true"] .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    padding: 12px;
    font-size: 17px;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .header-cta { display: none; }
}


/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glow);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero { padding-block: 64px 80px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 800;
}

.hero h1 .accent {
  color: var(--accent-text);
}

.hero .lead {
  margin-top: 16px;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.075rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points svg {
  width: 18px;
  height: 18px;
  color: var(--accent-text);
}


/* ---------- chat preview (hero visual) ---------- */

.preview {
  justify-self: center;
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.bot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  flex: none;
}

.bot svg {
  width: 19px;
  height: 19px;
}

.preview-top div strong {
  display: block;
  font-size: 15px;
}

.preview-top div span {
  display: block;
  color: var(--subtle);
  font-size: 13px;
}

.preview-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 16px 22px;
}

.msg-user {
  align-self: flex-end;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px 18px 6px 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  line-height: 1.45;
}

.msg-user .mic {
  display: inline-flex;
  vertical-align: -3px;
  margin-right: 6px;
}

.msg-user .mic svg {
  width: 16px;
  height: 16px;
}

.msg-bot {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.msg-bot .bot {
  width: 28px;
  height: 28px;
}

.msg-bot .bot svg {
  width: 16px;
  height: 16px;
}

.card-mini {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  font-size: 14px;
}

.card-mini .label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--good);
  font-size: 13px;
  font-weight: 650;
}

.card-mini .label svg {
  width: 15px;
  height: 15px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}

.row + .row {
  border-top: 1px dashed var(--border);
  margin-top: 8px;
}

.row small {
  display: block;
  color: var(--subtle);
  font-size: 12px;
}

.amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.big-number {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.card-mini .note {
  color: var(--muted);
  font-size: 13px;
}


/* ---------- strip ---------- */

.strip {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  margin: 0;
  padding: 18px 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.strip li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}


/* ---------- sections ---------- */

.section {
  padding-block: 64px;
}

@media (min-width: 960px) {
  .section { padding-block: 84px; }
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  margin-top: 10px;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 800;
}

.section-lead,
.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16.5px;
}


/* ---------- feature grid ---------- */

.grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.tile {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}

.tile h3 {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 700;
}

.tile p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.tile-icon svg {
  width: 21px;
  height: 21px;
}

.example {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
}


/* ---------- steps ---------- */

.steps {
  counter-reset: step;
}

.steps .tile {
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}


/* ---------- languages / split ---------- */

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

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

.check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  color: var(--muted);
}

.check-list li strong {
  color: var(--text);
}

.check-list svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  color: var(--accent-text);
}

.say-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.say-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.say-list .lang {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.say-list q {
  quotes: none;
  font-size: 15px;
  font-weight: 600;
}


/* ---------- platforms ---------- */

.platform {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.platform .badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-live {
  background: rgba(74, 222, 128, 0.14);
  color: var(--good);
}

.badge-soon {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.platform .btn {
  margin-top: auto;
  align-self: flex-start;
}

.platform .tile-icon {
  margin-bottom: 4px;
}

.platform h3 {
  margin-top: 0;
}

.platform p {
  margin-top: 0;
}


/* ---------- support / donate ---------- */

.support {
  display: grid;
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(70% 120% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--card);
}

@media (min-width: 900px) {
  .support { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; padding: 44px; }
}

.support h2 {
  margin-top: 10px;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 800;
}

.support p {
  margin-top: 14px;
  color: var(--muted);
}

.support-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-actions .fine {
  color: var(--subtle);
  font-size: 14px;
}


/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

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

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent-text);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details > div {
  padding: 0 20px 18px;
  color: var(--muted);
}


/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
}

.cta-band h2 {
  max-width: 720px;
  margin-inline: auto;
}

.cta-band p {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16.5px;
}

.cta-band .hero-actions {
  justify-content: center;
}


/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 48px 28px;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  gap: 36px;
}

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

.footer-grid p {
  margin-top: 14px;
  max-width: 340px;
  color: var(--muted);
}

.footer-grid h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.footer-grid ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 13px;
}


/* ---------- legal pages ---------- */

.legal {
  padding-block: 44px 80px;
}

.legal-inner {
  max-width: 720px;
  margin-inline: auto;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--subtle);
  font-size: 14px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
}

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

.legal h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
}

.legal .updated {
  margin-top: 12px;
  color: var(--subtle);
  font-size: 15px;
}

.legal .summary {
  margin-top: 32px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: var(--card);
}

.legal .summary ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.legal .summary li + li {
  margin-top: 6px;
}

.legal .toc {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.legal .toc ol {
  margin: 10px 0 0;
  padding-left: 22px;
  columns: 2 240px;
  column-gap: 32px;
}

.legal .toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.legal h2 {
  margin-top: 40px;
  font-size: 20px;
  font-weight: 750;
}

.legal h3 {
  margin-top: 24px;
  font-size: 16.5px;
  font-weight: 700;
}

.legal p,
.legal ul,
.legal ol:not(.toc ol) {
  margin-top: 14px;
  color: var(--muted);
}

.legal li + li {
  margin-top: 8px;
}

.legal strong {
  color: var(--text);
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.legal table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.legal th,
.legal td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--card);
  color: var(--text);
  font-weight: 650;
}

.legal td {
  color: var(--muted);
}

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

.callout {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.callout p:first-child {
  margin-top: 0;
}


/* ---------- 404 ---------- */

.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding-block: 64px;
  text-align: center;
}

.not-found .big-number {
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  color: var(--accent-text);
}

.not-found p {
  margin-top: 12px;
  color: var(--muted);
}

.not-found .hero-actions {
  justify-content: center;
}


/* ==================================================
   LIVE CHAT PREVIEW (hero)
   ================================================== */

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* The PockUp bot = the P logo with eyes */
.pbot {
  width: 30px;
  height: 30px;
  flex: none;
}

.pbot-lg {
  width: 38px;
  height: 38px;
}

.pbot path {
  fill: url(#pk-grad);
}

.pbot circle {
  fill: #1A0700;
}

.preview-top .status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
}

/* fixed-height window; new messages push old ones up */
.preview-body {
  height: 440px;
  overflow: hidden;
  justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 56px);
}

.preview-body > * {
  flex: none;
}

.chat-in {
  animation: chat-in 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes chat-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.chat-out {
  transition: opacity 0.4s ease;
  opacity: 0;
}

.typing-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--subtle);
  font-size: 13px;
}

.typing-row .pbot {
  width: 34px;
  height: 34px;
}

/* composer */
.preview-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.composer-field {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  transition: border-color 0.2s;
}

.composer-field.is-typing {
  color: var(--text);
  border-color: var(--accent);
}

.composer-field.is-typing::after {
  content: "";
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  background: var(--accent-text);
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.composer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}

.composer-btn svg {
  width: 18px;
  height: 18px;
}

.composer-btn.is-listening {
  animation: listen 1.2s ease-out infinite;
}

@keyframes listen {
  0% { box-shadow: 0 0 0 0 rgba(224, 82, 10, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(224, 82, 10, 0); }
}

/* bot typing: eyes -> blink -> the logo's three dots -> one wave (4s) */
.pk-typing .pk-dot {
  transform-box: fill-box;
  transform-origin: center;
}
.pk-typing .pk-dot-1 { animation: pk-dot-1 4s ease-in-out infinite; }
.pk-typing .pk-dot-2 { animation: pk-dot-2 4s ease-in-out infinite; }
.pk-typing .pk-dot-3 { animation: pk-dot-3 4s ease-in-out infinite; }

@keyframes pk-dot-1 {
  0%, 8% { transform: translate(0, 0) scale(1); }
  12% { transform: translate(0, 0) scale(1, 0.15); }
  16%, 22% { transform: translate(0, 0) scale(1); }
  30% { transform: translate(-22px, 0) scale(0.95); }
  40% { transform: translate(-22px, -18px) scale(0.95); }
  50%, 90% { transform: translate(-22px, 0) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes pk-dot-2 {
  0%, 22% { transform: scale(0); }
  30%, 40% { transform: scale(1); }
  50% { transform: translate(0, -18px) scale(1); }
  60%, 90% { transform: scale(1); }
  100% { transform: scale(0); }
}
@keyframes pk-dot-3 {
  0%, 8% { transform: translate(0, 0) scale(1); }
  12% { transform: translate(0, 0) scale(1, 0.15); }
  16%, 22% { transform: translate(0, 0) scale(1); }
  30%, 50% { transform: translate(22px, 0) scale(0.95); }
  60% { transform: translate(22px, -18px) scale(0.95); }
  70%, 90% { transform: translate(22px, 0) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@media (max-width: 480px) {
  .preview-body { height: 400px; }
}

/* Laptops/desktops: the whole chat (header, messages, composer)
   fits on screen, even on short 1366x768 screens */
@media (min-width: 960px) {
  .preview-body { height: clamp(260px, calc(100svh - 300px), 440px); }
}

@media (min-width: 960px) and (max-height: 820px) {
  .hero { padding-block: 36px 56px; }
}


/* ==================================================
   INSIGHTS SHOWCASE
   ================================================== */

:root,
:root[data-theme="dark"] {
  --bar-soft: #6B3A1F;
  --track: #262626;
}

:root[data-theme="light"] {
  --bar-soft: #F5BC98;
  --track: #EEEEEF;
}

.dash {
  display: grid;
  gap: 16px;
}

.dash-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.dash-label {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
}

.dash-big {
  margin-top: 4px;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.dash-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 0;
}

.dash-kpis dt {
  color: var(--subtle);
  font-size: 12px;
}

.dash-kpis dd {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.dash-kpis dd.good {
  color: var(--good);
}

.dash-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 15px;
}

.dash-tip strong {
  color: var(--text);
}

.dash-tip-icon,
.cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--card-2);
  color: var(--muted);
}

.dash-tip-icon svg,
.cat-icon svg {
  width: 17px;
  height: 17px;
}

.dash-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .dash-grid { grid-template-columns: 1.15fr 1fr; }
}

.dash-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 18px;
  font-size: 15px;
}

.dash-row .muted {
  color: var(--muted);
}

.dash-row strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

/* daily bars */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 190px;
  padding-top: 8px;
  border-bottom: 1px solid var(--border);
}

.bar {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 4px 4px 0 0;
  background: var(--bar-soft);
  transform-origin: bottom;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bar.top {
  background: var(--accent);
}

.bar:hover {
  filter: brightness(1.12);
}

/* hover tooltip (values from data-tip) */
.bar::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 2;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.15s, transform 0.15s;
}

.bar:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.h-1 { height: 1.5%; }
.h-2 { height: 2.5%; }
.h-3 { height: 3.5%; }
.h-6 { height: 6%; }
.h-9 { height: 9%; }
.h-72 { height: 72%; }
.h-75 { height: 75%; }
.h-100 { height: 100%; }

.bars-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--subtle);
  font-size: 12px;
}

/* categories */
.cats {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.cats li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-main {
  flex: 1;
  min-width: 0;
}

.cat-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
}

.cat-line strong {
  font-variant-numeric: tabular-nums;
}

.track {
  display: block;
  height: 6px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.w-2 { width: 2%; }
.w-4 { width: 4%; }
.w-6 { width: 6%; }
.w-11 { width: 11%; }
.w-25 { width: 25%; }
.w-51 { width: 51%; }

.cat-pct {
  width: 38px;
  flex: none;
  text-align: right;
  color: var(--subtle);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.dash-note {
  color: var(--subtle);
  font-size: 13px;
  text-align: right;
}

/* animate in when scrolled into view (only when JS is on) */
.js .dash:not(.in-view) .bar { transform: scaleY(0); }
.js .dash:not(.in-view) .fill { transform: scaleX(0); }
.js .dash:not(.in-view) .dash-card { opacity: 0; transform: translateY(14px); }

.dash .dash-card {
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dash .dash-grid .dash-card:nth-child(2) { transition-delay: 0.12s; }
.dash .bar:nth-child(2) { transition-delay: 0.03s; }
.dash .bar:nth-child(3) { transition-delay: 0.06s; }
.dash .bar:nth-child(4) { transition-delay: 0.09s; }
.dash .bar:nth-child(5) { transition-delay: 0.12s; }
.dash .bar:nth-child(6) { transition-delay: 0.15s; }
.dash .bar:nth-child(7) { transition-delay: 0.18s; }
.dash .bar:nth-child(8) { transition-delay: 0.21s; }
.dash .bar:nth-child(9) { transition-delay: 0.24s; }
.dash .bar:nth-child(10) { transition-delay: 0.27s; }
.dash .bar:nth-child(11) { transition-delay: 0.3s; }
.dash .bar:nth-child(12) { transition-delay: 0.33s; }
.dash .bar:nth-child(13) { transition-delay: 0.36s; }
.dash .bar:nth-child(14) { transition-delay: 0.39s; }
.dash .cats li:nth-child(2) .fill { transition-delay: 0.08s; }
.dash .cats li:nth-child(3) .fill { transition-delay: 0.16s; }
.dash .cats li:nth-child(4) .fill { transition-delay: 0.24s; }
.dash .cats li:nth-child(5) .fill { transition-delay: 0.32s; }
.dash .cats li:nth-child(6) .fill { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .js .dash:not(.in-view) .bar,
  .js .dash:not(.in-view) .fill,
  .js .dash:not(.in-view) .dash-card { transform: none; opacity: 1; }
}
