/* Common styles for makcards.online landing pages */
:root {
  color-scheme: dark;
  --bg: #0f1b2e;
  --bg-soft: #13243d;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #e6eef6;
  --text-soft: rgba(230, 238, 246, 0.82);
  --text-muted: rgba(230, 238, 246, 0.65);
  --accent: #5fd1c4;
  --shadow: 0 24px 60px rgba(4, 12, 22, 0.45);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, rgba(55, 97, 140, 0.35), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}
header .page {
  padding-bottom: 0;
}
.glass {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 6px 0;
  backdrop-filter: blur(18px);
  background: rgba(12, 22, 36, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}
.brand img.logo {
  width: 72px;
  height: 72px;
}
.brand img.logo-text {
  height: 48px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.nav-links a {
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown > a::after {
  content: '';
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.2s;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 22, 36, 0.98);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--shadow);
  z-index: 20;
}
/* Invisible bridge between trigger and menu to prevent hover gap */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: var(--glass-strong);
  color: var(--text);
}
.dropdown-menu a svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  flex-shrink: 0;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  display: block;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.5rem;
  background: rgba(230, 238, 246, 0.05);
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(230, 238, 246, 0.6);
}
.lang-switch a {
  color: inherit;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: background 150ms ease, color 150ms ease;
}
.lang-switch a:hover {
  background: rgba(230, 238, 246, 0.1);
}
.lang-switch a.active {
  background: var(--accent);
  color: #0F1B2E;
  font-weight: 600;
}

/* Buttons */
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.button-primary {
  background: var(--accent);
  color: #0b1b2c;
  box-shadow: 0 12px 30px rgba(95, 209, 196, 0.3);
}
.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(95, 209, 196, 0.45);
}
.button-secondary {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text);
}
.button-secondary:hover {
  background: var(--glass);
  border-color: rgba(255, 255, 255, 0.2);
}
.button-primary svg,
.button-secondary svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 64px 0 48px;
}
.hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 12px;
  line-height: 1.15;
}
.hero-tagline {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
  line-height: 1.2;
}
.hero p {
  font-size: 1.05rem;
  color: rgba(230, 238, 246, 0.8);
  margin-bottom: 22px;
  max-width: 540px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.hero-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-badges span::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1em;
}
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media img {
  border-radius: 16px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6),
              0 16px 32px rgba(0, 0, 0, 0.4),
              0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Image placeholder for screenshots not yet created */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: var(--glass);
  border: 2px dashed var(--stroke);
  border-radius: 16px;
  padding: 48px 32px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
  min-height: 300px;
  width: 100%;
  max-width: 560px;
}
.img-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: var(--accent);
  opacity: 0.5;
}

/* Sections */
.section {
  padding: 56px 0;
}
.section h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  margin-bottom: 18px;
}
.section p.lead {
  color: var(--text-soft);
  max-width: 720px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Grid layouts */
.grid-3,
.tabs,
.features,
.split {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.grid-3 {
  gap: 20px;
}
.grid-4 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tabs {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.split {
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Cards */
.card {
  padding: 22px;
  min-height: 180px;
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.card p {
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 0.97rem;
}
.card-highlight {
  background: rgba(95, 209, 196, 0.08);
  border-color: rgba(95, 209, 196, 0.3);
}
.card-highlight .feature-icon {
  background: rgba(95, 209, 196, 0.3);
}

/* Audience card links */
.audience-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.audience-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  min-height: 220px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.audience-card:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 209, 196, 0.4);
  background: var(--glass-strong);
}
.audience-card .feature-icon {
  margin-bottom: 16px;
}
.audience-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text);
}
.audience-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}
.audience-card .card-link {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.audience-card .card-link::after {
  content: '\2192';
}

/* Steps counter */
.steps {
  counter-reset: step;
}
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(95, 209, 196, 0.15);
  border: 1px solid rgba(95, 209, 196, 0.5);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

/* Feature icons */
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(95, 209, 196, 0.2);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* Lists */
.list {
  display: grid;
  gap: 14px;
}
.list li {
  list-style: none;
  padding-left: 24px;
  position: relative;
  color: var(--text-soft);
  line-height: 1.5;
}
.list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Problem-solution section */
.problem-solution {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.problem-card,
.solution-card {
  padding: 28px;
}
.problem-card h3,
.solution-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.problem-card h3 svg,
.solution-card h3 svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.problem-card h3 svg {
  stroke: #f87171;
}
.solution-card h3 svg {
  stroke: var(--accent);
}

/* Pricing table */
.pricing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.pricing-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  background: rgba(95, 209, 196, 0.08);
  border-color: rgba(95, 209, 196, 0.3);
}
.pricing-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
}
.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.pricing-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.pricing-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}
.pricing-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -10px;
  margin-bottom: 16px;
}

/* Flow diagram */
.flow-diagram {
  padding: 32px;
  overflow-x: auto;
}
.flow-diagram pre {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-soft);
  white-space: pre;
}

/* FAQ */
.faq-list {
  display: flex;
  gap: 16px;
}
.faq-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
details {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 18px 22px;
  transition: background 0.2s, border-color 0.2s;
}
details:hover {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.18);
}
details[open] {
  background: var(--glass-strong);
  border-color: rgba(95, 209, 196, 0.3);
}
details:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '';
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235fd1c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
details[open] summary::after {
  transform: rotate(180deg);
}
details .answer {
  color: var(--text-soft);
  margin-top: 14px;
  line-height: 1.6;
}
details .answer ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}
details .answer li {
  margin-bottom: 6px;
  line-height: 1.5;
}
details .answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
details .answer a:hover {
  color: var(--text);
}

/* CTA and Footer */
.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 36px;
}
footer {
  margin-top: 32px;
  padding: 24px 24px 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--stroke);
}
.footer-disclaimer {
  font-size: 0.78rem;
  opacity: 0.65;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  align-items: center;
}
.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text);
}

/* Cross-promo */
.promo {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  padding: 24px 0 0;
  flex-wrap: wrap;
}
.promo-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 12px 12px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  text-decoration: none;
  max-width: 400px;
  flex: 1;
  min-width: 280px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.promo-card:hover {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.promo-card img {
  width: 120px;
  border-radius: 8px;
  flex-shrink: 0;
}
.promo-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.promo-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.promo-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.promo-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb span {
  color: var(--text-soft);
}

/* Mobile */
.mobile-toggle {
  display: none;
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--text);
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
}
.mobile-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(12, 22, 36, 0.98);
    position: fixed;
    top: 100px;
    left: 16px;
    right: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    z-index: 100;
  }
  .nav-links.is-open {
    display: flex;
  }
  .mobile-toggle {
    display: inline-flex;
    position: fixed;
    top: 100px;
    right: 16px;
    z-index: 101;
  }
  .mobile-toggle.is-open {
    top: 100px;
    right: 16px;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .button-primary {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
  .brand img.logo {
    width: 48px;
    height: 48px;
  }
  .brand img.logo-text {
    height: 32px;
  }
  .lang-switch {
    display: none;
  }
  /* Mobile dropdown: always show, no hover */
  .dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    padding: 0 0 0 12px;
    box-shadow: none;
    min-width: 0;
  }
  .nav-dropdown .dropdown-menu {
    display: block;
  }
}
@media (max-width: 768px) {
  .faq-list {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .promo-card img {
    width: 80px;
  }
}
