:root{
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 217 91% 60%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 222 47% 11%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 210 40% 96%;
  --accent-foreground: 222 47% 11%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 217 91% 60%;
  --radius: .75rem;
  --surface: 210 40% 98%;
  --sidebar-background: 0 0% 98%;
  --sidebar-foreground: 240 5.3% 26.1%;
  --sidebar-primary: 240 5.9% 10%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 240 4.8% 95.9%;
  --sidebar-accent-foreground: 240 5.9% 10%;
  --sidebar-border: 220 13% 91%;
  --sidebar-ring: 217 91% 60%;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color:hsl(var(--foreground));
  background:hsl(var(--background));
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:1200px;margin:0 auto;padding:0 24px}
.muted{color:hsl(var(--muted-foreground))}
.badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 10px;border-radius:999px;
  font-size:12px;font-weight:600;
}
.badge-primary{background:hsl(var(--primary) / .1);color:hsl(var(--primary))}
.badge-muted{background:hsl(var(--muted));color:hsl(var(--muted-foreground))}
.badge-green{background:#dcfce7;color:#15803d}
.badge-orange{background:#ffedd5;color:#c2410c}
.app-header{
  position:sticky;top:0;z-index:20;background:hsl(var(--background) / .8);
  backdrop-filter:blur(12px);border-bottom:1px solid hsl(var(--border) / .7);
}
.app-header .inner{display:flex;align-items:center;justify-content:space-between;height:72px}
.brand{display:flex;align-items:center;gap:12px;font-weight:700;letter-spacing:-.02em}
.brand-mark{
  width:40px;height:40px;border-radius:14px;
  display:grid;place-items:center;color:white;font-weight:800;
  background:linear-gradient(135deg,hsl(var(--primary)),#7c3aed);
  box-shadow:0 10px 20px -10px hsl(var(--primary) / .6);
}
.nav-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border-radius:14px;padding:12px 18px;font-size:14px;font-weight:600;
  transition:.18s ease;border:1px solid transparent;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  background:hsl(var(--primary));color:hsl(var(--primary-foreground));
}
.btn-primary:hover{opacity:.92}
.btn-outline{
  background:hsl(var(--background));color:hsl(var(--foreground));
  border-color:hsl(var(--border));
}
.btn-ghost{
  background:transparent;color:hsl(var(--muted-foreground));
}
.hero{
  padding:28px 0 56px;
}
.hero-grid{
  display:grid;grid-template-columns:1.15fr .85fr;gap:32px;align-items:center;
}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  background:hsl(var(--primary) / .08);color:hsl(var(--primary));
  padding:8px 12px;border-radius:999px;font-size:13px;font-weight:600;
  margin-bottom:18px;
}
h1{
  margin:0 0 18px;font-size:clamp(42px, 7vw, 76px);line-height:1.02;
  letter-spacing:-.05em;font-weight:800;
}
.hero p{
  margin:0 0 24px;font-size:18px;line-height:1.7;color:hsl(var(--muted-foreground));
  max-width:720px;
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.panel{
  background:hsl(var(--card));border:1px solid hsl(var(--border));
  border-radius:24px;box-shadow:0 0 0 1px rgba(0,0,0,.03),0 10px 30px -10px rgba(0,0,0,.08);
}
.hero-card{padding:24px}
.metrics{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.metric{
  background:hsl(var(--surface));border-radius:18px;padding:18px;border:1px solid hsl(var(--border) / .7);
}
.metric .k{font-size:28px;font-weight:700;letter-spacing:-.03em}
.metric .t{margin-top:4px;color:hsl(var(--muted-foreground));font-size:13px;line-height:1.5}
.section{padding:28px 0}
.section h2{
  margin:0 0 18px;font-size:32px;letter-spacing:-.03em;font-weight:700;
}
.grid-3,.grid-4{display:grid;gap:18px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.card{
  background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:22px;
  padding:24px;box-shadow:0 0 0 1px rgba(0,0,0,.03),0 10px 30px -10px rgba(0,0,0,.06);
}
.card h3{margin:0 0 10px;font-size:20px;letter-spacing:-.02em}
.card p{margin:0;color:hsl(var(--muted-foreground));line-height:1.7}
.footer{
  border-top:1px solid hsl(var(--border));
  margin-top:48px;
  padding:28px 0 40px;
  color:hsl(var(--muted-foreground));
}

.footer a{
  color:hsl(var(--primary));
  text-decoration:none;
  transition:.18s ease;
}

.footer a:hover{
  color:#1d4ed8;
  text-decoration:underline;
}

.auth-page{
  min-height:100vh;background:
  radial-gradient(circle at top left, hsl(var(--primary) / .12), transparent 25%),
  linear-gradient(180deg,#f8fbff 0%, #ffffff 100%);
  display:grid;place-items:center;padding:28px;
}
.auth-shell{
  width:min(100%, 460px);
}
.auth-card{
  background:hsl(var(--card));border:1px solid hsl(var(--border));
  border-radius:24px;padding:28px;
  box-shadow:0 0 0 1px rgba(0,0,0,.03),0 10px 30px -10px rgba(0,0,0,.12);
}
.auth-card h1{font-size:34px;line-height:1.1;margin:14px 0 12px}
.auth-card p{margin:0 0 20px;color:hsl(var(--muted-foreground));line-height:1.7}
.input-group{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.input-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
label{font-size:14px;font-weight:500}
input{
  width:100%;height:48px;border-radius:14px;border:1px solid hsl(var(--input));
  background:white;padding:0 14px;font-size:14px;outline:none;
}
input:focus{border-color:hsl(var(--primary));box-shadow:0 0 0 4px hsl(var(--primary) / .12)}
.small{font-size:14px;color:hsl(var(--muted-foreground))}
.auth-link{color:hsl(var(--primary))}
.auth-link:hover{text-decoration:underline}

.dashboard-layout{
  display:flex;min-height:100vh;width:100%;background:hsl(var(--background));
}
.sidebar{
  position:fixed;inset:0 auto 0 0;width:240px;
  border-right:1px solid hsl(var(--sidebar-border));
  background:hsl(var(--sidebar-background));z-index:30;
  display:flex;flex-direction:column;
}
.sidebar-top{
  display:flex;align-items:center;height:64px;padding:0 20px;border-bottom:1px solid hsl(var(--sidebar-border));
}
.sidebar-nav{padding:20px 12px;display:flex;flex-direction:column;gap:6px}
.side-link{
  display:flex;align-items:center;gap:10px;
  min-height:44px;padding:0 14px;border-radius:14px;
  color:hsl(var(--sidebar-foreground));font-size:14px;font-weight:500;
}
.side-link:hover{background:hsl(var(--sidebar-accent))}
.side-link.active{background:hsl(var(--sidebar-accent));color:hsl(var(--sidebar-accent-foreground))}
.main{
  flex:1;margin-left:240px;min-width:0;background:hsl(var(--background));
}
.main-inner{padding:32px}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px;flex-wrap:wrap}
.page-head h1{font-size:30px;line-height:1.1;margin:0}
.page-head p{margin:8px 0 0;color:hsl(var(--muted-foreground))}
.top-actions{display:flex;gap:12px;flex-wrap:wrap}
.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.dropzone{
  margin-top:18px;
  border:2px dashed hsl(var(--border));
  background:hsl(var(--accent) / .3);
  border-radius:22px;
  min-height:240px;
  display:grid;place-items:center;text-align:center;padding:28px;
}
.dropzone h3{margin:0 0 8px;font-size:18px}
.dropzone p{margin:0;color:hsl(var(--muted-foreground));line-height:1.6}
.actions-end{display:flex;justify-content:flex-end;gap:12px;padding-top:10px}
.table-card{
  overflow:hidden;background:hsl(var(--card));border:1px solid hsl(var(--border));
  border-radius:22px;box-shadow:0 0 0 1px rgba(0,0,0,.03),0 10px 30px -10px rgba(0,0,0,.06);
}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse}
th,td{padding:15px 24px;text-align:left}
th{
  border-bottom:1px solid hsl(var(--border));
  font-size:12px;text-transform:uppercase;letter-spacing:.08em;
  color:hsl(var(--muted-foreground));font-weight:500;
}
td{
  border-bottom:1px solid hsl(var(--border) / .7);
  font-size:14px;vertical-align:top;
}
tbody tr:last-child td{border-bottom:none}
.stat-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:18px;flex-wrap:wrap}
.stat-row h2{margin:0;font-size:24px}
.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.result-card{padding:22px}
.result-rank{font-size:13px;color:hsl(var(--primary));font-weight:600;margin-bottom:8px}
.result-sum{font-size:34px;font-weight:700;letter-spacing:-.03em;margin:12px 0}
.accordion-item{
  margin-top:16px;background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:20px;padding:18px;
}
.note-box{
  background:hsl(var(--surface));border:1px solid hsl(var(--border));border-radius:18px;padding:18px;
}
.spacer{height:8px}
@media (max-width: 1100px){
  .hero-grid,.grid-4,.result-grid,.upload-grid{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
}
@media (max-width: 880px){
  .sidebar{position:relative;width:100%;height:auto}
  .main{margin-left:0}
  .dashboard-layout{flex-direction:column}
  .input-row{grid-template-columns:1fr}
}

.demo-video-trigger {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: 1px solid rgba(77, 123, 255, 0.18);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(77, 123, 255, 0.14) 0%, rgba(77, 123, 255, 0.08) 100%);
    color: #4d7bff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow:
        0 10px 24px rgba(77, 123, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
    animation: demoBadgePulse 2.8s ease-in-out infinite;
}

.demo-video-trigger:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(77, 123, 255, 0.20) 0%, rgba(77, 123, 255, 0.12) 100%);
    border-color: rgba(77, 123, 255, 0.30);
    box-shadow:
        0 14px 28px rgba(77, 123, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #3f6ef5;
}

.demo-video-trigger:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(77, 123, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.demo-video-trigger:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(77, 123, 255, 0.16),
        0 14px 28px rgba(77, 123, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

@keyframes demoBadgePulse {
    0%,
    100% {
        box-shadow:
            0 10px 24px rgba(77, 123, 255, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.55);
    }
    50% {
        box-shadow:
            0 14px 30px rgba(77, 123, 255, 0.18),
            0 0 0 6px rgba(77, 123, 255, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}

.demo-video-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 23, 53, 0.58);
    backdrop-filter: blur(3px);
    z-index: 14000;
    display: none;
}

.demo-video-modal-backdrop.is-visible {
    display: block;
}

.demo-video-modal {
    position: fixed;
    inset: 0;
    z-index: 14010;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.demo-video-modal.is-visible {
    display: flex;
}

.demo-video-modal-dialog {
    width: min(94vw, 1480px);
    height: min(90vh, 980px);
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(9, 27, 66, 0.24);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.demo-video-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px 20px;
    border-bottom: 1px solid #e7edf7;
}

.demo-video-modal-title-block {
    min-width: 0;
}

.demo-video-modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(77, 123, 255, 0.10);
    color: #4d7bff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.demo-video-modal-title {
    margin: 0 0 10px 0;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 800;
    color: #0c1733;
}

.demo-video-modal-subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #667796;
    max-width: 760px;
}

.demo-video-modal-close {
    appearance: none;
    border: 1px solid #dbe5f3;
    background: #f7faff;
    color: #173b74;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.demo-video-modal-close:hover {
    background: #eef4ff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(19, 59, 116, 0.10);
}

.demo-video-modal-body {
    flex: 1;
    padding: 24px 32px 32px;
    min-height: 0;
}

.demo-video-placeholder {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: 24px;
    border: 2px dashed #cddaf0;
    background:
        linear-gradient(135deg, rgba(77, 123, 255, 0.05) 0%, rgba(77, 123, 255, 0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.demo-video-placeholder-inner {
    max-width: 700px;
    text-align: center;
}

.demo-video-placeholder-icon {
    font-size: 58px;
    line-height: 1;
    color: #4d7bff;
    margin-bottom: 18px;
}

.demo-video-placeholder-title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #0c1733;
    margin-bottom: 14px;
}

.demo-video-placeholder-text {
    font-size: 16px;
    line-height: 1.7;
    color: #667796;
}

@media (max-width: 900px) {
    .demo-video-modal {
        padding: 14px;
    }

    .demo-video-modal-dialog {
        width: 100%;
        height: min(92vh, 980px);
        border-radius: 22px;
    }

    .demo-video-modal-header {
        padding: 22px 20px 16px;
    }

    .demo-video-modal-title {
        font-size: 28px;
    }

    .demo-video-modal-body {
        padding: 18px 20px 20px;
    }

    .demo-video-placeholder {
        min-height: 320px;
        padding: 24px;
    }

    .demo-video-placeholder-title {
        font-size: 22px;
    }

    .demo-video-placeholder-text {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .demo-video-modal-dialog {
        height: 100%;
        border-radius: 18px;
    }

    .demo-video-modal-header {
        gap: 14px;
    }

    .demo-video-modal-title {
        font-size: 24px;
    }

    .demo-video-modal-subtitle {
        font-size: 14px;
    }

    .demo-video-modal-close {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 24px;
    }

    .demo-video-placeholder {
        min-height: 260px;
    }

    .demo-video-placeholder-icon {
        font-size: 44px;
    }

    .demo-video-placeholder-title {
        font-size: 20px;
    }
}

body.homepage-brush-bg {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.05), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 42%, #ffffff 100%);
}

.homepage-brush-image {
  position: absolute;
  top: 86px;
  right: -140px;
  width: min(1220px, 92vw);
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  user-select: none;
}

body.homepage-brush-bg .app-header,
body.homepage-brush-bg main {
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px) {
  .homepage-brush-image {
    top: 96px;
    right: 50%;
    transform: translateX(50%);
    width: 980px;
    opacity: 0.18;
  }
}

@media (max-width: 640px) {
  .homepage-brush-image {
    top: 110px;
    right: 50%;
    transform: translateX(50%);
    width: 760px;
    opacity: 0.13;
  }
}

.hero-demo-preview {
  appearance: none;
  width: 100%;
  min-height: 292px;
  border: 1px solid hsl(var(--border));
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(77, 123, 255, 0.07) 0%, rgba(124, 58, 237, 0.06) 52%, rgba(239, 68, 68, 0.05) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.hero-demo-preview::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  border: 1px solid rgba(77, 123, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(248, 251, 255, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero-demo-preview::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -78px;
  width: 340px;
  height: 190px;
  background: radial-gradient(circle, rgba(77, 123, 255, 0.10) 0%, rgba(77, 123, 255, 0) 70%);
  pointer-events: none;
}

.hero-demo-preview:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 123, 255, 0.22);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.hero-demo-preview:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(77, 123, 255, 0.14),
    0 18px 40px rgba(15, 23, 42, 0.08);
}

.hero-demo-preview__inner {
  position: relative;
  z-index: 1;
  max-width: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-demo-preview__play {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4d7bff 0%, #6f5cff 100%);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 18px 34px rgba(77, 123, 255, 0.24);
  margin-bottom: 16px;
  padding-left: 4px;
}

.hero-demo-preview__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(77, 123, 255, 0.10);
  color: #4d7bff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-demo-preview__title {
  display: block;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 800;
  color: #0c1733;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero-demo-preview__text {
  display: block;
  font-size: 15px;
  line-height: 1.7;
  color: #667796;
}

@media (max-width: 1100px) {
  .hero-demo-preview {
    min-height: 250px;
  }

  .hero-demo-preview__title {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .hero-demo-preview {
    min-height: 220px;
    padding: 20px;
  }

  .hero-demo-preview::before {
    inset: 12px;
    border-radius: 18px;
  }

  .hero-demo-preview__play {
    width: 64px;
    height: 64px;
    font-size: 24px;
    margin-bottom: 14px;
  }

  .hero-demo-preview__title {
    font-size: 21px;
  }

  .hero-demo-preview__text {
    font-size: 14px;
  }
}

/* =========================
   FAQ
   ========================= */

.faq-short-section{
  padding-top:12px;
}

.faq-short-box{
  background:hsl(var(--card));
  border:1px solid hsl(var(--border));
  border-radius:24px;
  padding:28px;
  box-shadow:0 0 0 1px rgba(0,0,0,.03),0 10px 30px -10px rgba(0,0,0,.06);
}

.faq-title{
  margin:0 0 12px;
  font-size:32px;
  line-height:1.15;
  letter-spacing:-.03em;
  font-weight:800;
  color:hsl(var(--foreground));
}

.faq-subtitle{
  margin:0 0 22px;
  font-size:16px;
  line-height:1.75;
  color:hsl(var(--muted-foreground));
}

.faq-accordion{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.faq-item{
  border:1px solid hsl(var(--border));
  border-radius:18px;
  background:#ffffff;
  overflow:hidden;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.faq-item:hover{
  border-color:hsl(var(--primary) / .28);
  box-shadow:0 10px 24px rgba(37,99,235,.06);
}

.faq-item.is-open{
  border-color:hsl(var(--primary) / .35);
  box-shadow:0 14px 30px rgba(37,99,235,.09);
}

.faq-question{
  width:100%;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  border:none;
  background:transparent;
  padding:18px 20px;
  cursor:pointer;
  text-align:left;
  font:inherit;
}

.faq-question-text{
  font-size:17px;
  line-height:1.5;
  font-weight:700;
  color:hsl(var(--foreground));
}

.faq-icon{
  flex-shrink:0;
  width:30px;
  height:30px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:hsl(var(--primary) / .12);
  color:hsl(var(--primary));
  font-size:22px;
  line-height:1;
  transition:transform .2s ease, background .2s ease;
}

.faq-item.is-open .faq-icon{
  transform:rotate(45deg);
  background:hsl(var(--primary) / .18);
}

.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height .28s ease;
}

.faq-answer-inner{
  padding:0 20px 20px;
  color:hsl(var(--muted-foreground));
  font-size:15px;
  line-height:1.78;
}

.faq-answer-inner p{
  margin:0 0 12px;
}

.faq-answer-inner p:last-child{
  margin-bottom:0;
}

.faq-answer-inner ul{
  margin:0;
  padding-left:20px;
}

.faq-answer-inner li{
  margin-bottom:8px;
}

.faq-modal{
  position:fixed;
  inset:0;
  z-index:15000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.faq-modal.is-open{
  display:flex;
}

.faq-modal-open{
  overflow:hidden;
}

.faq-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.56);
  backdrop-filter:blur(4px);
}

.faq-modal-dialog{
  position:relative;
  width:min(960px, 100%);
  max-height:min(86vh, 900px);
  background:#ffffff;
  border-radius:24px;
  box-shadow:0 30px 80px rgba(15,23,42,.24);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.faq-modal-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:24px 28px 18px;
  border-bottom:1px solid hsl(var(--border));
}

.faq-modal-title{
  margin:0 0 8px;
  font-size:32px;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-.03em;
  color:hsl(var(--foreground));
}

.faq-modal-subtitle{
  margin:0;
  color:hsl(var(--muted-foreground));
  line-height:1.7;
  font-size:15px;
}

.faq-modal-close{
  width:44px;
  height:44px;
  border:none;
  border-radius:999px;
  background:hsl(var(--muted));
  color:hsl(var(--foreground));
  font-size:26px;
  line-height:1;
  cursor:pointer;
  flex-shrink:0;
  transition:background .2s ease, transform .2s ease;
}

.faq-modal-close:hover{
  background:hsl(var(--primary) / .12);
  transform:translateY(-1px);
}

.faq-modal-body{
  padding:22px 28px 28px;
  overflow:auto;
  background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.faq-footer-link{
  color:hsl(var(--primary));
}

.faq-footer-link:hover{
  color:#1d4ed8;
}

@media (max-width: 780px){
  .faq-short-box{
    padding:22px;
  }

  .faq-title,
  .faq-modal-title{
    font-size:26px;
  }

  .faq-question{
    padding:16px 16px;
  }

  .faq-answer-inner{
    padding:0 16px 16px;
  }

  .faq-modal{
    padding:12px;
  }

  .faq-modal-dialog{
    width:100%;
    max-height:92vh;
    border-radius:18px;
  }

  .faq-modal-header{
    padding:20px 18px 16px;
  }

  .faq-modal-body{
    padding:18px 18px 20px;
  }
}