/* VectorLabel landing page (/vectorlabel/) — page-specific pieces on top of cas.css:
   the framed live-app embeds, the label-preview cards, the printer cards. */

.band{background:var(--bg-soft);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.narrow-block{max-width:760px;margin:0 auto}
.mb{margin-bottom:20px}
.small{font-size:14.5px}
code.formula{background:var(--surface);border:1px solid var(--line);padding:3px 8px;border-radius:6px;font-size:12.5px;display:inline-block;line-height:1.6;font-family:var(--mono)}
.block-gap{display:inline-block;margin-top:10px}

/* Live app-HTML previews: a macOS-style window around an <iframe> that renders the REAL
   VectorLabel front-end (/vectorlabel/embeds/) in light mode with the current templates. */
.embed-win{border:1px solid #e4e7ee;border-radius:13px;overflow:hidden;background:#fff;
  box-shadow:0 30px 70px -34px rgba(16,22,40,.30),0 2px 8px rgba(16,22,40,.05)}
.embed-bar{height:34px;display:flex;align-items:center;gap:7px;padding:0 13px;background:#f3f5f9;border-bottom:1px solid #e6e9f0}
.embed-bar .tl{width:11px;height:11px;border-radius:50%}
.embed-bar .tl.r{background:#ff5f57}.embed-bar .tl.y{background:#febc2e}.embed-bar .tl.g{background:#28c840}
.embed-bar .t{margin-left:8px;font-size:11.5px;font-weight:600;color:#5e6672}
.embed-frame{display:block;width:100%;height:520px;border:0;background:#fff}

/* Label preview: a clipped window showing just the rendered label from the app. */
.label-card{border:1px dashed var(--line-2);border-radius:12px;padding:15px 16px 14px;position:relative;background:var(--surface);text-align:center}
.label-card .tag{position:absolute;top:-9px;left:14px;background:var(--surface);padding:0 8px;font-size:11px;font-weight:600;color:var(--accent);letter-spacing:.02em}
.label-card .clip{width:100%;max-width:230px;margin:8px auto 0;overflow:hidden;border:1px solid var(--line);border-radius:7px;background:#fff;line-height:0}
.label-card .clip iframe{display:block;width:100%;height:120px;border:0}
.label-card .cap{margin-top:10px;font-size:11.5px;color:var(--muted)}
.bind-showcase{display:grid;grid-template-columns:1.55fr 1fr;gap:22px;align-items:start;margin-top:32px}
.bind-showcase>*{min-width:0}
.label-row{display:flex;flex-direction:column;gap:18px}
@media(max-width:860px){.bind-showcase{grid-template-columns:1fr}.label-row{flex-direction:row;align-items:flex-start}.label-row>*{flex:1}}
@media(max-width:520px){.label-row{flex-direction:column}}

/* Printers */
.printers{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.prcard{border:1px solid var(--line);border-radius:var(--radius);padding:30px;background:var(--surface)}
.prcard .pbrand{font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:14px}
.prcard ul{list-style:none;display:flex;flex-direction:column;gap:11px;margin-top:18px}
.prcard li{display:flex;gap:11px;font-size:14.5px;color:var(--ink-soft)}
.prcard li svg{width:18px;height:18px;color:var(--accent);flex-shrink:0;margin-top:2px}
.prcard .badge{display:inline-block;font-size:11.5px;font-weight:600;padding:3px 10px;border-radius:999px;background:var(--bg-soft);color:var(--muted);margin-left:8px}
.prcard .badge.live{background:var(--tip-bg);color:var(--tip)}
.prcard .pnote{font-size:13.5px;line-height:1.55;color:var(--muted);margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.prcard .pnote a{color:var(--accent);font-weight:600}
@media(max-width:900px){.printers{grid-template-columns:1fr}}

/* Formula box with field chips: a static copy of the designer's formula editor (fx-ed, fx-chip,
   Fields button, field buttons) using the app's own light and dark colours, so it matches the
   app. No script and no inline style; everything here is decoration inside one role="img". */
.fx-demo{--fx-panel:#eceef3;--fx-box:#e1e4ec;--fx-surface:#ffffff;--fx-hover:#d2d6e0;--fx-text:#1b1c24;--fx-text2:#5d6070;--fx-bd2:rgba(0,0,0,.10);--fx-bd4:rgba(0,0,0,.17);--fx-accent:#3a5ec4;
  margin:26px auto 0;max-width:640px;text-align:left}
@media(prefers-color-scheme:dark){.fx-demo{--fx-panel:#252538;--fx-box:#2a2a42;--fx-surface:#1a1a28;--fx-hover:#333350;--fx-text:#e8e8f0;--fx-text2:#a2a2bf;--fx-bd2:rgba(255,255,255,.08);--fx-bd4:rgba(255,255,255,.14);--fx-accent:#4a6cd4}}
.fx-panel{background:var(--fx-panel);border:1px solid var(--line);border-radius:10px;padding:12px 14px 13px;color:var(--fx-text);font-family:system-ui,sans-serif;font-size:12px;box-shadow:var(--shadow-lg)}
.fx-label{font-size:11px;font-weight:600;color:var(--fx-text2);margin-bottom:5px}
.fx-ed{background:var(--fx-box);border:1px solid var(--fx-bd4);border-radius:4px;padding:4px 8px;min-height:26px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font-family:ui-monospace,Menlo,monospace;font-size:12px;line-height:20px;color:var(--fx-text)}
.fx-chip{display:inline-block;margin:0 1px;padding:0 6px;line-height:16px;border-radius:3px;background:var(--fx-surface);border:1px solid var(--fx-bd4);color:var(--fx-text);font-family:system-ui,sans-serif;font-size:11px;white-space:nowrap;cursor:default;vertical-align:baseline}
.fx-chip:hover{background:var(--fx-hover)}
.fx-btns{display:flex;gap:5px;margin-top:5px}
.fx-btn{background:var(--fx-box);border:1px solid var(--fx-bd4);color:var(--fx-text2);border-radius:4px;padding:4px 9px;font-size:11px;line-height:normal;white-space:nowrap}
.fx-btn.fx-on{background:var(--fx-accent);border-color:var(--fx-accent);color:#fff}
.fx-fields{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.fx-fbtn{background:var(--fx-surface);border:1px solid var(--fx-bd2);color:var(--fx-text2);border-radius:3px;padding:2px 7px;font-size:11px;white-space:nowrap}
.fx-fbtn:hover{background:var(--fx-box);color:var(--fx-text)}
.fx-help{margin-top:5px;font-size:10.5px;line-height:1.4;color:var(--fx-text2)}
.fx-demo figcaption{margin-top:12px;text-align:center}
