/* ============================================================
   Beispiel Zeitung — E-Paper 2026 (web reader)
   Design tokens ported verbatim from the Claude Design handoff
   (project/app/styles.css), plus component + screen styles.
   ============================================================ */

/* Self-hosted fonts (UnifrakturMaguntia + Newsreader) — no external CDN. */
@import url('fonts.css');

:root {
  --font-masthead: 'UnifrakturMaguntia', 'Times New Roman', serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, 'Segoe UI', sans-serif;

  --accent: #2a5db0;
  --accent-strong: #214c93;
  --accent-light: #6c98dd;
  --accent-soft: rgba(42, 93, 176, 0.12);
  --red: #b42d24;
  --red-soft: rgba(180, 45, 36, 0.10);

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px;
  --gap: 30px; --pad: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root, [data-theme="light"] {
  --bg: #f6f4f0; --bg-tint: #efece6;
  --surface: #ffffff; --surface-2: #faf9f6; --surface-3: #f1efe9;
  --text: #1b1a18; --text-2: #57534c; --text-3: #8c877e;
  --border: rgba(27, 26, 24, 0.10); --border-2: rgba(27, 26, 24, 0.06);
  --shadow-sm: 0 1px 2px rgba(30, 27, 22, 0.06), 0 2px 6px rgba(30, 27, 22, 0.05);
  --shadow-md: 0 4px 12px rgba(30, 27, 22, 0.08), 0 12px 32px rgba(30, 27, 22, 0.07);
  --shadow-lg: 0 8px 24px rgba(30, 27, 22, 0.12), 0 30px 60px rgba(30, 27, 22, 0.12);
  --glass: rgba(255, 255, 255, 0.72); --glass-border: rgba(255, 255, 255, 0.6);
  --paper: #fdfcfa; --scrim: rgba(20, 18, 15, 0.4);
}

[data-theme="dark"] {
  --bg: #0e141b; --bg-tint: #0a0f15;
  --surface: #161e28; --surface-2: #1b2530; --surface-3: #212d3a;
  --text: #f1f0ec; --text-2: #a3acb8; --text-3: #6e7884;
  --border: rgba(255, 255, 255, 0.09); --border-2: rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45), 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.55), 0 36px 70px rgba(0, 0, 0, 0.55);
  --glass: rgba(22, 30, 40, 0.72); --glass-border: rgba(255, 255, 255, 0.08);
  --accent: #5b94f0; --accent-strong: #4d86e6; --accent-soft: rgba(91, 148, 240, 0.16); --accent-light: #89b2f5;
  --red: #e2685e; --red-soft: rgba(226, 104, 94, 0.14);
  --paper: #f4f1ec; --scrim: rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { transition: background .4s var(--ease), color .4s var(--ease); }
#app { min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); }
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 20px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-3); background-clip: padding-box; }

/* ---- atoms ---- */
.cz-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 9px 16px; font-size: 14px; font-weight: 500; transition: all .2s var(--ease); white-space: nowrap; }
.cz-pill:hover { border-color: var(--text-3); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.cz-pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cz-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: all .2s var(--ease); }
.cz-icon-btn:hover { border-color: var(--text-3); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.cz-icon-btn:disabled { opacity: .35; cursor: default; }
.cz-btn-primary { display: inline-flex; align-items: center; gap: 9px; border: none; border-radius: 999px; background: var(--accent); color: #fff; padding: 12px 22px; font-size: 14.5px; font-weight: 600; transition: all .2s var(--ease); box-shadow: 0 4px 14px var(--accent-soft); }
.cz-btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cz-btn-ghost { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text); padding: 11px 20px; font-size: 14.5px; font-weight: 500; transition: all .2s var(--ease); }
.cz-btn-ghost:hover { background: var(--surface-3); border-color: var(--text-3); }
.cz-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cz-kicker.is-red { color: var(--red); }
.cz-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.cz-fade-in { animation: czFade .5s var(--ease) both; }
@keyframes czFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes czRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cz-serif { font-family: var(--font-serif); }
.cz-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: czSpin .8s linear infinite; margin: 60px auto; }
@keyframes czSpin { to { transform: rotate(360deg); } }
.cz-muted { color: var(--text-2); }
.cz-empty { text-align: center; padding: 60px 20px; color: var(--text-3); }

/* ---- header ---- */
.cz-header { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.cz-header-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 30px 12px; max-width: 1440px; margin: 0 auto; }
.cz-date { font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.cz-masthead { background: none; border: none; cursor: pointer; text-align: center; line-height: 1; }
.cz-masthead-title { font-family: var(--font-masthead); font-size: 40px; color: var(--text); letter-spacing: .01em; }
.cz-header-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.cz-nav { display: flex; align-items: center; gap: 4px; padding: 0 30px 12px; max-width: 1440px; margin: 0 auto; }
.cz-nav-badge { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--accent); background: var(--accent-soft); padding: 7px 13px; border-radius: 99px; margin-right: 8px; }
.cz-nav-link { border: none; background: none; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--text-2); padding: 8px 14px; border-radius: 9px; position: relative; transition: color .2s; }
.cz-nav-link.is-active { font-weight: 600; color: var(--text); }
.cz-nav-underline { position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2.5px; border-radius: 99px; background: var(--accent); }

/* ---- footer ---- */
.cz-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 20px; }
.cz-footer-inner { max-width: 1440px; margin: 0 auto; padding: 22px 36px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cz-footer-title { font-family: var(--font-masthead); font-size: 22px; }
.cz-footer-links { display: flex; gap: 20px; flex-wrap: wrap; flex: 1; }
.cz-footer-links a { font-size: 13px; color: var(--text-2); text-decoration: none; }
.cz-footer-copy { font-size: 13px; color: var(--text-3); }

main { flex: 1; }
.cz-screen { max-width: 1380px; margin: 0 auto; padding: 30px 36px 60px; }

/* ---- hero (browser) ---- */
.cz-hero { display: grid; grid-template-columns: 240px 1fr; gap: 34px; padding: 28px; margin-bottom: 26px; overflow: hidden; }
.cz-cover { position: relative; }
.cz-cover-img { border-radius: 0; padding: 7px; overflow: hidden; box-shadow: var(--shadow-lg); cursor: pointer; border: 1px solid var(--border); transition: transform .3s var(--ease); background: var(--paper); aspect-ratio: 1/1.41; }
.cz-cover-img:hover { transform: translateY(-4px); }
.cz-cover-img img { width: 100%; height: 100%; object-fit: cover; }
.cz-badge-new { position: absolute; bottom: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; padding: 6px 11px; border-radius: 99px; box-shadow: var(--shadow-md); }
.cz-badge-new span { width: 6px; height: 6px; border-radius: 99px; background: #fff; }
.cz-badge-trial { background: #2f8f5b; }
.cz-trial-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: rgba(47, 143, 91, 0.10); border: 1px solid rgba(47, 143, 91, 0.45); border-radius: 14px; padding: 16px 20px; margin-bottom: 22px; }
.cz-trial-banner .ic { display: inline-flex; width: 40px; height: 40px; border-radius: 10px; background: #2f8f5b; color: #fff; align-items: center; justify-content: center; flex-shrink: 0; }
.cz-trial-banner .tx { flex: 1; min-width: 180px; }
.cz-trial-banner .tx .t { font-family: var(--font-serif); font-size: 18px; font-weight: 700; }
.cz-trial-banner .tx .s { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.cz-trial-banner .cz-btn-primary { background: #2f8f5b; box-shadow: 0 4px 14px rgba(47, 143, 91, 0.25); }
.cz-trial-banner .cz-btn-primary:hover { background: #277a4d; }
.cz-trial-rib { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; background: #2f8f5b; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 4px 9px; border-radius: 99px; box-shadow: var(--shadow-md); z-index: 2; }
.cz-reader-trial { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(47, 143, 91, 0.12); border-bottom: 1px solid rgba(47, 143, 91, 0.4); padding: 9px 18px; font-size: 13.5px; }
.cz-reader-trial .lbl { font-weight: 700; color: #2f8f5b; letter-spacing: .04em; }
.cz-reader-trial button { margin-left: auto; border: none; background: #2f8f5b; color: #fff; font-weight: 600; font-size: 13px; padding: 7px 15px; border-radius: 99px; cursor: pointer; }
.cz-hero-meta { display: flex; flex-direction: column; min-width: 0; }
.cz-hero-title { font-family: var(--font-serif); font-weight: 700; font-size: 34px; line-height: 1.05; letter-spacing: -.015em; margin: 8px 0 14px; }
.cz-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
.cz-stat { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13.5px; }
.cz-toptopics { border-top: 1px solid var(--border-2); padding-top: 16px; margin-bottom: 18px; }
.cz-toptopic { display: flex; align-items: center; gap: 12px; background: none; border: none; text-align: left; padding: 6px 0; cursor: pointer; color: var(--text); width: 100%; }
.cz-toptopic .dot { width: 5px; height: 5px; border-radius: 99px; background: var(--accent); flex-shrink: 0; }
.cz-toptopic .t { font-family: var(--font-serif); font-size: 16px; font-weight: 600; line-height: 1.2; flex: 1; min-width: 0; }
.cz-toptopic .m { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.cz-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }

/* ---- toolbar + page grid ---- */
.cz-content-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 30px; align-items: start; }
.cz-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cz-datebtn { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 9px 14px 9px 12px; box-shadow: var(--shadow-sm); cursor: pointer; }
.cz-datebtn .ic { display: inline-flex; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); align-items: center; justify-content: center; }
.cz-datebtn .lbl { display: block; font-size: 10.5px; color: var(--text-3); letter-spacing: .04em; }
.cz-datebtn .val { display: block; font-size: 14px; font-weight: 600; }
.cz-seg { display: flex; gap: 3px; background: var(--surface-3); border-radius: 11px; padding: 4px; }
.cz-seg button { border: none; background: transparent; color: var(--text-2); font-weight: 500; border-radius: 8px; padding: 7px 13px; font-size: 13.5px; display: flex; align-items: center; gap: 6px; transition: all .2s var(--ease); }
.cz-seg button.is-active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }
.cz-pagegrid { display: grid; grid-template-columns: repeat(auto-fill, 176px); gap: var(--gap); justify-content: space-between; }
.cz-pagecard { width: 176px; cursor: pointer; animation: czRise .5s var(--ease) both; }
.cz-pagecard-thumb { position: relative; border-radius: 0; padding: 6px; overflow: hidden; border: 1px solid var(--border); background: var(--paper); box-shadow: var(--shadow-sm); transition: all .3s var(--ease); aspect-ratio: 1/1.41; }
.cz-pagecard:hover .cz-pagecard-thumb { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.cz-pagecard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cz-pagecard-over { position: absolute; inset: 0; background: linear-gradient(to top, var(--scrim), transparent 45%); opacity: 0; transition: opacity .3s var(--ease); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.cz-pagecard:hover .cz-pagecard-over { opacity: 1; }
.cz-open-chip { background: rgba(255,255,255,.95); color: #1b1a18; font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 99px; display: flex; align-items: center; gap: 6px; }
.cz-pagecard-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding: 0 2px; }
.cz-pagecard-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.cz-pagecard-num { font-size: 13px; font-weight: 600; color: var(--text-2); }
.cz-pagelist { padding: 10px; }
.cz-pagerow { display: flex; align-items: center; gap: 18px; padding: 12px; border-radius: 12px; cursor: pointer; transition: background .2s; }
.cz-pagerow:hover { background: var(--surface-3); }
.cz-pagerow-thumb { border-radius: 0; padding: 4px; overflow: hidden; border: 1px solid var(--border); flex-shrink: 0; box-shadow: var(--shadow-sm); width: 60px; aspect-ratio: 1/1.41; }
.cz-pagerow-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cz-pagerow-body { min-width: 0; flex: 1; }
.cz-pagerow-sec { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.cz-pagerow-head { font-family: var(--font-serif); font-weight: 600; font-size: 17px; line-height: 1.2; }

/* ---- sidebar ---- */
.cz-sidebar { display: flex; flex-direction: column; gap: 18px; }
.cz-sb-card { padding: 20px; }
.cz-sb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cz-sb-title { font-family: var(--font-serif); font-size: 19px; font-weight: 700; margin: 0; }
.cz-sup { display: flex; gap: 12px; align-items: stretch; }
.cz-sup-cover { width: 86px; height: 116px; border-radius: 6px; flex-shrink: 0; overflow: hidden; box-shadow: var(--shadow-md); background: #fff; border: 1px solid var(--border); display: flex; flex-direction: column; }
.cz-sup-cover .band { height: 38%; display: flex; align-items: center; justify-content: center; padding: 6px; color: #fff; font-weight: 800; font-size: 9px; line-height: 1.05; text-align: center; }
.cz-sup-cover .lines { padding: 7px; display: flex; flex-direction: column; gap: 4px; }
.cz-sup-cover .lines i { height: 4px; border-radius: 1px; background: rgba(0,0,0,.12); display: block; }
.cz-most { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; background: none; border: none; padding: 11px 0; cursor: pointer; }
.cz-most + .cz-most { border-top: 1px solid var(--border-2); }
.cz-most .rank { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--text-3); line-height: 1; width: 22px; flex-shrink: 0; }
.cz-most .t { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.25; color: var(--text); }
.cz-most .s { display: block; font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* ---- archive ---- */
.cz-archive-head { margin-bottom: 30px; }
.cz-archive-controls { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.cz-archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 30px 24px; }
.cz-ed { text-align: left; background: none; border: none; padding: 0; cursor: pointer; animation: czRise .5s var(--ease) both; }
.cz-ed-thumb { position: relative; border-radius: 0; padding: 6px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all .3s var(--ease); background: var(--paper); aspect-ratio: 1/1.41; }
.cz-ed:hover .cz-ed-thumb { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.cz-ed-thumb.is-current { border: 2px solid var(--accent); }
.cz-ed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cz-ed-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 4px 9px; border-radius: 99px; }
.cz-ed-meta { margin-top: 10px; }
.cz-ed-day { font-weight: 600; font-size: 14.5px; }
.cz-ed-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* ---- search ---- */
.cz-search-screen { max-width: 920px; margin: 0 auto; padding: 52px 36px 70px; }
.cz-search-head { text-align: center; margin-bottom: 30px; }
.cz-search-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 13px; border-radius: 99px; margin-bottom: 16px; }
.cz-search-title { font-family: var(--font-serif); font-weight: 700; font-size: 38px; letter-spacing: -.02em; margin: 0 0 10px; }
.cz-search-box { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 6px 6px 6px 20px; box-shadow: var(--shadow-md); margin-bottom: 18px; }
.cz-search-box input { flex: 1; border: none; outline: none; background: transparent; font-size: 17px; color: var(--text); font-family: var(--font-ui); padding: 12px 0; }
.cz-result { display: flex; gap: 20px; text-align: left; width: 100%; background: transparent; border: 1px solid transparent; border-radius: 14px; padding: 18px; cursor: pointer; transition: all .2s; animation: czRise .4s var(--ease) both; }
.cz-result:hover { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-md); }
.cz-result .sec { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cz-result .meta { font-size: 12px; color: var(--text-3); }
.cz-result .title { font-family: var(--font-serif); font-size: 21px; font-weight: 600; line-height: 1.2; margin: 6px 0; }
.cz-result .dek { font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.cz-ai { background: var(--surface); border: 1px solid var(--accent); border-radius: 16px; padding: 22px; margin-bottom: 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.cz-ai .glow { position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; border-radius: 99px; background: var(--accent-soft); }
.cz-ai .h { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; position: relative; }
.cz-ai .badge { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }

/* ---- account ---- */
.cz-account { max-width: 1180px; margin: 0 auto; padding: 40px 36px 70px; }
.cz-profile { display: flex; align-items: center; gap: 22px; padding: 26px; margin-bottom: 26px; flex-wrap: wrap; }
.cz-avatar { width: 70px; height: 70px; border-radius: 99px; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 28px; font-weight: 700; flex-shrink: 0; }
.cz-account-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 26px; align-items: start; }
.cz-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 34px; }
.cz-plan { position: relative; border-radius: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all .3s var(--ease); }
.cz-plan:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cz-plan.is-featured { background: var(--accent); color: #fff; border-color: var(--accent); }
.cz-plan .name { font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.cz-plan .price { font-size: 34px; font-weight: 700; }
.cz-plan ul { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 11px; }
.cz-plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
.cz-plan button { width: 100%; border: none; border-radius: 99px; padding: 13px; font-size: 14.5px; font-weight: 600; }
.cz-login-card { max-width: 380px; margin: 40px auto; padding: 30px; }
.cz-field { margin-top: 14px; }
.cz-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.cz-field input { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; background: var(--surface); color: var(--text); }

/* ---- reader overlay ---- */
.cz-reader { position: fixed; inset: 0; background: var(--bg-tint); z-index: 60; display: flex; flex-direction: column; animation: czFade .3s var(--ease); }
.cz-reader-top { display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--border); background: var(--glass); backdrop-filter: blur(14px); }
.cz-reader-top .sec { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cz-reader-top .sub { font-size: 13.5px; color: var(--text-2); }
.cz-reader-progress { height: 3px; background: var(--surface-3); }
.cz-reader-progress > div { height: 100%; background: var(--accent); transition: width .3s var(--ease); }
.cz-reader-stage { flex: 1; position: relative; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 28px; }
.cz-reader-page { position: relative; border-radius: 0; padding: 12px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); animation: czFade .35s var(--ease); background: var(--paper); }
.cz-reader-imgbox { position: relative; width: 100%; line-height: 0; }
.cz-reader-page img { width: 100%; height: auto; display: block; }
.cz-hotspot { position: absolute; border: none; background: transparent; cursor: pointer; border-radius: 4px; transition: background .15s var(--ease), box-shadow .15s var(--ease); padding: 0; }
.cz-hotspot:hover { background: rgba(42, 93, 176, 0.13); box-shadow: inset 0 0 0 2px var(--accent); }
.cz-hotspot.is-ad:hover { background: rgba(47, 143, 91, 0.16); box-shadow: inset 0 0 0 2px #2f8f5b; }
.cz-hotspot .cz-hs-tag { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 700; letter-spacing: .05em; color: #fff; background: var(--accent); padding: 3px 7px; border-radius: 5px; opacity: 0; transition: opacity .15s var(--ease); pointer-events: none; }
.cz-hotspot.is-ad .cz-hs-tag { background: #2f8f5b; }
.cz-hotspot:hover .cz-hs-tag { opacity: 1; }
.cz-modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; animation: czFade .2s var(--ease); }
.cz-modal { position: relative; background: var(--surface); border-radius: 14px; max-width: 680px; width: 100%; max-height: 86vh; overflow: auto; padding: 30px 34px; box-shadow: var(--shadow-lg); }
.cz-ad-modal { text-align: center; }
.cz-poll-opt { display: block; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 13px 16px; border-radius: 10px; margin: 8px 0; font-size: 15.5px; font-family: var(--font-serif); transition: all .15s var(--ease); }
.cz-poll-opt:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.cz-poll-bar { height: 11px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-top: 5px; }
.cz-poll-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .8s var(--ease); }
.cz-poll-fill.is-chosen { background: #2f8f5b; }
.cz-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cz-table th { background: var(--text); color: var(--surface); text-align: left; padding: 8px 10px; font-weight: 600; }
.cz-table th.num, .cz-table td.num { text-align: right; }
.cz-table td { padding: 8px 10px; border-bottom: 1px solid var(--border-2); }
.cz-table tbody tr:nth-child(even) td { background: var(--surface-2); }
.cz-table tr.is-hl td { background: var(--accent-soft); font-weight: 700; }
.cz-reader-arrow { width: 50px; height: 50px; position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: var(--glass); backdrop-filter: blur(10px); box-shadow: var(--shadow-md); }
.cz-reader-arrow.left { left: 14px; } .cz-reader-arrow.right { right: 14px; }
.cz-reader-arrow:hover { transform: translateY(-50%) scale(1.06); }
.cz-filmstrip { display: flex; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface); overflow-x: auto; }
.cz-film { flex-shrink: 0; border: 2px solid transparent; border-radius: 0; overflow: hidden; padding: 0; background: none; position: relative; box-shadow: var(--shadow-sm); transition: transform .2s; cursor: pointer; width: 46px; aspect-ratio: 1/1.41; }
.cz-film:hover { transform: translateY(-3px); }
.cz-film.is-active { border-color: var(--accent); }
.cz-film img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cz-film .n { position: absolute; bottom: 0; left: 0; right: 0; font-size: 9px; text-align: center; background: rgba(0,0,0,.55); color: #fff; font-weight: 600; padding: 1px 0; }
.cz-film.is-active .n { background: var(--accent); }
.cz-article { max-width: 720px; width: 100%; padding: 48px 28px 80px; margin: 0 auto; animation: czFade .4s var(--ease); }
.cz-article .sec { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.cz-article h1 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 20px; }
.cz-article .byline { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 14px; flex-wrap: wrap; }
.cz-article p { font-family: var(--font-serif); font-size: 19.5px; line-height: 1.66; color: var(--text); margin: 0 0 22px; text-wrap: pretty; }
.cz-article .sub { font-family: var(--font-serif); font-weight: 700; font-size: 22px; margin: 0 0 14px; }
.cz-article-list { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.cz-article-link { display: flex; gap: 12px; align-items: baseline; background: none; border: none; text-align: left; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--text); }
.cz-article-link:hover { background: var(--surface-3); }

/* ---- toasts / paywall ---- */
.cz-paywall { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); padding: 10px 16px; border-radius: 99px; background: var(--surface-3); margin: 12px auto; }

@media (max-width: 900px) {
  .cz-content-grid, .cz-account-grid { grid-template-columns: 1fr; }
  .cz-hero { grid-template-columns: 1fr; }
  .cz-plans { grid-template-columns: 1fr; }
  .cz-masthead-title { font-size: 30px; }
}

/* ---------------- language selector (sliding pill) ---------------- */
.cz-lang { position: relative; display: inline-flex; align-items: stretch; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-3); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); isolation: isolate; transition: border-color .22s var(--ease), box-shadow .22s var(--ease); }
.cz-lang:hover { border-color: var(--accent); }
.cz-lang-glider { position: absolute; top: 3px; left: 3px; width: calc(50% - 3px); height: calc(100% - 6px); background: linear-gradient(135deg, var(--accent-light), var(--accent)); border-radius: 999px; box-shadow: 0 3px 10px rgba(42, 93, 176, .42), inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .34s cubic-bezier(.34,1.56,.64,1); z-index: 0; }
.cz-lang.is-en .cz-lang-glider { transform: translateX(100%); }
.cz-lang-opt { position: relative; z-index: 1; min-width: 42px; padding: 5px 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--text-3); background: transparent; border: 0; -webkit-appearance: none; appearance: none; border-radius: 999px; cursor: pointer; transition: color .22s var(--ease), transform .22s var(--ease); }
.cz-lang-opt:hover:not(.is-active) { color: var(--text); transform: translateY(-1px); }
.cz-lang-opt.is-active { color: #fff; text-shadow: 0 1px 1.5px rgba(0, 0, 0, .35); }
.cz-lang-opt:active { transform: scale(.94); }

/* demo-bar inline company link */
.cz-demobar-link, .cz-demobar-link:visited { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cz-demobar-link:hover { opacity: .85; }
/* contact-page company credit */
.cz-contact-credit { text-align: center; margin-top: 30px; font-size: 14px; color: var(--text-2); }
.cz-contact-credit-link { color: var(--accent); font-weight: 600; }
.cz-contact-credit-link:hover { text-decoration: underline; }

/* ---------------- Apps teaser ---------------- */
.cz-apps { display: flex; flex-direction: column; gap: 56px; }
.cz-apps-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2, var(--surface)) 100%); border: 1px solid var(--border-2); border-radius: 18px; padding: 48px 44px; }
.cz-apps-title { font-family: var(--font-serif); font-size: 40px; line-height: 1.1; margin: 8px 0 16px; }
.cz-apps-intro { font-size: 17px; line-height: 1.7; color: var(--text-2); max-width: 52ch; margin: 0 0 26px; }
.cz-store-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cz-store-badge { display: inline-flex; align-items: center; gap: 11px; background: #111; color: #fff; border-radius: 11px; padding: 9px 18px; border: 1px solid #111; transition: transform .18s var(--ease), opacity .18s var(--ease); }
.cz-store-badge:hover { transform: translateY(-2px); opacity: .92; }
[data-theme="dark"] .cz-store-badge { background: #f4f4f4; color: #111; border-color: #f4f4f4; }
.cz-store-badge svg { stroke-width: 1.4; }
.cz-store-badge-tx { text-align: left; line-height: 1.15; }
.cz-store-badge-tx .s { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.cz-store-badge-tx .b { font-size: 17px; font-weight: 600; font-family: var(--font-serif); }
.cz-apps-soon { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 13px; color: var(--text-3); }
.cz-apps-hero-art { display: flex; justify-content: center; }

.cz-phone { position: relative; width: 230px; background: #0e0e0e; border-radius: 32px; padding: 10px; box-shadow: 0 22px 50px rgba(0,0,0,.28); border: 1px solid #1d1d1d; }
.cz-phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 64px; height: 6px; background: #2a2a2a; border-radius: 999px; z-index: 2; }
.cz-phone-screen { border-radius: 24px; overflow: hidden; background: var(--surface); aspect-ratio: 9 / 19; display: flex; }
.cz-phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.cz-phone-ph { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(160deg, var(--accent), #1b3a73); }
.cz-phone-ph-title { color: #fff; font-family: var(--font-serif); font-size: 22px; text-align: center; }
.cz-phone-label { position: absolute; bottom: -28px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--text-3); letter-spacing: .04em; }

.cz-apps-h2 { font-family: var(--font-serif); font-size: 26px; margin: 0 0 24px; text-align: center; }
.cz-apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cz-feat { background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; padding: 24px 20px; text-align: center; }
.cz-feat-ic { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 14px; }
.cz-feat-t { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.cz-feat-d { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.cz-apps-shots-row { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; padding-bottom: 36px; }

@media (max-width: 860px) {
  .cz-apps-hero { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; }
  .cz-apps-intro { margin-left: auto; margin-right: auto; }
  .cz-store-row, .cz-apps-soon { justify-content: center; }
  .cz-apps-grid { grid-template-columns: repeat(2, 1fr); }
  .cz-apps-title { font-size: 32px; }
}

/* ---------------- demo bar ---------------- */
.cz-demobar { background: var(--accent); color: #fff; }
[data-theme="dark"] .cz-demobar { background: #1b3a73; }
.cz-demobar-inner { max-width: 1240px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.cz-demobar-tag { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; letter-spacing: .08em; font-size: 11px; background: rgba(255,255,255,.18); padding: 3px 9px; border-radius: 999px; }
.cz-demobar-tx { opacity: .95; }
.cz-demobar-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--accent); font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 999px; transition: transform .18s var(--ease), opacity .18s var(--ease); }
.cz-demobar-cta:hover { transform: translateY(-1px); opacity: .92; }
[data-theme="dark"] .cz-demobar-cta { color: #1b3a73; }

/* ---------------- contact / demo page ---------------- */
.cz-contact { display: flex; flex-direction: column; gap: 8px; max-width: 880px; margin: 0 auto; }
.cz-contact-hero { padding: 40px 44px; }
.cz-contact-title { font-family: var(--font-serif); font-size: 36px; line-height: 1.12; margin: 8px 0 16px; }
.cz-contact-intro { font-size: 17px; line-height: 1.7; color: var(--text-2); max-width: 62ch; margin: 0 0 28px; }
.cz-contact-mail { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: color-mix(in srgb, var(--accent) 7%, transparent); border: 1px solid var(--border-2); border-radius: 14px; padding: 22px 26px; }
.cz-contact-mail-tx { flex: 1; min-width: 220px; }
.cz-contact-email { display: inline-block; font-family: var(--font-serif); font-size: 24px; font-weight: 600; color: var(--accent); margin: 4px 0 0; word-break: break-all; }
.cz-contact-email:hover { text-decoration: underline; }
.cz-contact-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .cz-contact-hero { padding: 30px 22px; }
  .cz-contact-title { font-size: 28px; }
  .cz-contact-grid { grid-template-columns: 1fr; }
  .cz-demobar-cta { margin-left: 0; }
}
