/* Project-specific additions on top of compiled theme CSS */

.message {
  margin-bottom: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.message.success {
  border-color: hsl(var(--primary) / 0.35);
  background: hsl(var(--primary) / 0.08);
}

.message.error {
  border-color: hsl(var(--destructive) / 0.35);
  background: hsl(var(--destructive) / 0.08);
}

.prose iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0.75rem;
}

.prose {
  max-width: 100%;
  color: hsl(var(--foreground));
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  font-weight: 700;
  line-height: 1.25;
}

.prose a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.prose code {
  border-radius: 0.375rem;
  background: hsl(var(--muted));
  padding: 0.1rem 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.875em;
}

.prose pre {
  overflow-x: auto;
  border-radius: 0.75rem;
  background: hsl(var(--muted));
  padding: 0.75rem 1rem;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

:root {
  --background: 224 29% 3%;
  --foreground: 220 45% 96%;
  --card: 224 32% 7%;
  --card-foreground: 220 45% 96%;
  --popover: 224 32% 7%;
  --popover-foreground: 220 45% 96%;
  --primary: 228 100% 65%;
  --primary-foreground: 0 0% 100%;
  --secondary: 222 26% 12%;
  --secondary-foreground: 220 45% 94%;
  --muted: 222 26% 11%;
  --muted-foreground: 219 22% 68%;
  --accent: 224 34% 14%;
  --accent-foreground: 220 45% 96%;
  --border: 221 23% 20%;
  --input: 221 23% 20%;
  --ring: 228 100% 68%;
}

html {
  background: #06070b;
}

body {
  background: #06070b;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 8%, rgba(79, 115, 255, 0.16), transparent 26rem),
    radial-gradient(circle at 85% 18%, rgba(28, 146, 190, 0.12), transparent 28rem),
    #06070b;
}

#site-header {
  border-bottom: 1px solid rgba(108, 126, 161, 0.22);
  background: rgba(6, 7, 11, 0.78) !important;
  backdrop-filter: blur(14px);
}

#mobile-menu {
  background: rgba(6, 7, 11, 0.96);
}

footer {
  border-top: 1px solid rgba(108, 126, 161, 0.22);
  background: #06070b !important;
  color: #eef3ff !important;
}

section {
  background-color: transparent;
}

.bg-muted\/50 {
  background-color: rgba(12, 16, 26, 0.68);
}

.bg-card {
  background-color: rgba(10, 14, 24, 0.86);
}

.border-border,
.border-input {
  border-color: rgba(108, 126, 161, 0.28);
}

.hover\:shadow-lg:hover,
.hover\:shadow-xl:hover {
  box-shadow: 0 16px 34px rgba(44, 71, 132, 0.2);
}

.bg-background {
  background-color: rgba(6, 7, 11, 0.88);
}

.bg-secondary {
  background-color: rgba(22, 31, 50, 0.9);
}

.bg-accent {
  background-color: rgba(28, 39, 65, 0.92);
}

.from-primary\/5 {
  --tw-gradient-from: rgba(79, 115, 255, 0.12) var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(79, 115, 255, 0) var(--tw-gradient-to-position);
}

.via-background {
  --tw-gradient-stops: var(--tw-gradient-from), rgba(6, 7, 11, 0.98) var(--tw-gradient-via-position), var(--tw-gradient-to);
}

.to-accent\/30 {
  --tw-gradient-to: rgba(20, 33, 55, 0.78) var(--tw-gradient-to-position);
}

.prose pre,
.prose code {
  background: rgba(16, 22, 36, 0.96);
}

.max-w-7xl,
.max-w-6xl {
  width: min(1240px, 100% - 48px);
  max-width: none;
}

.max-w-5xl {
  width: min(1120px, 100% - 48px);
  max-width: none;
}

.eit-hero-container {
  width: min(1120px, 100% - 48px);
  max-width: none;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.eit-hero-section {
  min-height: clamp(560px, 78vh, 720px);
}

.eit-hero-container h1 {
  max-width: 920px;
}

.eit-hero-container > p {
  max-width: 760px;
}

.eit-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(760px, 100%);
  margin: 0 auto;
}

.eit-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 184px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: rgba(10, 14, 24, 0.82);
  color: hsl(var(--foreground));
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.eit-hero-action:hover {
  border-color: hsl(var(--primary) / 0.28);
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  transform: translateY(-1px);
}

.eit-hero-action.primary {
  min-width: 260px;
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 14px 28px hsl(var(--primary) / 0.18);
}

.eit-hero-action.primary:hover {
  background: hsl(var(--primary) / 0.92);
  color: hsl(var(--primary-foreground));
}

.eit-hero-action.muted {
  color: hsl(var(--muted-foreground));
}

.eit-pricing-section {
  background: transparent;
  color: #eef3ff;
  padding: 6.5rem 0;
}

.eit-pricing-container {
  width: min(1240px, 100% - 48px);
  margin: 0 auto;
}

.eit-pricing-head {
  margin: 0 auto 2.8rem;
  max-width: 760px;
  text-align: center;
}

.eit-pricing-kicker {
  margin: 0 0 0.65rem;
  color: #7f9cff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eit-pricing-head h2 {
  margin: 0;
  color: #f4f7ff;
  font-size: clamp(2.35rem, 4.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.03;
}

.eit-pricing-head p:not(.eit-pricing-kicker) {
  margin: 0.85rem auto 0;
  color: #858d9f;
  font-size: 0.95rem;
  line-height: 1.62;
}

.eit-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

.eit-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
  border: 1px solid rgba(99, 122, 170, 0.3);
  border-radius: 8px;
  background: rgba(10, 14, 24, 0.82);
  padding: 1rem;
}

.eit-pricing-card.recommended {
  border-color: rgba(103, 129, 206, 0.8);
  box-shadow: 0 16px 34px rgba(44, 71, 132, 0.22);
}

.eit-pricing-card.is-addon {
  border-color: rgba(87, 113, 156, 0.36);
}

.eit-pricing-trigger {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  top: -0.65rem;
  z-index: 1;
  overflow: hidden;
  border: 1px solid #7b4f12;
  border-radius: 999px;
  background: #211506;
  box-shadow: 0 0 0 4px #06070b;
  color: #efbd67;
  font-size: 0.64rem;
  padding: 0.2rem 0.65rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eit-pricing-top {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 5.8rem;
  min-width: 0;
}

.eit-pricing-top h3 {
  margin: 0;
  min-width: 0;
  color: #eef3ff;
  font-size: clamp(1.22rem, 1.6vw, 1.58rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.eit-pricing-tag {
  flex: 0 0 auto;
  align-self: flex-start;
  max-width: 100%;
  border: 1px solid rgba(130, 157, 214, 0.45);
  border-radius: 999px;
  background: rgba(35, 54, 92, 0.45);
  color: #d3dff7;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.28rem 0.55rem;
  white-space: nowrap;
}

.eit-pricing-tag.success {
  border-color: rgba(35, 157, 104, 0.45);
  background: rgba(25, 88, 61, 0.3);
  color: #5fe0ad;
}

.eit-pricing-tag.accent {
  border-color: rgba(108, 130, 211, 0.58);
  background: rgba(53, 76, 151, 0.32);
  color: #8fa6ff;
}

.eit-pricing-plan-subtitle {
  margin: 0;
  min-height: 2.7em;
  color: #8d9db8;
  font-size: 0.76rem;
  line-height: 1.35;
}

.eit-pricing-price {
  margin: 0;
  color: #f4f7ff;
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.eit-pricing-period {
  margin: -0.1rem 0 0;
  color: #8d9db9;
  font-size: 0.72rem;
  text-transform: lowercase;
}

.eit-pricing-sub {
  border: 1px solid rgba(94, 133, 207, 0.4);
  border-radius: 8px;
  background: rgba(34, 61, 117, 0.25);
  color: #cdd9f1;
  font-size: 0.76rem;
  line-height: 1.45;
  padding: 0.55rem 0.65rem;
}

.eit-pricing-features {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.38rem;
  margin: 0.25rem 0 0;
  padding: 0;
  color: #a8b7d1;
  font-size: 0.82rem;
  line-height: 1.5;
  list-style: none;
}

.eit-pricing-features li {
  position: relative;
  padding-left: 0.95rem;
}

.eit-pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #4f73ff;
  font-weight: 800;
}

.eit-pricing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  width: 100%;
  margin-top: auto;
  border: 1px solid rgba(116, 137, 178, 0.4);
  border-radius: 8px;
  background: rgba(238, 243, 255, 0.08);
  color: #deebff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.eit-pricing-btn:hover {
  border-color: rgba(150, 170, 220, 0.68);
  background: rgba(238, 243, 255, 0.13);
  transform: translateY(-1px);
}

.eit-pricing-btn.primary {
  border-color: rgba(94, 124, 255, 0.82);
  background: #4f73ff;
  color: #fff;
}

.eit-pricing-footnote {
  margin: 1.1rem 0 0;
  color: #7e8fae;
  font-size: 0.76rem;
  text-align: center;
}

.eit-pricing-addon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  border: 1px solid rgba(108, 126, 161, 0.4);
  border-radius: 8px;
  background: rgba(10, 15, 28, 0.76);
  color: #deebff;
  padding: 1rem;
}

.eit-pricing-addon h3 {
  margin: 0;
  color: #f4f7ff;
  font-size: 1rem;
  font-weight: 800;
}

.eit-pricing-addon p {
  margin: 0.25rem 0 0;
  color: #94a7ca;
  font-size: 0.82rem;
  line-height: 1.5;
}

.eit-pricing-addon strong {
  flex: 0 0 auto;
  color: #f4f7ff;
  font-size: 1.15rem;
  line-height: 1.2;
  text-align: right;
}

@media (max-width: 1180px) {
  .max-w-7xl,
  .max-w-6xl,
  .max-w-5xl,
  .eit-hero-container {
    width: min(1240px, 100% - 32px);
  }

  .eit-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eit-pricing-container {
    width: min(1240px, 100% - 32px);
  }

  .eit-pricing-top {
    min-height: 5rem;
  }
}

@media (max-width: 760px) {
  .max-w-7xl,
  .max-w-6xl,
  .max-w-5xl,
  .eit-hero-container {
    width: min(100%, 100% - 24px);
  }

  .eit-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(100%, 420px);
  }

  .eit-hero-action,
  .eit-hero-action.primary {
    min-width: 0;
    width: 100%;
  }

  .eit-pricing-section {
    padding: 4.3rem 0;
  }

  .eit-pricing-grid {
    grid-template-columns: 1fr;
  }

  .eit-pricing-container {
    width: min(100%, 100% - 24px);
  }

  .eit-pricing-top {
    min-height: 0;
  }

  .eit-pricing-plan-subtitle {
    min-height: 0;
  }

  .eit-pricing-addon {
    align-items: flex-start;
    flex-direction: column;
  }

  .eit-pricing-addon strong {
    text-align: left;
  }
}
