@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #f5f6fb;
    --card: #ffffff;
    --muted: #4c566a;
    --text: #0f172a;
    --border: #e2e8f0;
    --border-strong: #cbd5f5;
    --accent: #6366f1;
    --accent-dark: #4f46e5;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

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

body {
    margin: 0;
    font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

small,
.small {
    font-size: 13px;
    color: var(--muted);
}

.mono {
    font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
}

p {
    margin-top: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.logo-text {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-sub {
    color: var(--muted);
    font-size: 14px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quota-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    color: var(--muted);
    font-size: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    position: relative;
    min-height: 44px;
    flex: 0 0 auto;
}

.quota-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        rgba(129, 140, 248, 0.3),
        rgba(236, 72, 153, 0.0),
        rgba(52, 211, 153, 0.3)
    );
    opacity: 0;
    pointer-events: none;
}

.quota-pill.quota-pulse::before {
    animation: quota-shimmer 0.9s ease-out;
}

@keyframes quota-shimmer {
    0% {
        opacity: 0;
        transform: translateX(-40%);
    }
    40% {
        opacity: 0.55;
    }
    100% {
        opacity: 0;
        transform: translateX(40%);
    }
}

.quota-icon {
    font-size: 14px;
}

.quota-label {
    font-weight: 600;
}

.quota-count {
    font-variant-numeric: tabular-nums;
    opacity: 0.9;
}

.quota-plan-free {
    background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.12), transparent),
                rgba(255, 255, 255, 0.98);
}

.quota-plan-plus {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent),
                rgba(255, 255, 255, 0.98);
}

.quota-plan-dev {
      background: radial-gradient(circle at top left, rgba(244, 114, 182, 0.18), transparent),
                  rgba(255, 255, 255, 0.98);
  }
  
  .quota-bar {
      position: relative;
      width: 80px;
      height: 6px;
      border-radius: 999px;
      background: rgba(148, 163, 184, 0.18);
      overflow: hidden;
      margin: 0 4px;
  }
  
  .quota-bar-fill {
      position: absolute;
      inset: 0;
      width: 0%;
      background: linear-gradient(90deg, var(--accent), #a855f7);
      border-radius: inherit;
      transition: width 0.25s ease-out;
  }

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

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

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.link {
    color: var(--accent-dark);
    font-weight: 600;
}

.landing-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    align-items: center;
    margin-bottom: 60px;
    padding: 32px;
    border-radius: 36px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 55%);
}

.hero-left h1 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero-lead {
    font-size: 18px;
    margin-bottom: 16px;
}

.hero-badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pill {
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
}

.check-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 20px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.check-list li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-flex;
}

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

.hero-note {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

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

.stat-value {
    display: block;
    font-size: 26px;
    font-weight: 600;
}

.stat-label {
    font-size: 14px;
    color: var(--muted);
}

.hero-right {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
}

.badge-live {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    color: #059669;
    font-size: 13px;
}

.hero-card-prompt {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 18px;
    background: #f8f9ff;
    min-height: 80px;
}

.typed-text {
    margin-top: 8px;
    min-height: 32px;
}

.hero-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-card-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.hero-card-list strong {
    color: var(--text);
}

.status-dot {
    display: inline-flex;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot--online {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
    animation: pulse 2.4s ease infinite;
}

.status-dot--offline {
    background: #f87171;
}

.hero-card-footer {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
}

.hero-card-footer span:last-child {
    font-weight: 600;
    color: var(--text);
}

.section {
    margin-bottom: 70px;
}

.section-header {
    max-width: 640px;
    margin-bottom: 28px;
}

.section-subhead {
    color: var(--muted);
    font-size: 16px;
    margin-top: 4px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.flow-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 36px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: center;
}

.flow-video {
    background: #0f172a;
    border-radius: 28px;
    padding: 28px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.flow-video-frame {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    padding: 0 24px;
}

.flow-video-bar {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #a5b4fc, #c084fc);
    animation: flow 2.6s infinite;
}

.flow-video-bar--delay {
    width: 60%;
    animation-delay: 0.4s;
}

.flow-video-caption {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

@keyframes flow {
    0% {
        transform: translateX(-40%);
        opacity: 0.2;
    }
    50% {
        transform: translateX(10%);
        opacity: 1;
    }
    100% {
        transform: translateX(40%);
        opacity: 0.2;
    }
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.flow-step {
    background: #f8f9ff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border);
}

.flow-step-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-dark);
    letter-spacing: 0.08em;
}

.benefit-grid,
.step-grid,
.audience-grid,
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.benefit-card,
.step-card,
.audience-card,
.panel-card,
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.faq-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
}

.faq-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 4px 4px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(148, 163, 255, 0.06), rgba(196, 181, 253, 0.04));
}

.faq-item {
    min-width: 260px;
    flex: 0 0 auto;
    box-shadow: var(--shadow);
}

.faq-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    color: #fff;
}

.faq-hint {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

.benefit-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.step-number {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: 12px;
}

.step-line {
    margin-top: 28px;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.6), rgba(99, 102, 241, 0.05));
    border-radius: 999px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.chip {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #f8f9ff;
    font-size: 12px;
}

.panel-list {
    list-style: none;
    padding-left: 0;
    margin: 16px 0 0;
    color: var(--muted);
}

.panel-list li {
    margin-bottom: 6px;
}

.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
}

.plan-pill {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 13px;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-price span {
    display: block;
    font-size: 16px;
    color: var(--muted);
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    color: var(--muted);
    text-align: left;
}

.info-card {
    background: #fff8e6;
    border: 1px solid #f4d073;
    border-radius: 20px;
    padding: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.info-card ul {
    list-style: disc;
    padding-left: 20px;
    margin: 12px 0 0;
    color: var(--text);
}

.faq-item h3 {
    margin-top: 0;
}

.cta-banner {
    background: #111827;
    color: #fff;
    border-radius: 30px;
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cta-banner .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.container {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 0 4px;
}

.dashboard-title h1 {
    margin: 0;
    font-size: 28px;
}

.dashboard-title p {
    margin: 4px 0 0;
    color: var(--muted);
}

.plan-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

.plan-status-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.plan-actions {
    display: none;
}

.plugin-card {
    padding: 18px 22px;
}

.plugin-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.plugin-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--muted);
}

.plugin-banner-text strong {
    font-size: 15px;
    color: var(--text);
}

.plugin-install-btn {
    white-space: nowrap;
}

.plugin-help {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted);
}

.plugin-help ol {
    margin: 0 0 10px;
    padding-left: 20px;
}

.plugin-help li {
    margin-bottom: 4px;
}

.plugin-download-link {
    font-weight: 600;
}

.plan-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    min-height: 38px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
}

.plan-pill.plan-free {
    background: linear-gradient(120deg, #8b5cf6, #ec4899);
}

.plan-pill.plan-plus {
    background: linear-gradient(120deg, #38bdf8, #6366f1);
}

.plan-pill.plan-dev {
    background: linear-gradient(120deg, #f97316, #f43f5e);
}

.btn-outline {
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 0 18px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--accent-dark);
    font-weight: 600;
    transition: background 0.2s ease, border 0.2s ease;
}

.btn-outline:hover {
    text-decoration: none;
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

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

.table thead {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.hint {
    color: var(--muted);
    font-size: 14px;
}

.feedback {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 600;
}

.feedback--ok {
    background: #ecfdf5;
    color: #047857;
}

.feedback--error {
    background: #fef2f2;
    color: #b91c1c;
}

.workspace-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.workspace-actions .btn-ghost {
    padding: 8px 12px;
    font-size: 13px;
}

.workspace-actions .btn-secondary {
    padding: 6px 16px;
    border-radius: 16px;
}

.workspace-more {
    position: relative;
    display: inline-block;
}

.workspace-more-button {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--muted);
    padding: 0;
}

.workspace-more-button:hover {
    background: #f3f4ff;
}

.workspace-menu {
    position: absolute;
    right: 0;
    top: 120%;
    background: var(--card);
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 6px 0;
    min-width: 180px;
    z-index: 50;
}

.workspace-menu-item {
    width: 100%;
    padding: 8px 14px;
    text-align: left;
    background: transparent;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.workspace-menu-item:hover {
    background: #f3f4ff;
}

.workspace-menu-danger {
    color: #dc2626;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal[hidden] {
    display: none;
}

.modal-card {
    background: var(--card);
    border-radius: 18px;
    padding: 24px;
    max-width: 360px;
    width: 90%;
    box-shadow: var(--shadow);
}

.modal-card h3 {
    margin-top: 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.workspace-name-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 14px;
}

.save-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 32px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.35);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 900;
}

.save-bar--visible {
    transform: translateY(0);
    opacity: 1;
}

.save-bar-actions {
    display: flex;
    gap: 10px;
}

.save-bar-text {
    color: #ffffff;
    font-weight: 600;
}

.save-bar .btn-ghost {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.save-bar .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.chat-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 24px 24px;
    gap: 16px;
}

.chat-messages {
    flex: 0;
    height: 80vh;
    max-height: 900px;
    min-height: 600px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.chat-message {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #f8f9ff;
}

.chat-message.chat-agent {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.chat-message.chat-system {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: var(--muted);
}

.chat-message.chat-thinking .chat-text {
    font-style: italic;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.thinking-dots {
    display: inline-flex;
    gap: 3px;
    margin-left: 6px;
}

.thinking-dots span {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--muted);
    opacity: 0.3;
    animation: thinking-bounce 1s infinite ease-in-out;
}

.thinking-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.thinking-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes thinking-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

.thinking-indicator {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.chat-context {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.chat-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.chat-status-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--text);
}

.chat-status-row strong {
    margin-right: 6px;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-quota-row {
    display: none;
}

.chat-composer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow);
    padding: 16px;
}

.composer-top textarea {
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    color: var(--text);
    line-height: 1.5;
    padding: 0;
    min-height: 64px;
    max-height: 160px;
    resize: none;
    overflow-y: auto;
}

.composer-top textarea:focus {
    outline: none;
}

.composer-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 6px;
}

.composer-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-send-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    min-height: 48px;
    border-radius: 999px;
    box-shadow: 0 18px 30px rgba(79, 70, 229, 0.35);
}

.centered,
.legal {
    min-height: 100vh;
    padding: 48px 16px;
    background: var(--bg);
    color: var(--text);
}

.legal-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-weight: 600;
}

.legal-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.notice-card {
    margin: 20px 0;
    padding: 18px;
    border-radius: 16px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
}

.notice-card ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

@media (max-width: 960px) {
    .flow-card {
        grid-template-columns: 1fr;
    }

    .flow-video {
        order: 2;
    }
}

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        gap: 10px;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-carousel {
        flex-direction: column;
        align-items: stretch;
    }

    .faq-track {
        width: 100%;
    }
}

