/* ScriptZaar — shared styles. System fonts only (no licensed web fonts). */
:root {
  --bg: #ffffff;
  --text: #1f1d1a;
  --muted: #5f5a53;
  --line: #ebe7e1;
  --soft: #faf9f7;
  --card: #ffffff;
  --gold: #f59e0b;
  --gold-hi: #fbbf24;
  --gold-soft: #fff6e3;
  --gold-text: #8a5800;
  --feat-bg: #fffaf0;
  --feat-line: #f1e1bf;
  --hero-a: #2a2622;
  --hero-b: #3b2f20;
  --bar: #1f1d1a;
  --ok: #15803d;
  --shadow: 0 10px 26px rgba(0, 0, 0, .08);
  color-scheme: light;
}
/* Light by default on every device (a shop should look bright and clean, like the big marketplaces).
   Dark is only used if a page sets data-theme="dark" on purpose. */
:root[data-theme="dark"] {
  --bg: #141311; --text: #efece6; --muted: #b3ada4; --line: #2d2a26; --soft: #1c1a18; --card: #1c1a18;
  --gold-soft: #2b2419; --gold-text: #f8c25c; --feat-bg: #1d1a16; --feat-line: #3a3126; --bar: #0f0e0d;
  --ok: #4ade80; --shadow: 0 10px 26px rgba(0, 0, 0, .4); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.row { display: flex; align-items: center; gap: 14px; }
.sp { flex: 1; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1f1d1a; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.serif { font-family: Georgia, "Times New Roman", serif; }
.icon { width: 22px; height: 22px; flex: none; }

/* header: dark bar + light category strip */
.top { background: var(--bar); color: #fff; }
.top .wrap { padding-top: 13px; padding-bottom: 13px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.3px; }
.logo img { width: 32px; height: 32px; }
.logo .z { color: var(--gold); margin-left: -10px; }
.top nav a { font-size: 15px; opacity: .85; margin-left: 22px; }
.top nav a:hover, .top nav a[aria-current="page"] { opacity: 1; color: var(--gold-hi); }
.top .btn.gold { padding: 9px 15px; font-size: 14px; margin-left: 22px; }
.cats { background: #fff; border-bottom: 1px solid var(--line); }
.cats .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cats a { padding: 12px 13px; font-size: 14.5px; font-weight: 600; color: #4a453e; white-space: nowrap; border-bottom: 3px solid transparent; }
.cats a:hover { color: var(--text); border-bottom-color: var(--gold); }

/* hero: light, two columns, real screenshots on the right */
.hero { background: radial-gradient(900px 420px at 85% 10%, #ffe9bf 0%, transparent 60%), linear-gradient(180deg, #fffaf0 0%, #ffffff 100%); color: var(--text); padding: 54px 0 58px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-text); }
.hero h1 { font-size: 48px; line-height: 1.08; margin: 10px 0 14px; letter-spacing: -1.2px; font-weight: 800; text-wrap: balance; }
.hero h1 em { font-style: normal; color: #c97a00; }
.hero p { margin: 0 0 24px; color: var(--muted); max-width: 540px; font-size: 17.5px; }
.collage { position: relative; height: 360px; }
.collage img { position: absolute; border-radius: 12px; border: 1px solid #e8e1d4; box-shadow: 0 22px 50px rgba(60, 40, 10, .18); background: #fff; }
.collage .c1 { width: 88%; right: 0; top: 0; }
.collage .c2 { width: 62%; left: 0; bottom: 0; }
.collage .badge { position: absolute; right: 6%; bottom: 14px; background: #fff; border: 1px solid #eadfcb; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; font-weight: 700; box-shadow: 0 10px 26px rgba(0, 0, 0, .1); display: flex; align-items: center; gap: 8px; }
.collage .badge i { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; display: inline-block; }
.search { display: flex; max-width: 600px; background: #fff; border: 2px solid var(--text); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.search input { flex: 1; border: 0; padding: 15px 16px; font: inherit; outline: none; min-width: 0; color: #1f1d1a; background: #fff; }
.search button { border: 0; background: var(--gold); color: #1f1d1a; font: inherit; font-weight: 800; padding: 0 24px; cursor: pointer; }
.results { max-width: 640px; margin-top: 8px; background: #fff; color: #1f1d1a; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 32px rgba(0, 0, 0, .3); }
.results a { display: block; padding: 11px 16px; border-top: 1px solid #eee; }
.results a:hover, .results a:focus { background: #fff6e3; }
.results small { color: #8a5800; font-weight: 700; margin-right: 8px; }
.results p { margin: 0; padding: 11px 16px; font-size: 14px; opacity: 1; color: #555; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips .lbl { font-size: 13.5px; color: var(--muted); align-self: center; margin-right: 2px; }
.chip { background: #fff; border: 1px solid var(--line); color: #4a453e; padding: 6px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.chip:hover { border-color: var(--gold); color: var(--text); }
.actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; align-items: center; }
.actions .price { margin-right: auto; }
.btn.sm { padding: 8px 12px; font-size: 13.5px; border-radius: 9px; }

/* sections */
section { padding-top: 40px; }
.head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.head h2 { margin: 0; font-size: 26px; letter-spacing: -.3px; }
.head a { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--gold-text); }

/* featured */
.feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: center; background: var(--feat-bg); border: 1px solid var(--feat-line); border-radius: 18px; padding: 24px; }
.feat img { border-radius: 12px; border: 1px solid var(--feat-line); }
.tag { display: inline-block; background: var(--gold); color: #1f1d1a; font-weight: 800; font-size: 11.5px; padding: 4px 9px; border-radius: 6px; letter-spacing: .4px; }
.feat h3 { font-size: 27px; margin: 10px 0 6px; letter-spacing: -.3px; line-height: 1.2; }
.feat p { margin: 0 0 12px; color: var(--muted); }
.ticks { margin: 0 0 18px; padding: 0; list-style: none; font-size: 15px; }
.ticks li { padding: 3px 0 3px 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.price { font-weight: 800; font-size: 18px; }
.price.big { font-size: 32px; }
.price small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 19px; border-radius: 11px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; }
.btn.gold { background: var(--gold); color: #1f1d1a; }
.btn.gold:hover { background: var(--gold-hi); }
.btn.soft { background: var(--soft); border: 1px solid var(--line); }

/* items */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
a.item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.name { font-weight: 700; }
.meta { font-size: 13px; color: var(--muted); }
.foot { display: flex; align-items: center; margin-top: auto; padding-top: 10px; }
.idea { border: 2px dashed var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 8px; color: var(--muted); }
.idea b { color: var(--text); font-size: 17px; }
.idea a { color: var(--gold-text); font-weight: 700; }

/* why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why div { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-size: 14.5px; color: var(--muted); }
.why b { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 4px; color: var(--text); }
.why svg { color: var(--gold); }

/* guides */
.guides { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.post small { color: var(--gold-text); font-weight: 800; font-size: 12px; letter-spacing: .6px; }
.post b { font-family: Georgia, serif; font-size: 20px; line-height: 1.25; }
.post span { font-size: 14.5px; color: var(--muted); }
a.post:hover { box-shadow: var(--shadow); }
.post.big { background: linear-gradient(160deg, var(--hero-b), var(--hero-a)); color: #fff; border: 0; justify-content: flex-end; min-height: 250px; }
.post.big b { font-size: 27px; }
.post.big span { color: #dcd3c6; }
.post.big small { color: var(--gold-hi); }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* cta + footer */
.cta { margin-top: 48px; background: var(--gold-soft); border-top: 1px solid var(--feat-line); border-bottom: 1px solid var(--feat-line); padding: 30px 0; }
.cta h2 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 700; }
.cta p { margin: 4px 0 0; color: var(--muted); }
footer { background: var(--bar); color: #ddd; padding: 34px 0 26px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 22px; }
footer h3 { margin: 0 0 8px; color: #fff; font-size: 14px; }
footer a, footer p { display: block; margin: 5px 0; opacity: .78; }
footer a:hover { opacity: 1; color: var(--gold-hi); }
footer .legal { border-top: 1px solid #34302b; margin-top: 24px; padding-top: 16px; opacity: .65; font-size: 13px; line-height: 1.7; }

@media (max-width: 900px) {
  .grid, .why { grid-template-columns: 1fr 1fr; }
  .feat, .guides { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .top nav a { margin-left: 14px; font-size: 14px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .collage { height: 300px; }
  .hero h1 { font-size: 38px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .grid, .why { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .hero { padding: 42px 0 46px; }
  .hero h1 { font-size: 32px; }
  .collage { height: 220px; }
  .top .btn.gold { display: none; }
  .search button { padding: 0 16px; }
  .feat { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== product page ===== */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 18px 0 0; }
.crumbs a:hover { color: var(--gold-text); }
.ptitle { padding: 10px 0 22px; border-bottom: 1px solid var(--line); }
.ptitle h1 { margin: 0 0 6px; font-size: 36px; line-height: 1.15; letter-spacing: -.6px; }
.ptitle p { margin: 0; color: var(--muted); font-size: 17px; max-width: 760px; }
.pmeta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pmeta span { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; color: #4a453e; }
.playout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 26px 0 10px; align-items: start; }
/* Screenshot on a laptop — click opens the full-screen viewer (.lb) */
.laptop { padding: 0 26px; }
.laptop .screen { background: #1f1d1a; border-radius: 16px 16px 0 0; padding: 12px 12px 9px; box-shadow: 0 28px 50px -24px rgba(60, 40, 10, .45); }
.laptop .base { height: 15px; background: linear-gradient(#dcd4c6, #b9b0a1); border-radius: 0 0 14px 14px; margin: 0 -26px; position: relative; }
.laptop .base::after { content: ""; position: absolute; left: 50%; top: 0; width: 100px; height: 5px; margin-left: -50px; background: #a69d8e; border-radius: 0 0 8px 8px; }
.zoombtn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.shotbig { display: block; width: 100%; height: auto; border-radius: 4px; }
.zoombtn .hint { position: absolute; right: 10px; bottom: 10px; background: rgba(31, 29, 26, .82); color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 6px 12px; display: flex; gap: 6px; align-items: center; pointer-events: none; }
.zoombtn .hint svg { width: 14px; height: 14px; }
.zoombtn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px; }
.thumbs button { padding: 0; border: 2px solid var(--line); border-radius: 9px; overflow: hidden; cursor: pointer; background: #fff; aspect-ratio: 16 / 10; }
.thumbs button[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 6px 16px rgba(245, 158, 11, .28); }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(15, 13, 11, .93); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lb.on { display: flex; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px #000; }
.lb button { position: absolute; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .13); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lb button:hover, .lb button:focus-visible { background: rgba(255, 255, 255, .28); }
.lb .x { top: 14px; right: 14px; }
.lb .prev { left: 14px; top: 50%; margin-top: -23px; }
.lb .next { right: 14px; top: 50%; margin-top: -23px; }
.lb .count { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #cfc6b6; font-size: 13.5px; }
@media (max-width: 600px) { .laptop { padding: 0 8px; } .laptop .base { margin: 0 -8px; } .thumbs { gap: 6px; } .lb .prev, .lb .next { top: auto; bottom: 44px; margin-top: 0; } }
.thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
/* Product bar — every software has its own menu: Overview · Guides · Support · Changelog · About */
.pbar { background: #2a2622; color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.pbar .wrap { display: flex; align-items: center; gap: 4px; }
.pbar .pname { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15.5px; padding: 11px 16px 11px 0; margin-right: 6px; border-right: 1px solid #47403a; white-space: nowrap; flex: none; }
.pbar .pname img { width: 26px; height: 26px; border-radius: 7px; }
.pbar .ptabs { display: flex; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.pbar .ptabs::-webkit-scrollbar { display: none; }
.pbar .ptabs a { padding: 14px 12px 11px; font-size: 14.5px; font-weight: 600; color: #cbc2b3; white-space: nowrap; border-bottom: 3px solid transparent; }
.pbar .ptabs a:hover { color: #fff; }
.pbar .ptabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.pbar .ptabs .n { display: inline-block; min-width: 19px; margin-left: 5px; padding: 0 6px; border-radius: 999px; background: #47403a; color: #e9e2d6; font-size: 11.5px; font-weight: 800; text-align: center; }
.pbar .sp { flex: 1; }
.pbar .pbuy { flex: none; background: var(--gold); color: #1f1d1a; font-weight: 800; font-size: 13.5px; border-radius: 9px; padding: 7px 13px; margin-left: 8px; white-space: nowrap; }
.pbar .pbuy:hover { background: var(--gold-hi); }
@media (max-width: 600px) { .pbar .pname { font-size: 0; gap: 0; padding-right: 10px; } .pbar .pbuy { padding: 6px 10px; } }
.buy { position: sticky; top: 70px; scroll-margin-top: 70px; border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--card); box-shadow: var(--shadow); }
.buy .price.big { font-size: 40px; }
.buy .launch { display: inline-block; background: var(--gold-soft); color: var(--gold-text); font-size: 12.5px; font-weight: 800; padding: 4px 9px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
.buy .btn { width: 100%; justify-content: center; margin-top: 10px; padding: 14px; font-size: 16px; }
.buy .ticks { margin: 16px 0 6px; font-size: 14.5px; }
.buy small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 10px; line-height: 1.5; }
.pdoc h2 { font-size: 26px; margin: 36px 0 10px; letter-spacing: -.3px; }
.pdoc h3 { font-size: 18px; margin: 22px 0 6px; }
.pdoc p { color: #3d3a35; }
.pdoc ul { padding-left: 20px; color: #3d3a35; }
.pdoc li { margin: 4px 0; }
.callout { background: var(--feat-bg); border: 1px solid var(--feat-line); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fbox { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); }
.fbox h3 { margin: 0 0 6px; }
.fbox ul { margin: 0; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 10px 0; background: var(--card); }
details summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details p { margin: 0 0 14px; }
table.req { width: 100%; border-collapse: collapse; font-size: 15px; }
table.req td { border-bottom: 1px solid var(--line); padding: 9px 4px; vertical-align: top; }
table.req td:first-child { font-weight: 700; width: 34%; }
@media (max-width: 900px) {
  .playout { grid-template-columns: 1fr; }
  .buy { position: static; }
  .fgrid { grid-template-columns: 1fr; }
  .ptitle h1 { font-size: 28px; }
}

/* ===== text pages: legal, guides, help ===== */
.pagehead { background: linear-gradient(180deg, #fffaf0 0%, #fff 100%); border-bottom: 1px solid var(--line); padding: 34px 0 30px; }
.pagehead h1 { margin: 8px 0 8px; font-size: 40px; line-height: 1.12; letter-spacing: -.8px; }
.pagehead p { margin: 0; color: var(--muted); font-size: 17.5px; max-width: 720px; }
.pagehead .crumbs { padding: 0; }
.doc { max-width: 760px; padding: 26px 0 10px; }
.doc h2 { font-size: 25px; margin: 34px 0 10px; letter-spacing: -.3px; line-height: 1.25; }
.doc h3 { font-size: 19px; margin: 24px 0 6px; }
.doc p, .doc li { color: #3d3a35; font-size: 16.5px; line-height: 1.7; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 5px 0; }
.doc a { color: var(--gold-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc code { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .92em; overflow-wrap: anywhere; }
.doc pre { background: #1f1d1a; color: #f3eee5; border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; margin: 12px 0; }
.doc pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.doc td, .doc th { overflow-wrap: anywhere; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--soft); }
.updated { color: var(--muted); font-size: 14px; }
.meta-line { color: var(--muted); font-size: 14px; margin-top: 10px; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--card); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.mailbox { display: inline-flex; align-items: center; gap: 10px; background: var(--feat-bg); border: 1px solid var(--feat-line); border-radius: 12px; padding: 14px 18px; font-size: 18px; font-weight: 700; }
.mailbox a { color: var(--text); text-decoration: none; }
.glist { display: grid; gap: 16px; padding: 26px 0 10px; grid-template-columns: repeat(3, 1fr); }
.head.gsoft { margin: 30px 0 -10px; align-items: center; }
.head.gsoft h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.head.gsoft img { border-radius: 7px; }
.softpick { display: flex; align-items: center; gap: 12px; max-width: 460px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); text-decoration: none !important; }
.softpick:hover { border-color: var(--gold); }
.softpick img { border-radius: 9px; flex: none; }
.softpick b { display: block; color: var(--text); }
.softpick small { display: block; color: var(--muted); font-size: 13.5px; }
.notfound { text-align: center; padding: 80px 0 60px; }
.notfound h1 { font-size: 64px; margin: 0; letter-spacing: -2px; }
@media (max-width: 900px) {
  .cards2, .glist { grid-template-columns: 1fr; }
  .pagehead h1 { font-size: 30px; }
}
