/* zardecki.dev — shared styles. Mirrors Shazbot's macOS-native look:
   SF system font, monochrome surfaces, a single blue accent, subtle
   hairline borders, rounded cards, automatic light/dark. */

:root {
  --accent: #007aff;
  --accent-hover: #0063cc;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #8e8e93;
  --border: rgba(0, 0, 0, 0.10);
  --border-strong: rgba(0, 0, 0, 0.16);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 24px rgba(0, 0, 0, 0.05);
  --red: #d9342b;
  --red-bg: rgba(217, 52, 43, 0.08);
  --green: #28a745;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #2f95ff;
    --accent-hover: #5aacff;
    --bg: #0d0d0f;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #8e8e93;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.20);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 30px rgba(0, 0, 0, 0.35);
    --red: #ff6961;
    --red-bg: rgba(255, 105, 97, 0.12);
    --green: #34c759;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro",
    system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: 2.6rem; margin: 0 0 0.4em; }
h2 { font-size: 1.6rem; margin: 2.4em 0 0.8em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 0.4em; }

p { margin: 0 0 1em; }

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

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav-links { margin-left: auto; display: flex; gap: 22px; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---- Hero ---- */
.hero { text-align: center; padding: 72px 0 40px; }
.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.hero .tagline {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 1.5em;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.6em;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 22px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border-strong);
}
.btn.secondary:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { color: var(--text-tertiary); font-size: 0.9rem; margin-top: 1em; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.product-card {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08), 0 14px 40px rgba(0,0,0,0.08);
}
.product-card img { width: 64px; height: 64px; border-radius: 15px; }
.product-card h3 { margin: 0 0 2px; }
.product-card p { margin: 0; color: var(--text-secondary); font-size: 0.98rem; }
.product-card .chevron { margin-left: auto; color: var(--text-tertiary); font-size: 1.4rem; }

/* ---- Screenshots ---- */
.shots { margin-top: 1.5em; }
.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.shot figcaption {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
}
.shot-lead { margin-bottom: 28px; }
.shot-lead img { border-radius: 14px; }
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px 24px;
}

/* ---- Feature grid ---- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 1em 0;
}
.feature h3 { margin: 0 0 4px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

/* ---- FAQ ---- */
.faq details {
  border: 0.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 0 20px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-tertiary); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p, .faq details > ul { margin: 0 0 18px; color: var(--text-secondary); }

/* ---- Callout (known issues / notes) ---- */
.callout {
  border-left: 3px solid var(--red);
  background: var(--red-bg);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 1em 0;
}
.callout.info { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.callout p:last-child { margin-bottom: 0; }

/* ---- Misc content ---- */
.lead { font-size: 1.2rem; color: var(--text-secondary); }
ul.clean { padding-left: 1.2em; }
ul.clean li { margin-bottom: 0.4em; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  padding: 1px 6px;
  border-radius: 5px;
}
.meta { color: var(--text-tertiary); font-size: 0.9rem; }
hr { border: none; border-top: 0.5px solid var(--border); margin: 2.5em 0; }

/* ---- Footer ---- */
.footer {
  border-top: 0.5px solid var(--border);
  margin-top: 80px;
  padding: 32px 0 48px;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer a { color: var(--text-secondary); }
.footer .spacer { margin-left: auto; }

@media (max-width: 600px) {
  h1 { font-size: 2.1rem; }
  .hero { padding: 48px 0 28px; }
  .nav-links { gap: 16px; }
}
