/* Sales page (/welcome). Uses the tokens from application.css; the dark sections use fixed ink colors in both themes. */

.marketing { --ink: var(--color-ink-950); --ink-2: var(--color-ink-800); --ink-line: var(--color-ink-500); --on-ink: var(--color-night-50); --on-ink-muted: var(--color-night-300); --ink-accent: var(--color-coral-300); overflow-x: clip; }
.m-page { width: 100%; }
.m-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--space-32); }
.m-mono { font-family: var(--font-mono); }
.m-ok { color: var(--ok); }
.m-dot { width: 8px; height: 8px; border-radius: var(--radius-circle); background: var(--accent); flex: none; }
.m-dot-ok { width: 10px; height: 10px; background: var(--ok); }
.m-stack { display: flex; flex-direction: column; gap: var(--space-20); }
.m-stack-lg { display: flex; flex-direction: column; gap: var(--space-56); }
.m-center { align-items: center; }
.m-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-10); }
.m-col { display: flex; flex-direction: column; gap: var(--space-6); }

/* Buttons and links */
.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); min-height: 52px; padding: 0 var(--space-24); border-radius: var(--radius-2xl); border: 1px solid var(--edge); background: var(--surface); color: var(--text); font: var(--weight-bold) var(--text-lg) var(--font-body); text-decoration: none; cursor: pointer; }
.m-btn:hover { border-color: var(--accent); }
.m-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-pop); }
.m-btn-primary:hover { filter: brightness(1.08); }
.m-btn-sm { min-height: 44px; padding: 0 var(--space-20); font-size: var(--text-base); }
.m-btn-light { background: var(--on-ink); border-color: var(--on-ink); color: var(--ink); }
.m-btn-outline-light { background: transparent; border-color: var(--ink-line); color: var(--on-ink); }
.m-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-12); color: var(--text); text-decoration: none; font-weight: var(--weight-semibold); border-radius: var(--radius-lg); }
.m-link:hover { background: var(--surface-2); }

/* Header */
.m-header { position: sticky; top: 0; z-index: var(--z-sticky); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.m-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-8) var(--space-16); min-height: 76px; }
.m-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.m-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-12); border-radius: var(--radius-lg); color: var(--text); text-decoration: none; font-weight: var(--weight-medium); }
.m-links a:hover { background: var(--surface-2); }
.m-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-10); }
.m-actions .locales { margin: 0; }
/* One row in every language: the links never wrap the account buttons onto a second line; where a long language does
   not fit (Spanish, French…) they scroll sideways instead. */
.m-nav { flex-wrap: nowrap; }
.m-links { flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.m-links::-webkit-scrollbar { display: none; }
.m-links a { flex: none; padding: 0 var(--space-10); white-space: nowrap; }
/* A fade at the cut edge says there is more; it only exists while the row actually scrolls (inactive timeline = none). */
@supports (animation-timeline: scroll()) {
  .m-links { animation: m-links-more linear both; animation-timeline: scroll(self inline); }
  @keyframes m-links-more {
    from { mask-image: linear-gradient(to right, var(--color-black) calc(100% - 40px), transparent); }
    to { mask-image: none; }
  }
}
.m-actions { flex: none; flex-wrap: nowrap; }
.m-actions a { white-space: nowrap; }
/* Phones: brand and the main button share the row, as on the sales page; signing in stays in the footer. */
@media (max-width: 480px) {
  .m-nav { min-height: 64px; gap: var(--space-8); }
  .m-nav .brand { font-size: var(--text-xl); }
  .m-actions .m-link { display: none; }
  .m-actions .m-btn-sm { padding: 0 var(--space-12); font-size: var(--text-md); }
}

/* Hero */
.m-hero { position: relative; overflow: hidden; }
.m-glow { position: absolute; inset: -10% -10% auto auto; width: 70%; height: 90%; background: radial-gradient(closest-side, var(--accent-soft), transparent 72%); opacity: .9; pointer-events: none; }
.m-hero-grid { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-48) var(--space-40); padding-top: var(--space-72); padding-bottom: 88px; }
.m-hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-28); }
.m-kicker { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--space-8); min-height: 40px; padding: 0 var(--space-16); border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent-text); font-weight: var(--weight-bold); font-size: var(--text-base); }
.m-title { font-size: var(--text-fluid-xl); line-height: 1.02; letter-spacing: -.03em; }
.m-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; }
.m-word .w { display: inline-block; }
.m-accent { color: var(--accent-text); }
.m-lead { font-size: var(--text-2xl); color: var(--muted); max-width: 540px; margin: 0; }
.m-lead-ink { color: var(--on-ink-muted); font-size: var(--text-xl); }
.m-note { margin: 0; font-size: var(--text-md); color: var(--muted); font-weight: var(--weight-semibold); }
.m-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.m-cta-center { justify-content: center; }

.m-stage { flex: 1 1 480px; min-width: 0; position: relative; height: 580px; max-width: 620px; margin: 0 auto; }
.m-phone { position: absolute; right: 0; top: 70px; width: 210px; height: 400px; border-radius: var(--radius-7xl); background: var(--ink); padding: var(--space-10); transform: rotate(6deg); box-shadow: var(--shadow-float); }
.m-phone-screen { width: 100%; height: 100%; border-radius: var(--radius-5xl); background: var(--color-slate-50); color: var(--color-slate-900); padding: var(--space-24) var(--space-14); display: flex; flex-direction: column; gap: var(--space-10); }
.m-phone-screen strong { font: var(--weight-semibold) var(--text-2xl)/1.1 var(--font-display); }
.m-phone-logo { width: 40px; height: 40px; border-radius: var(--radius-xl); background: var(--color-coral-50); color: var(--color-coral-800); display: grid; place-items: center; font: var(--weight-bold) var(--text-2xl) var(--font-display); }
.m-phone-desc { font-size: var(--text-xs); color: var(--color-slate-700); }
.m-phone-btn { min-height: 36px; border-radius: var(--radius-lg); background: var(--color-slate-900); color: var(--color-white); display: grid; place-items: center; font-size: var(--text-xs); font-weight: var(--weight-bold); }
.m-phone-btn-accent { background: var(--color-coral-700); }
.m-qr-card { position: absolute; left: 4%; top: 40px; width: 360px; height: 360px; max-width: 74%; max-height: 74vw; padding: var(--space-24); border-radius: var(--radius-6xl); background: var(--color-white); color: var(--color-slate-900); border: 1px solid var(--line); box-shadow: var(--shadow-float); overflow: hidden; }
.sample-qr { display: block; width: 100%; height: 100%; }
.m-scan { position: absolute; left: 0; right: 0; top: 4%; height: 3px; background: var(--color-coral-700); box-shadow: var(--shadow-glow); border-radius: var(--radius-xs); }
.m-chip { position: absolute; display: inline-flex; align-items: center; gap: var(--space-8); min-height: 40px; padding: 0 var(--space-16); border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: var(--weight-medium); font-size: var(--text-base); white-space: nowrap; }
.m-chip-a { left: 0; bottom: 90px; }
.m-chip-b { left: 14%; bottom: 20px; font-size: var(--text-md); }
.m-chip-c { right: 4%; top: 0; }
@media (max-width: 560px) { .m-stage { height: 520px; } .m-phone { width: 160px; height: 320px; top: 90px; } .m-qr-card { width: 270px; height: 270px; } .m-chip-a { bottom: 130px; } }

/* Marquee of content types */
.m-types { border-block: 1px solid var(--line); background: var(--surface); padding: var(--space-24) 0; overflow: hidden; }
.m-marquee { display: flex; width: max-content; gap: var(--space-12); padding-left: var(--space-12); }
.m-pill { display: inline-flex; align-items: center; gap: var(--space-8); min-height: 40px; padding: 0 var(--space-16); border-radius: var(--radius-full); background: var(--bg); border: 1px solid var(--line); font-weight: var(--weight-medium); white-space: nowrap; }
.m-pill .type-icon { flex: none; color: var(--accent-text); }
.m-pill-link { min-height: 44px; color: var(--text); text-decoration: none; transition: background var(--dur-base), border-color var(--dur-base); }
.m-pill-link:hover { background: var(--accent-soft); border-color: var(--accent); }
.m-types-ctl { display: flex; justify-content: flex-end; margin-top: var(--space-12); }
.m-pill-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  /* No scrolling loop: the types wrap into rows, without the duplicate round. */
  .m-marquee { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--space-12); }
  .m-pill-dup { display: none; }
  .m-types-ctl { display: none; }
}
.m-pill-sm { min-height: 34px; font-size: var(--text-md); background: var(--surface); }
.m-pill-on { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; font-weight: var(--weight-bold); }

/* Sections */
.m-section { padding: 110px 0; }
.m-head { display: flex; flex-direction: column; gap: var(--space-16); max-width: 760px; }
.m-head-center { align-items: center; text-align: center; max-width: 720px; }
.m-eyebrow { font-size: var(--text-sm); font-weight: var(--weight-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.m-eyebrow-ink { color: var(--ink-accent); }
.m-h2 { font-size: var(--text-fluid-md); line-height: 1.04; letter-spacing: -.025em; margin: 0; display: block; }
.m-h2-xl { font-size: var(--text-fluid-lg-36); max-width: 880px; }
.m-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-5xl); box-shadow: var(--shadow); transition: border-color var(--dur-base); }
.m-card:hover { border-color: var(--accent); }
.m-card h3 { font-size: var(--text-5xl); margin: 0; }
.m-card p { margin: 0; color: var(--muted); }

/* Steps */
.m-steps { position: relative; }
.m-steps-track { position: absolute; left: 4%; right: 4%; top: 46px; height: 2px; background: var(--line); }
.m-steps-line { height: 100%; background: var(--accent); transform-origin: 0 50%; }
.m-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-24); }
.m-steps-track { grid-column: 1 / -1; grid-row: 1; }
.m-step { padding: var(--space-28); display: flex; flex-direction: column; gap: var(--space-14); position: relative; }
.m-num { width: 36px; height: 36px; border-radius: var(--radius-circle); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: var(--weight-medium) var(--text-md) var(--font-mono); }
.m-swatch { width: 40px; height: 40px; border-radius: var(--radius-xl); border: 1px solid var(--edge); }
.m-round { border-radius: var(--radius-circle); }
.m-minibars { display: flex; align-items: flex-end; gap: var(--space-6); height: 44px; }
.m-minibars span { width: 14px; background: var(--accent); border-radius: var(--radius-xs) var(--radius-xs) 0 0; }

/* Stats */
.m-stats-sec { padding: var(--space-40) 0; }
.m-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-24); border-block: 1px solid var(--line); padding: var(--space-40) 0; }
.m-stats div { display: flex; flex-direction: column; gap: var(--space-4); }
.m-stats strong { font: var(--weight-semibold) var(--text-fluid-lg-48)/1 var(--font-display); letter-spacing: -.03em; }
.m-stats span:not([data-count]) { color: var(--muted); }

/* Bento */
.m-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-24); }
.m-bento-card { padding: var(--space-32); display: flex; flex-direction: column; gap: var(--space-12); overflow: hidden; min-width: 0; }
.m-span-7 { grid-column: span 7; } .m-span-5 { grid-column: span 5; } .m-span-4 { grid-column: span 4; } .m-span-12 { grid-column: span 12; }
@media (max-width: 960px) { .m-span-7, .m-span-5, .m-span-4 { grid-column: span 12; } }
.m-route { margin-top: var(--space-16); gap: var(--space-14); }
.m-chart { margin-top: auto; display: flex; align-items: flex-end; gap: var(--space-6); height: 110px; border-bottom: 1px solid var(--line); }
.m-chart span { flex: 1; background: var(--accent); border-radius: var(--radius-xs) var(--radius-xs) 0 0; }
.m-barcode { margin-top: auto; display: flex; gap: 3px; height: 40px; }
.m-barcode span { background: var(--text); }
.m-ink { background: var(--ink); border-color: var(--ink-line); color: var(--on-ink); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-24); }
.m-ink p { color: var(--on-ink-muted); }
.m-api-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: var(--space-12); }
.m-api-copy p { max-width: 520px; }
.m-code { flex: 1 1 340px; margin: 0; padding: var(--space-20); border-radius: var(--radius-3xl); background: var(--ink-2); border: 1px solid var(--ink-line); font: var(--text-sm)/1.7 var(--font-mono); overflow-x: auto; color: var(--on-ink); }
.m-code-key { color: var(--ink-accent); }
.m-code-dim { color: var(--on-ink-muted); }

/* Scannability (dark) */
.m-ink-sec { background: var(--ink); color: var(--on-ink); overflow: hidden; }
.m-scan-grid { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-56) var(--space-64); }
.m-scan-grid > .m-stack { flex: 1 1 420px; }
.m-checks { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-12); }
.m-checks li { display: flex; gap: var(--space-12); align-items: center; }
.m-check { width: 24px; height: 24px; border-radius: var(--radius-circle); background: var(--ink-line); display: grid; place-items: center; color: var(--ink-accent); flex: none; }
.m-gauge { flex: 1 1 400px; min-width: 0; max-width: 560px; padding: var(--space-32); border-radius: var(--radius-6xl); background: var(--ink-2); border: 1px solid var(--ink-line); display: flex; flex-direction: column; gap: var(--space-24); }
.m-gauge-top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-12); }
.m-gauge-label { display: block; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--on-ink-muted); }
.m-gauge-num { font: var(--weight-semibold) var(--text-11xl)/1 var(--font-display); letter-spacing: -.03em; }
.m-gauge-chip { font-size: var(--text-md); font-weight: var(--weight-bold); padding: var(--space-4) var(--space-14); border-radius: var(--radius-full); background: var(--color-green-900); color: var(--color-green-300); }
.m-gauge-bar { height: 14px; border-radius: var(--radius-full); background: var(--ink); border: 1px solid var(--ink-line); overflow: hidden; }
.m-gauge-bar > div { width: 88%; height: 100%; border-radius: var(--radius-full); background: var(--color-green-300); }
.m-gauge-logo { display: flex; flex-direction: column; gap: var(--space-10); }
.m-gauge-row { display: flex; justify-content: space-between; font-size: var(--text-md); color: var(--on-ink-muted); }
.m-gauge-row .m-mono { color: var(--on-ink); }
.m-slider { position: relative; height: 6px; border-radius: var(--radius-full); background: var(--ink-line); }
.m-slider span { position: absolute; left: 20%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: var(--radius-circle); background: var(--color-white); box-shadow: var(--shadow-pop); }

/* Pricing */
.m-seg { display: inline-flex; padding: var(--space-4); gap: var(--space-2); border-radius: var(--radius-2xl); background: var(--surface-2); border: 1px solid var(--line); }
.m-seg button { min-height: 44px; padding: 0 var(--space-20); border: 0; border-radius: var(--radius-xl); background: transparent; color: var(--muted); font: var(--weight-medium) var(--text-base) var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-8); }
.m-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: var(--weight-bold); box-shadow: var(--shadow-pressed); }
.m-seg small { font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--ok); }
.m-plans { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-24); align-items: stretch; text-align: left; }
.m-plan { position: relative; padding: var(--space-32); display: flex; flex-direction: column; gap: var(--space-16); }
.m-plan h3 { font-size: var(--text-5xl); }
.m-tagline { color: var(--muted); margin: 0; }
.m-plan .m-tagline { min-height: 48px; }
.m-plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow-float); }
.m-badge { position: absolute; top: -14px; left: 28px; font-size: var(--text-xs); font-weight: var(--weight-bold); padding: var(--space-4) var(--space-12); border-radius: var(--radius-full); background: var(--accent); color: var(--on-accent); }
.m-price { display: flex; align-items: baseline; gap: var(--space-8); }
.m-price strong { font: var(--weight-semibold) var(--text-10xl)/1 var(--font-display); letter-spacing: -.03em; }
.m-price span { color: var(--muted); }
.m-plan .m-btn { width: 100%; }
.m-features { list-style: none; margin: var(--space-8) 0 0; padding: var(--space-20) 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-12); }
.m-features li { display: flex; gap: var(--space-10); align-items: flex-start; }
.m-features svg { flex: none; margin-top: 3px; color: var(--ok); }

/* FAQ */
.m-section-faq { padding-top: var(--space-40); }
.m-faq-grid { display: flex; flex-wrap: wrap; gap: var(--space-48) var(--space-80); }
.m-faq-grid > .m-head { flex: 1 1 320px; }
.m-faq { flex: 2 1 520px; min-width: 0; border-top: 1px solid var(--line); }
.m-faq-item { border-bottom: 1px solid var(--line); }
.m-faq-item h3 { margin: 0; font-size: var(--text-2xl); }
.m-faq-item button { width: 100%; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); text-align: left; background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--text); font: var(--weight-semibold) var(--text-2xl) var(--font-display); letter-spacing: -.01em; }
.m-faq-icon { flex: none; width: 36px; height: 36px; border-radius: var(--radius-circle); border: 1px solid var(--edge); display: grid; place-items: center; }
.m-faq-item button[aria-expanded="true"] .m-faq-icon { transform: rotate(45deg); }
.m-faq-panel { overflow: hidden; }
.m-faq-panel p { margin: 0; padding: 0 var(--space-52) var(--space-24) 0; color: var(--muted); font-size: var(--text-xl); }

/* Final call to action */
.m-final { position: relative; background: var(--ink); color: var(--on-ink); padding: 120px 0; overflow: hidden; }
.m-final-copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-28); }
.m-bit { position: absolute; opacity: .55; }
.m-bit-a { left: 6%; top: 18%; width: 54px; height: 54px; border-radius: var(--radius-2xl); border: 3px solid var(--ink-accent); }
.m-bit-b { right: 9%; top: 24%; width: 38px; height: 38px; border-radius: var(--radius-circle); background: var(--accent); opacity: .7; }
.m-bit-c { left: 14%; bottom: 16%; width: 26px; height: 26px; border-radius: var(--radius-md); background: var(--ink-accent); }
.m-bit-d { right: 16%; bottom: 14%; width: 62px; height: 62px; border-radius: var(--radius-3xl); border: 3px solid var(--accent); opacity: .6; }

/* Footer */
.m-footer { padding: var(--space-72) 0 var(--space-40); background: var(--surface); border-top: 1px solid var(--line); }
.m-footer-grid { display: flex; flex-wrap: wrap; gap: var(--space-48) var(--space-64); justify-content: space-between; }
.m-footer-grid > .m-stack { flex: 1 1 280px; max-width: 360px; gap: var(--space-14); }
.m-footer-cols { flex: 2 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-32); }
.m-footer-cols div { display: flex; flex-direction: column; gap: var(--space-6); }
.m-footer-cols strong { margin-bottom: var(--space-6); }
.m-footer-cols a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.m-footer-cols a:hover { color: var(--accent-text); }
/* The QR types (second column) are by far the longest list: they get two tracks and two columns of links. */
.m-footer-cols { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.m-footer-cols > div:nth-child(2) { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: var(--space-6) var(--space-32); }
.m-footer-cols > div:nth-child(2) strong { grid-column: 1 / -1; }
/* Wide screens: brand on its own row, every column side by side under it. */
@media (min-width: 1100px) {
  .m-footer-grid > .m-stack { flex-basis: 100%; max-width: none; }
  .m-footer-cols { flex-basis: 100%; grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.m-copy { margin-top: var(--space-56); padding-top: var(--space-24); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-md); }

@media (max-width: 700px) {
  .m-wrap { padding: 0 var(--space-20); }
  .m-section { padding: var(--space-72) 0; }
  .m-hero-grid { padding-top: var(--space-40); padding-bottom: var(--space-56); }
  .m-links { display: none; }
  .m-gauge-num { font-size: var(--text-10xl); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { scroll-behavior: smooth; }
