/* The use-case pages (templates/lp/*, on lp/lp_base.html) in the homepage
   look: the same tokens as static/css/marketing.css, Inter, lavender
   sections with the faint QR pattern, white cards, purple buttons and the
   /qr-code-generator FAQ style. Mobile first.

   lp_base.html loads this file on every use-case page. The pages' own
   <style> blocks come after this file, so every
   rule starts with "body" to win over them. Section backgrounds set inline
   in the pages (style="background:#fff;" and "#F0F2F5") are matched
   exactly and replaced. */

:root {
  --mk-purple: #4F46E5;
  --mk-purple-dark: #4338CA;
  --mk-purple-soft: #EEF2FF;
  --mk-bg: #F7F6FF;
  --mk-bg-alt: #EFEDFC;
  --mk-ink: #16133A;
  --mk-yellow: #FBBF24;
  --mk-muted: #4B4A63;
  --mk-line: #E4E1F5;
  --mk-card: #FFFFFF;
  --mk-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body { background: var(--mk-bg); }
body main#main-content { font-family: var(--mk-font); color: var(--mk-ink); }
body main#main-content :focus-visible { outline: 3px solid var(--mk-purple); outline-offset: 3px; border-radius: 6px; }

/* Section backgrounds: white bands become lavender, gray bands the
   alternate lavender, as on the homepage. */
body [style="background:#fff;"] { background: var(--mk-bg) !important; }
body [style="background:#F0F2F5;"], body .lp-what-bg { background: var(--mk-bg-alt) !important; }

body .lp-wrap:not(.lib-wrap) { max-width: 980px; }
body .lp-wrap { padding: 0 20px; }
body .lp-section, body .lp-faq { padding: 56px 0; }

/* ── Hero ── */
body .lp-hero {
  background: var(--mk-bg); color: var(--mk-ink); padding: 44px 20px 48px; isolation: isolate;
}
body .lp-hero::before {
  background: url("../img/qr-pattern.svg") 0 0 / 320px 320px repeat; opacity: .05;
  -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 14%, transparent 86%, #000 100%);
          mask-image: linear-gradient(90deg, #000 0, transparent 14%, transparent 86%, #000 100%);
  z-index: -1;
}
body .lp-hero-inner { max-width: 860px; padding: 0; }
body .lp-hero h1 {
  font-family: var(--mk-font); font-weight: 900; letter-spacing: -.03em; line-height: 1.04;
  font-size: clamp(36px, 9vw, 64px); color: var(--mk-ink); margin: 0 0 16px; text-wrap: balance;
}
body .lp-hero .sub {
  font-size: 18px; line-height: 1.55; color: var(--mk-muted); max-width: 40ch; margin: 0 auto 26px; text-wrap: pretty;
}

/* ── Buttons ── */
body .lp-btn-primary, body .lp-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px;
  border-radius: 14px; background: var(--mk-purple) !important; color: #fff !important; font-family: var(--mk-font);
  font-weight: 800; font-size: 18px; text-decoration: none; box-shadow: 0 12px 26px -12px rgba(79,70,229,.8);
}
body .lp-btn-primary:hover, body .lp-cta-btn:hover { background: var(--mk-purple-dark) !important; color: #fff !important; transform: translateY(-1px); }
/* Secondary "read more" buttons in the page body (they set purple inline). */
body .lp-section .lp-btn-primary, body .lp-faq .lp-btn-primary {
  background: var(--mk-card) !important; color: var(--mk-purple) !important; border: 1.5px solid var(--mk-purple);
  box-shadow: none; font-size: 16px; min-height: 48px; text-align: center;
}
body .lp-section .lp-btn-primary:hover { background: var(--mk-purple-soft) !important; color: var(--mk-purple-dark) !important; }

/* ── Headings and tags ── */
body .lp-section-tag {
  background: var(--mk-purple-soft); color: var(--mk-purple-dark); font-size: 13px; font-weight: 800;
  letter-spacing: .06em; padding: 5px 12px; margin-bottom: 12px;
}
body .lp-section-h, body .lp-section h2, body .lp-faq h2 {
  font-family: var(--mk-font); font-weight: 900; letter-spacing: -.03em; line-height: 1.08;
  font-size: clamp(30px, 6.4vw, 44px); color: var(--mk-ink); margin: 0 0 22px; text-wrap: balance;
}
body .lp-section h3, body .lp-faq h3 { font-family: var(--mk-font); color: var(--mk-ink); letter-spacing: -.01em; }
body .lp-section p, body .lp-section li { font-family: var(--mk-font); }
/* Body copy the pages style inline (gray, 15px): the homepage's muted 17px. */
body .lp-section [style*="color:#374151"], body .lp-section [style*="color:#515865"],
body .lp-faq [style*="color:#374151"], body .lp-faq [style*="color:#515865"] {
  color: var(--mk-muted) !important; font-size: 17px !important; line-height: 1.65 !important;
}
body .lp-section a:not([class]) { color: var(--mk-purple); font-weight: 700; }

/* ── Cards: what you get, steps, use cases and the pages' own cards ── */
body .lp-what-list { gap: 12px; }
body .lp-what-item, body .lp-how-step, body .lp-usecase, body .lp-usecase-card, body .lp-metric,
body .lp-scenario, body .lp-stage, body .lp-industry, body .lp-audience, body .lp-timeline-item {
  background: var(--mk-card); border: 1px solid var(--mk-line); border-radius: 18px; box-shadow: none;
}
body .lp-what-item:hover, body .lp-how-step:hover, body .lp-usecase:hover { border-color: rgba(79,70,229,.45); box-shadow: none; }
body .lp-what-item { padding: 18px 20px; gap: 14px; }
body .lp-what-check {
  width: 30px; height: 30px; background: var(--mk-purple-soft); color: var(--mk-purple); font-size: 15px;
}
body .lp-what-text strong, body .lp-usecase strong, body .lp-usecase-card strong {
  font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--mk-ink); line-height: 1.3;
}
body .lp-what-text span, body .lp-usecase p, body .lp-usecase-card p { font-size: 16px; color: var(--mk-muted); line-height: 1.55; }
body .lp-usecases { gap: 14px; }
body .lp-usecase { padding: 22px; }

body .lp-how-steps { gap: 14px; }
body .lp-how-step { padding: 24px 22px; text-align: left; }
body .lp-how-num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--mk-purple); color: #fff; font-family: var(--mk-font); font-size: 20px; font-weight: 900; margin-bottom: 14px;
}
body .lp-how-title { font-family: var(--mk-font); font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--mk-ink); }
body .lp-how-desc { font-size: 16px; color: var(--mk-muted); line-height: 1.55; }

/* ── Comparison tables ── */
body .lp-compare-table {
  background: var(--mk-card); border: 1px solid var(--mk-line); border-radius: 18px; border-collapse: separate;
  border-spacing: 0; overflow: hidden; font-size: 16px; font-family: var(--mk-font);
}
body .lp-compare-table th { background: var(--mk-purple-soft); color: var(--mk-ink); font-weight: 800; }
body .lp-compare-table th, body .lp-compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--mk-line); }
body .lp-compare-table td { color: var(--mk-muted); }
body .lp-compare-table tr:last-child td { border-bottom: none; }
body .lp-check { color: #15803D; }
body .lp-cross { color: #B91C1C; }

/* ── FAQ (the /qr-code-generator style) ── */
body .lp-faq-list { gap: 10px; margin-top: 22px; max-width: 820px; }
body .lp-faq-item { background: var(--mk-card); border: 1px solid var(--mk-line); border-radius: 14px; }
body .lp-faq-item[open] { border-color: var(--mk-line); }
body .lp-faq-item summary {
  min-height: 56px; padding: 14px 18px; gap: 14px; font-family: var(--mk-font); font-weight: 800; font-size: 17px;
  line-height: 1.35; color: var(--mk-ink);
}
body .lp-faq-item[open] summary { color: var(--mk-ink); }
body .lp-faq-item summary::after {
  content: ""; width: 22px; height: 22px; border-radius: 50%; margin-left: 0; flex: none;
  background: var(--mk-purple-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
body .lp-faq-item[open] summary::after { transform: rotate(45deg); }
body .lp-faq-answer { font-size: 16px; color: var(--mk-muted); line-height: 1.6; padding: 0 18px 18px; }

/* ── Related links ── */
body .lp-links { background: var(--mk-bg); border-top: 1px solid var(--mk-line); padding: 40px 20px; }
body .lp-links p { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--mk-muted); }
body .lp-link-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px;
  font-weight: 700; background: var(--mk-card); color: var(--mk-ink); border: 1px solid var(--mk-line);
}
body .lp-link-chip:hover { background: var(--mk-card); border-color: var(--mk-purple); color: var(--mk-purple); }

/* ── Closing call to action: lavender with the pattern, like the generator page ── */
body .lp-cta-bar {
  background: var(--mk-bg-alt); color: var(--mk-ink); padding: 56px 20px; position: relative; isolation: isolate;
}
body .lp-cta-bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/qr-pattern.svg") 0 0 / 320px 320px repeat; opacity: .05;
  -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 14%, transparent 86%, #000 100%);
          mask-image: linear-gradient(90deg, #000 0, transparent 14%, transparent 86%, #000 100%);
}
body .lp-cta-bar h2 {
  font-family: var(--mk-font); font-weight: 900; letter-spacing: -.03em; line-height: 1.08;
  font-size: clamp(30px, 6.4vw, 48px); color: var(--mk-ink); max-width: 20ch; margin: 0 auto 12px; text-wrap: balance;
}
body .lp-cta-bar p { color: var(--mk-muted); font-size: 18px; margin: 0 auto 24px; max-width: 40ch; text-wrap: pretty; }

/* Wide tables scroll inside their box on phones, never the page. */
body [style="overflow-x:auto;"] { -webkit-overflow-scrolling: touch; }

@media (min-width: 760px) {
  body .lp-hero { padding: 72px 24px 64px; }
  body .lp-hero .sub { max-width: 56ch; }
  body .lp-section, body .lp-faq { padding: 72px 0; }
  body .lp-cta-bar { padding: 80px 24px; }
  body .lp-wrap { padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  body main#main-content *, body main#main-content *::before, body main#main-content *::after { transition: none !important; }
}

@media (max-width: 480px) {
  body .lp-links-row { gap: 8px; }
  body .lp-link-chip { padding: 0 13px; font-size: 14px; }
}

/* Links inside running text: a 44px tall tap area without changing the
   line spacing (the padding is cancelled by the same negative margin). */
body main#main-content :is(p, li, td, .lp-plan-text, .lp-faq-answer, .lp-what-text, .lp-how-desc) a:not([class]) {
  display: inline-block; padding: 12px 0; margin: -12px 0;
}

/* Long button labels wrap evenly on phones. */
body .lp-btn-primary, body .lp-cta-btn { padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; text-wrap: balance; }

/* ── Visual stories (templates/lp/_visuals.html): the WiFi, restaurant
   menu and dynamic QR code pages. Pictures first, the reading behind
   "Learn more". ── */

/* Hero: the words and the picture side by side on computers. */
body .lp-hero.lv-split .lp-hero-inner { max-width: 1120px; display: grid; gap: 32px; align-items: center; }
body .lp-hero.lv-split .lp-hero-inner > * { min-width: 0; }
body .lv-hero-vis { display: flex; align-items: flex-end; width: min(440px, 100%); margin: 0 auto; }
body .lv-hero-vis .lv-scene { flex: 0 0 74%; margin-bottom: 10%; }
body .lv-hero-phone { flex: 0 0 40%; margin-left: -14%; position: relative; z-index: 1; }

/* The phone frame (the homepage's). */
body .lv-phone {
  background: #0B0B12; border-radius: 34px; padding: 7px; box-shadow: 0 30px 50px -28px rgba(22,19,58,.55);
  aspect-ratio: 540 / 1169; overflow: hidden;
}
body .lv-phone-screen { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px; }
body .lv-phone-sm { border-radius: 26px; padding: 5px; }
body .lv-phone-sm .lv-phone-screen { border-radius: 21px; }

/* The printed things, drawn around a styled QR code. */
/* A square scene: the wall, then the counter or table surface at about two
   thirds down. The printed thing stands on that surface with room above it
   (its bottom margin is a share of the scene's width, which here is also
   its height). The poster hangs in the middle of its wall. */
body .lv-scene { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1 / 1; display: flex; align-items: flex-end; justify-content: center; }
body .lv-scene-counter { background: linear-gradient(180deg, #EFEDFC 0 70%, #B88A5E 70% 73%, #D4A574 73% 100%); }
body .lv-scene-tent { background: linear-gradient(180deg, #F4F1EA 0 68%, #E9DFCF 68% 100%); }
body .lv-scene-poster { background: #ECE9F7; align-items: center; }
body .lv-print {
  background: #fff; text-align: center; color: var(--mk-ink); box-shadow: 0 18px 30px -18px rgba(22,19,58,.55);
  width: 46%; padding: 6% 5% 5%; margin-bottom: 19%; border-radius: 12px;
}
body .lv-print-tent { border-top: 10px solid #14532D; border-radius: 6px 6px 10px 10px; transform: perspective(500px) rotateX(6deg); width: 42%; margin-bottom: 21%; }
body .lv-print-poster { border-radius: 4px; width: 50%; margin-bottom: 0; border-top: 12px solid var(--lv-accent, #EA580C); position: relative; }
body .lv-print-poster::before, body .lv-print-poster::after {
  content: ""; position: absolute; top: -18px; width: 34%; height: 16px; background: rgba(251,191,36,.55); transform: rotate(-6deg);
}
body .lv-print-poster::before { left: -8%; }
body .lv-print-poster::after { right: -8%; transform: rotate(6deg); }
body .lv-print-title { font: 900 clamp(13px, 3.4vw, 17px)/1.1 var(--mk-font); letter-spacing: -.02em; margin: 0; }
body .lv-print-sub { font: 600 clamp(9px, 2.2vw, 11px)/1.3 var(--mk-font); color: var(--mk-muted); margin: 2px 0 0; }
body .lv-print-qr { display: block; width: 78%; height: auto; margin: 8% auto 6%; }
body .lv-print-line { font: 800 clamp(9px, 2.4vw, 12px)/1.25 var(--mk-font); color: var(--mk-purple); margin: 0; }

/* Three picture steps. */
body ol.lv-steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
body .lv-step { background: var(--mk-card); border: 1px solid var(--mk-line); border-radius: 18px; padding: 16px; }
body .lv-step-pic { height: 220px; border-radius: 14px; background: var(--mk-bg-alt); overflow: hidden; display: flex; align-items: center; justify-content: center; }
body .lv-step-gen { align-items: flex-start; background: #fff; border: 1px solid var(--mk-line); }
body .lv-step-gen img { width: 100%; height: auto; display: block; }
body .lv-step-print .lv-scene { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
body .lv-step-print .lv-print { width: 40%; }
body .lv-step-phone { align-items: flex-start; padding-top: 18px; }
body .lv-step-phone .lv-phone { width: 46%; }
body .lv-step-t { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px !important; font: 800 19px/1.25 var(--mk-font); letter-spacing: -.01em; color: var(--mk-ink); }
body .lv-step-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mk-purple); color: #fff; font-size: 15px; font-weight: 900; }
body .lv-step-line { margin: 0 !important; font: 400 16px/1.5 var(--mk-font); color: var(--mk-muted); }

/* Change it anytime: one printed code, the page before and after. */
body .lv-change { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; align-items: end; margin-top: 8px; }
body .lv-change-mid { grid-column: 1 / -1; grid-row: 1; text-align: center; }
body .lv-change-mid .lv-scene { width: min(260px, 80%); margin: 0 auto; aspect-ratio: 4 / 5; }
body .lv-change-mid .lv-print { width: 62%; margin-bottom: 18%; }
body .lv-change-note { margin: 12px auto 0 !important; font: 700 16px/1.45 var(--mk-font); color: var(--mk-ink); max-width: 30ch; text-wrap: balance; }
body .lv-change-side { margin: 0; text-align: center; }
body .lv-change-side .lv-phone { width: min(210px, 100%); margin: 10px auto 0; }
body .lv-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font: 800 14px/1.3 var(--mk-font); }
body .lv-tag-before { background: #F1F0F7; color: var(--mk-muted); }
body .lv-tag-after { background: var(--mk-purple); color: #fff; }

/* The Stats card, demo data. */
body .lv-stats-row { display: grid; gap: 22px; align-items: center; }
body .lv-stats { margin: 0; background: var(--mk-card); border: 1px solid var(--mk-line); border-radius: 20px; padding: 20px; box-shadow: 0 24px 40px -32px rgba(22,19,58,.5); max-width: 460px; width: 100%; justify-self: center; }
body .lv-stats-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body .lv-stats-name { font: 800 16px/1.3 var(--mk-font); color: var(--mk-ink); }
body .lv-demo { flex: none; padding: 3px 10px; border-radius: 999px; background: #FEF3C7; color: #92400E; font: 800 12px/1.4 var(--mk-font); letter-spacing: .04em; text-transform: uppercase; }
body .lv-stats-total { margin: 10px 0 14px !important; font: 500 16px/1.3 var(--mk-font); color: var(--mk-muted); }
body .lv-num { font-size: 34px; font-weight: 900; letter-spacing: -.03em; color: var(--mk-ink); margin-right: 4px; font-variant-numeric: tabular-nums; }
body .lv-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 120px; align-items: end; }
body .lv-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
body .lv-bar span { width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: var(--mk-purple); min-height: 6px; }
body .lv-bar i { font: 600 12px/1 var(--mk-font); font-style: normal; color: var(--mk-muted); }
body .lv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
body .lv-facts div { background: var(--mk-bg); border-radius: 12px; padding: 10px 12px; }
body .lv-facts dt { font: 600 13px/1.3 var(--mk-font); color: var(--mk-muted); }
body .lv-facts dd { margin: 2px 0 0; font: 800 16px/1.3 var(--mk-font); color: var(--mk-ink); }
body .lv-stats-cap { margin-top: 12px; font: 500 13px/1.3 var(--mk-font); color: var(--mk-muted); }
body .lv-stats-copy .lp-section-h { margin-bottom: 12px; }

/* "What you get" as a grid of short cards. */
body ul.lp-what-list.lv-what { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* Learn more: the longer reading, one tap away. */
body .lv-more { margin-top: 14px; }
body .lv-more summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none;
  font: 800 16px/1 var(--mk-font); color: var(--mk-purple);
}
body .lv-more summary::-webkit-details-marker { display: none; }
body .lv-more summary::after {
  content: ""; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform .15s ease;
}
body .lv-more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
body .lv-more-body { padding-top: 6px; }
body .lv-lead { font: 400 18px/1.6 var(--mk-font); color: var(--mk-muted); max-width: 62ch; margin: 0 !important; text-wrap: pretty; }

@media (min-width: 760px) {
  body ol.lv-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body .lv-change { grid-template-columns: 1fr 1.2fr 1fr; align-items: center; }
  body .lv-change-mid { grid-column: 2; grid-row: 1; }
  body .lv-stats-row { grid-template-columns: 1fr 1fr; gap: 40px; }
  body ul.lp-what-list.lv-what { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body ul.lp-what-list.lv-what .lp-what-item { height: 100%; }
}
@media (min-width: 960px) {
  body .lp-hero.lv-split .lp-hero-inner { grid-template-columns: 1.05fr .95fr; text-align: left; }
  body .lp-hero.lv-split .sub { margin-left: 0; }
  body ul.lp-what-list.lv-what { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* The printed card inside a step's picture box: smaller, so it fits. */
body .lv-step-print .lv-print { width: 34%; padding: 4% 3.5% 3.5%; margin-bottom: 9%; }
body .lv-step-print .lv-print-qr { width: 70%; margin: 6% auto 5%; }
body .lv-step-print .lv-print-poster { width: 30%; margin-bottom: 0; }
body .lv-step-print .lv-print-title { font-size: 13px; }
body .lv-step-print .lv-print-sub, body .lv-step-print .lv-print-line { font-size: 10px; }
/* The poster hangs centered on its wall everywhere; in the small step
   picture it drops its second line so it fits with room for the tape. */
body .lv-change-mid .lv-print-poster { margin-bottom: 0; }
body .lv-step-print .lv-print-poster .lv-print-sub { display: none; }

/* Comparison tables on phones: one card per row, each answer under its
   column name (data-label), so nothing is squeezed into a narrow column
   and no word is left alone on a line. */
@media (max-width: 640px) {
  body .lp-compare-table, body .lp-compare-table tbody, body .lp-compare-table tr, body .lp-compare-table td { display: block; width: auto !important; }
  body .lp-compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body .lp-compare-table tr { background: #fff; border: 1.5px solid var(--mk-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
  body .lp-compare-table td { border: 0 !important; padding: 4px 0 !important; font-size: 15px; text-wrap: pretty; }
  body .lp-compare-table td:first-child { font-weight: 700; color: var(--mk-ink); padding-bottom: 6px !important; }
  body .lp-compare-table td[data-label]::before { content: attr(data-label); display: block; font-weight: 700; color: var(--mk-ink); }
}
