/* ================================================================
   MOTICT — SHARED DESIGN SYSTEM
   ================================================================ */

/* ── Local Geist fonts (no Google Fonts dependency) ── */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --ink: #1a1d23;
  --ink-2: #5a6072;
  --ink-3: #8a92a6;
  --line: #e4e6ec;
  --line-2: #eaecf2;
  --accent: #c0392b;
  --accent-2: #a93226;
  --accent-fg: #fffef9;
  --accent-soft: #fdf0ef;
  --warn: #d4821a;
  --success: #27ae60;
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1240px;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
}
[data-theme="dark"] {
  --bg: #18191f;
  --bg-2: #1e2028;
  --ink: #f5f4ef;
  --ink-2: #b0b8cc;
  --ink-3: #7a8299;
  --line: #2e3040;
  --line-2: #272938;
  --accent-soft: #3a1f1c;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on, "cv11" on;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ============ TYPE ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(192,57,43,0.18);
}
.eyebrow.solid { color: var(--accent); }
.eyebrow.solid::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  font-weight: 500;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 500; }
p { color: var(--ink-2); margin: 0; text-wrap: pretty; }

.accent-text { color: var(--accent); font-style: italic; font-weight: 400; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255,255,255,0.8);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em; font-size: 17px;
}
.brand-logo {
  height: 24px;
  width: auto;
  display: block;
}
.footer-brand .brand-logo { height: 26px; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; }
.brand-mark svg { display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a, .nav-links button {
  color: var(--ink-2); font-size: 14px; font-weight: 450;
  transition: color 0.15s; background: transparent; border: none;
  display: flex; align-items: center; gap: 4px;
}
.nav-links a:hover, .nav-links button:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* language toggle (EN / ID) — minimal, low-emphasis */
.lang-toggle { display: inline-flex; align-items: center; flex-shrink: 0; }
.lang-toggle button {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  padding: 2px 6px; background: transparent; color: var(--ink-3);
  border: none; cursor: pointer; transition: color 0.15s;
}
.lang-toggle button + button { border-left: 1px solid var(--line); }
.lang-toggle button:hover { color: var(--ink-2); }
.lang-toggle button.active { color: var(--ink); }
/* push the language toggle to the far right of the nav actions */
.nav-cta .lang-toggle { order: 1; margin-left: 18px; }

/* collapse wrapper holds nav-links + nav-cta (desktop: inline row) */
.nav-collapse { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex: 1; margin-left: 40px; }

/* hamburger (hidden on desktop) */
.nav-burger {
  display: none; width: 40px; height: 40px; margin-left: auto;
  border: none; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links .dropdown {
  position: relative;
}
.nav-links .dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: -16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 12px 36px -16px rgba(26,29,35,0.3);
  z-index: 60;
}
.dropdown-menu a {
  display: flex !important;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  gap: 12px;
  align-items: flex-start;
}
.dropdown-menu a:hover { background: var(--bg-2); }
.dropdown-menu .dd-icon {
  width: 32px; height: 32px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dropdown-menu .dd-text strong {
  display: block; color: var(--ink);
  font-weight: 500; font-size: 14px; margin-bottom: 2px;
}
.dropdown-menu .dd-text span {
  color: var(--ink-3); font-size: 12px;
  font-family: var(--font-mono);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--accent); }
.btn.accent { background: var(--accent); color: var(--accent-fg); }
.btn.accent:hover { background: #a93226; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-2); }
.btn.lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ============ SECTIONS ============ */
section { padding: 120px 0; }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 17px; color: var(--ink-2); }

/* ============ DOTTED GRID BG ============ */
.dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

/* ============ ANIMATED CHAT DEMO ============ */
.chat-demo {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 1px 0 var(--line-2), 0 24px 60px -32px rgba(26,29,35,0.25);
}
.chat-demo-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}
.chat-demo-header .left {
  display: flex; align-items: center; gap: 10px;
}
.chat-demo-header .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7a1c13);
  display: grid; place-items: center;
  color: white; font-family: var(--font-mono); font-size: 12px;
}
.chat-demo-header .title { font-size: 14px; font-weight: 500; line-height: 1.2; }
.chat-demo-header .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.chat-demo-header .status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(39,174,96,0.12);
  color: var(--success);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
}
.chat-demo-header .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.chat-stream {
  display: flex; flex-direction: column; gap: 10px;
  min-height: 280px;
}
/* Channel-page hero mocks: lock the stream height so the layout doesn't reflow as messages animate in. */
.ch-mock-wrap .chat-demo .chat-stream {
  height: 460px;
  min-height: 460px;
  overflow: hidden;
  justify-content: flex-end;
}
.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  animation: msg-in 0.3s ease forwards;
}
@keyframes msg-in {
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.user {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg.ai {
  background: var(--ink);
  color: var(--bg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.ai.failed {
  background: #fdf0ef;
  color: #a93226;
  border: 1px solid #f0c4bf;
}
.chat-msg .speaker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  opacity: 0.7;
}
.chat-msg .quick-replies {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.chat-msg .quick-replies button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: inherit;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  text-align: left;
  font-family: inherit;
}

.chat-typing {
  display: inline-flex; gap: 4px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  animation: typing 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-divider {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.chat-divider::before, .chat-divider::after {
  content: ""; flex: 1; height: 1px;
  background: var(--line-2);
}

.chat-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3);
}
.chat-controls .replay {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 5px 10px;
  border-radius: 8px;
  font-family: inherit; font-size: 11px;
  display: inline-flex; align-items: center; gap: 5px;
}
.chat-controls .replay:hover { background: var(--bg-2); color: var(--ink); }

/* ============ TRUST STRIP ============ */
.trust { padding: 48px 0 !important; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.trust-label {
  text-align: center;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.trust-logos {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 24px; align-items: center;
}
.logo-slot {
  height: 32px;
  display: grid; place-items: center;
  color: var(--ink-3);
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: -0.01em;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.logo-slot:hover { opacity: 1; color: var(--ink); }

/* ============ FOOTER ============ */footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--line-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand p { font-size: 14px; margin: 16px 0 24px; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); margin-bottom: 18px; font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--ink-2); transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3);
}
.footer-bottom .social { display: flex; gap: 14px; }
.footer-bottom .social a {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-3);
  transition: all 0.15s;
}
.footer-bottom .social a:hover { color: var(--ink); border-color: var(--ink); }

/* ============ CTA BLOCK ============ */
.cta { padding: 100px 0; }
.cta-inner {
  background: var(--ink); color: var(--bg);
  border-radius: 24px;
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 120%, rgba(192,57,43,0.6), transparent 60%);
}
.cta-inner > * { position: relative; }
.cta h2 {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 16px;
  max-width: 700px; margin-left: auto; margin-right: auto;
}
.cta p {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 32px;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn.ghost {
  background: transparent;
  color: var(--bg);
  border-color: rgba(255,255,255,0.25);
}
.cta .btn.ghost:hover { background: rgba(255,255,255,0.1); }

/* ============ PAGE HEADER (interior pages) ============ */
.page-header {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
}
.page-header h1 {
  font-size: clamp(36px, 4.8vw, 64px);
  margin-top: 20px; margin-bottom: 20px;
}
.page-header p {
  font-size: 18px;
  max-width: 580px;
  line-height: 1.55;
}
.page-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.breadcrumb {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3);
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--ink); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .nav-burger { display: flex; }
  .nav-collapse {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; margin: 0; padding: 8px 0 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 38px -18px rgba(26,29,35,0.42);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav.open .nav-collapse { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-links > a, .nav-links .dropdown > button {
    padding: 13px 24px; font-size: 15px; width: 100%; justify-content: space-between;
  }
  .nav-links .dropdown { position: static; }
  .nav-links .dropdown-menu {
    display: block; position: static; box-shadow: none; border: none;
    border-radius: 0; padding: 2px 12px 10px; min-width: 0; background: var(--bg-2);
  }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 24px 4px; }
  .nav-cta .btn { width: 100%; }
  .lang-toggle { align-self: flex-start; }
  .trust-logos { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 80px 0; }
  .page-header { padding: 56px 0 48px; }
  .page-header-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 24px; }
}


/* ============================================================
   CHANNEL ICONS (real brand marks, used to indicate support)
   Drop-in SVGs sized by container — fill via color: currentColor
   ============================================================ */

.brand-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.brand-icon svg { display: block; width: 100%; height: 100%; }

/* Per-channel theming */
.ch-tint-wa  { --ch-color: #25D366; --ch-color-soft: #e7faef; }
.ch-tint-em  { --ch-color: #c0392b; --ch-color-soft: #fdf0ef; }
.ch-tint-ig  { --ch-color: #E4405F; --ch-color-soft: #fde8f1; }
.ch-tint-fb  { --ch-color: #0084FF; --ch-color-soft: #e6f1ff; }
.ch-tint-li  { --ch-color: #06C755; --ch-color-soft: #e6f9ee; }

/* ============================================================
   CHANNEL DETAIL PAGE — shared layout
   ============================================================ */

.ch-hero {
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-2);
}
.ch-hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.ch-hero-logo {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 12px;
  background: var(--ch-color-soft);
  border-radius: 999px;
  margin-bottom: 24px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ch-color);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 500;
}
.ch-hero-logo .brand-icon {
  width: 22px; height: 22px;
  color: var(--ch-color);
}
.ch-hero h1 {
  font-size: clamp(28px, 5vw, 64px);
  margin-bottom: 20px;
}
.ch-hero .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 28px;
  max-width: 520px;
}
.ch-hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.ch-hero-meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3);
}
.ch-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ch-hero-meta .dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; }

/* ============ MOCKUP / DEVICE FRAME ============ */
.ch-mock-wrap {
  position: relative;
  display: grid;
  place-items: center;
}
.ch-mock {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 1px 0 var(--line-2), 0 32px 80px -40px rgba(26,29,35,0.3);
}
.ch-mock-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
}
.ch-mock-bar .ch-mock-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ch-color);
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px;
}
.ch-mock-bar .ch-mock-name { font-size: 14px; font-weight: 500; line-height: 1.2; }
.ch-mock-bar .ch-mock-sub { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); margin-top: 2px; }

/* ============ CAPABILITIES GRID ============ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  overflow: hidden;
}
.cap-cell {
  background: var(--bg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 220px;
}
.cap-cell .cap-ic {
  width: 38px; height: 38px;
  background: var(--ch-color-soft);
  color: var(--ch-color);
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.cap-cell h3 { font-size: 18px; font-weight: 500; }
.cap-cell p { font-size: 14px; line-height: 1.55; }

/* ============ NUMBERED STEPS ============ */
.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.steps-list .step {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  position: relative;
}
.steps-list .step::before {
  content: attr(data-step);
  position: absolute;
  top: -10px; left: 0;
  background: var(--bg);
  padding-right: 8px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ch-color);
  letter-spacing: 0.06em;
}
.steps-list .step h4 {
  font-size: 16px; font-weight: 500;
  margin-bottom: 8px;
}
.steps-list .step p { font-size: 13px; line-height: 1.5; }

/* ============ USE CASE LINKS ROW ============ */
.uc-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.uc-link-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.15s;
  display: flex; flex-direction: column; gap: 6px;
}
.uc-link-card:hover {
  border-color: var(--ch-color);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.2);
}
.uc-link-card .num {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ch-color);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.uc-link-card h4 { font-size: 15px; font-weight: 500; }
.uc-link-card p { font-size: 12px; line-height: 1.45; }

/* ============ FAQ ============ */
.ch-faq {
  max-width: 780px;
  margin: 0 auto;
}
.ch-faq-item { border-bottom: 1px solid var(--line); }
.ch-faq-item:first-child { border-top: 1px solid var(--line); }
.ch-faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 0;
  text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-size: 16px; font-weight: 450;
  color: var(--ink);
  font-family: inherit;
  letter-spacing: -0.01em;
}
.ch-faq-q .tog {
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--ink-3);
  transition: all 0.2s;
}
.ch-faq-item.open .tog {
  background: var(--ch-color);
  color: white;
  border-color: var(--ch-color);
  transform: rotate(45deg);
}
.ch-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}
.ch-faq-item.open .ch-faq-a { max-height: 320px; }
.ch-faq-a-inner { padding: 0 56px 22px 0; }

/* ============ CHANNEL INDEX (overview cards) ============ */
.ch-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ch-index-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.2s ease;
  display: flex; flex-direction: column;
  gap: 16px;
  min-height: 320px;
  cursor: pointer;
  position: relative;
}
.ch-index-card:hover {
  transform: translateY(-3px);
  border-color: var(--ch-color, var(--accent));
  box-shadow: 0 20px 48px -24px rgba(0,0,0,0.2);
}
.ch-index-card .brand-icon {
  width: 44px; height: 44px;
  background: var(--ch-color-soft);
  color: var(--ch-color);
  border-radius: 12px;
  padding: 10px;
}
.ch-index-card .ch-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ch-index-card .ch-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  /* Clamp to a fixed line count so the dotted divider below aligns across all cards */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(14px * 1.55 * 3);
  flex: 0 0 auto;
}
.ch-index-card .ch-meta-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.ch-index-card .ch-meta-tag {
  padding: 3px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3);
}
.ch-index-card .ch-cta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
}
.ch-index-card .ch-cta-text {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ch-color);
}
.ch-index-card .ch-cta-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ch-color-soft);
  color: var(--ch-color);
  display: grid; place-items: center;
  transition: transform 0.15s;
}
.ch-index-card:hover .ch-cta-arrow { transform: translateX(4px); }

@media (max-width: 960px) {
  .ch-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .steps-list { grid-template-columns: 1fr 1fr; }
  .uc-links { grid-template-columns: 1fr 1fr; }
  .ch-index-grid { grid-template-columns: 1fr 1fr; }
  /* Stack channel CTA buttons on tablet */
  .ch-hero-cta { flex-direction: column; align-items: flex-start; }
  .ch-hero-cta .btn { width: 100%; justify-content: center; text-align: center; }
}
@media (max-width: 540px) {
  .cap-grid, .steps-list, .uc-links, .ch-index-grid { grid-template-columns: 1fr; }
  /* Hide phone mockup on small mobile — text content takes priority */
  .ch-mock-wrap { display: none; }
  .ch-hero { padding: 40px 0 36px; }
  .ch-hero .lead { font-size: 16px; margin-bottom: 20px; }
  .ch-hero-meta { gap: 12px; font-size: 11px; }
}
