/* Katalogue website. A software-directory look: white cards on a light grey page, a navy
   band, orange calls to action, green feature checks, star ratings. */

:root {
  --navy: #0b2a4a;
  --navy-2: #123a63;
  --navy-3: #1c4b7d;
  --blue: #0e62c8;
  --blue-soft: #e8f1fc;
  --orange: #ff8a1f;
  --orange-hover: #ec7608;
  --star: #ffa41b;
  --green: #12935a;
  --green-soft: #e7f6ee;
  --brand: #6f7ff5;
  --bg: #f3f5f8;
  --card: #ffffff;
  --border: #dfe4ea;
  --border-strong: #c9d1db;
  --text: #1b2533;
  --muted: #5b6878;
  --danger: #c93a3a;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(11, 42, 74, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Yu Gothic UI", "Malgun Gothic", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* In-page links land below the sticky header and section tabs (site.js keeps --sticky exact). */
[id] { scroll-margin-top: calc(var(--sticky, 130px) + 14px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: 34px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand small { font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { color: var(--text); font-weight: 600; font-size: 15px; padding: 22px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a.on { text-decoration: none; border-bottom-color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .link { color: var(--navy); font-weight: 600; font-size: 15px; }
/* language menu: a <details> dropdown, works without JavaScript */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--navy); font-weight: 600; font-size: 14px; padding: 6px 8px; border-radius: 6px; white-space: nowrap; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { background: var(--bg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; min-width: 170px; display: grid; z-index: 60; }
.lang-menu a { color: var(--text); padding: 7px 10px; border-radius: 6px; font-size: 14px; }
.lang-menu a:hover { background: var(--bg); text-decoration: none; }
.lang-menu a.on { font-weight: 700; color: var(--blue); background: var(--blue-soft); }
.nav a, .header-actions a { white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 18px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 var(--font); padding: 13px 22px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-hover); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border-strong); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------------------------------------------------------------- band and breadcrumbs */
.band { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #dbe6f3; padding: 18px 0 92px; }
.band.short { padding-bottom: 36px; }
.band h1 { color: #fff; }
.crumbs { font-size: 13.5px; color: #a9bdd4; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: #cfe0f3; }
.crumbs span { opacity: .6; }
.band .lead { color: #c9d8ea; font-size: 18px; max-width: 760px; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.section { margin: 22px 0; }
.section > .card { padding: 28px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

/* product header (overlaps the band) */
.product-head { margin-top: -72px; padding: 28px; display: grid; grid-template-columns: 112px 1fr 300px; gap: 26px; align-items: start; }
.product-logo { width: 112px; height: 112px; border: 1px solid var(--border); border-radius: 12px; display: grid; place-items: center; background: #fff; }
.product-logo svg { width: 84px; height: 84px; }
.product-head h1 { margin-bottom: 4px; }
.vendor { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.rating-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 15px; }
.stars { --pct: 0%; position: relative; display: inline-block; font-size: 19px; line-height: 1; letter-spacing: 2px; color: #d6dbe2; }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--pct); overflow: hidden; color: var(--star); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy); background: #eef2f7; border: 1px solid #e0e6ee; border-radius: 999px; padding: 5px 11px; }
.chip.green { color: var(--green); background: var(--green-soft); border-color: #cdebdc; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.price-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: #fafbfd; }
.price-box .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.price-box .amount { font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1.1; margin: 4px 0; }
.price-box .amount small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-box ul { list-style: none; padding: 0; margin: 12px 0 0; font-size: 14px; }
.price-box li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--border); }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--muted); }

/* tabs */
.tabs { position: sticky; top: 66px; z-index: 40; background: #fff; border-bottom: 1px solid var(--border); margin-top: 22px; }
.tabs .container { display: flex; gap: 6px; overflow-x: auto; }
.tabs a { padding: 15px 14px; font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--navy); text-decoration: none; border-bottom-color: var(--border-strong); }
.tabs a.on { color: var(--navy); border-bottom-color: var(--blue); }

/* overview */
.grid-2 { display: grid; grid-template-columns: 1fr 340px; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 10px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.info-list li:first-child { border-top: 0; }
.info-list b { color: var(--text); }
.kv-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }

/* features */
.feature-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 40px; }
.feature-group h3 { font-size: 16px; margin: 18px 0 8px; color: var(--navy); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 6px 0 6px 30px; font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2312935a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.checks li b { font-weight: 700; }
.new-tag { font-size: 11px; font-weight: 800; color: #fff; background: var(--orange); border-radius: 4px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }

/* screenshots */
.shots { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.shots .side { display: grid; gap: 14px; }
.shot { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #111318; display: block; position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.shot:hover { box-shadow: var(--shadow-lg); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.plan { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: #fff; position: relative; }
.plan.featured { border: 2px solid var(--orange); box-shadow: var(--shadow-lg); }
.plan .ribbon { position: absolute; top: -12px; left: 24px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 4px; letter-spacing: .03em; }
.plan .amount { font-size: 46px; font-weight: 800; color: var(--navy); }
.plan .amount small { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan .btn { width: 100%; margin: 16px 0 6px; }

/* comparison */
.alt-list { display: grid; gap: 12px; }
.alt { display: grid; grid-template-columns: 56px 1fr 170px 170px; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.alt.us { border: 2px solid var(--brand); background: #f7f8ff; }
.alt .mono { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; }
.alt h3 { margin: 0 0 2px; font-size: 17px; }
.alt .meta { font-size: 13.5px; color: var(--muted); }
.alt .price { font-weight: 800; color: var(--navy); }
table.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.compare thead th { background: #f6f8fb; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.compare td.us { background: #f7f8ff; font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

/* reviews */
.review-summary { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; }
.big-score { font-size: 54px; font-weight: 800; color: var(--navy); line-height: 1; }
.review { border-top: 1px solid var(--border); padding: 18px 0; }
.review h4 { font-size: 17px; margin: 6px 0; }
.verified { font-size: 12px; font-weight: 800; color: var(--green); background: var(--green-soft); border-radius: 4px; padding: 2px 7px; margin-left: 6px; }
.empty { text-align: center; padding: 26px; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--muted); }

/* faq */
details.faq { border-top: 1px solid var(--border); padding: 4px 0; }
details.faq:first-of-type { border-top: 0; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 14px 30px 14px 0; position: relative; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; color: var(--blue); }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: #34404f; }

/* forms */
.form { display: grid; gap: 14px; }
.form label { font-weight: 700; font-size: 14px; display: grid; gap: 6px; }
.form input, .form textarea, .form select { font: 16px var(--font); padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; color: var(--text); width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mono-input { font-family: var(--mono) !important; letter-spacing: .04em; }
.notice { padding: 12px 14px; border-radius: 6px; font-size: 15px; }
.notice.ok { background: var(--green-soft); color: #0d6b42; border: 1px solid #bfe3cf; }
.notice.err { background: #fdeeee; color: #9b2222; border: 1px solid #f3c8c8; }
.notice.info { background: var(--blue-soft); color: #0a4a99; border: 1px solid #cfe0f6; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 30px; color: #d6dbe2; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }

/* download */
.os-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.os-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.os-card.detected { border: 2px solid var(--orange); }
.os-card svg { width: 42px; height: 42px; color: var(--navy); }

/* cta band and footer */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; border-radius: 12px; padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 30px 0; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #c9d8ea; margin: 0; }
.site-footer { background: var(--navy); color: #b9c9db; margin-top: 50px; padding: 44px 0 26px; font-size: 14.5px; }
.site-footer a { color: #dde8f4; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 26px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }

/* prose (legal pages) */
.prose { max-width: 820px; }
.prose h2 { font-size: 21px; margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }

/* admin */
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin th, .admin td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.admin .stat { font-size: 30px; font-weight: 800; color: var(--navy); }
.pill { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: #eef2f7; }
.pill.active, .pill.approved { background: var(--green-soft); color: var(--green); }
.pill.revoked, .pill.rejected { background: #fdeeee; color: var(--danger); }
.pill.pending { background: #fff4e5; color: #a35a00; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .site-header .container { gap: 18px; }
  .nav { gap: 14px; }
  .nav a, .header-actions .link { font-size: 14px; }
}
@media (max-width: 980px) {
  .product-head { grid-template-columns: 84px 1fr; }
  .product-head .price-box { grid-column: 1 / -1; }
  .product-logo { width: 84px; height: 84px; }
  .product-logo svg { width: 62px; height: 62px; }
  .grid-2, .shots, .review-summary { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .alt { grid-template-columns: 48px 1fr; }
  .alt .col { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  h1 { font-size: 27px; }
  .container { padding: 0 16px; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 16px; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border: 0; }
  .menu-toggle { display: block; }
  .header-actions .link { display: none; }
  .lang-switch summary span { display: none; }
  .site-header .container { gap: 12px; }
  .site-header .header-actions { margin-left: auto; }
  .menu-toggle { order: 3; }
  .product-head { grid-template-columns: 1fr; padding: 20px; }
  .feature-groups, .grid-3, .os-cards, .form .row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 26px; }
  .section > .card { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
