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

:root {
  --app-bg: #f3f6fb;
  --app-surface: #ffffff;
  --app-surface-soft: #f9fbff;
  --app-ink: #182338;
  --app-muted: #5d6980;
  --app-border: #d8e1ef;
  --app-primary: #1a57d8;
  --app-primary-strong: #1547b3;
  --app-primary-soft: #eaf1ff;
  --app-success-soft: #e9f8ef;
  --app-warning-soft: #fff7e6;
  --app-danger-soft: #fff0f0;
  --app-radius-lg: 18px;
  --app-radius-md: 12px;
  --app-shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
  --app-shadow-md: 0 18px 40px rgba(15, 23, 42, 0.09);
  --app-header-height: 72px;
}

* {
  box-sizing: border-box;
}

.app-body {
  font-family:
    "Work Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--app-ink);
  min-height: 100vh;
  background: white;
}

.app-main {
  margin-top: var(--app-header-height);
  min-height: calc(100vh - var(--app-header-height));
}

.app-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1100;
}

a {
  color: var(--app-primary);
  text-decoration-color: rgba(26, 87, 216, 0.35);
}

a:hover {
  color: var(--app-primary-strong);
}

.app-navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-sm);
  backdrop-filter: blur(8px);
}

.brand-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #d3dff0;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
}

.app-navbar .navbar-brand {
  font-family: "Space Grotesk", "Work Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #16213a !important;
}

.app-navbar .app-nav-action {
  border: 1px solid #c8d4e8;
  background: #fff;
  color: #26344f;
  font-weight: 600;
}

.app-navbar .app-nav-action:hover,
.app-navbar .app-nav-action:focus {
  border-color: var(--app-primary);
  color: var(--app-primary);
  background: var(--app-primary-soft);
}

.app-navbar .app-nav-action:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(26, 87, 216, 0.18);
}

.app-hamburger {
  min-width: 40px;
  min-height: 34px;
  padding: 0.3rem 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-hamburger-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.app-hamburger-icon > span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #2b3b58;
}

.app-nav-menu {
  margin-top: 0.5rem;
  min-width: 180px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  box-shadow: var(--app-shadow-sm);
  padding: 0.35rem;
}

.app-nav-menu .dropdown-item {
  border-radius: 8px;
  color: #26344f;
  font-weight: 500;
}

.app-nav-menu .dropdown-item:hover,
.app-nav-menu .dropdown-item:focus {
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

.app-nav-menu form .dropdown-item {
  border: 0;
  width: 100%;
  text-align: left;
  background: transparent;
}

.card,
.app-card,
.glass-card {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  background: var(--app-surface);
  box-shadow: var(--app-shadow-sm);
}

.card.shadow-lg,
.app-elevated {
  box-shadow: var(--app-shadow-md) !important;
}

.app-page-narrow {
  max-width: 700px;
  margin-inline: auto;
}

.app-section-head {
  margin-bottom: 1.4rem;
}

.app-section-title {
  font-family: "Space Grotesk", "Work Sans", system-ui, sans-serif;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #101d33;
}

.app-section-subtitle {
  color: var(--app-muted);
  margin-bottom: 0;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #d2ddf2;
  background: #fff;
  color: #314462;
}

.app-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a628e;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #1b5cdc 0%, #2674ff 100%);
  border-color: #1a57d8;
  box-shadow: 0 8px 20px rgba(26, 87, 216, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #174fbe 0%, #2067e8 100%);
  border-color: #174fbe;
}

.btn-outline-primary {
  border-color: #c5d5f7;
  color: #1d55c4;
  background: #fff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  border-color: #1d55c4;
  background: var(--app-primary-soft);
  color: #1b4fb5;
}

.btn-outline-secondary {
  border-color: #cfd8e8;
  color: #3d4c68;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: #f2f5fb;
  color: #23334f;
}

.btn-gradient {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #1a57d8 0%, #2674ff 100%);
  box-shadow: 0 10px 24px rgba(26, 87, 216, 0.24);
}

.btn-gradient:hover,
.btn-gradient:focus {
  color: #fff;
  background: linear-gradient(135deg, #174ebe 0%, #2065e2 100%);
}

.form-control,
.form-select,
.form-check-input {
  border-color: #cfd9ea;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: #86a9f5;
  box-shadow: 0 0 0 0.2rem rgba(26, 87, 216, 0.14);
}

.alert {
  border-radius: var(--app-radius-md);
  border: 1px solid transparent;
}

.alert-info {
  background: #eef5ff;
  border-color: #c9dcff;
  color: #174394;
}

.alert-success {
  background: var(--app-success-soft);
  border-color: #badfc8;
  color: #1f5f3b;
}

.alert-warning {
  background: var(--app-warning-soft);
  border-color: #f2d18b;
  color: #7a5608;
}

.alert-danger {
  background: var(--app-danger-soft);
  border-color: #f3c4c4;
  color: #8d2c2c;
}

.list-group-item {
  border-color: #e0e7f2;
  padding: 0.95rem 1.1rem;
}

.table {
  --bs-table-bg: transparent;
}

.table > :not(caption) > * > * {
  border-bottom-color: #dfe6f1;
}

/* Landing */
.lp-hero {
  padding: 0;
  margin-bottom: 1.4rem;
}

.lp-kicker {
  letter-spacing: 0.06em;
}

.lp-arrow {
  color: #1e56c7;
  font-weight: 800;
}

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

.lp-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
}

.lp-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #1a57d8;
  font-weight: 700;
}

.lp-metric {
  border: 1px dashed #cdd9ef;
  border-radius: var(--app-radius-md);
  padding: 1rem;
  background: var(--app-surface-soft);
}

.lp-accent {
  color: #1a57d8;
}

.lp-num {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.lp-num-1,
.lp-num-2,
.lp-num-3 {
  background: #edf3ff;
  color: #1849ac;
  border: 1px solid #c9d8f7;
}

.lp-highlight {
  border: 2px solid #abc4fb !important;
}

.lp-section-soft {
  background: transparent;
}

.lp-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--app-border);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(110%);
  transition: transform 0.22s ease;
}

.lp-sticky-cta.visible {
  transform: translateY(0);
}

.lp-float,
.lp-pulse {
  animation: none;
}

/* Payment */
.pricing-hero {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.price-big {
  font-size: clamp(2rem, 2vw + 1rem, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #10284f;
}

/* Article */
.article-shell {
  max-width: 960px;
  margin-inline: auto;
}

.article-card {
  background: #fff;
  border: 1px solid #d7e1f1;
  border-radius: 20px;
  box-shadow: var(--app-shadow-md);
  overflow: hidden;
}

.article-header {
  padding: clamp(1.2rem, 1rem + 1.2vw, 2rem);
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  border-bottom: 1px solid #e3eaf7;
}

.article-title {
  font-family: "Space Grotesk", "Work Sans", system-ui, sans-serif;
  font-size: clamp(1.75rem, 2.8vw + 1rem, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #102245;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  color: #58647d;
  font-size: 0.9rem;
}

.article-cover-wrap {
  padding: clamp(0.8rem, 0.5rem + 0.8vw, 1.2rem) clamp(1rem, 0.5rem + 2vw, 2rem)
    0;
}

.article-cover {
  width: 100%;
  max-height: min(62vh, 560px);
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(16, 34, 69, 0.12);
}

.article-body-wrap {
  padding: clamp(1.2rem, 0.9rem + 1.1vw, 2rem) clamp(1rem, 0.5rem + 2vw, 2rem);
}

.article-content {
  color: #1a2438;
  font-size: 1.02rem;
  line-height: 1.88;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-content > * + * {
  margin-top: 1.15rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: "Space Grotesk", "Work Sans", system-ui, sans-serif;
  line-height: 1.35;
  color: #11234a;
  margin-top: 1.9rem;
  margin-bottom: 0.65rem;
}

.article-content p {
  margin-bottom: 0;
}

.article-content a {
  color: #1a57d8;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

.article-content ul,
.article-content ol {
  padding-left: 1.25rem;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 0.95rem 1.15rem;
  border-left: 4px solid #5f86e5;
  border-radius: 10px;
  background: #f3f7ff;
  color: #2c3a59;
}

.article-content pre {
  margin: 1.5rem 0;
  padding: 0.95rem;
  border-radius: 12px;
  background: #12213a;
  color: #dfebff;
  overflow-x: auto;
}

.article-content code {
  background: rgba(18, 33, 58, 0.08);
  border-radius: 6px;
  padding: 0.1rem 0.32rem;
}

.article-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.article-content th,
.article-content td {
  border: 1px solid #d7deec;
  padding: 0.6rem 0.78rem;
  white-space: nowrap;
  background: #fff;
}

.article-content th {
  background: #f4f8ff;
}

.article-content hr {
  border: 0;
  border-top: 1px solid #d7e1f1;
  margin: 1.8rem 0;
}

.article-content img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 1.4rem auto;
  border-radius: 12px;
}

.article-content figure {
  margin: 1.4rem auto;
  max-width: 100%;
}

.article-content figure.image,
.article-content figure.image.image_resized {
  width: 100% !important;
  max-width: 100% !important;
}

.article-content figure.image img,
.article-content figure.image.image_resized img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
}

.article-content .image-style-align-left,
.article-content .image-style-align-right,
.article-content .image-style-side {
  float: none !important;
  margin: 1.4rem auto !important;
}

.article-content figcaption {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.86rem;
  color: #68758d;
}

.article-footer {
  padding: 1rem clamp(1rem, 0.5rem + 2vw, 2rem) 1.2rem;
  border-top: 1px solid #dfe7f5;
  background: #fafcff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1rem;
}

.article-back-link {
  color: #2e456f;
  font-weight: 600;
  text-decoration: none;
}

.article-back-link:hover {
  color: #1a57d8;
  text-decoration: underline;
}

.article-updated {
  color: #68758d;
  font-size: 0.86rem;
  margin: 0;
}

/* Upload tool */
.add-tile {
  cursor: pointer;
  user-select: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.add-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.add-tile:active {
  transform: translateY(0);
}

.tile-square {
  aspect-ratio: 1 / 1;
}

.add-tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cfd8ea;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-tile-plus {
  font-size: 28px;
  line-height: 1;
}

.preview-image {
  object-fit: cover;
}

.preview-remove-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 28px;
}

/* Utility */
.app-muted {
  color: var(--app-muted) !important;
}

@media (max-width: 991px) {
  .app-navbar .container {
    gap: 0.75rem;
  }

  .app-navbar .ms-auto {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 576px) {
  .app-main {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }

  .article-card {
    border-radius: 15px;
  }

  .article-content {
    font-size: 1rem;
    line-height: 1.8;
  }

  .lp-sticky-cta .btn {
    min-width: 110px;
  }
}
