/* ============================================================
   Lacy Digital Labs — inner-page components (loads after site.css)
   Same tokens as the homepage; adds page hero, prose/legal,
   galleries, feature boxes, per-platform pricing, comparison
   tables, requirements, downloads, support cards, CTA bands.
   ============================================================ */

.alpha-flag {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 9px 14px; border-radius: 10px;
}
.alpha-flag .nd { width: 7px; height: 7px; transform: rotate(45deg); background: var(--accent); flex: none; }

/* ---------------- video (click-to-play; nothing third-party loads until then) ---------------- */
.vplayer { max-width: 900px; margin: 44px auto 0; aspect-ratio: 16 / 9; }
.vfacade {
  display: block; position: relative; width: 100%; height: 100%; padding: 0; cursor: pointer;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md); transition: transform .2s, box-shadow .2s;
}
.vfacade:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (hover: hover) { .vfacade:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }
.vfacade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .2s;
}
.vfacade:focus-visible .vplay { transform: translate(-50%, -50%) scale(1.08); }
@media (hover: hover) { .vfacade:hover .vplay { transform: translate(-50%, -50%) scale(1.08); } }
.vplay::after {
  content: ""; width: 0; height: 0; margin-left: 6px;
  border-left: 22px solid var(--on-accent);
  border-top: 13px solid transparent; border-bottom: 13px solid transparent;
}
.vplayer iframe { width: 100%; height: 100%; display: block; border: 0; border-radius: var(--radius); }
.vnote { max-width: 900px; margin: 16px auto 0; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

/* chapter chips — jump the player straight to a timestamp */
.vchaps { max-width: 900px; margin: 22px auto 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.vchap {
  display: inline-flex; align-items: baseline; gap: 8px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; color: var(--ink-2); text-align: left;
  padding: 8px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card);
  transition: color .15s, border-color .15s, transform .15s;
}
.vchap:focus-visible { color: var(--ink); border-color: var(--accent); }
@media (hover: hover) { .vchap:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); } }
@media (pointer: coarse) { .vchap { min-height: var(--ldl-touch-target); align-items: center; } }
.vchap .vt { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); flex: none; }
@media (prefers-reduced-motion: reduce) {
  .vfacade, .vfacade:hover, .vfacade:focus-visible { transform: none; }
  .vfacade:hover .vplay, .vfacade:focus-visible .vplay { transform: translate(-50%, -50%); }
}

/* ---------------- feature boxes (checklist) ---------------- */
.fbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 44px; }
.fbox {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
@media (hover: hover) { .fbox:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow-md); } }
.fbox h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.fbox h3 .nd { width: 8px; height: 8px; transform: rotate(45deg); background: var(--accent); flex: none; }
.fbox h3 .exp { margin-left: auto; flex: none; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; }
.fbox ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.fbox li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.fbox li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* ---------------- simple card grid (modes / use-cases / support) ---------------- */
.cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 44px; }
.gcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
@media (hover: hover) { .gcard:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); } }
.gcard .gk { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.gcard h3, .gcard h4 { font-size: 18px; margin: 12px 0 8px; }
.gcard p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ---------------- stat row ---------------- */
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-top: 44px; }
.stat { text-align: center; padding: 26px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.stat .sn { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; color: var(--accent-ink); }
.stat .sl { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.ldl-inverse .stat { background: transparent; border-color: var(--ldl-inverse-line); }
.ldl-inverse .stat .sn { color: var(--ldl-inverse-accent); }
.ldl-inverse .stat .sl { color: var(--ldl-inverse-ink2); }

/* ---------------- branded app icons ---------------- */
.app-icon { display: block; border-radius: 22%; box-shadow: var(--shadow-sm); }
.dlcard .app-icon { width: 48px; height: 48px; margin-bottom: 14px; }

/* ---------------- gallery ---------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 22px; margin-top: 44px; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-md); background: var(--card); transition: transform .2s, box-shadow .2s; }
@media (hover: hover) { .shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }
.shot img { width: 100%; height: auto; aspect-ratio: 1280 / 800; object-fit: cover; display: block; }
.shot .cap { padding: 14px 18px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); }
/* .fit — show the whole frame instead of cropping to 1280×800. For screenshots
   whose edges carry meaning (terminal UI, toolbars) and non-standard ratios. */
.shot.fit img { aspect-ratio: auto; object-fit: contain; height: auto; }
/* .ph — a screenshot that is not taken yet: same 1280×800 frame, says what it will show.
   Swap the div for an <img> when the real screenshot lands. */
.shot .ph { aspect-ratio: 1280 / 800; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; background: repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 14px, var(--card) 14px, var(--card) 28px); }
.shot .ph b { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; background: var(--card); }
.shot .ph span { max-width: 340px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* ---------------- phone screenshot gallery ---------------- */
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 44px; justify-items: center; }
.phone { display: flex; flex-direction: column; align-items: center; max-width: 250px; }
.phone img { width: 100%; height: auto; aspect-ratio: 660 / 1434; border-radius: 28px; border: 1px solid var(--line-2); box-shadow: var(--shadow-md); background: var(--card); display: block; transition: transform .2s, box-shadow .2s; }
@media (hover: hover) { .phone:hover img { transform: translateY(-5px); box-shadow: var(--shadow-lg); } }
.phone .cap { margin-top: 15px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-align: center; }
@media (max-width: 760px) { .phones { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- tablet screenshot gallery ---------------- */
.tablets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; justify-items: center; }
.tablet { display: flex; flex-direction: column; align-items: center; max-width: 300px; }
.tablet img { width: 100%; height: auto; aspect-ratio: 758 / 1100; border-radius: 18px; border: 1px solid var(--line-2); box-shadow: var(--shadow-md); background: var(--card); display: block; transition: transform .2s, box-shadow .2s; }
@media (hover: hover) { .tablet:hover img { transform: translateY(-5px); box-shadow: var(--shadow-lg); } }
.tablet .cap { margin-top: 15px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-align: center; }
@media (max-width: 860px) { .tablets { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- tag pills ---------------- */
.tagrow { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; justify-content: center; }
.tagrow.left { justify-content: flex-start; }

.pricenote { max-width: 720px; margin: 40px auto 0; text-align: center; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.pricenote + .pricenote { margin-top: 20px; }
.ldl-inverse .pricenote { color: var(--ldl-inverse-ink2); }
.pricenote a { color: var(--accent-ink); text-decoration: underline; }
.ldl-inverse .pricenote a { color: var(--ldl-inverse-accent); }

/* ---------------- comparison table ---------------- */
.cmp-wrap { overflow-x: auto; margin-top: 40px; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cmp th { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); font-weight: 400; }
.cmp td:first-child { font-weight: 600; color: var(--ink); }
.cmp tr:last-child td { border-bottom: none; }
.cmp tr.hl { background: var(--accent-soft); }
.cmp tr.hl td { color: var(--accent-ink); font-weight: 600; }
.cmp tr.is-last td { border-bottom: none; }
.cmp-cap { text-align: center; color: var(--ink-3); font-family: var(--mono); font-size: 12px; margin-top: 16px; }

/* feature-matrix variant: symbol columns + highlighted "us" column */
.cmp.matrix { min-width: 900px; }
.cmp.matrix th, .cmp.matrix td { text-align: center; padding: 12px 16px; }
.cmp.matrix th:first-child, .cmp.matrix td:first-child { text-align: left; }
.cmp.matrix td:nth-child(2), .cmp.matrix th:nth-child(2) { background: var(--accent-soft); font-weight: 600; }
.cmp.matrix th:nth-child(2) { color: var(--accent-ink); }
.cmp.matrix td:nth-child(2) { color: var(--accent-ink); }
.cmp .mk { font-size: 15px; line-height: 1; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 22px; font-size: 13px; color: var(--ink-2); }
.cmp-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cmp-legend b { font-weight: 600; color: var(--ink); }

/* ---------------- requirements list ---------------- */
.reqlist { max-width: 620px; margin: 40px auto 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.reqlist li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.reqlist li:last-child { border-bottom: none; }
.reqlist .rl { font-weight: 600; }
.reqlist .rv { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }

/* ---------------- pull quote ---------------- */
.pull { max-width: 720px; margin: 36px auto 0; padding: 22px 28px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--display); font-size: 21px; font-weight: 500; line-height: 1.4; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------------- prose (about + legal) ---------------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2, .privacy-content h2 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; margin: 44px 0 14px; color: var(--ink); }
.prose h3, .privacy-content h3 { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; margin: 32px 0 12px; color: var(--ink); }
.prose h2:first-child, .prose h3:first-child, .privacy-content h2:first-child { margin-top: 0; }
.prose p, .privacy-content p { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.prose ul, .privacy-content ul { padding-left: 1.3rem; margin-bottom: 16px; }
.prose li, .privacy-content li { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin-bottom: 7px; }
.prose a, .privacy-content a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.privacy-content { max-width: 800px; margin: 0 auto; padding: 44px 28px 30px; }
/* legacy containers used by the imported legal pages */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.page-header { padding: 58px 0 0; }
.page-header .container { max-width: 800px; }
.page-header h1, .page-header h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(30px, 4vw, 46px); color: var(--ink); line-height: 1.05; }
.page-header .lead { color: var(--ink-2); font-size: 18px; margin-top: 14px; }
.privacy-content > p:first-child { font-family: var(--mono); font-size: 12.5px !important; color: var(--ink-3) !important; text-align: left !important; }
.privacy-content .section-number { color: var(--accent-ink); margin-right: .3rem; font-family: var(--mono); font-size: .85em; }
.summary-box { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 30px; }
.summary-box h2 { font-size: 16px !important; margin: 0 0 8px !important; color: var(--accent-ink); }
.summary-box p { font-size: 14.5px; margin-bottom: 0; }
.highlight { font-weight: 600; color: var(--ink); }

/* ---------------- two-column (about) ---------------- */
.twocol { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; align-items: start; max-width: 1040px; margin: 0 auto; }
.twocol .aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.scard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.scard h4, .scard .h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.scard ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.scard li { font-size: 14px; color: var(--ink-2); padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.scard li:last-child { border-bottom: none; padding-bottom: 0; }
.scard p { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }

/* ---------------- downloads cards ---------------- */
.dlgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 22px; margin-top: 40px; }
.dlcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; display: flex; flex-direction: column; }
.dlcard.featured { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.dlcard .badge2 { position: absolute; top: -11px; left: 26px; background: var(--accent); color: var(--on-accent); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; padding: 4px 11px; border-radius: 999px; }
.dlcard h3, .dlcard .h3 { font-size: 22px; }
.dlcard .dver { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin: 5px 0 8px; }
.dlcard .dprice { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); margin-bottom: 12px; }
.dlcard > p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.dlcard .plats { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.dlcard .dspecs { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 6px 0 20px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dlcard .dspecs li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); align-items: flex-start; }
.dlcard .dspecs li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }
.dlcard .dl-actions { display: flex; flex-direction: column; gap: 11px; margin-top: auto; align-items: flex-start; }
.dlcard .dl-actions > .ldl-btn { width: 100%; }

/* ---------------- positioning pillars, sub-heads & trust line ---------------- */
.fbox.pillar p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.ldl-section-head.sub { margin-top: 66px; }
.ldl-section-head.sub h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; margin-top: 12px; color: var(--ink); }
.trustline { margin-top: 30px; text-align: center; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-3); }
.ldl-inverse .trustline { color: var(--ldl-inverse-ink2); }
.ldl-plan .plat-alt { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-family: var(--body); font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.ldl-plan .plat-alt a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 860px) {
  .twocol { grid-template-columns: 1fr; }
  .twocol .aside { position: static; }
  .gallery { grid-template-columns: 1fr; }
}

/* products catalogue — category sections of compact tiles (data: _data/products.yml) */
.pfilter { margin-top: 30px; justify-content: flex-start; }
.ldl-wrap > .ldl-fineprint:only-child { max-width: 760px; margin-inline: auto; }  /* trademark lines */
.pfilter-count { text-align: left; }
.pcat { margin-top: 44px; }
.pcat-head h3 { font-size: 20px; }
.pcat-head p { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }
.ptile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 20px; }
.ptile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.ptile.is-soon { border-style: dashed; }
.ptile-head { display: flex; gap: 14px; align-items: center; }
.ptile-icon { width: 40px; height: 40px; border-radius: 22%; flex: none; }
.ptile h3, .ptile h4 { font-size: 18px; }
.ptile h3 a, .ptile h4 a { color: inherit; text-decoration: none; }
.ptile-kind { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.ptile-where { font-size: 14px; color: var(--ink-2); }
.ptile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.ptile-price { font-family: var(--mono); font-size: 12.5px; color: var(--accent-ink); }
.pfilter-empty { margin-top: 32px; color: var(--ink-2); }
@media (hover: hover) { .ptile:hover { border-color: var(--line-2); } }
@media (min-width: 760px) { .dlgrid-2 { grid-template-columns: repeat(2, 1fr); } }
/* card display rules would otherwise beat the [hidden] the filter sets */
[data-platforms][hidden], [data-filter-section][hidden], .pfilter-empty[hidden] { display: none; }

/* legal index */
.legal-list { border-top: 1px solid var(--line); }
.legal-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.legal-row .h3 { font-size: 18px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-ink); }
.help-tile { text-decoration: none; color: inherit; }
.help-tile .h4 { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); }
.help-tile .ptile-kind { display: block; color: var(--accent-ink); }
@media (hover: hover) { .help-tile:hover { border-color: var(--accent); } }
