/* Landing Kit gallery, the switcher page, not a template. */

:root { --accent-text: #f5c26b; }
.theme-light { --accent-text: #7a4d00; }
a, .eyebrow { color: var(--accent-text); }

body { overflow-x: hidden; }
.lk-app { position: relative; z-index: 1; min-height: 100vh; }
.lk-topnav { display: flex; gap: 20px; margin-left: 14px; }
.lk-topnav a { color: var(--muted); font-size: 13px; font-weight: 500; }
.lk-topnav a:hover { color: var(--text); text-decoration: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }

.lk-main { max-width: 1240px; margin: 0 auto; padding: 30px 30px 90px; }

/* ---------------------------------------------------------------- hero */
.gallery-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 42px; align-items: center; }
.gallery-copy h1 {
  font-size: clamp(34px, 3.9vw, 52px); line-height: 1.05; letter-spacing: -0.035em; margin: 10px 0 16px;
}
.gallery-copy h1 em { font-style: normal; color: var(--accent-text); }
.gallery-copy .lede { max-width: 56ch; }
.hero-facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px; font-size: 12px; color: var(--muted); }
.hero-facts b { color: var(--text); font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-right: 4px; }

.hero-shot { position: relative; }
.browser {
  border-radius: 16px; border: 1px solid var(--line-strong); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.browser-bar {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 10.5px; color: var(--muted);
}
.browser-bar .badge { margin-left: auto; }
.traffic { display: flex; gap: 5px; }
.traffic i { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); }
.browser-url { font-family: var(--font-mono); font-size: 10px; opacity: 0.85; }
.thumb-frame { position: relative; overflow: hidden; background: var(--surface-3); }
.thumb-frame iframe { border: 0; transform-origin: top left; pointer-events: none; display: block; }
.hero-frame { height: 360px; }
.hero-tag {
  position: absolute; left: 18px; bottom: -18px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.hero-tag .small { max-width: 190px; }

/* ---------------------------------------------------------------- facts */
.fact-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 28px 0 8px; }
.fact { padding: 16px 18px; }
.fact .stat-value { font-size: 26px; }
.fact .stat-label { margin-bottom: 4px; }

/* ---------------------------------------------------------------- sections */
.gallery-section { margin-top: 46px; scroll-margin-top: 90px; }
.section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: clamp(22px, 2vw, 28px); }
.section-head p { margin: 0; color: var(--muted); font-size: 13px; max-width: 70ch; }

.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.template-card {
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s var(--ease), border-color 0.18s;
}
.template-card:hover { transform: translateY(-3px); border-color: var(--gold-line); text-decoration: none; }
.template-thumb { height: 196px; }
.template-card .thumb-frame { height: 196px; border-bottom: 1px solid var(--line); }
.template-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.template-top { display: flex; align-items: center; gap: 8px; }
.template-top h3 { margin: 0; font-size: 15px; color: var(--text); }
.template-vertical { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.template-body p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.template-meta { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 6px; flex-wrap: wrap; }
.palette-dots { display: flex; gap: 4px; }
.palette-dots i { width: 11px; height: 11px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.18); }
.template-meta .contrast { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--green); }
.section-count { font-size: 10.5px; color: var(--muted); }

/* ---------------------------------------------------------------- framework */
.framework-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: auto; }
.framework-table th { position: static; }
.framework-table td { vertical-align: top; }
.framework-table .f-num { font-family: var(--font-mono); color: var(--muted); width: 34px; }
.framework-table .f-name { font-weight: 600; color: var(--text); white-space: nowrap; }
.framework-table .f-job { min-width: 320px; font-size: 12.5px; }
.framework-table .f-mistake { min-width: 250px; font-size: 12px; color: var(--muted); }
.framework-table .f-used { white-space: nowrap; }
.used-dots { display: flex; gap: 3px; }
.used-dots i { width: 8px; height: 8px; border-radius: 2px; background: var(--surface-3); }
.used-dots i.on { background: var(--gold); }
.framework-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.note-card h3 { font-size: 14px; margin-bottom: 6px; }
.note-card p { font-size: 12.5px; margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- rebrand */
.rebrand-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
.palette-card h3, .code-card h3 { margin: 0; font-size: 15px; }
.palette-card > p { margin: 4px 0 14px; }
.palette-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.palette-row:first-child { border-top: 0; }
.palette-row .p-name { font-weight: 600; font-size: 12.5px; min-width: 108px; }
.palette-row .p-swatches { display: flex; gap: 4px; }
.palette-row .p-swatches i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.15); }
.palette-row .p-score { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--green); white-space: nowrap; }
.palette-row .p-mode { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.code-card pre.code { margin: 12px 0 0; max-height: 360px; }

/* ---------------------------------------------------------------- footer */
.gallery-footer {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.gallery-footer a { color: var(--muted); }
.gallery-footer a:hover { color: var(--accent-text); }
.gallery-footer .spacer { flex: 1; }

/* ---------------------------------------------------------------- full-page preview mode
   index.html?shot=1#/view/agency renders one template edge to edge. Used by the
   screenshot script so the second image is a real template page, not a thumbnail. */
body.preview-mode { overflow: hidden; }
body.preview-mode .aurora,
body.preview-mode .grid-lines,
body.preview-mode .lk-app,
body.preview-mode .demo-banner { display: none !important; }
.preview-shell { position: fixed; inset: 0; z-index: 10; background: #0b0f1a; }
.preview-shell iframe { width: 100%; height: 100%; border: 0; display: block; }
.preview-return {
  position: fixed; right: 16px; bottom: 16px; z-index: 20;
  background: rgba(10, 14, 23, 0.9); border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 600;
}
.shot .preview-return { display: none !important; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .gallery-hero { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .framework-notes { grid-template-columns: 1fr; }
  .rebrand-grid { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lk-topnav { display: none; }
  .lk-main { padding: 22px 16px 70px; }
  .template-grid { grid-template-columns: 1fr; }
  .hero-frame { height: 300px; }
}
@media (max-width: 520px) {
  .fact-row { grid-template-columns: 1fr; }
  .gallery-copy h1 { font-size: 34px; }
  .hero-facts { gap: 14px; }
  .hero-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
