/*
 * CodeRaven theme styles.
 * Ported from the React SPA: landing.tsx + public-layout.tsx inline
 * styles and globals.css mkt-* utilities. Class names kept where sensible.
 */

/* ═══════════════ BASE ═══════════════ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: #334155;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main { flex: 1; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }

a { color: inherit; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: #225397; color: #fff; padding: 10px 16px;
  font-family: 'Inter', sans-serif; font-size: 14px;
}
.skip-link:focus {
  left: 8px; top: 8px;
  clip: auto; clip-path: none; height: auto; width: auto;
}

/* ═══════════════ NAV ═══════════════ */

.tpl-nav {
  min-height: 64px;
  position: sticky; top: 0; z-index: 200;
  background: #fff;
  border-bottom: 1px solid rgba(176,196,237,.25);
}
body.admin-bar .tpl-nav { top: 32px; }
.tpl-nav-inner {
  max-width: 1440px; width: 100%; margin: 0 auto;
  padding: 0 clamp(16px, 9.5vw, 137px);
  height: 64px; display: flex; align-items: center; gap: 32px;
  position: relative;
}
.tpl-nav-logo {
  display: flex; align-items: center; gap: 4px;
  text-decoration: none; flex-shrink: 0;
}
.tpl-nav-logo-img { height: 56px; width: 56px; object-fit: contain; flex-shrink: 0; }
.tpl-nav-logo span {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13.5px;
  color: #000; white-space: nowrap; padding-top: 8px;
}
.tpl-nav-main { margin: 0 auto; }
.tpl-nav-links {
  display: flex; list-style: none; margin: 0; padding: 0; gap: 24px;
}
.tpl-nav-links a {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px;
  color: #787878; text-decoration: none;
}
.tpl-nav-links a:hover,
.tpl-nav-links .current-menu-item > a,
.tpl-nav-links .current_page_item > a { color: #225397; }
.tpl-nav-actions {
  display: flex; gap: 12px; align-items: center; flex-shrink: 0;
}
.tpl-btn-login {
  background: #fff; border: none; padding: 0 10px; height: 30px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px; color: #0f172a;
  cursor: pointer; border-radius: 4px;
  box-shadow: 0 4px 10px rgba(15,23,42,.07);
  display: inline-flex; align-items: center; text-decoration: none;
}
.tpl-btn-login:hover { box-shadow: 0 4px 14px rgba(15,23,42,.12); }
.tpl-btn-nav-cta {
  background: #0f172a; border: none; padding: 0 12px; height: 30px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px; color: #fff;
  cursor: pointer; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 10px rgba(15,23,42,.09); text-decoration: none;
}
.tpl-btn-nav-cta:hover { background: #1e293b; }
.tpl-btn-cta-icon { width: 14px; height: 14px; }

/* Mobile menu */
.tpl-mobile-btn {
  display: none; background: none; border: none; cursor: pointer;
  color: #334155; padding: 4px; position: absolute; right: 16px;
}
.tpl-mobile-btn svg { width: 20px; height: 20px; display: block; }
.tpl-mobile-menu {
  background: #fff; border-top: 1px solid #f3f4f6;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.tpl-mobile-menu[hidden] { display: none; }
.tpl-mobile-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tpl-mobile-menu a {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  color: #334155; text-decoration: none; padding: 8px 0;
}
.tpl-mobile-links .current-menu-item > a { color: #225397; }
.tpl-mobile-actions {
  border-top: 1px solid #f3f4f6; padding-top: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.tpl-mobile-actions .tpl-btn-login,
.tpl-mobile-actions .tpl-btn-nav-cta { justify-content: center; height: 38px; }
@media (max-width: 768px) {
  .tpl-mobile-btn { display: flex; align-items: center; }
  .tpl-nav-main { display: none; }
  .tpl-nav-actions { display: none; }
}

/* ═══════════════ FOOTER ═══════════════ */

.tpl-footer {
  background: #e0e6f0; border-top: 1px solid #b0c4ed;
  padding: 48px clamp(20px, 11.1%, 160px) 0;
  position: relative; overflow: hidden;
}
.tpl-footer-inner {
  display: flex; gap: 32px; padding-bottom: 48px; align-items: flex-start;
  flex-wrap: wrap;
}
.tpl-footer-brand { flex: 0 0 252px; min-width: 200px; }
.tpl-footer-brand-logo {
  display: flex; align-items: center; gap: 4px;
  text-decoration: none; margin-bottom: 12px;
}
.tpl-footer-brand-logo img { height: 32px; width: 32px; object-fit: contain; }
.tpl-footer-brand-logo span {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13.5px; color: #000;
}
.tpl-footer-brand p {
  font-family: 'Inter', sans-serif; font-size: 14px; color: #0f172a; line-height: 1.4;
}
.tpl-footer-cols { display: flex; gap: 32px; flex: 1; justify-content: flex-end; flex-wrap: wrap; min-width: 0; }
.tpl-footer-col h4 {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  color: #0f172a; margin-bottom: 16px;
}
.tpl-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tpl-footer-col a {
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: #334155; opacity: .5; text-decoration: none;
}
.tpl-footer-col a:hover { opacity: 1; }
.tpl-footer-bottom {
  border-top: 1px solid #b0c4ed; padding: 20px 0 24px;
  text-align: center; font-family: 'Inter', sans-serif;
  font-size: 14px; color: #334155; opacity: .6;
}
@media (max-width: 768px) {
  .tpl-footer-cols { justify-content: flex-start; }
}

/* ═══════════════ MARKETING UTILITIES (globals.css port) ═══════════════ */

.mkt-card {
  background: #fff; border-radius: 12px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.03);
}
.mkt-card-hover {
  background: #fff; border-radius: 12px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.03);
  transition: all .2s;
}
.mkt-card-hover:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.mkt-section-alt { background-color: #f9fafb; }
.mkt-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 500; color: #fff;
  background-color: #4A90D9; border-radius: 9999px; border: 0;
  padding: 8px 20px; text-decoration: none; cursor: pointer;
  transition: background-color .2s; font-size: 14px;
}
.mkt-btn-primary:hover { background-color: #3b7ec5; color: #fff; }
.mkt-btn-lg { padding: 12px 32px; font-size: 16px; }
.mkt-btn-icon { width: 16px; height: 16px; }
.mkt-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 500; color: #0f172a;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 9999px;
  padding: 8px 20px; text-decoration: none; cursor: pointer; font-size: 14px;
  transition: background-color .2s;
}
.mkt-btn-outline:hover { background: #f9fafb; }
.mkt-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px;
  color: #4A90D9; text-decoration: none; transition: color .2s;
}
.mkt-link:hover { color: #2563EB; }
.mkt-link-lg { font-size: 16px; }
.mkt-link-icon { width: 14px; height: 14px; }
.mkt-inline-link { color: #4A90D9; text-decoration: none; }
.mkt-inline-link:hover { text-decoration: underline; }
.mkt-heading { color: #0f172a; letter-spacing: -0.03em; }
.mkt-body { color: #334155; }

/* Layout helpers */
.mkt-container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.mkt-container-md { max-width: 896px; margin: 0 auto; }
.mkt-container-sm { max-width: 768px; margin: 0 auto; padding: 0 24px; }
.mkt-container .mkt-container-sm,
.mkt-container .mkt-container-md { padding: 0; }
.mkt-center { text-align: center; }
.mkt-text-sm { font-size: 14px; line-height: 1.55; }
.mkt-stack > * + * { margin-top: 20px; }
.mkt-stack-xl > * + * { margin-top: 64px; }
.mkt-mx-auto { margin-left: auto; margin-right: auto; }
.mkt-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-clamp-3 {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Typography */
.mkt-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: clamp(32px, 5vw, 48px); line-height: 1.15; margin-bottom: 16px;
}
.mkt-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: clamp(24px, 3.4vw, 30px); line-height: 1.2; margin-bottom: 16px;
}
.mkt-h3 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 20px; line-height: 1.3; margin-bottom: 8px;
}
.mkt-h4 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
  font-size: 16px; line-height: 1.35; margin-bottom: 6px;
}
.mkt-lead { font-size: 18px; line-height: 1.5; max-width: 672px; margin-left: auto; margin-right: auto; }
.mkt-section-sub { max-width: 672px; margin: 0 auto 40px; }

/* Sections */
.mkt-page-hero { padding: 64px 0 48px; }
.mkt-section { padding: 64px 0; }
.mkt-section-pt { padding-top: 64px; padding-bottom: 16px; }
.mkt-section-pb { padding-bottom: 64px; }
.mkt-section-bordered { border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.mkt-mid-cta { padding: 48px 0; }
.mkt-bottom-cta { padding: 80px 0; border-top: 1px solid #f3f4f6; }
.mkt-cta-row { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.mkt-cta-row-left { justify-content: flex-start; }
.mkt-anchor-target { scroll-margin-top: 128px; }

/* Grids */
.mkt-grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
.mkt-grid-3 { display: grid; gap: 24px; grid-template-columns: 1fr; }
.mkt-grid-4 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .mkt-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .mkt-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .mkt-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .mkt-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Icon boxes */
.mkt-icon-box {
  width: 48px; height: 48px; border-radius: 12px; background: #eff6ff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; flex-shrink: 0;
}
.mkt-icon-box svg { width: 24px; height: 24px; color: #4A90D9; }
.mkt-icon-box-lg { width: 56px; height: 56px; margin-bottom: 20px; }
.mkt-icon-box-lg svg { width: 28px; height: 28px; }
.mkt-icon-box-sm { width: 40px; height: 40px; border-radius: 8px; margin-bottom: 0; }
.mkt-icon-box-sm svg { width: 20px; height: 20px; }

/* Check lists */
.mkt-check-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mkt-check-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: #475569; line-height: 1.45;
}
.mkt-check-icon { width: 16px; height: 16px; color: #4A90D9; flex-shrink: 0; margin-top: 2px; }
.mkt-check-list-inline { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }

/* Badges */
.mkt-badge {
  display: inline-flex; align-items: center; width: fit-content;
  padding: 3px 10px; border-radius: 9999px;
  background: #eff6ff; color: #4A90D9;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 12px;
}
.mkt-badge-xs { font-size: 10px; padding: 1px 6px; }

/* FAQ accordion */
.mkt-faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.mkt-faq-toggle {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: 'Inter', sans-serif; font-size: 15px;
}
.mkt-faq-q { font-weight: 500; }
.mkt-faq-chevron { width: 16px; height: 16px; color: #64748b; flex-shrink: 0; transition: transform .2s; }
.mkt-faq-item.open .mkt-faq-chevron { transform: rotate(180deg); }
.mkt-faq-answer { padding: 0 20px 16px; font-size: 14px; line-height: 1.6; }
.mkt-faq-answer p { margin: 0 0 8px; }
.mkt-faq-answer p:last-child { margin-bottom: 0; }

/* ═══════════════ LANDING (landing.tsx port) ═══════════════ */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-6px); }
}
@keyframes crBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.mkt-landing-wrap { overflow-x: hidden; background: #fff; }

/* ─ Hero ─ */
.mkt-hero-section {
  position: relative; padding-bottom: 40px;
  background: #fff; overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.mkt-hero-gradient {
  position: absolute; top: 0; left: 0; right: 0; height: 1055px;
  background: linear-gradient(to bottom, rgba(34,83,151,.15), rgba(34,83,151,0));
  pointer-events: none; z-index: 0;
}
.mkt-hero-text {
  position: relative; z-index: 2;
  width: min(896px, 100%); margin: 0 auto;
  padding: 80px 20px 0; text-align: center;
}
.mkt-hero-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7.5px 16px; border-radius: 9999px; background: #f3f7fc;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px;
  color: #225397; margin-bottom: 16px;
}
.mkt-hero-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: clamp(30px, 5.5vw, 60px);
  line-height: 1; color: #0f172a; margin-bottom: 28px;
}
.mkt-hero-sub {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: clamp(15px, 2.2vw, 20px);
  color: #334155; line-height: 1.4; max-width: min(672px, 100%); margin: 0 auto 32px;
}
.mkt-hero-ctas { display: flex; align-items: center; justify-content: center; gap: 12px; }
.mkt-btn-primary-hero {
  background: #225397; color: #fff;
  padding: 8px 20px;
  font-family: 'Inter', sans-serif; font-size: 16px;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; min-width: 243px;
  border-radius: 5px;
}
.mkt-btn-secondary-hero {
  color: #225397; padding: 12px 24px;
  font-family: 'Inter', sans-serif; font-size: 16px;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.mkt-hero-cards-wrap {
  width: 100%; overflow: hidden;
  display: flex; justify-content: center;
  margin-top: 48px;
}
.mkt-hero-cards-area {
  position: relative; z-index: 2;
  width: 1425px; flex-shrink: 0;
  height: 326px;
}
.hero-card {
  position: absolute;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  overflow: hidden;
}
.hc-review { left: 312px; top: 0; width: 288px; animation: heroFadeUp .55s ease .1s both, heroFloat 5s ease-in-out .65s infinite; }
.hc-ticket { left: 617px; top: 36px; width: 240px; animation: heroFadeUp .55s ease .25s both, heroFloat 5s ease-in-out 1.15s infinite; }
.hc-plan   { left: 873px; top: 15px; width: 240px; animation: heroFadeUp .55s ease .4s both, heroFloat 5s ease-in-out 1.65s infinite; }

/* Card header */
.card-hdr {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px;
  border-bottom: 1px solid #f3f4f6;
}
.hdr-avatar {
  width: 20px; height: 20px; border-radius: 9999px;
  background: #4d8dd5; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 9px; color: #fff;
}
.hdr-title { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px; color: #334155; }
.hdr-ml { margin-left: auto; }
.tag {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 10px;
  padding: 2px 8px; border-radius: 9999px;
}
.tag-blue   { background: #eff6ff; color: #4d8dd5; }
.tag-green  { background: #f0fdf4; color: #15803d; }
.tag-red    { background: #fef2f2; color: #b91c1c; }
.tag-yellow { background: #fefce8; color: #854d0e; }
.tag-time   { font-family: 'Inter', sans-serif; font-size: 10px; color: #94a3b8; }
.te-hdr-icon { width: 16px; height: 16px; flex-shrink: 0; color: #4d8dd5; }

/* Review card body */
.cr-body    { padding: 12px 16px; transition: opacity .5s; }
.cr-issue-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.cr-issue-emoji { font-size: 14px; line-height: 1; }
.cr-issue-name  { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px; color: #334155; flex: 1; }
.cr-desc { font-size: 11px; color: #64748b; line-height: 1.4; margin-bottom: 12px; min-height: 30px; }
.cr-caret {
  display: inline-block; width: 2px; height: 12px;
  background: #94a3b8; margin-left: 2px; vertical-align: middle;
  animation: crBlink 1s step-end infinite;
}
.cr-caret[hidden] { display: none; }
.cr-diff { border: 1px solid #f3f4f6; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.cr-line { font-family: 'Consolas', 'Courier New', monospace; font-size: 11px; padding: 4px 12px; line-height: 1.4; transition: opacity .3s; }
.cr-del  { background: #fef2f2; color: #dc2626; }
.cr-add  { background: #f0fdf4; color: #15803d; }
.cr-footer { display: flex; justify-content: space-between; align-items: center; transition: opacity .3s; }
.cr-hint   { font-family: 'Inter', sans-serif; font-size: 10px; color: #94a3b8; }
.cr-autofix { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 10px; color: #4d8dd5; }

/* Ticket execution card */
.te-body   { padding: 12px 16px; transition: opacity .5s; }
.te-id     { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 10px; color: #94a3b8; margin-bottom: 4px; }
.te-name   { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px; color: #334155; margin-bottom: 12px; }
.te-step   { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 11px; }
.te-step .te-marker { font-weight: 700; color: #cbd5e1; }
.te-step .te-marker::before { content: '○'; }
.te-step .te-label { color: #cbd5e1; }
.te-step.is-active .te-marker { color: #4d8dd5; }
.te-step.is-active .te-marker::before { content: '●'; }
.te-step.is-active .te-label { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 11px; color: #334155; }
.te-step.is-done .te-marker { color: #22c55e; }
.te-step.is-done .te-marker::before { content: '✓'; }
.te-step.is-done .te-label { color: #94a3b8; }
.te-cursor { height: 10px; width: 2px; background: rgba(148,163,184,.52); display: block; margin: 8px 0 8px 18px; transition: opacity .3s; }
.te-branch {
  font-family: 'Consolas', 'Courier New', monospace; font-size: 10px; color: #64748b;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .3s;
}
.te-caret {
  display: inline-block; width: 2px; height: 10px;
  background: #94a3b8; margin-left: 2px; vertical-align: middle;
  animation: crBlink 1s step-end infinite;
}
.te-caret[hidden] { display: none; }
.te-success { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #15803d; margin-top: 4px; transition: opacity .3s; }
.te-ok { font-weight: 700; font-size: 10px; color: #22c55e; }
.te-success-text { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 10px; color: #15803d; }

/* AI planning card */
.ap-body { padding: 0; transition: opacity .5s; }
.ap-row  { display: flex; align-items: center; gap: 8px; padding: 10px 16px 0; transition: opacity .4s, transform .4s; }
.ap-chk  { width: 12px; height: 12px; border: 2px solid #e5e7eb; border-radius: 9999px; flex-shrink: 0; }
.ap-task { font-family: 'Inter', sans-serif; font-size: 11px; color: #475569; flex: 1; }
.ap-pts  { background: #eff6ff; color: #2563eb; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 10px; padding: 0 6px; height: 21px; display: flex; align-items: center; border-radius: 4px; white-space: nowrap; }
.ap-more { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 10px; color: #4d8dd5; padding: 8px 16px 12px; transition: opacity .3s; }
.ap-more .te-caret { background: #4d8dd5; }

/* Hero footnote */
.mkt-hero-footnote {
  position: relative; z-index: 2;
  text-align: center; max-width: 640px; margin: 32px auto 0;
  padding: 0 20px;
  font-family: 'Inter', sans-serif; font-size: 14px; color: #64748b; line-height: 1.4;
}

/* ─ Integrations strip ─ */
.mkt-integrations {
  border-top: 1px solid rgba(176,196,237,.3);
  border-bottom: 1px solid rgba(176,196,237,.3);
  background: linear-gradient(to top, #fff 5.9%, #f9fafb 100%);
  padding: 32px 0 40px; text-align: center;
}
.mkt-int-label { font-family: 'Inter', sans-serif; font-size: 14px; color: #000; margin-bottom: 28px; }
.mkt-int-logos { display: flex; justify-content: center; align-items: flex-start; gap: 16px; }
.mkt-int-item  { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 64px; opacity: .6; transition: opacity .2s; cursor: default; }
.mkt-int-item:hover { opacity: 1; }
.mkt-int-item svg { width: 24px; height: 24px; }
.mkt-int-item span { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 10px; color: #64748b; white-space: nowrap; }

/* ─ Features section ─ */
.mkt-features-section {
  position: relative; padding: 80px 0 0;
  border-top: 1px solid rgba(176,196,237,.3);
}
.mkt-feat-vline {
  position: absolute; top: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, #b0c4ed 30%, #b0c4ed 70%, transparent);
  height: 223px; opacity: .5;
}
.mkt-feat-vline-l { left: 160px; }
.mkt-feat-vline-r { right: 160px; }
.mkt-feat-header  { text-align: center; padding: 0 clamp(20px, 11.1%, 160px); margin-bottom: 56px; }
.mkt-sec-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 36px;
  color: #0f172a; margin-bottom: 16px;
}
.mkt-sec-sub {
  font-family: 'Inter', sans-serif; font-size: 18px; color: #334155;
  line-height: 1.4; max-width: 672px; margin: 0 auto;
}
.mkt-feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid #b0c4ed; border-top: 1px solid #b0c4ed;
  margin: 0 clamp(20px, 11.1%, 160px);
}
.mkt-feat-card {
  background: #fff; padding: 24px;
  border-right: 1px solid #b0c4ed; border-bottom: 1px solid #b0c4ed;
}
.mkt-feat-icon-bg {
  width: 48px; height: 48px; border-radius: 12px; background: #f3f7fc;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px; flex-shrink: 0;
}
.mkt-feat-icon-bg svg { width: 24px; height: 24px; color: #225397; }
.mkt-feat-h3 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 18px;
  color: #0f172a; margin-bottom: 8px;
}
.mkt-feat-p { font-family: 'Inter', sans-serif; font-size: 14px; color: #334155; line-height: 1.4; }
.mkt-feat-tags {
  display: flex; justify-content: center; gap: 9px; flex-wrap: wrap;
  margin: 40px clamp(20px, 11.1%, 160px) 0; padding-bottom: 32px;
}
.mkt-ftag {
  display: flex; align-items: center; gap: 4px;
  background: #f9fafb; border-radius: 9999px; padding: 12px 14px;
  font-family: 'Inter', sans-serif; font-size: 14px; color: #475569;
}
.mkt-ftag svg { width: 14px; height: 14px; color: #225397; flex-shrink: 0; }
.mkt-feat-view-all {
  display: block; text-align: center; padding: 24px 0 40px;
  font-family: 'Inter', monospace; font-size: 14px; color: #225397; text-decoration: none;
}
.mkt-feat-view-all:hover { text-decoration: underline; }

/* ─ Workflow section ─ */
.mkt-workflow-section {
  border: 0.7px solid #b0c4ed;
  position: relative; padding: 56px 0 0;
}
.mkt-wf-edge-line {
  position: absolute; top: 0; width: 1px; height: 197px;
  background: linear-gradient(to bottom, transparent, #b0c4ed 50%, transparent);
  opacity: .5;
}
.mkt-wf-el { left: 160px; }
.mkt-wf-er { right: 160px; }
.mkt-wf-header { text-align: center; margin-bottom: 40px; padding: 0 clamp(20px, 11.1%, 160px); }
.mkt-wf-sub { font-family: 'Inter', sans-serif; font-size: 18px; color: #334155; margin-top: 12px; }
.mkt-wf-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 0 clamp(20px, 11.1%, 160px);
}
.mkt-wf-cell {
  border-left: 1px solid #b0c4ed; border-top: 1px solid #b0c4ed;
  position: relative; overflow: hidden;
  min-height: 236px; background: #fff;
}
.mkt-wf-cell-text {
  padding: 32px; padding-right: calc(268px + 24px);
}
.mkt-wf-img {
  position: absolute; right: 0; top: 48px;
  width: 268px; height: 188px;
  object-fit: cover; object-position: top left;
  border-left: 1px solid #ebe7e5; border-top: 1px solid #ebe7e5;
  border-top-left-radius: 11px;
  display: block;
}
.mkt-wf-cell:nth-child(2), .mkt-wf-cell:nth-child(4) { border-right: 1px solid #b0c4ed; }
.mkt-wf-cell:nth-child(3), .mkt-wf-cell:nth-child(4) { border-bottom: 1px solid #b0c4ed; }
.mkt-wf-cell:nth-child(1), .mkt-wf-cell:nth-child(2) { border-bottom: 0; }
.mkt-wf-tag {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Inter', monospace; font-weight: 700; font-size: 11px;
  color: #0f172a; margin-bottom: 16px;
}
.mkt-wf-dot { width: 14px; height: 14px; border-radius: 9999px; flex-shrink: 0; }
.mkt-dot-teal   { background: #1d9e75; }
.mkt-dot-amber  { background: #ba7517; }
.mkt-dot-purple { background: #534ab7; }
.mkt-dot-blue   { background: #378add; }
.mkt-wf-h3 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 18px;
  color: #0f172a; margin-bottom: 8px;
}
.mkt-wf-p { font-family: 'Inter', sans-serif; font-size: 14px; color: #334155; line-height: 1.4; max-width: 243px; }

/* ─ Pricing comparison ─ */
.mkt-pricing-section { padding: 80px 0 0; }
.mkt-pricing-hdr { text-align: center; margin-bottom: 48px; }
.mkt-pricing-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7.5px 16px; border-radius: 9999px; background: #f3f7fc;
  font-family: 'Inter', monospace; font-weight: 700; font-size: 14px;
  color: #225397; margin-bottom: 16px;
}
.mkt-pricing-table-wrap {
  margin: 0 auto; width: 848px;
  background: #fff; border: 1px solid #b0c4ed; border-radius: 12px;
  overflow: hidden; box-shadow: 0 4px 34px rgba(34,83,151,.15);
}
.mkt-pricing-table-wrap table { width: 100%; border-collapse: collapse; }
.mkt-pricing-table-wrap thead th {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; color: #0f172a;
  padding: 12px 20px; border-bottom: 1px solid #f3f4f6; text-align: left;
}
.mkt-pricing-table-wrap thead th:nth-child(3),
.mkt-pricing-table-wrap thead th:nth-child(4) { text-align: right; }
.mkt-pricing-table-wrap tbody tr { border-bottom: 1px solid #f9fafb; }
.mkt-pricing-table-wrap tbody tr:last-child { border-bottom: none; }
.mkt-pricing-table-wrap tbody tr.hl-row { background: rgba(239,246,255,.5); }
.mkt-pricing-table-wrap tbody td { padding: 12px 20px; font-size: 14px; color: #0a0f29; }
.mkt-pricing-table-wrap tbody td:nth-child(2) { color: #64748b; }
.mkt-pricing-table-wrap tbody td:nth-child(3),
.mkt-pricing-table-wrap tbody td:nth-child(4) { text-align: right; }
.mkt-pricing-table-wrap tbody tr.hl-row td:nth-child(1),
.mkt-pricing-table-wrap tbody tr.hl-row td:nth-child(3),
.mkt-pricing-table-wrap tbody tr.hl-row td:nth-child(4) { font-family: 'Inter', sans-serif; font-weight: 500; }
.mkt-pricing-footnote { text-align: center; margin-top: 24px; padding: 0 0 8px; font-family: 'Inter', sans-serif; font-size: 12px; color: #64748b; }
.mkt-pricing-cta { text-align: center; margin-top: 40px; padding-bottom: 0; }
.mkt-btn-see-pricing {
  background: #225397; color: #fff; padding: 10px 20px;
  font-family: 'Inter', sans-serif; font-size: 16px;
  text-decoration: none; display: inline-block;
  border-radius: 5px;
}
.mkt-btn-see-pricing:hover { background: #1a3f75; }

/* ─ Landing CTA section ─ */
.mkt-cta-section {
  border: 1px solid #b0c4ed;
  position: relative; overflow: hidden;
  min-height: 430px;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 0;
  margin-top: 80px;
}
.mkt-cta-lines { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mkt-cta-vl {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: #b0c4ed; opacity: .4;
  box-shadow: 13px 3px 24px rgba(34,83,151,.8);
}
.mkt-cta-top-mask {
  position: absolute; top: 0; left: 0; right: 0; height: 204px;
  background: linear-gradient(to bottom, #f9fafb 0%, rgba(249,250,251,0) 100%);
  pointer-events: none; z-index: 1;
}
.mkt-cta-inner { position: relative; z-index: 2; text-align: center; max-width: 768px; padding: 0 16px; }
.mkt-cta-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 36px;
  color: #0f172a; max-width: 573px; margin: 0 auto 24px; line-height: 1.2;
}
.mkt-cta-sub { font-family: 'Inter', sans-serif; font-size: 18px; color: #334155; margin-bottom: 40px; line-height: 1.4; }
.mkt-cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; }
.mkt-btn-cta-fill {
  background: #225397; color: #fff; padding: 10px 20px;
  font-family: 'Inter', sans-serif; font-size: 16px;
  border-radius: 5px;
  text-decoration: none; display: inline-block;
}
.mkt-btn-cta-fill:hover { background: #1a3f75; }
.mkt-btn-cta-ghost {
  color: #225397; padding: 10px 20px;
  font-family: 'Inter', sans-serif; font-size: 16px;
  text-decoration: none; display: inline-block;
  border-radius: 5px;
}
.mkt-btn-cta-ghost:hover { text-decoration: underline; }

/* ─ Landing blog section ─ */
.mkt-blog-section {
  position: relative; padding: 80px 0 0;
  border-top: 1px solid rgba(176,196,237,.3);
}
.mkt-blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid #b0c4ed; border-top: 1px solid #b0c4ed;
  margin: 0 clamp(20px, 11.1%, 160px);
}
.mkt-blog-card {
  background: #fff; padding: 28px 24px;
  border-right: 1px solid #b0c4ed; border-bottom: 1px solid #b0c4ed;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .15s;
}
.mkt-blog-card:hover { background: #f9fafb; }
.mkt-blog-card-cat {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 9999px;
  background: #eff6ff; color: #225397;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 11px;
  width: fit-content;
}
.mkt-blog-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 16px;
  color: #0f172a; line-height: 1.35; margin: 0;
  transition: color .15s;
}
.mkt-blog-card:hover .mkt-blog-card-title { color: #225397; }
.mkt-blog-card-excerpt {
  font-family: 'Inter', sans-serif; font-size: 13px; color: #64748b; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1; margin: 0;
}
.mkt-blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; border-top: 1px solid #f1f5f9;
  margin-top: auto;
}
.mkt-blog-card-date { font-family: 'Inter', sans-serif; font-size: 12px; color: #94a3b8; }
.mkt-blog-card-cta { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: #225397; }

/* ═══════ Landing responsive (breakpoints ported verbatim) ═══════ */

@media (max-width: 860px) {
  .mkt-hero-cards-area { transform: scale(0.97); transform-origin: top center; margin-bottom: -10px; }
}
@media (max-width: 768px) {
  .mkt-hero-cards-area { transform: scale(0.90); transform-origin: top center; margin-bottom: -33px; }
  .mkt-integrations { padding: 24px 0 32px; }
  .mkt-int-logos { flex-wrap: wrap; gap: 20px 8px; padding: 0 20px; }
}
@media (max-width: 680px) {
  .mkt-hero-cards-area { transform: scale(0.80); transform-origin: top center; margin-bottom: -65px; }
}
@media (max-width: 640px) {
  .mkt-hero-section { min-height: 0; padding-bottom: 32px; }
  .mkt-hero-text { padding-top: 48px; }
  .mkt-hero-ctas { flex-direction: column; align-items: center; }
  .mkt-btn-primary-hero { min-width: 0; width: 100%; max-width: 280px; border-radius: 5px; }
  .mkt-hero-cards-wrap { margin-top: 32px; }
  .mkt-hero-cards-area {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    transform: none !important;
    margin-bottom: 0 !important;
    padding: 0 20px;
  }
  .hero-card {
    position: static !important;
    width: 100% !important;
    max-width: 320px;
    animation: heroFadeUp .55s ease .1s both !important;
  }
  .hc-ticket, .hc-plan { display: none !important; }
  .mkt-hero-footnote { font-size: 13px; }
  .mkt-cta-section { margin-top: 40px; padding: 60px 20px; min-height: 0; }
  .mkt-cta-h2 { font-size: clamp(22px, 5vw, 36px); }
  .mkt-cta-sub { font-size: 15px; }
  .mkt-cta-actions { flex-direction: column; align-items: center; gap: 12px; }
  .mkt-btn-cta-fill, .mkt-btn-cta-ghost { padding: 12px 24px; font-size: 14px; width: 100%; max-width: 280px; text-align: center; }
}
@media (max-width: 1000px) {
  .mkt-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .mkt-wf-grid { grid-template-columns: 1fr; }
  .mkt-wf-cell:nth-child(2),
  .mkt-wf-cell:nth-child(4) { border-right: 1px solid #b0c4ed; }
  .mkt-wf-cell:nth-child(1),
  .mkt-wf-cell:nth-child(2) { border-bottom: 1px solid #b0c4ed; }
  .mkt-wf-cell-text { padding: 24px; }
}
@media (max-width: 1100px) {
  .mkt-wf-img { display: none; }
  .mkt-wf-cell-text { padding-right: 32px; }
  .mkt-wf-p { max-width: none; }
}
@media (max-width: 960px) {
  .mkt-blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .mkt-pricing-table-wrap { width: calc(100% - 40px); }
}
@media (max-width: 600px) {
  .mkt-feat-grid { grid-template-columns: 1fr; }
  .mkt-sec-h2 { font-size: clamp(22px, 5vw, 36px); }
  .mkt-sec-sub { font-size: 15px; }
  .mkt-feat-tags { flex-wrap: wrap; gap: 8px; }
  .mkt-ftag { padding: 10px 12px; font-size: 13px; }
  .mkt-pricing-section { padding-top: 48px; }
  .mkt-pricing-table-wrap { width: calc(100% - 24px); }
  .mkt-pricing-table-wrap table { font-size: 12px; }
  .mkt-pricing-table-wrap thead th,
  .mkt-pricing-table-wrap tbody td { padding: 10px 10px; }
  .mkt-pricing-footnote { padding: 0 12px; }
  .mkt-pricing-badge { font-size: 12px; }
  .mkt-blog-section { padding-top: 48px; }
  .mkt-blog-grid { grid-template-columns: 1fr; }
}

/* ═══════════════ FEATURES PAGE ═══════════════ */

.mkt-anchor-nav {
  position: sticky; top: 64px; z-index: 40;
  background: #fff; border-bottom: 1px solid rgba(229,231,235,.8);
}
body.admin-bar .mkt-anchor-nav { top: 96px; }
.mkt-anchor-nav-inner {
  display: flex; justify-content: center; gap: 4px; padding: 12px 0;
  flex-wrap: wrap;
}
.mkt-anchor-nav-inner a {
  font-size: 14px; color: #64748b; white-space: nowrap;
  padding: 6px 12px; border-radius: 9999px; text-decoration: none;
  transition: color .15s, background .15s;
}
.mkt-anchor-nav-inner a:hover { color: #4A90D9; background: #eff6ff; }
@media (max-width: 680px) {
  .mkt-anchor-nav-inner { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding-left: 8px; padding-right: 8px; }
}

.mkt-feature-hero-card { padding: 32px; text-align: center; scroll-margin-top: 128px; }
.mkt-feature-mid-card { padding: 32px; scroll-margin-top: 128px; }
.mkt-feature-grid-card { padding: 24px; scroll-margin-top: 128px; }
.mkt-feature-grid-card .mkt-link { margin-top: 8px; }
.mkt-feature-hero-card .mkt-icon-box { display: flex; }

/* ═══════════════ FEATURE LANDING (single-feature) ═══════════════ */

.mkt-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: #64748b; margin-bottom: 32px; flex-wrap: wrap;
}
.mkt-breadcrumb a { color: #64748b; text-decoration: none; transition: color .15s; }
.mkt-breadcrumb a:hover { color: #4A90D9; }
.mkt-crumb-sep { width: 14px; height: 14px; color: #94a3b8; }
.mkt-crumb-current { color: #334155; font-weight: 500; }

.mkt-feature-hero-cols { display: flex; align-items: flex-start; gap: 48px; }
.mkt-feature-hero-text { flex: 1; min-width: 0; }
.mkt-feature-hero-text .mkt-lead { margin-left: 0; margin-bottom: 20px; }
.mkt-definition { font-size: 16px; color: #475569; line-height: 1.6; margin-bottom: 32px; }

.mkt-feature-graphic {
  position: relative; width: 400px; height: 400px; flex-shrink: 0;
  display: none; margin-top: 60px;
}
@media (min-width: 1024px) { .mkt-feature-graphic { display: block; } }
.mkt-fg-ring-outer {
  position: absolute; inset: 40px; border-radius: 9999px;
  border: 2px dashed rgba(219,234,254,.6);
}
.mkt-fg-ring-inner {
  position: absolute; inset: 96px; border-radius: 9999px;
  border: 1px solid rgba(219,234,254,.4);
}
.mkt-fg-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.mkt-fg-icon {
  width: 96px; height: 96px; border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid rgba(219,234,254,.8);
}
.mkt-fg-icon svg { width: 48px; height: 48px; color: #4A90D9; }
.mkt-fg-badge {
  position: absolute; max-width: 170px;
  background: #fff; border-radius: 8px; padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid rgba(229,231,235,.8);
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: #475569; line-height: 1.4;
}
.mkt-fg-badge .mkt-check-icon { width: 14px; height: 14px; margin-top: 1px; }
.mkt-fg-tl { top: 0; left: 0; }
.mkt-fg-tr { top: 0; right: 0; }
.mkt-fg-br { bottom: 0; right: 0; }
.mkt-fg-bl { bottom: 0; left: 0; }

.mkt-capability-grid { gap: 16px; }
.mkt-capability { display: flex; align-items: flex-start; gap: 12px; padding: 16px; }
.mkt-benefit { display: flex; align-items: flex-start; gap: 16px; padding: 24px; }
.mkt-usecase { padding: 24px; }
.mkt-step-card { padding: 24px; text-align: center; }
.mkt-step-num {
  width: 40px; height: 40px; border-radius: 9999px; background: #eff6ff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px; color: #4A90D9;
}
.mkt-related-card { display: block; padding: 24px; text-decoration: none; height: 100%; }
.mkt-related-card:hover .mkt-h4 { color: #4A90D9; }
.mkt-related-card .mkt-link { margin-top: 12px; }

/* ═══════════════ PRICING PAGE ═══════════════ */

.mkt-plan-grid { display: grid; gap: 24px; max-width: 1024px; margin: 0 auto; }
.mkt-plan-grid-1 { max-width: 448px; }
@media (min-width: 768px) {
  .mkt-plan-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 768px; }
  .mkt-plan-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .mkt-plan-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.mkt-plan-card { padding: 24px; display: flex; flex-direction: column; position: relative; }
.mkt-plan-featured {
  box-shadow: 0 0 0 2px #4A90D9, 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}
.mkt-plan-popular {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 12px; padding: 4px 12px;
}
.mkt-plan-header { margin-bottom: 24px; }
.mkt-plan-header .mkt-text-sm { margin-top: 4px; }
.mkt-plan-price { margin-top: 16px; display: flex; align-items: baseline; gap: 4px; }
.mkt-plan-amount { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 36px; }
.mkt-plan-contact { font-size: 24px; font-weight: 600; }
.mkt-plan-features { flex: 1; }
.mkt-plan-cta { width: 100%; margin-top: auto; }
.mkt-note { font-size: 14px; color: #64748b; margin: 16px auto 0; max-width: 448px; }
.mkt-note-xs { font-size: 12px; margin-top: 8px; }

/* ═══════════════ CONTACT PAGE ═══════════════ */

.mkt-contact-header { margin-bottom: 48px; }
.mkt-contact-grid { display: grid; gap: 48px; max-width: 896px; margin: 0 auto; }
@media (min-width: 768px) {
  .mkt-contact-grid { grid-template-columns: 2fr 1fr; }
}
.mkt-contact-form { display: flex; flex-direction: column; gap: 20px; }
.mkt-form-row-2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .mkt-form-row-2 { grid-template-columns: 1fr 1fr; } }
.mkt-form-group { display: flex; flex-direction: column; gap: 8px; }
.mkt-form-group label {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px; color: #0f172a;
}
.mkt-form-group input,
.mkt-form-group textarea {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 6px;
  background: #fff; padding: 8px 12px;
  font-family: 'Inter', sans-serif; font-size: 14px; color: #0f172a;
  resize: vertical;
}
.mkt-form-group input::placeholder,
.mkt-form-group textarea::placeholder { color: #94a3b8; }
.mkt-form-group input:focus,
.mkt-form-group textarea:focus {
  outline: 2px solid #4A90D9; outline-offset: 1px; border-color: #4A90D9;
}
.mkt-btn-submit { align-self: flex-start; padding: 10px 24px; }
.mkt-hp-field {
  position: absolute !important; left: -9999px !important;
  height: 1px; width: 1px; overflow: hidden;
}
.mkt-form-error { color: #dc2626; font-size: 14px; margin-bottom: 16px; }
.mkt-contact-success {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px;
  padding: 32px; text-align: center;
}
.mkt-success-icon { width: 40px; height: 40px; color: #22c55e; margin: 0 auto 16px; display: block; }
.mkt-success-title { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 18px; color: #166534; margin-bottom: 8px; }
.mkt-success-text { color: #15803d; }
.mkt-success-again { margin-top: 24px; }
.mkt-contact-info-col { display: flex; flex-direction: column; gap: 24px; }
.mkt-contact-info-item { display: flex; gap: 12px; }
.mkt-info-title { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px; margin-bottom: 2px; }
.mkt-info-link { color: #334155; text-decoration: none; }
.mkt-info-link:hover { color: #4A90D9; }

/* ═══════════════ LEGAL PAGES ═══════════════ */

.mkt-legal-section { padding-bottom: 96px; }
.mkt-legal-h1 { margin-bottom: 8px; }
.mkt-legal-updated { font-size: 14px; color: #64748b; margin-bottom: 48px; }
.mkt-legal-sections { display: flex; flex-direction: column; gap: 32px; }
.mkt-legal-block .mkt-h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.mkt-legal-content { line-height: 1.65; }
.mkt-legal-content p { margin: 0 0 12px; }
.mkt-legal-content p:last-child { margin-bottom: 0; }
.mkt-legal-extra { margin-top: 32px; }

/* ═══════════════ BLOG INDEX ═══════════════ */

.mkt-blog-featured-link { text-decoration: none; display: block; margin-bottom: 48px; }
.mkt-blog-featured { overflow: hidden; display: grid; }
@media (min-width: 768px) { .mkt-blog-featured { grid-template-columns: 1fr 1fr; } }
.mkt-blog-featured-media { overflow: hidden; }
.mkt-blog-featured-img {
  width: 100%; height: 100%; min-height: 256px; object-fit: cover;
  transition: transform .5s; display: block;
}
.mkt-blog-featured-link:hover .mkt-blog-featured-img { transform: scale(1.02); }
.mkt-blog-featured-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.mkt-blog-featured-title { transition: color .15s; margin-bottom: 0; }
.mkt-blog-featured-link:hover .mkt-blog-featured-title { color: #4A90D9; }
.mkt-blog-img-placeholder {
  width: 100%; height: 100%; min-height: 280px; background: #f9fafb;
  display: flex; align-items: center; justify-content: center; padding: 0 32px;
}
.mkt-blog-img-placeholder span {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 20px;
  color: #cbd5e1; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.mkt-blog-img-placeholder-sm { min-height: 192px; height: 192px; border-bottom: 1px solid #f3f4f6; }
.mkt-blog-img-placeholder-sm span { font-size: 14px; font-weight: 600; }
.mkt-blog-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #64748b; flex-wrap: wrap;
}
.mkt-blog-avatar {
  width: 28px; height: 28px; border-radius: 9999px; background: #f3f4f6;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mkt-blog-avatar svg { width: 14px; height: 14px; color: #64748b; }
.mkt-blog-avatar-sm { width: 24px; height: 24px; }
.mkt-blog-avatar-sm svg { width: 12px; height: 12px; }
.mkt-blog-read { margin-top: 8px; }
.mkt-blog-index-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .mkt-blog-index-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mkt-blog-index-grid { grid-template-columns: repeat(3, 1fr); } }
.mkt-blog-grid-link { text-decoration: none; display: block; height: 100%; }
.mkt-blog-grid-card { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.mkt-blog-grid-img { width: 100%; height: 192px; object-fit: cover; display: block; }
.mkt-blog-grid-img-sm { height: 160px; }
.mkt-blog-grid-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.mkt-blog-grid-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 16px;
  line-height: 1.35; transition: color .15s; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mkt-blog-grid-link:hover .mkt-blog-grid-title { color: #4A90D9; }
.mkt-blog-meta-sm { font-size: 12px; margin-top: auto; padding-top: 8px; }
.mkt-blog-empty { padding: 80px 0; }
.mkt-pagination { margin-top: 48px; text-align: center; }
.mkt-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.mkt-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px;
  border: 1px solid #e5e7eb; border-radius: 9999px;
  font-family: 'Inter', sans-serif; font-size: 14px; color: #334155;
  text-decoration: none; background: #fff; transition: all .15s;
}
.mkt-pagination .page-numbers:hover { border-color: #4A90D9; color: #4A90D9; }
.mkt-pagination .page-numbers.current { background: #4A90D9; border-color: #4A90D9; color: #fff; }
.mkt-pagination .page-numbers.dots { border: none; background: none; }

/* ═══════════════ SINGLE POST ═══════════════ */

.mkt-post-wrap { padding-top: 48px; padding-bottom: 64px; }
.mkt-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: #64748b; text-decoration: none;
  margin-bottom: 32px; transition: color .15s;
}
.mkt-back-link:hover { color: #4A90D9; }
.mkt-post-header { max-width: 768px; margin: 0 auto 40px; text-align: center; }
.mkt-post-header .mkt-badge { margin-bottom: 16px; }
.mkt-post-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: clamp(24px, 4vw, 36px); line-height: 1.25; margin-bottom: 24px;
}
.mkt-post-meta { justify-content: center; }
.mkt-post-author { font-weight: 500; }
.mkt-post-featured { margin-bottom: 48px; }
.mkt-post-featured-img {
  width: 100%; max-height: 450px; object-fit: cover; border-radius: 16px; display: block;
}
.mkt-post-img-placeholder { height: 320px; min-height: 0; border: 1px solid #e5e7eb; border-radius: 16px; }
.mkt-post-cols { display: flex; flex-direction: column; gap: 48px; }
@media (min-width: 1024px) {
  .mkt-post-cols.has-sidebar { flex-direction: row; }
}
.mkt-post-sidebar { display: none; }
@media (min-width: 1024px) {
  .mkt-post-cols.has-sidebar .mkt-post-sidebar { display: block; width: 240px; flex-shrink: 0; }
}
.mkt-post-sidebar-sticky { position: sticky; top: 96px; }
.mkt-sidebar-title {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: #94a3b8; margin-bottom: 16px;
}
.mkt-sidebar-list { display: flex; flex-direction: column; }
.mkt-sidebar-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 0; text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}
.mkt-sidebar-card:last-child { border-bottom: none; }
.mkt-sidebar-card-title {
  font-size: 14px; font-weight: 500; line-height: 1.4; transition: color .15s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mkt-sidebar-card:hover .mkt-sidebar-card-title { color: #4A90D9; }
.mkt-sidebar-card-date { font-size: 12px; color: #64748b; }
.mkt-sidebar-all { margin-top: 24px; }
.mkt-post-article { min-width: 0; flex: 1; }
.mkt-post-article-centered { max-width: 768px; margin: 0 auto; }
.mkt-post-related-mobile { padding-top: 48px; margin-top: 48px; border-top: 1px solid #f3f4f6; }
.mkt-post-related-mobile .mkt-h3 { margin-bottom: 32px; }
@media (min-width: 1024px) { .mkt-post-related-mobile { display: none; } }

/* Tag chips */
.mkt-tag-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid #f3f4f6;
}
.mkt-tag-chip {
  display: inline-flex; align-items: center;
  background: #f9fafb; color: #475569;
  border: 1px solid #e5e7eb; border-radius: 9999px;
  font-size: 12px; padding: 3px 10px; text-decoration: none;
  transition: all .15s;
}
.mkt-tag-chip:hover { border-color: #4A90D9; color: #4A90D9; }

/* Prose (blog-post.tsx Tailwind prose port) */
.mkt-prose { font-size: 17px; line-height: 1.75; color: #334155; }
.mkt-prose > * + * { margin-top: 1.25em; }
.mkt-prose h1, .mkt-prose h2, .mkt-prose h3, .mkt-prose h4 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
  letter-spacing: -0.02em; color: #0f172a;
  margin-top: 1.6em; margin-bottom: .6em; line-height: 1.3;
}
.mkt-prose h1 { font-size: 30px; }
.mkt-prose h2 { font-size: 24px; }
.mkt-prose h3 { font-size: 20px; }
.mkt-prose h4 { font-size: 18px; }
.mkt-prose p { line-height: 1.75; color: #334155; margin: 0 0 1.25em; }
.mkt-prose a { color: #4A90D9; text-decoration: none; }
.mkt-prose a:hover { text-decoration: underline; }
.mkt-prose strong { color: #0f172a; }
.mkt-prose code {
  border-radius: 4px; background: #f3f4f6; padding: 2px 6px;
  font-size: .875em; font-family: 'Consolas', 'Courier New', monospace; color: #0f172a;
}
.mkt-prose pre {
  background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 12px;
  color: #0f172a; padding: 16px 20px; overflow-x: auto; font-size: 14px;
}
.mkt-prose pre code { background: transparent; padding: 0; }
.mkt-prose ul { list-style: disc; padding-left: 24px; margin: 0 0 1.25em; }
.mkt-prose ol { list-style: decimal; padding-left: 24px; margin: 0 0 1.25em; }
.mkt-prose li { margin: 4px 0; }
.mkt-prose li::marker { color: #0f172a; }
.mkt-prose img { border-radius: 12px; }
.mkt-prose blockquote {
  border-left: 4px solid rgba(74,144,217,.4); background: rgba(239,246,255,.5);
  border-radius: 0 12px 12px 0; padding: 16px 24px; margin: 0 0 1.25em;
  font-style: normal; color: #334155;
}
.mkt-prose blockquote p:last-child { margin-bottom: 0; }
.mkt-prose table { border-collapse: collapse; width: 100%; border: 1px solid #f3f4f6; }
.mkt-prose th, .mkt-prose td { border: 1px solid #f3f4f6; padding: 8px 12px; text-align: left; }
.mkt-prose th { background: #f9fafb; color: #0f172a; font-weight: 600; }
.mkt-prose figure { margin: 0 0 1.25em; }
.mkt-prose figcaption { font-size: 13px; color: #64748b; text-align: center; margin-top: 8px; }

/* ═══════════════ MISC ═══════════════ */

.mkt-404 { padding: 96px 0; }
.mkt-404-search { margin-top: 40px; display: flex; justify-content: center; }
.mkt-search-form { display: flex; gap: 8px; max-width: 420px; width: 100%; }
.mkt-search-input {
  flex: 1; border: 1px solid #e5e7eb; border-radius: 9999px;
  padding: 8px 16px; font-family: 'Inter', sans-serif; font-size: 14px;
}
.mkt-search-input:focus { outline: 2px solid #4A90D9; outline-offset: 1px; }
.mkt-search-submit { padding: 8px 20px; }
.mkt-archive-header { margin-bottom: 40px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-card { animation: none !important; }
  .cr-caret, .te-caret { animation: none; }
  .mkt-card-hover, .mkt-card-hover:hover { transform: none; }
}
