/* ============================================================
   Marketing site — extends the Liquid Glass theme (custom.css)
   with page-building blocks: nav, hero, sections, feature grids,
   pricing-free CTA bands, docs layout, legal layout, footer.
   ============================================================ */

/* Marketing-only palette: a calmer, more corporate surface than the
   admin app's playful multi-colour aurora — a two-tone slate wash with a
   single restrained accent glow behind the hero, so the glass cards read
   as premium rather than consumer-y. Scoped to .mkt so the dashboard,
   login and register screens keep their existing look untouched. */
.mkt {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(54, 134, 160, 0.16), transparent 60%),
    linear-gradient(180deg, #f4f6fb 0%, #eef1f7 100%);
}

.mkt-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
/* Flex-centered so label text (and any icon) sit dead-center regardless
   of font metrics/line-height — fixes off-center button labels. Overrides
   the admin theme's translucent "glass" button for a crisper, more
   confident look expected of a business/enterprise product site. */
.mkt .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
  background: #fff !important;
  border: 1px solid #d8dce6 !important;
  color: var(--lg-text) !important;
  box-shadow: 0 1px 2px rgba(20, 24, 46, 0.06) !important;
  font-weight: 600;
}
.mkt .btn:hover {
  border-color: var(--lg-accent) !important;
  color: var(--lg-accent) !important;
  transform: translateY(-1px);
}
.mkt .btn-primary,
.mkt .btn-primary:hover {
  background: linear-gradient(135deg, #2E7691, #4F3E77) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(46, 118, 145, 0.28) !important;
}
.mkt .btn-primary:hover { filter: brightness(1.06); }
.mkt .btn-light,
.mkt .btn-light:hover {
  background: #fff !important;
  border-color: transparent !important;
  color: #1f2547 !important;
}

/* ---------- Nav ---------- */
.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid #e4e7f0;
  box-shadow: 0 1px 0 rgba(20, 24, 46, 0.02);
}
.mkt-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.mkt-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.mkt-brand img { height: 34px; width: auto; }
.mkt-brand span { font-weight: 700; font-size: 18px; color: var(--lg-text); letter-spacing: -.01em; }

.mkt-nav-links { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.mkt-nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--lg-radius-sm);
  color: var(--lg-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  transition: background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.mkt-nav-links a:hover { background: #f1f3f9; color: var(--lg-text); }
.mkt-nav-links a.active { color: var(--lg-accent); font-weight: 600; }

.mkt-nav-auth { display: flex; align-items: center; gap: 10px; }
.mkt-nav-auth .btn { padding: 8px 18px; font-size: 14.5px; font-weight: 600; }

.mkt-nav-toggle {
  display: none;
  border: 1px solid #d8dce6;
  background: #fff;
  border-radius: var(--lg-radius-sm);
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.mkt-nav-toggle span, .mkt-nav-toggle span::before, .mkt-nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--lg-text); position: relative; transition: transform .2s ease;
}
.mkt-nav-toggle span::before { position: absolute; top: -6px; }
.mkt-nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .mkt-nav-toggle { display: flex; }
  .mkt-nav-links, .mkt-nav-auth { display: none; }
  .mkt-nav-inner.open .mkt-nav-links,
  .mkt-nav-inner.open .mkt-nav-auth {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .mkt-nav-inner { flex-wrap: wrap; }
  .mkt-nav-inner.open .mkt-nav-links a { padding: 12px 14px; }
  .mkt-nav-inner.open .mkt-nav-auth { padding-top: 8px; gap: 8px; }
}

/* ---------- Hero ---------- */
.mkt-hero { padding: 96px 24px 72px; text-align: center; }
.mkt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lg-accent-soft);
  color: var(--lg-accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  margin-bottom: 22px;
}
.mkt-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--lg-text);
  max-width: 820px;
  margin: 0 auto 20px;
  line-height: 1.1;
}
.mkt-hero .tagline {
  background: linear-gradient(135deg, #2E7691, #4F3E77);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mkt-hero p.lead {
  font-size: 18px;
  color: var(--lg-text-muted);
  max-width: 640px;
  margin: 0 auto 34px;
  line-height: 1.6;
}
.mkt-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.mkt-hero-actions .btn { padding: 12px 26px; font-size: 15.5px; font-weight: 600; }

/* ---------- Trust / credibility strip ---------- */
.mkt-trust-bar {
  max-width: 920px;
  margin: 48px auto 0;
  padding-top: 36px;
  border-top: 1px solid #e4e7f0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .mkt-trust-bar { grid-template-columns: repeat(2, 1fr); } }
.mkt-trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mkt-trust-item .num { font-size: 22px; font-weight: 800; color: var(--lg-text); letter-spacing: -.01em; }
.mkt-trust-item .label { font-size: 13px; color: var(--lg-text-muted); font-weight: 500; }

/* ---------- Sections ---------- */
.mkt-section { padding: 64px 24px; }
.mkt-section.alt { background: #eef1f7; border-top: 1px solid #e4e7f0; border-bottom: 1px solid #e4e7f0; }
.mkt-section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.mkt-section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  color: var(--lg-text);
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.mkt-section-head p { color: var(--lg-text-muted); font-size: 16px; line-height: 1.6; }

/* ---------- Page header (non-home pages) ---------- */
.mkt-page-header { padding: 72px 24px 40px; text-align: center; }
.mkt-page-header h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--lg-text); letter-spacing: -.01em; margin-bottom: 14px; }
.mkt-page-header p { color: var(--lg-text-muted); font-size: 17px; max-width: 680px; margin: 0 auto; line-height: 1.6; }

/* ---------- Feature grid ---------- */
.mkt-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.mkt-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.mkt-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .mkt-grid, .mkt-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .mkt-grid, .mkt-grid.cols-2, .mkt-grid.cols-4 { grid-template-columns: 1fr; } }

.mkt-card {
  background: #fff;
  border: 1px solid #e4e7f0;
  border-radius: var(--lg-radius);
  box-shadow: 0 1px 3px rgba(20, 24, 46, 0.05);
  padding: 28px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.mkt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(20, 24, 46, 0.10);
  border-color: var(--lg-accent-soft);
}
.mkt-card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--lg-radius-sm);
  background: linear-gradient(135deg, rgba(54,134,160,.18), rgba(95,75,139,.18));
  margin-bottom: 16px;
}
.mkt-card-icon img { width: 24px; height: 24px; }
.mkt-card h3 { font-size: 17px; font-weight: 700; color: var(--lg-text); margin-bottom: 8px; }
.mkt-card p { color: var(--lg-text-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ---------- Numbered steps (how it works) ---------- */
.mkt-steps { display: flex; flex-direction: column; gap: 0; max-width: 780px; margin: 0 auto; }
.mkt-step { display: flex; gap: 20px; padding: 28px 0; border-bottom: 1px solid #e4e7f0; }
.mkt-step:last-child { border-bottom: none; }
.mkt-step-num {
  flex: 0 0 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(54,134,160,.92), rgba(95,75,139,.92));
  color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.mkt-step-body h3 { font-size: 17px; font-weight: 700; color: var(--lg-text); margin-bottom: 6px; }
.mkt-step-body p { color: var(--lg-text-muted); font-size: 15px; line-height: 1.65; margin: 0; }

/* ---------- Pill list (mini app catalog chips) ---------- */
.mkt-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mkt-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e4e7f0;
  color: var(--lg-text);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.mkt-cta {
  margin: 0 24px 80px;
  border-radius: var(--lg-radius);
  padding: 56px 32px;
  text-align: center;
  background: linear-gradient(135deg, #2E7691, #4F3E77);
  box-shadow: 0 20px 44px rgba(46, 60, 118, 0.28);
  color: #fff;
}
.mkt-cta h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 10px; }
.mkt-cta p { opacity: .92; margin-bottom: 26px; font-size: 16px; }
.mkt-cta .btn { padding: 12px 28px; font-weight: 700; }

/* ---------- Docs layout ---------- */
.mkt-docs { max-width: 1140px; margin: 0 auto; padding: 24px 24px 90px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.mkt-docs > div { min-width: 0; }
.mkt-docs-nav {
  position: sticky; top: 92px;
  background: #fff;
  border: 1px solid #e4e7f0;
  border-radius: var(--lg-radius);
  padding: 14px;
}
.mkt-docs-nav a {
  display: block; padding: 8px 12px; border-radius: 10px;
  color: var(--lg-text-muted); text-decoration: none; font-size: 14px; font-weight: 500;
}
.mkt-docs-nav a:hover { background: var(--lg-accent-soft); color: var(--lg-accent); }
.mkt-docs-nav a.active { background: var(--lg-accent-soft); color: var(--lg-accent); font-weight: 700; }
@media (max-width: 860px) {
  .mkt-docs { grid-template-columns: minmax(0, 1fr); padding: 16px 0 70px; }
  .mkt-docs-nav {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
    border-width: 1px 0;
    padding: 10px 16px;
    margin: 0 0 8px;
    min-width: 0;
  }
  .mkt-docs-nav a { flex: 0 0 auto; white-space: nowrap; }
  .mkt-docs > div { padding: 0 16px; min-width: 0; }
}

.mkt-doc-section { margin-bottom: 52px; scroll-margin-top: 90px; }
.mkt-doc-section h2 {
  font-size: 24px; font-weight: 800; color: var(--lg-text); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.mkt-doc-section .step-tag {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--lg-accent); background: var(--lg-accent-soft); padding: 3px 10px; border-radius: 999px;
}
.mkt-doc-section > p.intro { color: var(--lg-text-muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 20px; }
.mkt-doc-section h3 { font-size: 16.5px; font-weight: 700; color: var(--lg-text); margin: 22px 0 8px; }
.mkt-doc-section ol, .mkt-doc-section ul { color: var(--lg-text); font-size: 15px; line-height: 1.75; padding-left: 22px; }
.mkt-doc-section ol li, .mkt-doc-section ul li { margin-bottom: 6px; }
.mkt-doc-section ol li::marker, .mkt-doc-section ul li::marker { color: var(--lg-accent); }

pre.mkt-code {
  background: #1f2547;
  color: #e8ecfb;
  border-radius: var(--lg-radius-sm);
  padding: 16px 18px;
  font-size: 13.2px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 12px 0 18px;
}
pre.mkt-code code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }
code.mkt-inline {
  background: rgba(54,134,160,.14);
  color: var(--lg-accent);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 13.5px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.mkt-table-scroll { overflow-x: auto; margin: 10px 0 20px; }
.mkt-api-table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 0; font-size: 14px; }
.mkt-api-table th, .mkt-api-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e4e7f0; vertical-align: top; }
.mkt-api-table th { color: var(--lg-text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.mkt-api-table td:first-child { white-space: nowrap; }

.mkt-note {
  background: #f7f9fc;
  border: 1px solid #e4e7f0;
  border-left: 3px solid var(--lg-accent);
  border-radius: var(--lg-radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--lg-text);
  margin: 14px 0 20px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* ---------- Phone screenshot gallery ---------- */
.mkt-phone-gallery {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 10px 4px 24px;
  scroll-snap-type: x proximity;
}
.mkt-phone-gallery::-webkit-scrollbar { height: 6px; }
.mkt-phone-gallery::-webkit-scrollbar-thumb { background: #d8dce6; border-radius: 999px; }
.mkt-phone {
  flex: 0 0 208px;
  scroll-snap-align: start;
  text-align: center;
}
.mkt-phone-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e4e7f0;
  box-shadow: 0 20px 40px rgba(20, 24, 46, 0.12);
  background: #fff;
  line-height: 0;
}
.mkt-phone-frame img, .mkt-phone-frame video { display: block; width: 100%; height: auto; background: #000; }
.mkt-phone-frame.mkt-clickable {
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}
.mkt-phone-frame.mkt-clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 48px rgba(20, 24, 46, 0.18);
}
.mkt-phone-caption {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--lg-text);
}
.mkt-phone-sub {
  font-size: 12.5px;
  color: var(--lg-text-muted);
  margin-top: 2px;
  line-height: 1.5;
}

/* Featured, prominent video demo (bigger than the phone-gallery tiles) */
.mkt-video-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 320px;
  margin: 0 auto 44px;
}
.mkt-video-feature-frame {
  position: relative;
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  border: 6px solid #14172b;
  box-shadow: 0 40px 80px rgba(20, 24, 46, 0.28), 0 0 0 1px rgba(20, 24, 46, 0.06);
}
.mkt-video-feature-frame video { display: block; width: 100%; height: auto; }
.mkt-video-feature-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.mkt-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2E7691, #4F3E77);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 8px 20px rgba(46, 118, 145, 0.28);
}
.mkt-video-duration {
  color: var(--lg-text-muted);
  font-size: 13px;
  font-weight: 600;
}

/* Small inline screenshot next to a How it Works step */
.mkt-step-visual { flex: 0 0 128px; }
.mkt-step-visual .mkt-phone-frame {
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(20, 24, 46, 0.10);
}
@media (max-width: 700px) {
  .mkt-step { flex-wrap: wrap; }
  .mkt-step-visual { order: 3; flex: 0 0 128px; margin: 14px 0 0 64px; }
}

/* Small paired screenshots used inline within prose sections (docs, benefits) */
.mkt-shot-pair {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 8px 0 22px;
}
.mkt-shot-pair .mkt-phone { flex: 0 0 168px; }

/* ---------- Legal pages ---------- */
.mkt-legal { max-width: 780px; margin: 0 auto; padding: 24px 24px 90px; }
.mkt-legal .updated { color: var(--lg-text-muted); font-size: 13.5px; margin-bottom: 40px; }
.mkt-legal section { margin-bottom: 34px; }
.mkt-legal h2 { font-size: 19px; font-weight: 700; color: var(--lg-text); margin-bottom: 10px; }
.mkt-legal p, .mkt-legal li { color: var(--lg-text-muted); font-size: 15px; line-height: 1.75; }
.mkt-legal ul { padding-left: 22px; margin: 10px 0; }
.mkt-legal a { color: var(--lg-accent); }

/* ---------- Contact page ---------- */
.mkt-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .mkt-contact-grid { grid-template-columns: 1fr; } }
.mkt-contact-card { text-align: center; }
.mkt-contact-card .mkt-card-icon { margin: 0 auto 16px; }
.mkt-contact-card a { color: var(--lg-accent); font-weight: 600; text-decoration: none; }
.mkt-contact-card a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.mkt-footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid #e4e7f0;
  padding: 48px 24px 26px;
}
.mkt-footer-inner { max-width: 1140px; margin: 0 auto; }
.mkt-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 760px) { .mkt-footer-grid { grid-template-columns: 1fr 1fr; } }
.mkt-footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mkt-footer-brand img { height: 28px; }
.mkt-footer-brand span { font-weight: 700; color: var(--lg-text); }
.mkt-footer p.about { color: var(--lg-text-muted); font-size: 14px; line-height: 1.6; max-width: 320px; }
.mkt-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--lg-text-muted); margin-bottom: 14px; }
.mkt-footer ul { list-style: none; padding: 0; margin: 0; }
.mkt-footer ul li { margin-bottom: 10px; }
.mkt-footer a { color: var(--lg-text); text-decoration: none; font-size: 14.5px; }
.mkt-footer a:hover { color: var(--lg-accent); }
.mkt-footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-top: 22px; border-top: 1px solid #e4e7f0;
  color: var(--lg-text-muted); font-size: 13.5px;
}
