﻿:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #d9e2ec;
  --primary: #0b4fd4;
  --primary-strong: #0a3fb3;
  --accent: #ea6a1b;
  --accent-soft: #fff1e7;
  --success: #0f766e;
  --warning: #b45309;
  --danger: #b91c1c;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 20px 40px -28px rgba(15, 23, 42, 0.45);
}

[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --line: #273449;
  --accent-soft: #3b1d0f;
  --shadow: 0 24px 44px -28px rgba(2, 6, 23, 0.85);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 6% 0%, #eaf1ff 0%, transparent 36%),
    radial-gradient(circle at 92% 12%, rgba(234, 106, 27, 0.12) 0%, transparent 26%),
    var(--bg);
  min-height: 100vh;
  transition: background .25s ease, color .25s ease;
}
[data-theme="dark"] body {
  background:
    radial-gradient(circle at 6% 0%, rgba(11, 79, 212, 0.22) 0%, transparent 36%),
    radial-gradient(circle at 92% 12%, rgba(234, 106, 27, 0.14) 0%, transparent 26%),
    var(--bg);
}
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(11,79,212,0.04), rgba(234,106,27,0.03) 46%, transparent 68%);
}
.container { width: min(1120px, 92vw); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(246, 248, 252, 0.82);
  border-bottom: 1px solid #e2e8f0;
  z-index: 10;
}
[data-theme="dark"] .site-header { background: rgba(11, 18, 32, 0.86); border-bottom-color: #273449; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; color: var(--text); }
.brand-logo { height: 34px; width: auto; max-width: min(48vw, 230px); display: block; }
nav { display: flex; align-items: center; gap: 14px; }
nav a { text-decoration: none; color: #1e293b; font-weight: 500; }
[data-theme="dark"] nav a { color: #cbd5e1; }
nav a:hover { color: var(--primary); }
nav a.login-image-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
}
nav a.login-image-link:hover {
  opacity: .96;
}
.login-image {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
}
.account-menu {
  position: relative;
}
.account-menu summary {
  list-style: none;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-menu[open] summary {
  border-color: #94a3b8;
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  border: 1px solid #c9d7ea;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 28px -20px rgba(15, 23, 42, 0.55);
  padding: .35rem;
  display: grid;
  gap: .2rem;
  z-index: 20;
}
.account-dropdown a {
  text-decoration: none;
  color: #1e293b;
  font-weight: 600;
  border-radius: 8px;
  padding: .5rem .6rem;
}
.account-dropdown a:hover {
  background: #eff6ff;
  color: #0b4fd4;
}
[data-theme="dark"] .account-dropdown {
  background: #0f172a;
  border-color: #35445f;
}
[data-theme="dark"] .account-dropdown a {
  color: #e2e8f0;
}
[data-theme="dark"] .account-dropdown a:hover {
  background: #16233b;
  color: #93c5fd;
}
.page { padding: 2rem 0 3rem; }
.section { margin: 2rem auto; }
h1, h2, h3 {
  font-family: Manrope, sans-serif;
  letter-spacing: -0.02em;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
}
h1 { margin: 0 0 .8rem; }
h2 { margin: 0 0 1rem; }
.history-title { font-size: clamp(1.05rem, 1.6vw, 1.45rem); margin-bottom: .4rem; }
.subscription-title { font-size: clamp(1.05rem, 1.6vw, 1.45rem); margin-bottom: .55rem; }
.profile-page .subscription-title { font-size: clamp(1.05rem, 1.6vw, 1.45rem); }
.profile-page h2 { font-size: clamp(1.05rem, 1.6vw, 1.45rem); }
.profile-grid { grid-template-columns: 1fr; }
.subtitle { color: var(--muted); line-height: 1.6; }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; align-items: center; }
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .08em;
}
.hero-card {
  background: linear-gradient(180deg, #fff, #fff7f2);
  border: 1px solid #f2dccf;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
[data-theme="dark"] .hero-card { background: linear-gradient(180deg, #111b30, #131f36); border-color: #364563; }
.hero-card ul { margin: .8rem 0 0; padding-left: 1rem; color: var(--muted); }
.public-index .hero-premium {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 1.2rem;
}
.public-index h1,
.public-index h2,
.public-index h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1.2;
}
.public-index .hero-text {
  display: grid;
  grid-template-rows: auto auto;
  gap: .9rem;
}
.public-index .hero-intro-card,
.public-index .hero-flow-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(243, 248, 255, 0.9));
  border: 1px solid #d7e3f7;
  border-radius: 22px;
  padding: 1.5rem;
  height: auto;
}
.public-index .hero-highlight {
  margin: .55rem 0 1rem;
  color: #0a3fb3;
  font-weight: 700;
}
.public-index .hero-flow-block {
  margin-top: 0;
  display: block;
}
.public-index .hero-flow-block .lp-panel {
  margin-top: .1rem;
}
.public-index .hero-flow-card .lp-panel.reveal {
  opacity: 1;
  transform: none;
}
.public-index .hero-kpis {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .5rem;
}
.public-index .hero-kpis li {
  border: 1px solid #d5e2f6;
  border-radius: 10px;
  padding: .5rem .65rem;
  background: #f7faff;
  color: #334155;
}
.public-index .hero-showcase {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
.public-index .shot-card {
  border: 1px solid #cfddf4;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  position: relative;
  height: 100%;
}
.public-index .shot-card img {
  width: 100%;
  height: auto;
  display: block;
}
.public-index .shot-card .shot-img-light { display: block !important; }
.public-index .shot-card .shot-img-dark { display: none !important; }
[data-theme="dark"] .public-index .shot-card .shot-img-light { display: none !important; }
[data-theme="dark"] .public-index .shot-card .shot-img-dark { display: block !important; }
.public-index .shot-meta {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  right: .8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(245, 250, 255, .9));
  border: 1px solid rgba(143, 171, 223, .5);
  border-radius: 12px;
  padding: .55rem .7rem;
  z-index: 2;
  opacity: 1;
}
.public-index .shot-meta h3 {
  margin: 0;
  font-size: 1rem;
  color: #1f304c;
}
.public-index .shot-meta p {
  margin: .18rem 0 0;
  color: #4f6487;
  font-size: .87rem;
}
.public-index .shot-card-main { min-height: 0; }
.public-index .section-title-wrap {
  margin-bottom: .85rem;
}
.public-index .section-title-wrap p {
  margin: .2rem 0 0;
  color: #5b6b83;
}
.public-index .premium-grid .card,
.public-index .intelligence-grid .card {
  background: linear-gradient(180deg, #ffffff, #f7faff);
  border-color: #d4e1f5;
}
.public-index .intelligence-carousel {
  align-items: stretch;
  position: relative;
  display: block;
}
.public-index .intelligence-track {
  padding-bottom: 1.1rem;
  margin: 0 56px;
  scrollbar-gutter: stable both-edges;
}
.public-index .intelligence-slide {
  flex: 0 0 min(294px, 74vw);
  min-height: 250px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  border: 1px solid #bcd0ee;
}
.public-index .intelligence-track::-webkit-scrollbar {
  height: 14px;
}
.public-index .intelligence-track::-webkit-scrollbar-track {
  background: rgba(189, 208, 240, 0.35);
  border-radius: 999px;
}
.public-index .intelligence-track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #5ea1ff, #9f7aea);
  border-radius: 999px;
}
.public-index .intel-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 auto .65rem auto;
  border: 1px solid #8fb0e1;
  background: radial-gradient(circle at 30% 25%, #f4f8ff, #dce9ff);
  color: #254777;
}
.public-index .intelligence-slide::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #60a5fa, #f59e0b);
}
.public-index .intelligence-slide h3 {
  color: #1d2f4d;
  margin-bottom: .9rem;
}
.public-index .intelligence-slide p {
  color: #4b5f81;
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.45;
}
.public-index .intelligence-slide.intel-1 { border-color: #3b82f6; }
.public-index .intelligence-slide.intel-1::before { background: linear-gradient(90deg, #60a5fa, #38bdf8); }
.public-index .intelligence-slide.intel-1 .intel-icon { border-color: #60a5fa; color: #93c5fd; }
.public-index .intelligence-slide.intel-2 { border-color: #7c3aed; }
.public-index .intelligence-slide.intel-2::before { background: linear-gradient(90deg, #8b5cf6, #22d3ee); }
.public-index .intelligence-slide.intel-2 .intel-icon { border-color: #8b5cf6; color: #c4b5fd; }
.public-index .intelligence-slide.intel-3 { border-color: #ea580c; }
.public-index .intelligence-slide.intel-3::before { background: linear-gradient(90deg, #fb923c, #f43f5e); }
.public-index .intelligence-slide.intel-3 .intel-icon { border-color: #fb923c; color: #fdba74; }
.public-index .intelligence-slide.intel-4 { border-color: #0ea5a4; }
.public-index .intelligence-slide.intel-4::before { background: linear-gradient(90deg, #2dd4bf, #22c55e); }
.public-index .intelligence-slide.intel-4 .intel-icon { border-color: #2dd4bf; color: #99f6e4; }
[data-theme="dark"] .public-index .intelligence-slide {
  background: linear-gradient(180deg, #0f1c35 0%, #0b162d 100%);
  border-color: #284167;
}
[data-theme="dark"] .public-index .intelligence-track::-webkit-scrollbar-track {
  background: rgba(45, 67, 106, 0.5);
}
[data-theme="dark"] .public-index .intel-icon {
  background: radial-gradient(circle at 30% 25%, #1a3f77, #0f2343);
  border-color: #35588f;
  color: #e6f0ff;
}
[data-theme="dark"] .public-index .intelligence-slide h3 {
  color: #e7f0ff;
}
[data-theme="dark"] .public-index .intelligence-slide p {
  color: #c7d7f1;
}
.public-index .intelligence-carousel .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.public-index .intelligence-carousel .carousel-arrow[data-carousel-prev] {
  left: 0;
}
.public-index .intelligence-carousel .carousel-arrow[data-carousel-next] {
  right: 0;
}
.public-index .step-card {
  position: relative;
}
.public-index .step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #0b4fd4, #ea6a1b);
}
.public-index .esocial-focus {
  border: 1px solid #d5e3f7;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: linear-gradient(150deg, #edf4ff, #ffffff);
}
.public-index .lp-switch {
  display: inline-flex;
  gap: .45rem;
  border: 1px solid #d4e2f7;
  background: #f6f9ff;
  border-radius: 999px;
  padding: .3rem;
  margin-bottom: .8rem;
}
.public-index .lp-switch-btn {
  border: none;
  background: transparent;
  color: #3f5373;
  border-radius: 999px;
  padding: .48rem .95rem;
  font-weight: 700;
  cursor: pointer;
}
.public-index .lp-switch-btn.active {
  background: linear-gradient(120deg, #0b4fd4, #0d5ff3);
  color: #fff;
}
.public-index .lp-panel {
  transition: transform .18s ease;
}
.public-index .lp-panel ul {
  margin: .6rem 0 0;
}
.public-index .lp-panel li + li {
  margin-top: .35rem;
}
.public-index .usecase-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  margin: 0;
  padding-top: .15rem;
  padding-bottom: .85rem;
}
.public-index .usecase-card {
  position: relative;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff, #f4f8ff) padding-box,
    linear-gradient(120deg, #4f7de1, #24d1c7, #f59e0b) border-box;
  border: 1px solid transparent;
}
.public-index .usecase-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, #60a5fa, #22d3ee);
}
.public-index .usecase-card.usecase-1::before {
  background: linear-gradient(180deg, #60a5fa, #38bdf8);
}
.public-index .usecase-card.usecase-2::before {
  background: linear-gradient(180deg, #8b5cf6, #22d3ee);
}
.public-index .usecase-card.usecase-3::before {
  background: linear-gradient(180deg, #fb923c, #f43f5e);
}
.public-index .usecase-card.usecase-1 {
  background:
    linear-gradient(180deg, #ffffff, #f4f8ff) padding-box,
    linear-gradient(120deg, #60a5fa, #38bdf8) border-box;
}
.public-index .usecase-card.usecase-2 {
  background:
    linear-gradient(180deg, #ffffff, #f4f8ff) padding-box,
    linear-gradient(120deg, #8b5cf6, #22d3ee) border-box;
}
.public-index .usecase-card.usecase-3 {
  background:
    linear-gradient(180deg, #ffffff, #f4f8ff) padding-box,
    linear-gradient(120deg, #fb923c, #f43f5e) border-box;
}
.public-index .usecase-card h3 {
  margin-top: 0;
  margin-bottom: .45rem;
  color: #1d2f4d;
}
.public-index .usecase-card p {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  color: #4a5e80;
  line-height: 1.45;
}
.public-index .faq {
  border: 1px solid #d3e0f6;
  border-radius: 20px;
  padding: 1.1rem 1rem;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}
.public-index .faq h2 {
  margin-bottom: .35rem;
}
.public-index .faq .faq-intro {
  margin: 0 0 .85rem;
  color: #5c6d87;
}
.public-index .faq details {
  border: 1px solid #d6e2f5;
  border-radius: 12px;
  background: #ffffff;
  padding: .72rem .85rem;
}
.public-index .faq details + details {
  margin-top: .55rem;
}
.public-index .faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #1f304c;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.public-index .faq summary::-webkit-details-marker { display: none; }
.public-index .faq summary::after {
  content: "▾";
  font-size: .95rem;
  color: #5d78a5;
  transform: rotate(-90deg);
  transition: transform .2s ease;
}
.public-index .faq details[open] summary::after {
  transform: rotate(0deg);
}
.public-index .faq details p {
  margin: .55rem 0 0;
  color: #4b5d79;
  line-height: 1.45;
}
[data-theme="dark"] .public-index .hero-text {
  gap: .9rem;
}
[data-theme="dark"] .public-index .hero-intro-card,
[data-theme="dark"] .public-index .hero-flow-card {
  background: linear-gradient(180deg, #0f1c35, #0b162e);
  border-color: #2b4572;
}
[data-theme="dark"] .public-index .hero-highlight {
  color: #9cc1ff;
}
[data-theme="dark"] .public-index .hero-kpis li {
  background: #101f3b;
  border-color: #2b4572;
  color: #cbd5e1;
}
[data-theme="dark"] .public-index .shot-card {
  border-color: #2b4572;
  background: #0a1635;
}
[data-theme="dark"] .public-index .shot-meta {
  background: linear-gradient(180deg, rgba(10, 22, 53, .4), rgba(10, 22, 53, .82));
  border-color: rgba(147, 179, 239, .45);
}
[data-theme="dark"] .public-index .shot-meta h3 {
  color: #e9f1ff;
}
[data-theme="dark"] .public-index .shot-meta p {
  color: #bcd2f8;
}
[data-theme="dark"] .public-index .section-title-wrap p {
  color: #9fb2cf;
}
[data-theme="dark"] .public-index .premium-grid .card,
[data-theme="dark"] .public-index .intelligence-grid .card {
  background: linear-gradient(180deg, #101e39, #0d1a32);
  border-color: #2a3f67;
}
[data-theme="dark"] .public-index .esocial-focus {
  background: linear-gradient(180deg, #0f1c35, #0c1730);
  border-color: #294064;
}
[data-theme="dark"] .public-index .lp-switch {
  background: #0f1c35;
  border-color: #294064;
}
[data-theme="dark"] .public-index .lp-switch-btn {
  color: #b6c9e7;
}
[data-theme="dark"] .public-index .usecase-card {
  background:
    linear-gradient(180deg, rgba(14, 31, 62, 0.96), rgba(10, 22, 45, 0.98)) padding-box,
    linear-gradient(120deg, #4f7de1, #24d1c7, #f59e0b) border-box;
}
[data-theme="dark"] .public-index .usecase-card h3 {
  color: #e7f0ff;
}
[data-theme="dark"] .public-index .usecase-card p {
  color: #c6d7f3;
}
[data-theme="dark"] .public-index .faq {
  border-color: #274166;
  background: linear-gradient(180deg, #0f1c35, #0b162d);
}
[data-theme="dark"] .public-index .faq .faq-intro {
  color: #a8bbd7;
}
[data-theme="dark"] .public-index .faq details {
  border-color: #2b456f;
  background: #0e1a32;
}
[data-theme="dark"] .public-index .faq summary {
  color: #d6e4fb;
}
[data-theme="dark"] .public-index .faq summary::after {
  color: #9db8e3;
}
[data-theme="dark"] .public-index .faq details p {
  color: #c1d2ed;
}
.hero-actions, .action-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #cbdcf5;
  box-shadow: 0 30px 45px -34px rgba(15, 23, 42, 0.58);
}
[data-theme="dark"] .card:hover { border-color: #3c5275; box-shadow: 0 30px 45px -34px rgba(2, 6, 23, 0.9); }
.card-narrow { max-width: 520px; }
.center { display: grid; place-items: center; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.upgrade-row { margin-top: 1rem; display: flex; justify-content: center; }
.stat-card-upgrade {
  width: min(520px, 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .7rem;
  border: 1px solid #f59e0b;
  background: linear-gradient(180deg, #fdba74, #fb923c);
  box-shadow: 0 16px 34px -24px rgba(194, 65, 12, .75);
}
.stat-card-upgrade p { margin: 0; }
.stat-card-upgrade h3 { font-size: 2rem; margin: 0; }
.stat-card-upgrade .btn {
  margin-top: 0;
  margin-left: auto;
  width: fit-content;
  padding: .72rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 800;
}
.stat-card {
  background: linear-gradient(180deg, #fff, #fbfdff);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}
.stat-card.stat-card-upgrade {
  background: linear-gradient(180deg, #fdba74, #fb923c);
  border-color: #f59e0b;
  color: #ffffff;
}
.stat-card.stat-card-upgrade p,
.stat-card.stat-card-upgrade h3 { color: #ffffff; }
.stat-card.stat-card-upgrade p { color: #1d4ed8; font-weight: 700; }
[data-theme="dark"] .stat-card { background: linear-gradient(180deg, #121d33, #0f172a); }
.stat-card p { margin: 0; color: var(--muted); }
.stat-card h3 { margin: .4rem 0; font-size: 1.6rem; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compact-menu-section { margin: .6rem auto; }
.compact-menu-card {
  padding: .35rem .7rem;
  background: transparent;
  border: none;
  box-shadow: none;
}
.upload-menu {
  display: grid;
  gap: .34rem;
  margin: .12rem 0 .25rem;
  color: #334155;
  font-size: .9rem;
}
[data-theme="dark"] .upload-menu { color: #cbd5e1; }
.upload-type-row {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.type-pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: .5rem .9rem;
  border: 1px solid #0b4fd4;
  border-radius: 999px;
  background: linear-gradient(120deg, #0b4fd4 0%, #0d5ff3 100%);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: .2s ease;
}
.type-pill-link:hover {
  border-color: #0a3fb3;
  background: linear-gradient(120deg, #0a3fb3 0%, #0b4fd4 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -14px rgba(11, 79, 212, 0.7);
}
.type-pill-link.active {
  border-color: #08318a;
  background: linear-gradient(120deg, #08318a 0%, #0b4fd4 100%);
  color: #ffffff;
}
.type-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.type-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: .5rem .9rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}
.type-pill input:checked + span {
  border-color: var(--primary);
  background: #eaf1ff;
  color: #0a3fb3;
}
[data-theme="dark"] .type-pill span {
  background: #0f172a;
  border-color: #364563;
  color: #cbd5e1;
}
[data-theme="dark"] .type-pill-link {
  background: linear-gradient(120deg, #0b4fd4 0%, #0d5ff3 100%);
  border-color: #4f7dd1;
  color: #ffffff;
}
[data-theme="dark"] .type-pill-link:hover {
  border-color: #9bb9ef;
  background: linear-gradient(120deg, #0a3fb3 0%, #0b4fd4 100%);
  color: #ffffff;
}
[data-theme="dark"] .type-pill-link.active {
  border-color: #bfd7ff;
  background: linear-gradient(120deg, #08318a 0%, #0b4fd4 100%);
  color: #ffffff;
}
[data-theme="dark"] .type-pill input:checked + span {
  border-color: #3b82f6;
  background: #17233c;
  color: #93c5fd;
}
.dropzone {
  border: 1.4px dashed #a7bddf;
  background: #f8fbff;
  border-radius: var(--radius-sm);
  padding: 1.7rem;
  text-align: center;
  color: #334155;
  cursor: pointer;
  display: block;
  transition: .2s ease;
}
.dropzone.drag-over,
.dropzone:hover {
  border-color: var(--accent);
  background: #fff4eb;
}
[data-theme="dark"] .dropzone { background: #0d172b; border-color: #3b4a68; color: #cbd5e1; }
[data-theme="dark"] .dropzone.drag-over,
[data-theme="dark"] .dropzone:hover { background: #1f1b22; border-color: var(--accent); }
.dropzone input { display: none; }
.upload-main-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: .7rem;
}
.upload-main-row .dropzone {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.upload-main-row .upload-submit-row {
  margin-top: 0;
  justify-content: flex-end;
  align-items: center;
}
.upload-main-row .upload-submit-row .btn {
  min-height: 56px;
  padding-inline: 1.4rem;
  white-space: nowrap;
}
.upload-card .subtitle {
  text-align: center;
  margin: 0 0 .9rem;
}
.upload-card .dropzone {
  width: 100%;
  margin-inline: auto;
}
.upload-card .dropzone span {
  display: block;
  text-align: center;
}
.file-preview { margin: .8rem 0; display: grid; gap: .3rem; }
.upload-submit-row { display: flex; justify-content: flex-end; margin-top: .55rem; }
.file-pill {
  padding: .38rem .62rem;
  background: var(--accent-soft);
  color: #9a3412;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: .85rem;
  width: fit-content;
}
[data-theme="dark"] .file-pill { color: #fdba74; border-color: #7c2d12; background: #2a160b; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .72rem; border-bottom: 1px solid #e8eef6; text-align: left; font-size: .92rem; }
.receipt-table th,
.receipt-table td { text-align: center; }
.recent-light-card th:last-child,
.recent-light-card td:last-child { text-align: center; }
.recent-light-card th.status-col,
.recent-light-card td.status-cell { text-align: center; }
.recent-light-card th.event-col,
.recent-light-card td.event-cell { text-align: center; }
.recent-light-card th.error-col,
.recent-light-card td.error-cell { text-align: center; }
[data-theme="dark"] th, [data-theme="dark"] td { border-bottom-color: #2b3a52; }
[data-theme="dark"] .recent-light-card {
  background: #ffffff;
  border-color: #d9e2ec;
}
[data-theme="dark"] .recent-light-card h2,
[data-theme="dark"] .recent-light-card th,
[data-theme="dark"] .recent-light-card td {
  color: #0f172a;
  border-bottom-color: #e8eef6;
}
[data-theme="dark"] .recent-light-card a {
  color: #0b4fd4;
}
.badge { border-radius: 999px; padding: .2rem .6rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.badge-success, .badge-active { background: #dcfce7; color: #166534; }
.badge-error, .badge-canceled, .badge-past_due { background: #fee2e2; color: #991b1b; }
.badge-processing, .badge-pending { background: #fff1e7; color: #9a3412; }
.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: .62rem .95rem;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .22s ease;
}
.btn-primary {
  background: linear-gradient(120deg, #0b4fd4 0%, #0d5ff3 62%, #ea6a1b 120%);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); filter: saturate(1.05); }
.btn-convert {
  background: linear-gradient(120deg, #16a34a 0%, #22c55e 60%, #15803d 120%);
  border-color: #15803d;
}
.btn-convert:hover {
  background: linear-gradient(120deg, #15803d 0%, #16a34a 100%);
}
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-ghost { background: #fff; color: #0f172a; border-color: #c9d7ea; }
.btn-ghost:hover { background: #fff8f3; border-color: #f0c9ad; }
[data-theme="dark"] .btn-ghost { background: #0f172a; color: #e2e8f0; border-color: #35445f; }
[data-theme="dark"] .btn-ghost:hover { background: #161f33; border-color: #5d3a23; }
.btn-theme {
  min-width: 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  font-size: 1rem;
}
.btn-lg { padding: .8rem 1.1rem; }
.btn-block { width: 100%; }
.form-card { width: min(480px, 92vw); }
.form-card label { display: grid; gap: .34rem; margin: .56rem 0; color: #334155; font-size: .9rem; }
[data-theme="dark"] .form-card label { color: #cbd5e1; }
.form-card.compact { width: 100%; }
.input { border: 1px solid #cbd5e1; border-radius: 12px; padding: .62rem .72rem; background: #fff; font: inherit; color: inherit; }
.input-sm { min-width: 140px; padding: .48rem .56rem; }
.input:focus { outline: 2px solid rgba(234, 106, 27, 0.2); border-color: var(--accent); }
[data-theme="dark"] .input { background: #0b1220; border-color: #364563; color: #e2e8f0; }
.inline-form { display: flex; gap: .6rem; }
.inline-form.wrap { flex-wrap: wrap; }
.wide-inline-form { width: 100%; }
.wide-inline-form .input { flex: 1 1 420px; width: 100%; min-width: 260px; }
.wide-inline-form .btn { flex: 0 0 auto; }
.inline { display: inline; }
.link-danger { border: 0; background: none; color: var(--danger); cursor: pointer; font: inherit; padding: 0; }
.notice { margin: .7rem 0; border: 1px solid #dbeafe; background: #eff6ff; color: #1d4ed8; border-radius: 12px; padding: .7rem; }
.notice.warning { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.pricing-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.pricing-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding: .2rem .1rem .8rem;
  flex: 1;
}
.price-card {
  background: #fff;
  border: 1px solid #d5e2f4;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
  flex: 0 0 min(320px, 88vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
[data-theme="dark"] .price-card { background: #101a30; border-color: #33435f; }
.carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #c9d7ea;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .2s ease;
}
.carousel-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.carousel-arrow:disabled {
  opacity: .45;
  cursor: not-allowed;
}
[data-theme="dark"] .carousel-arrow {
  background: #0f172a;
  border-color: #35445f;
  color: #e2e8f0;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.price-card.highlight { border-color: #f0c9ad; transform: translateY(-2px); }
.price-card .btn,
.price-card form:last-of-type { margin-top: auto; }
.price { font-family: Manrope, sans-serif; font-size: 2rem; margin: .4rem 0; }
.price span { font-size: 1rem; color: var(--muted); }
.flash-stack { display: grid; gap: .4rem; margin-top: .6rem; }
.flash { padding: .7rem .8rem; border-radius: 12px; border: 1px solid transparent; }
.flash-success { background: #dcfce7; color: #14532d; border-color: #86efac; }
.flash-danger { background: #fee2e2; color: #7f1d1d; border-color: #fecaca; }
.flash-warning { background: #fff7ed; color: #9a3412; border-color: #fdba74; }
.flash-info { background: #e0f2fe; color: #0c4a6e; border-color: #7dd3fc; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.history-head { flex-direction: column; align-items: flex-start; }
.history-head .history-title { margin: 0; }
.history-filters { width: 100%; }
.upload-card h2,
.section-head h2 {
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1.2;
}
.helper { color: #64748b; font-size: .9rem; margin: .65rem 0 0; }
.faq-card {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-color: #d6e3f8;
}
.faq-card h2 { margin-bottom: .35rem; }
.faq-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .2rem 0 .7rem;
  border-bottom: 1px solid #dde8f8;
  margin-bottom: .9rem;
}
.faq-hero p {
  margin: 0;
  color: #475569;
  font-size: .94rem;
}
.faq-tags {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}
.faq-tags span {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid #c8daf7;
  background: #ecf4ff;
  color: #0b4fd4;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.faq-grid-modern {
  grid-template-columns: 1fr;
  gap: .7rem;
  counter-reset: faqstep;
}
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: .9rem .95rem;
  position: relative;
  overflow: hidden;
}
.faq-grid-modern .faq-item {
  padding: 1rem 1rem 1rem 1.1rem;
  border-color: #d4e2f6;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}
.faq-grid-modern .faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #0b4fd4, #ea6a1b);
  opacity: .85;
}
.faq-grid-modern .faq-item::after {
  counter-increment: faqstep;
  content: counter(faqstep, decimal-leading-zero);
  position: absolute;
  right: .75rem;
  top: .7rem;
  font-size: .72rem;
  font-weight: 700;
  color: #6b7b96;
  letter-spacing: .06em;
}
.faq-grid-modern .faq-item + .faq-item {
  margin-top: .15rem;
}
.faq-grid-modern .faq-item:hover {
  border-color: #a8c2e9;
  box-shadow: 0 14px 28px -24px rgba(15, 23, 42, 0.5);
  transform: translateY(-1px);
  transition: .2s ease;
}
.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  cursor: pointer;
  list-style: none;
  margin: 0;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::marker { content: ""; }
.faq-summary h3 { margin: 0; }
.faq-summary::after {
  content: "▾";
  font-size: 1rem;
  color: #5673a3;
  transform: rotate(-90deg);
  transition: transform .2s ease, color .2s ease;
  line-height: 1;
  margin-right: .1rem;
  margin-left: auto;
}
.faq-item[open] .faq-summary::after {
  transform: rotate(0deg);
  color: #0b4fd4;
}
.faq-content {
  margin-top: .55rem;
}
.faq-item h3 {
  margin: 0 0 .35rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.faq-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  border: 1px solid #bcd1f3;
  background: #ecf4ff;
  color: #0b4fd4;
  flex: 0 0 1.35rem;
}
.faq-icon svg {
  width: .85rem;
  height: .85rem;
  display: block;
  fill: currentColor;
}
.faq-item p {
  margin: 0;
  font-size: .92rem;
  color: #334155;
  line-height: 1.45;
}
.faq-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #334155;
  font-size: .92rem;
  line-height: 1.45;
}
.faq-list li + li { margin-top: .22rem; }
.faq-item-emphasis {
  border-color: #9dbef0;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
}
.faq-topic-flow .faq-icon { border-color: #8db2ee; background: #dbeafe; color: #1d4ed8; }
.faq-topic-events .faq-icon { border-color: #a5b4fc; background: #e0e7ff; color: #4338ca; }
.faq-topic-check .faq-icon { border-color: #86efac; background: #dcfce7; color: #166534; }
.faq-topic-consult .faq-icon { border-color: #93c5fd; background: #dbeafe; color: #1d4ed8; }
.faq-topic-error .faq-icon { border-color: #fdba74; background: #ffedd5; color: #9a3412; }
.faq-topic-note .faq-icon { border-color: #99f6e4; background: #ccfbf1; color: #0f766e; }
[data-theme="dark"] .faq-item {
  border-color: #2b3a52;
  background: linear-gradient(180deg, #0f172a 0%, #0e1a32 100%);
}
[data-theme="dark"] .faq-grid-modern .faq-item {
  border-color: #2a3f67;
  background: linear-gradient(180deg, #0f1c35 0%, #0c1830 100%);
}
[data-theme="dark"] .faq-grid-modern .faq-item::before {
  background: linear-gradient(180deg, #3b82f6, #f97316);
}
[data-theme="dark"] .faq-grid-modern .faq-item::after {
  color: #8fa8cc;
}
[data-theme="dark"] .faq-grid-modern .faq-item:hover {
  border-color: #3b67a7;
  box-shadow: 0 16px 30px -24px rgba(2, 6, 23, 0.85);
}
[data-theme="dark"] .faq-summary::after {
  color: #8fa8cc;
}
[data-theme="dark"] .faq-item[open] .faq-summary::after {
  color: #93c5fd;
}
[data-theme="dark"] .faq-item p {
  color: #cbd5e1;
}
[data-theme="dark"] .faq-list {
  color: #cbd5e1;
}
[data-theme="dark"] .faq-card {
  background: linear-gradient(180deg, #0c1730 0%, #0a1326 100%);
  border-color: #23365b;
}
[data-theme="dark"] .faq-hero {
  border-bottom-color: #243657;
}
[data-theme="dark"] .faq-hero p {
  color: #a8bbd7;
}
[data-theme="dark"] .faq-tags span {
  border-color: #345487;
  background: #10274d;
  color: #d9e7ff;
}
[data-theme="dark"] .faq-icon {
  border-color: #355588;
  background: #10274d;
  color: #d9e7ff;
}
[data-theme="dark"] .faq-topic-flow .faq-icon { border-color: #3b67a7; background: #132f5d; color: #dbeafe; }
[data-theme="dark"] .faq-topic-events .faq-icon { border-color: #4f46e5; background: #28235e; color: #e0e7ff; }
[data-theme="dark"] .faq-topic-check .faq-icon { border-color: #15803d; background: #133722; color: #bbf7d0; }
[data-theme="dark"] .faq-topic-consult .faq-icon { border-color: #2563eb; background: #172f59; color: #bfdbfe; }
[data-theme="dark"] .faq-topic-error .faq-icon { border-color: #b45309; background: #3a250f; color: #fed7aa; }
[data-theme="dark"] .faq-topic-note .faq-icon { border-color: #0f766e; background: #123633; color: #99f6e4; }
[data-theme="dark"] .faq-item-emphasis {
  border-color: #3b67a7;
  background: linear-gradient(180deg, #132547 0%, #10203d 100%);
}
.cycle-prices {
  margin-top: .75rem;
  margin-bottom: .85rem;
  padding: .7rem .8rem;
  border: 1px solid #cfe0fb;
  background: #eef4ff;
  border-radius: 10px;
}
.cycle-prices p {
  margin: .3rem 0;
  line-height: 1.35;
  font-size: .88rem;
  color: #0f172a;
}
[data-theme="dark"] .cycle-prices {
  border-color: #36507a;
  background: #13213a;
}
[data-theme="dark"] .cycle-prices p {
  color: #dbeafe;
}
.site-footer { border-top: 1px solid #e2e8f0; padding: 1rem 0 1.5rem; background: #f8fafc; }
[data-theme="dark"] .site-footer { border-top-color: #273449; background: #0b1220; }
.footer-grid { display: flex; justify-content: space-between; gap: 1rem; color: #64748b; }
.footer-logo { height: 30px; width: auto; max-width: min(58vw, 260px); display: block; margin-bottom: .55rem; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero, .dashboard-grid, .grid-3, .grid-2, .stats-grid { grid-template-columns: 1fr; }
  .pricing-carousel { gap: .3rem; }
  .carousel-arrow { width: 34px; height: 34px; }
  .wide-inline-form .btn { width: 100%; }
  .upload-main-row { grid-template-columns: 1fr; }
  .upload-main-row .upload-submit-row { justify-content: stretch; width: 100%; }
  .upload-main-row .upload-submit-row .btn { width: 100%; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .faq-hero { flex-direction: column; }
  .faq-grid { grid-template-columns: 1fr; }
  .public-index .hero-premium { grid-template-columns: 1fr; }
  .public-index .hero-text { padding: 1.2rem; }
  .public-index .shot-card-main { min-height: auto; }
  .public-index .intelligence-track { margin: 0 42px; }
}

@media (max-width: 980px) {
  .public-index .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  nav > a[href$="/pricing"] {
    display: none;
  }
  nav a.login-image-link {
    width: 21px;
    height: 21px;
  }
  .login-image {
    width: 21px;
    height: 21px;
  }
  .brand-logo { height: 30px; max-width: 56vw; }
  .footer-logo { height: 26px; max-width: 62vw; }
  .wide-inline-form .input { min-width: 0; }
  .upload-card .upload-main-row { gap: .55rem; }
  .upload-card .dropzone {
    padding: 1rem .85rem;
    border-radius: 10px;
  }
  .upload-card .dropzone span {
    font-size: .95rem;
    line-height: 1.3;
  }
  .upload-card .upload-submit-row .btn {
    min-height: 48px;
    padding: .58rem .9rem;
    font-size: .95rem;
  }
  .upload-card .wide-inline-form { gap: .5rem; }
  .upload-card .wide-inline-form .input {
    padding: .56rem .68rem;
    font-size: .95rem;
  }
  .upload-card .wide-inline-form .btn { min-height: 46px; }
  .public-index .hero,
  .public-index .grid-3 { grid-template-columns: 1fr; }
  .public-index .hero-kpis { gap: .4rem; }
  .public-index .lp-switch { width: 100%; justify-content: stretch; }
  .public-index .lp-switch-btn { flex: 1 1 0; text-align: center; }
}
