/* ============================================================
   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.
   ============================================================ */

/* active nav link */
.nav-links a.active { color: var(--ink); background: var(--paper-2); }

/* legacy token aliases — let imported legal-page inline styles resolve to the new system */
:root {
  --gray-medium: var(--ink-3);
  --gray-dark: var(--ink-2);
  --gray-light: var(--line);
  --primary-color: var(--accent-ink);
  --secondary-color: var(--accent-ink);
  --success-color: var(--accent);
}

/* ---------------- page hero ---------------- */
.phero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: 64px 0 56px; }
.phero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 0);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(110% 90% at 15% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(110% 90% at 15% 0%, #000 30%, transparent 75%);
  opacity: .6;
}
.phero .wrap { position: relative; z-index: 1; }
.phero h1 { font-size: clamp(34px, 5vw, 58px); margin-top: 16px; }
.phero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin-top: 18px; max-width: 620px; line-height: 1.5; }
.phero .phero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.phero .phero-meta { margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: .03em; }
.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; }

/* ---------------- generic section ---------------- */
.psection { padding: 76px 0; }
.psection.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.psection.ink { background: var(--ink); color: var(--paper); }
[data-mode="dark"] .psection.ink { background: var(--card); color: var(--ink); }
.phead { max-width: 720px; margin: 0 auto; text-align: center; }
.phead.left { margin: 0; text-align: left; }
.phead h2 { font-size: clamp(26px, 3.4vw, 40px); margin-top: 12px; }
.phead p { color: var(--ink-2); font-size: 17px; margin-top: 14px; }
.psection.ink .phead p { color: oklch(0.82 0.01 265); }

/* ---------------- 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;
}
.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 ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.fbox li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); align-items: flex-start; line-height: 1.45; }
.fbox li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }

/* ---------------- 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;
}
.gcard:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gcard .gk { font-family: var(--mono); font-size: 11px; 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: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.psection.ink .stat { background: transparent; border-color: oklch(0.4 0.02 265); }
.psection.ink .stat .sn { color: var(--accent); }
.psection.ink .stat .sl { color: oklch(0.78 0.01 265); }

/* ---------------- 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; }
.phero .app-icon { width: 76px; height: 76px; margin-bottom: 22px; }

/* ---------------- 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; }
.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: 12px; color: var(--ink-3); border-top: 1px solid var(--line); }

/* ---------------- 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; }
.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); } }

/* ---------------- tag pills ---------------- */
.tagrow { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; justify-content: center; }
.tagrow.left { justify-content: flex-start; }
.tag2 { font-family: var(--mono); font-size: 12px; color: var(--ink-2); padding: 8px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); }

/* ---------------- per-platform pricing cards ---------------- */
.platgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 46px; }
.platcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; display: flex; flex-direction: column; align-items: center;
  transition: border-color .2s, transform .2s, box-shadow .2s; color: var(--ink);
}
.platcard:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.platcard .pname { font-family: var(--display); font-weight: 600; font-size: 18px; }
.platcard .psub { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.platcard .pprice { font-family: var(--display); font-weight: 600; font-size: 38px; letter-spacing: -0.03em; color: var(--accent-ink); margin: 18px 0 4px; }
.platcard .pprice.soon { font-family: var(--mono); font-size: 15px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.platcard .pfine { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-top: auto; padding-top: 16px; line-height: 1.5; }
.platcard .btn { width: 100%; margin-top: 18px; justify-content: center; }
.platcard .btn[disabled] { opacity: .55; cursor: not-allowed; }
.pricenote { max-width: 720px; margin: 40px auto 0; text-align: center; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.psection.ink .pricenote { color: oklch(0.82 0.01 265); }
.pricenote a { color: var(--accent-ink); text-decoration: underline; }
.psection.ink .pricenote a { color: var(--accent); }

/* store badges */
.storebadges { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; }
.storebadges img { height: 48px; width: auto; }

/* ---------------- 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: 11.5px; 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-cap { text-align: center; color: var(--ink-3); font-family: var(--mono); font-size: 11.5px; margin-top: 16px; }

/* ---------------- 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 { 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 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); }
.legal-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 8px; letter-spacing: .04em; }

/* ---------------- 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 { font-family: var(--mono); font-size: 11px; 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: 10px; letter-spacing: .1em; padding: 4px 11px; border-radius: 999px; }
.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 .plats .tag2 { padding: 5px 11px; font-size: 11px; }
.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 .btn { width: 100%; justify-content: center; }
.dlcard .dl-actions .btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------- CTA band ---------------- */
.ctaband { padding: 80px 0; }
.ctaband-inner { background: var(--ink); color: var(--paper); border-radius: 20px; padding: 52px; text-align: center; }
[data-mode="dark"] .ctaband-inner { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }
.ctaband-inner .kicker { color: var(--accent); justify-content: center; display: flex; }
.ctaband-inner h2 { color: inherit; font-size: clamp(26px, 3.2vw, 38px); margin-top: 14px; }
.ctaband-inner p { color: oklch(0.82 0.01 265); margin: 14px auto 0; max-width: 520px; font-size: 16.5px; }
[data-mode="dark"] .ctaband-inner p { color: var(--ink-2); }
.ctaband-inner .row { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* trademark / fineprint */
.fineprint { max-width: 760px; margin: 0 auto; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

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