/* WickaSoft site — shared stylesheet.
   Two theme scopes: body.light (company pages, logo palette) and
   body.dark (PMClient product page, matching the WickaSoft PMClient
   carbon-grey + mint app theme). */

:root {
  --blue-deep: #1d5fb8;
  --blue-bright: #4da3f5;
  --navy: #17395c;
  --orange: #ef7c1f;
  --mint: #46d6a8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 30, 50, .06), 0 8px 24px rgba(16, 30, 50, .08);
}

body.light {
  --bg: #f5f7fa;
  --bg-accent: #eaf1f9;
  --surface: #ffffff;
  --ink: #1c2733;
  --muted: #5a6b7c;
  --border: #e2e8f0;
  --accent: var(--blue-deep);
  --accent-soft: rgba(29, 95, 184, .1);
  --link: #1d5fb8;
}

body.dark {
  --bg: #16191d;
  --bg-accent: #1b2026;
  --surface: #1f252c;
  --ink: #e8ecef;
  --muted: #9aa7b1;
  --border: #2c343d;
  --accent: var(--mint);
  --accent-soft: rgba(70, 214, 168, .12);
  --link: #6fd9b6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
body.light .site-header { background: rgba(245, 247, 250, .85); }
body.dark  .site-header { background: rgba(22, 25, 29, .85); }

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.brand .wicka { color: var(--ink); }
body.light .brand .wicka { color: var(--navy); }
.brand .soft { color: var(--muted); font-weight: 600; }

.site-nav { display: flex; gap: 6px; }
.site-nav a {
  color: var(--muted); font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 8px;
}
.site-nav a:hover { color: var(--ink); background: var(--accent-soft); text-decoration: none; }
.site-nav a.active { color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding: 72px 0 56px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 48px; align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  line-height: 1.15; letter-spacing: -.025em; margin-bottom: 18px;
}
.hero h1 .hl { color: var(--accent); }

.hero .lede {
  font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-bottom: 28px;
}

.hero-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #f5f6f8; /* matches the baked-in logo background */
}

/* index hero gets a soft gradient backdrop */
body.light .hero {
  background:
    radial-gradient(1000px 420px at 15% -10%, rgba(77, 163, 245, .16), transparent 60%),
    radial-gradient(700px 320px at 90% 0%, rgba(239, 124, 31, .10), transparent 60%);
}
body.dark .hero {
  background:
    radial-gradient(1000px 420px at 15% -10%, rgba(70, 214, 168, .10), transparent 60%),
    radial-gradient(700px 320px at 90% 0%, rgba(77, 163, 245, .08), transparent 60%);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }

.btn-primary { background: var(--accent); color: #fff; }
body.dark .btn-primary { color: #0d1f18; }

.btn-ghost {
  border-color: var(--border); color: var(--ink); background: var(--surface);
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */

section { padding: 56px 0; }
section.alt { background: var(--bg-accent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.kicker {
  color: var(--accent); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: .8rem; margin-bottom: 8px;
}
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; margin-bottom: 12px; }
.section-lede { color: var(--muted); max-width: 46em; margin-bottom: 32px; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .95rem; }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; }

/* product card on the home page */
.product-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 36px;
  align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.product-card .logo-tile {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: #f5f6f8;
}
.product-card h3 { font-size: 1.5rem; margin-bottom: 10px; letter-spacing: -.02em; }
.product-card p { color: var(--muted); margin-bottom: 18px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill {
  font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent);
}

/* ---------- screenshot frame (product page) ---------- */

.shotframe {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  background: var(--surface);
}
.shotframe figcaption {
  padding: 10px 16px; font-size: .85rem; color: var(--muted);
  border-top: 1px solid var(--border);
}
.shotframe img { width: 100%; height: auto; }
.shotframe .mock { display: none; width: 100%; height: auto; }
.shotframe.noshot img { display: none; }
.shotframe.noshot .mock { display: block; }

.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gallery figure { margin: 0; }

/* hero caption's "Illustration" note only applies while the mock is showing */
.shotframe:not(.noshot) figcaption em { display: none; }

/* ---------- lightbox (click a screenshot to enlarge) ---------- */

.shotframe img.zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 12, 15, .93);
  display: none; overflow: auto; text-align: center;
}
.lightbox.open { display: block; }
.lightbox img {
  display: inline-block; width: auto; height: auto;
  max-width: 95vw; max-height: 88vh;
  margin: 4vh auto 0; border-radius: 6px; cursor: zoom-in;
}
.lightbox.zoomed img {
  max-width: none; max-height: none;
  margin: 24px; border-radius: 0; cursor: zoom-out;
}
.lightbox .lb-caption { color: #cfd6dc; font-size: .9rem; padding: 12px 20px 28px; }
.lightbox.zoomed .lb-caption { display: none; }
.lightbox .lb-close {
  position: fixed; top: 14px; right: 18px; z-index: 101;
  font: inherit; font-size: 26px; line-height: 1; color: #fff;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px; padding: 5px 13px; cursor: pointer;
}
.lightbox .lb-close:hover { background: rgba(255, 255, 255, .15); }
body.lb-lock { overflow: hidden; }

.prose p { color: var(--muted); max-width: 46em; margin-bottom: 16px; }
.prose strong { color: var(--ink); }

.stack > * + * { margin-top: 16px; }

.fineprint { color: var(--muted); font-size: .875rem; margin-top: 14px; }

/* ---------- downloads table ---------- */

.dl-table { width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); }
.dl-table th, .dl-table td { padding: 14px 18px; text-align: left; font-size: .95rem; }
.dl-table th { background: var(--bg-accent); color: var(--muted);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.dl-table td { border-top: 1px solid var(--border); }
.dl-table td.note { color: var(--muted); font-size: .875rem; }
.dl-table code { font-size: .85rem; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

code {
  font-family: Consolas, "Cascadia Code", Menlo, monospace;
  background: var(--accent-soft); border-radius: 5px; padding: .1em .4em;
  font-size: .9em;
}

/* callout */
.callout {
  border-left: 4px solid var(--accent); background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; color: var(--muted); font-size: .95rem;
  border-top: 1px solid var(--border); border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.callout strong { color: var(--ink); }

/* ---------- docs ---------- */

.docs-layout {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px; align-items: start; padding: 48px 0 72px;
}
.docs-nav {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 2px;
}
.docs-nav a {
  color: var(--muted); font-size: .9rem; font-weight: 600;
  padding: 7px 12px; border-radius: 8px;
}
.docs-nav a:hover { color: var(--ink); background: var(--accent-soft); text-decoration: none; }

.docs-body h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -.02em; margin-bottom: 12px; }
.docs-body .lede { color: var(--muted); font-size: 1.05rem; margin-bottom: 8px; }
.docs-body h2 {
  margin: 44px 0 12px; padding-top: 8px; scroll-margin-top: 84px;
  border-top: 1px solid var(--border); padding-top: 24px;
}
.docs-body h3 { font-size: 1.05rem; margin: 22px 0 8px; letter-spacing: -.01em; }
.docs-body ul { margin: 0 0 16px 0; padding-left: 22px; }
.docs-body li { color: var(--muted); margin-bottom: 8px; max-width: 46em; }
.docs-body li strong, .docs-body p strong { color: var(--ink); }
.docs-body .callout { margin: 0 0 16px; max-width: 46em; }
.docs-body .table-scroll { margin: 0 0 16px; }

pre {
  font-family: Consolas, "Cascadia Code", Menlo, monospace; font-size: .875rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 12px 16px; margin: 0 0 16px;
  overflow-x: auto; max-width: 46em;
}
pre code { background: none; padding: 0; }

kbd {
  font-family: Consolas, "Cascadia Code", Menlo, monospace; font-size: .8rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 7px; white-space: nowrap;
}

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border); padding: 36px 0; margin-top: 24px;
  color: var(--muted); font-size: .9rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- responsive ---------- */

.hero-brandrow { display: flex; align-items: center; gap: 8px; }
.hero-brandrow svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-art, .hero .shotframe { order: -1; max-width: 460px; }
  .product-card { grid-template-columns: 1fr; }
  .product-card .logo-tile { max-width: 300px; }
}
