/* Ziwiz Link product page. Tokens mirror the main site (see _next/static/css). */
:root {
  --zl-brand: #fc7820;          /* --brand-800 on the home page */
  --zl-accent: #c2410c;         /* darker orange for white text (AA contrast) */
  --zl-accent-hover: #9a3412;
  --zl-dark: #2b2b2b;           /* --brand-700 */
  --zl-dark-hover: #18181b;
  --zl-ink: #18181b;            /* zinc-900 */
  --zl-muted: #3f3f46;          /* zinc-700 */
  --zl-line: rgba(0, 0, 0, 0.1);
  --zl-surface: rgba(255, 255, 255, 0.7);
  --zl-tint: #fff7ed;           /* --pro-mid */
  --zl-radius: 1.5rem;
  --zl-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --zl-btn-h: 3.5rem;
  --zl-font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --zl-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--zl-font);
  line-height: 1.6;
  color: var(--zl-ink);
  background: #fafafa;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
code {
  font-family: var(--zl-mono);
  font-size: 0.875em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 0.35rem;
  overflow-wrap: anywhere;
}
a { color: var(--zl-accent); text-underline-offset: 0.2em; }
a:hover { color: var(--zl-accent-hover); }
:focus-visible { outline: 3px solid var(--zl-brand); outline-offset: 3px; border-radius: 0.5rem; }
[hidden] { display: none !important; }

.zl-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.zl-skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--zl-dark); color: #fff; padding: 0.6rem 1rem; border-radius: 0.75rem;
}
.zl-skip:focus { top: 1rem; color: #fff; }

.zl-container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.zl-narrow { max-width: 48rem; }
.zl-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.zl-icon--sm { width: 1rem; height: 1rem; display: inline-block; vertical-align: -0.125em; }

/* Header (dark version of the home page's glass header) */
.zl-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24, 24, 27, 0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.zl-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.zl-header__logo img { height: 2rem; width: auto; }
.zl-nav { display: none; gap: 1.5rem; font-size: 0.875rem; font-weight: 500; }
.zl-nav a { color: #fff; text-decoration: none; }
.zl-nav a:hover, .zl-nav a[aria-current="page"] { color: #fb923c; }
.zl-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (min-width: 768px) { .zl-nav { display: flex; } }
.zl-header__bar { position: relative; }
.zl-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.zl-mmenu summary {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 2.5rem; height: 2.5rem; padding: 0 0.65rem; border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.12); cursor: pointer; list-style: none;
}
.zl-mmenu summary::-webkit-details-marker { display: none; }
.zl-mmenu summary span { display: block; height: 2px; border-radius: 2px; background: #fff; }
.zl-mmenu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; padding: 0.5rem 1.5rem 1rem;
  background: rgba(24, 24, 27, 0.97); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.zl-mmenu__panel a { padding: 0.8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-weight: 500; text-decoration: none; }
.zl-mmenu__panel a:last-child { border-bottom: 0; }
.zl-mmenu__panel a[aria-current="page"] { color: #fb923c; }
@media (min-width: 768px) { .zl-mmenu { display: none; } }

/* Buttons */
.zl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 2.75rem; padding: 0.5rem 1.25rem;
  border-radius: 0.75rem; border: 0;
  font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.zl-btn:hover { transform: translateY(-1px); }
.zl-btn--accent { background: var(--zl-accent); color: #fff; }
.zl-btn--accent:hover { background: var(--zl-accent-hover); color: #fff; }
.zl-btn--dark { background: var(--zl-dark); color: #fff; }
.zl-btn--dark:hover { background: var(--zl-dark-hover); color: #fff; }
.zl-btn--sm { min-height: 2.25rem; padding: 0.35rem 1rem; font-size: 0.875rem; }
.zl-btn--lg { height: var(--zl-btn-h); padding: 0 1.4rem; text-align: left; }
.zl-btn__text { display: flex; flex-direction: column; }
.zl-btn__text small { font-size: 0.75rem; font-weight: 500; opacity: 0.85; }

/* Badges */
.zl-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem; border-radius: 999px;
  background: var(--zl-brand); color: var(--zl-ink);
  font-size: 0.75rem; font-weight: 600;
}

/* Hero */
.zl-hero {
  padding: 3.5rem 0 4rem;
  background: radial-gradient(60rem 30rem at 85% 10%, rgba(234, 88, 12, 0.12), transparent),
              linear-gradient(135deg, #fff, #fafafa 50%, #fff7ed);
  border-bottom: 1px solid var(--zl-line);
}
.zl-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .zl-hero__grid { grid-template-columns: 1.1fr 0.9fr; } }
.zl-hero__title { margin-top: 1rem; font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 800; }
.zl-hero__lead { margin-top: 0.5rem; font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 600; color: var(--zl-dark); }
.zl-hero__text { margin-top: 1rem; max-width: 36rem; font-size: 1.0625rem; color: var(--zl-muted); }
.zl-hero__meta { margin-top: 1rem; font-size: 0.875rem; color: var(--zl-muted); }
.zl-hero__more { margin-top: 0.5rem; font-size: 0.9375rem; font-weight: 600; }

/* Primary download slot: sized for the tallest variant (two buttons), so
   swapping variants after OS detection causes no layout shift. */
.zl-primary { margin-top: 1.75rem; min-height: calc(var(--zl-btn-h) * 2 + 0.75rem); }
.zl-primary__group { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; max-width: 22rem; }
.zl-primary__group .zl-btn { justify-content: flex-start; }

/* Screenshot placeholder */
.zl-shot {
  border-radius: var(--zl-radius); overflow: hidden;
  background: var(--zl-surface); border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.14);
}
.zl-shot__bar { display: flex; gap: 0.4rem; padding: 0.75rem 1rem; background: rgba(0, 0, 0, 0.05); }
.zl-shot__bar span { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(0, 0, 0, 0.18); }
.zl-shot__body {
  display: grid; place-items: center; aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.025) 0 12px, transparent 12px 24px);
}
.zl-shot__label {
  padding: 0.5rem 1rem; border-radius: 999px; border: 1px dashed rgba(0, 0, 0, 0.3);
  font-size: 0.875rem; font-weight: 600; color: var(--zl-muted); background: #fff;
}

/* Sections */
.zl-section { padding: 4.5rem 0; }
.zl-section--tint { background: linear-gradient(135deg, #f4f4f5, #fff7ed 50%, #e4e4e7); }
.zl-section__head { text-align: center; max-width: 44rem; margin: 0 auto 2.5rem; }
.zl-section__head h2 { margin-top: 0.75rem; font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 700; }
.zl-section__head p:not(.zl-badge) { margin-top: 0.75rem; color: var(--zl-muted); }
.zl-section__head--left { text-align: left; margin: 0; }
.zl-split { display: grid; gap: 2rem; }
@media (min-width: 860px) { .zl-split { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.zl-subhead { margin: 3rem 0 1.25rem; font-size: 1.375rem; font-weight: 700; }

/* Cards and grids */
.zl-grid { display: grid; gap: 1.25rem; list-style: none; }
@media (min-width: 640px) { .zl-grid--2, .zl-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .zl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zl-card {
  display: block; height: 100%;
  padding: 1.5rem; border-radius: var(--zl-radius);
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--zl-shadow);
}
.zl-card h3 { font-size: 1.125rem; font-weight: 600; }
.zl-card p { margin-top: 0.5rem; color: var(--zl-muted); font-size: 0.9375rem; }
.zl-card__icon {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1rem;
  border-radius: 0.75rem; background: var(--zl-tint); color: var(--zl-accent);
}

/* How it works */
.zl-steps { display: grid; gap: 1.25rem; list-style: none; }
@media (min-width: 860px) { .zl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zl-steps__num {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: 0.75rem;
  border-radius: 50%; background: var(--zl-dark); color: #fff; font-weight: 700;
}
.zl-diagram { margin: 2.5rem 0 0; padding: 1.5rem; border-radius: var(--zl-radius); border: 1px dashed rgba(0, 0, 0, 0.2); background: #fff; }
.zl-diagram__row { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; }
.zl-diagram__node {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center;
  padding: 1rem; border-radius: 1rem; background: #f4f4f5; border: 1px solid var(--zl-line);
}
.zl-diagram__node .zl-icon { width: 1.75rem; height: 1.75rem; color: var(--zl-dark); }
.zl-diagram__node span { font-size: 0.8125rem; color: var(--zl-muted); }
.zl-diagram__node--accent { background: var(--zl-tint); border-color: rgba(194, 65, 12, 0.35); }
.zl-diagram__node--accent .zl-icon { color: var(--zl-accent); }
.zl-diagram__link { display: flex; flex-direction: column; align-items: center; font-size: 0.75rem; color: var(--zl-muted); }
.zl-diagram__arrow { transform: rotate(90deg); color: var(--zl-accent); }
.zl-diagram figcaption { margin-top: 1rem; text-align: center; font-size: 0.875rem; color: var(--zl-muted); }
@media (min-width: 760px) {
  .zl-diagram__row { flex-direction: row; align-items: center; }
  .zl-diagram__node { flex: 1 1 0; }
  .zl-diagram__link { flex: 0 0 6.5rem; }
  .zl-diagram__arrow { transform: none; }
}

/* Checklists */
.zl-checklist { list-style: none; display: grid; gap: 0.9rem; }
.zl-card .zl-checklist { margin-top: 1rem; }
.zl-checklist li { display: flex; gap: 0.75rem; align-items: flex-start; }
.zl-checklist .zl-icon { margin-top: 0.2rem; color: var(--zl-accent); }
.zl-soon {
  flex-shrink: 0; margin-top: 0.15rem; padding: 0.05rem 0.5rem; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--zl-dark); color: #fff;
}

/* Downloads */
.zl-downloads { list-style: none; display: grid; gap: 0.75rem; }
.zl-download {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.25rem 1.5rem; border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--zl-shadow);
}
.zl-download h3 { font-size: 1.0625rem; font-weight: 600; }
.zl-download p { font-size: 0.875rem; color: var(--zl-muted); }
.zl-download__file { font-family: var(--zl-mono); font-size: 0.8125rem !important; overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .zl-download { flex-direction: row; align-items: center; justify-content: space-between; }
  .zl-download .zl-btn { flex-shrink: 0; }
}
.zl-note { margin-top: 1rem; font-size: 0.875rem; color: var(--zl-muted); }
.zl-fallback { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; height: auto; }
.zl-releases { margin-top: 1.25rem; font-weight: 600; }

.zl-install h4 { font-size: 1.0625rem; font-weight: 600; }
.zl-install ol { margin-top: 0.75rem; padding-left: 1.25rem; display: grid; gap: 0.5rem; color: var(--zl-muted); font-size: 0.9375rem; }
.zl-install__tip { font-size: 0.875rem !important; }
.zl-install--then { background: var(--zl-tint); border-color: rgba(194, 65, 12, 0.2); }

.zl-warning {
  margin-top: 1.25rem; padding: 1.25rem 1.5rem; border-radius: 1.25rem;
  background: #fffbeb; border: 1px solid #f59e0b; border-left-width: 6px;
}
.zl-warning h4 { font-size: 1rem; font-weight: 700; }
.zl-warning p { margin-top: 0.4rem; font-size: 0.9375rem; color: var(--zl-muted); }
.zl-warning ul { margin-top: 0.75rem; padding-left: 1.25rem; display: grid; gap: 0.4rem; font-size: 0.9375rem; }

/* Powered by */
.zl-site { color: inherit; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.zl-site:hover { color: inherit; transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12); }
.zl-site h3 { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; font-size: 1.25rem; }
.zl-site img { margin-bottom: 0.75rem; border-radius: 0.5rem; }
.zl-site__tag { font-size: 0.75rem; font-weight: 600; color: var(--zl-accent); text-transform: uppercase; letter-spacing: 0.05em; }
.zl-grid--3:has(> li:only-child) { grid-template-columns: minmax(0, 24rem); justify-content: center; }

/* FAQ */
.zl-faq { display: grid; gap: 0.75rem; }
.zl-faq details {
  border-radius: 1rem; background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--zl-shadow);
}
.zl-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; cursor: pointer; list-style: none; border-radius: 1rem;
}
.zl-faq summary::-webkit-details-marker { display: none; }
.zl-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--zl-accent); }
.zl-faq details[open] summary::after { content: "−"; }
.zl-faq summary h3 { font-size: 1rem; font-weight: 600; }
.zl-faq details p { padding: 0 1.25rem 1.1rem; color: var(--zl-muted); }

/* Footer (matches the home page footer) */
.zl-footer { border-top: 1px solid var(--zl-line); background: rgba(228, 228, 231, 0.4); }
.zl-footer__grid { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; font-size: 0.875rem; color: var(--zl-muted); }
@media (min-width: 768px) { .zl-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zl-footer img { height: 4rem; width: auto; margin-bottom: 1rem; }
.zl-footer h2 { margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--zl-ink); }
.zl-footer ul { list-style: none; display: grid; gap: 0.25rem; }
.zl-footer a { color: var(--zl-muted); }
.zl-footer a:hover { color: var(--zl-accent); }

@media (max-width: 420px) {
  .zl-container { padding: 0 1rem; }
  .zl-card, .zl-download { padding: 1.25rem; }
  .zl-section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .zl-btn:hover, .zl-site:hover { transform: none; }
}
