/* LogicalVue Software - shared styles. Plain CSS, no build step. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --surface: #ffffff;
  --text: #1c1f24;
  --muted: #5c6470;
  --line: #e1e4e9;
  --accent: #1f6feb;
  --accent-strong: #1558c0;
  --accent-soft: #e8f0fe;
  --good: #1e8e4a;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 28px rgba(16, 24, 40, .08);
  --radius: 14px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --bg-soft: #161920;
    --surface: #1a1d24;
    --text: #eceef2;
    --muted: #9aa3b0;
    --line: #2a2f39;
    --accent: #5b9dff;
    --accent-strong: #8ab8ff;
    --accent-soft: #1b2740;
    --good: #4cc27a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .92em; background: var(--bg-soft); padding: .1em .35em; border-radius: 5px; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 760px); margin-inline: auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { display: block; height: 32px; width: auto; }
.brand .logo-mark { display: none; }
.brand .logo-mark img { border-radius: 8px; }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

/* Sections */
section { padding: 72px 0; }
.alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head .eyebrow { color: var(--accent); font-size: .82rem; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem; }

/* Hero */
.hero { padding: 84px 0 56px; }
.hero .lead { font-size: 1.25rem; color: var(--muted); max-width: 640px; }
.hero-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-product { display: flex; align-items: center; gap: 18px; margin-bottom: 1.2rem; }
.hero-product img { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow); }
.hero-product .name { font-size: 1.1rem; font-weight: 700; }
.hero-product .meta { color: var(--muted); font-size: .95rem; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .muted, .muted { color: var(--muted); }
.product-card { display: flex; flex-direction: column; gap: 14px; }
.product-card .head { display: flex; align-items: center; gap: 16px; }
.product-card .head img { width: 64px; height: 64px; border-radius: 15px; }
.product-card .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 16px; font-weight: 600; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent); padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.tag-free { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }

/* Screenshots */
.shot { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: var(--surface); }
.shot img { width: 100%; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .95rem; margin-top: 10px; }

/* Tool directory */
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.cat h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; margin-bottom: .7em; }
.cat h3 span { color: var(--muted); font-size: .85rem; font-weight: 500; }
.cat ul { list-style: none; margin: 0; padding: 0; }
.cat li { padding: 7px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.cat li:first-child { border-top: 0; }
.cat li strong { display: block; font-weight: 600; }
.cat li span { color: var(--muted); display: block; font-size: .88rem; line-height: 1.4; }

/* Pricing */
.price-card { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.price-card .price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.price-card.best { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset, var(--shadow); }
.price-card .btn { justify-content: center; margin-top: auto; }

/* Lists and FAQ */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 28px; position: relative; margin-bottom: .5em; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { margin: .8em 0 0; color: var(--muted); }

.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.specs h3 { font-size: 1rem; }
.specs p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Legal text */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin: 2em 0 .5em; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; }
.site-footer a { color: var(--muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .hero-split { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .hero { padding: 52px 0 36px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-nav a { padding: 8px 8px; font-size: .9rem; }
  .brand .logo-full { display: none; }
  .brand .logo-mark { display: block; }
}
