/* Styling for the xLoom marketing sub-pages (5-minute stories, in-depth
   stories, features & benefits). Standalone — these pages are static HTML
   served by marketing/server.js, independent of the React SPA. Palette and
   type mirror the landing page (index.html). */

@font-face { font-family: 'Jost'; src: url('https://cdn.jsdelivr.net/npm/@fontsource/jost@5.2.8/files/jost-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('https://cdn.jsdelivr.net/npm/@fontsource/jost@5.2.8/files/jost-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('https://cdn.jsdelivr.net/npm/@fontsource/jost@5.2.8/files/jost-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --coral: #E26D5C; --teal: #2A8B8E; --mustard: #E5A04A; --plum: #5C3A5C;
  --ink: #1A1714; --bone: #F5F0E5; --cream: #FAF6EE; --stone: #6B635A; --pebble: #C4BDB2;
  --r-sm: 12px; --r-md: 20px; --r-lg: 28px;
}

* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Jost', -apple-system, system-ui, sans-serif;
  color: var(--ink); background: var(--cream); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* nav — identical to the landing page (index.html) */
.brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; margin-bottom: -1.5px; flex-shrink: 0; }
.brand-name { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 46px; letter-spacing: -0.02em; line-height: 1; }
.brand-sm { gap: 4px; }
.brand-sm .brand-mark { width: 24px; height: 24px; margin-bottom: -1px; }
.brand-sm .brand-name { font-size: 30px; }
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(250, 246, 238, 0.72);
  border-bottom: 0.5px solid rgba(26, 23, 20, 0.08);
}
.nav-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; }
nav ul { display: flex; gap: 28px; list-style: none; align-items: center; margin: 0; padding: 0; }
nav ul li a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 400; opacity: 0.75; transition: opacity 0.2s; }
nav ul li a:hover { opacity: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: var(--ink); color: var(--bone); border: none; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s;
}
.btn:hover { transform: translateY(-1px); background: #2D2A26; }
@media (max-width: 760px) { header.nav nav ul { display: none; } }

/* hero */
.mk-hero { padding: 72px 0 40px; }
.mk-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--stone); margin-bottom: 16px;
}
.mk-hero h1 {
  font-size: clamp(36px, 5.5vw, 60px); font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.05; max-width: 18ch; margin-bottom: 20px;
}
.mk-hero p.lead {
  font-size: clamp(17px, 1.8vw, 21px); font-weight: 400; color: var(--stone);
  max-width: 60ch; line-height: 1.5;
}

/* filter pills */
.mk-filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.mk-pill {
  font-size: 13.5px; font-weight: 500; color: var(--stone);
  padding: 8px 15px; border-radius: 999px; border: 1px solid rgba(26, 23, 20, 0.12);
  background: white; transition: all 0.15s; cursor: pointer; white-space: nowrap;
}
.mk-pill:hover { border-color: var(--ink); color: var(--ink); }
.mk-pill.active { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.mk-filter-note { font-size: 13.5px; color: var(--stone); padding: 4px 0 0; }
.mk-filter-note a { font-weight: 600; }

/* page switcher (5-minute / in-depth / features) */
.mk-tabs-wrap { padding-top: 4px; padding-bottom: 8px; }
.mk-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: white; border: 1px solid rgba(26, 23, 20, 0.1); border-radius: 999px; }
.mk-tab { font-size: 14px; font-weight: 600; color: var(--stone); padding: 9px 18px; border-radius: 999px; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.mk-tab:hover { color: var(--ink); }
.mk-tab.active { background: var(--ink); color: var(--bone); }

/* section + groups */
.mk-section { padding: 24px 0 96px; }
.mk-group-head { display: flex; align-items: baseline; gap: 16px; margin: 56px 0 22px; flex-wrap: wrap; }
.mk-group-head:first-child { margin-top: 8px; }
.mk-group-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.mk-group-head .mk-group-blurb { color: var(--stone); font-size: 16px; }

/* story cards */
.mk-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .mk-cards { grid-template-columns: 1fr; } }
.mk-card {
  background: white; border-radius: var(--r-lg); padding: 26px 26px 22px;
  border: 0.5px solid rgba(26, 23, 20, 0.07);
  box-shadow: 0 1px 0 rgba(26,23,20,0.03), 0 20px 48px -28px rgba(26,23,20,0.16);
  display: flex; flex-direction: column;
}
.mk-card .mk-tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--coral); margin-bottom: 14px;
}
.mk-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px; line-height: 1.2; }
.mk-ba { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.mk-ba-row { display: flex; gap: 12px; align-items: flex-start; }
.mk-ba-label {
  flex: 0 0 auto; width: 56px; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; padding-top: 2px;
}
.mk-ba-row.today .mk-ba-label { color: var(--stone); }
.mk-ba-row.with .mk-ba-label { color: var(--teal); }
.mk-ba-text { font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.mk-ba-row.today .mk-ba-text { color: var(--stone); }
.mk-shift {
  margin-top: auto; padding-top: 16px; border-top: 0.5px solid rgba(26,23,20,0.08);
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.mk-shift .arrow { color: var(--coral); }

/* feature table */
.mk-ftable { background: white; border-radius: var(--r-lg); overflow: hidden; border: 0.5px solid rgba(26,23,20,0.07); box-shadow: 0 20px 48px -30px rgba(26,23,20,0.16); }
.mk-frow { display: grid; grid-template-columns: 1fr 1.4fr 1fr auto; gap: 24px; padding: 20px 26px; border-top: 0.5px solid rgba(26,23,20,0.07); align-items: center; }
.mk-frow:first-child { border-top: none; }
.mk-frow .fname { font-weight: 600; font-size: 16px; }
.mk-frow .fwhat { color: var(--stone); font-size: 15px; line-height: 1.5; }
.mk-frow .fben { font-size: 15px; line-height: 1.5; color: var(--ink); font-weight: 500; }
@media (max-width: 760px) {
  .mk-frow { grid-template-columns: 1fr; gap: 6px; }
  .mk-frow .fben::before { content: '\2192 '; color: var(--coral); }
}

/* cross links + cta */
.mk-xlinks { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.mk-xlink { font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.mk-xlink .arrow { color: var(--coral); transition: transform 0.15s; }
.mk-xlink:hover .arrow { transform: translateX(3px); }
.mk-group-foot { margin: 18px 0 8px; }
.mk-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
  background: var(--ink); color: var(--bone); border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: transform 0.15s, background 0.2s;
}
.mk-btn:hover { transform: translateY(-1px); background: #2D2A26; }
.mk-cta { background: var(--ink); color: var(--bone); border-radius: var(--r-lg); padding: 56px 48px; margin: 24px 0 0; text-align: center; }
.mk-cta h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.mk-cta p { color: rgba(245,240,229,0.78); max-width: 52ch; margin: 0 auto 26px; font-size: 17px; }
.mk-cta .mk-btn { background: var(--bone); color: var(--ink); }
.mk-cta .mk-btn:hover { background: white; }

/* footer — identical to the landing page (index.html) */
footer { background: var(--cream); padding: 64px 0 40px; border-top: 0.5px solid rgba(26, 23, 20, 0.08); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand p { color: var(--stone); font-size: 14px; max-width: 32ch; margin-top: 16px; }
.footer-col h4 { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--stone); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--ink); }
.footer-bottom { padding-top: 32px; border-top: 0.5px solid rgba(26, 23, 20, 0.08); display: flex; justify-content: space-between; font-size: 12px; color: var(--stone); }
@media (max-width: 720px) { .footer-bottom { flex-direction: column; gap: 8px; } }

/* mockup thumbnails */
.mk-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.mk-card .mk-thumbs { margin: 4px 0 16px; }
.mk-thumb { padding: 0; border: 0.5px solid rgba(26,23,20,0.1); background: #FAF6EE; cursor: zoom-in; border-radius: 10px; overflow: hidden; line-height: 0; box-shadow: 0 8px 22px -12px rgba(26,23,20,0.45); transition: transform 0.15s, box-shadow 0.15s; }
.mk-thumb:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(26,23,20,0.5); }
.mk-thumb img { width: 208px; height: 131px; object-fit: cover; object-position: left top; display: block; }
.mk-thumb.mobile img { width: 76px; height: 152px; object-position: top center; }
/* feature-row thumb (smaller, right-aligned column) */
.fthumb .mk-thumbs { justify-content: flex-end; }
.fthumb .mk-thumb img { width: 150px; height: 94px; }
.fthumb .mk-thumb.mobile img { width: 58px; height: 116px; }
@media (max-width: 760px) {
  .fthumb .mk-thumbs { justify-content: flex-start; margin-top: 8px; }
}

/* lightbox */
.mk-lb { position: fixed; inset: 0; z-index: 1000; display: none; }
.mk-lb.open { display: flex; align-items: center; justify-content: center; }
.mk-lb-bd { position: absolute; inset: 0; background: rgba(26,23,20,0.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mk-lb-fig { position: relative; margin: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 94vw; }
.mk-lb-img { max-width: 90vw; max-height: 80vh; border-radius: 14px; background: #FAF6EE; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6); }
.mk-lb-img.mobile { max-height: 84vh; border-radius: 28px; }
.mk-lb-cap { color: #F5F0E5; font-size: 15px; text-align: center; max-width: 60ch; }
.mk-lb-x { position: absolute; top: -46px; right: 0; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.15); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.mk-lb-x:hover { background: rgba(255,255,255,0.28); }
.mk-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.13); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.mk-lb-nav:hover { background: rgba(255,255,255,0.26); }
.mk-lb-nav.prev { left: -64px; }
.mk-lb-nav.next { right: -64px; }
@media (max-width: 820px) { .mk-lb-nav.prev { left: 6px; } .mk-lb-nav.next { right: 6px; } }
