/* LingMark — the app's own two faces.
   Daylight (cool paper, blue accent) by day; Lamplight (warm dark, amber accent) at night.
   Same bones as the other H Ling sites; window frames instead of phones, because this is a Mac app. */

:root {
  --bg: #eef0f3;
  --bg-tint: #e4e8ee;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --text: #0f1419;
  --muted: #55606e;
  --border: #dde2e9;
  --hairline: #e6eaef;
  --accent: #0a63c9;
  --accent-strong: #084f9f;
  --accent-soft: #e2edfb;
  --sage: #0f6b3a;
  --sage-soft: #e3f1e8;
  --amber: #b8721c;
  --button: #0f1419;
  --button-text: #ffffff;
  --shadow: 28px 60px rgba(15, 20, 25, 0.16);
  --shadow-soft: 14px 30px rgba(15, 20, 25, 0.10);
  --radius: 16px;
  --radius-lg: 24px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #211a14;
  --bg-tint: #2a221a;
  --surface: #2a221a;
  --surface-soft: #342a20;
  --text: #f1e6d4;
  --muted: #a5937d;
  --border: #3d3226;
  --hairline: #33291f;
  --accent: #e5a54b;
  --accent-strong: #f0bb6c;
  --accent-soft: #3a2c1a;
  --sage: #9cbf7f;
  --sage-soft: #2b3122;
  --amber: #e5a54b;
  --button: #f1e6d4;
  --button-text: #211a14;
  --shadow: 30px 70px rgba(0, 0, 0, 0.55);
  --shadow-soft: 16px 36px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

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

body {
  margin: 0;
  min-width: 320px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1100px 600px at 85% -8%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(900px 520px at -5% 8%, var(--sage-soft) 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
code, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}
kbd { font-weight: 600; }

.container {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand .mark { width: 30px; height: 30px; flex: none; border-radius: 8px; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--text); }
.site-nav a.nav-download { color: var(--accent-strong); }

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover { transform: translateY(-1px); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 20px 0 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); }

h1, h2, h3, p { margin-top: 0; }

.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  font-weight: 800;
}

.hero-tagline {
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 18px;
}

.hero-lead {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 520px;
  margin-bottom: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
}

.btn-primary { background: var(--accent); color: #fff; }
html[data-theme="dark"] .btn-primary { color: #211a14; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10, 99, 201, 0.28); }

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn .icon { width: 18px; height: 18px; }

.hero-note {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-note code { font-size: 12px; }

/* ---------- window frames ---------- */
.window {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 var(--shadow);
}

.window img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface-soft);
}

.hero-showcase { position: relative; }

.hero-showcase .window { transform: rotate(-1deg) translateY(4px); }
.hero-showcase .window:hover { transform: rotate(0) translateY(0); transition: transform 0.35s ease; }

.hero-blob {
  position: absolute;
  inset: -10% -8% -10% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 78%);
  filter: blur(8px);
}

/* ---------- trust strip ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 36px;
  padding: 24px 30px;
  margin: 0 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 var(--shadow-soft);
}

.trust span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.trust .check { width: 19px; height: 19px; color: var(--sage); flex: none; }

/* ---------- sections ---------- */
.section { padding: 78px 0; border-top: 1px solid var(--hairline); }
.section--plain { border-top: none; }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  color: var(--accent-strong);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 14px;
}

.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- feature splits ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

.split + .split { margin-top: 84px; }
.split.reverse .split-media { order: -1; }

.split-body h2 { font-size: clamp(26px, 3vw, 34px); }
.split-body p { color: var(--muted); font-size: 16.5px; }

.tick-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.tick-list .check { width: 20px; height: 20px; color: var(--sage); flex: none; margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chip.sage .dot { background: var(--sage); }
.chip.amber .dot { background: var(--amber); }

/* ---------- feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover { transform: translateY(-3px); box-shadow: 0 var(--shadow-soft); }

.feature-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-ico svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ---------- privacy band ---------- */
.band {
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 var(--shadow-soft);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.band .lock { width: 52px; height: 52px; margin: 0 auto 18px; color: var(--accent-strong); }
.band .lock svg { width: 52px; height: 52px; }
.band p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto; }

/* ---------- download band ---------- */
.download-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--border);
  box-shadow: 0 var(--shadow-soft);
}
.download-band p { color: var(--muted); }
.download-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.download-meta li { display: flex; gap: 10px; align-items: baseline; }
.download-meta strong { min-width: 96px; color: var(--muted); font-weight: 600; }
.download-meta code { word-break: break-all; }

.first-open {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.first-open h3 { font-size: 15px; margin-bottom: 8px; }
.first-open ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- info cards, faq ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.info-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.info-card h2, .info-card h3 { font-size: 17px; margin-bottom: 8px; }
.info-card p, .info-card li { color: var(--muted); font-size: 15px; }
.info-card a { color: var(--accent-strong); }
.info-card ul { padding-left: 18px; margin: 0; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--hairline); padding: 6px 0; }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 32px 14px 0;
  font-weight: 700;
  font-size: 16.5px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--muted); font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 0 0 14px; font-size: 15.5px; }

/* ---------- closing ---------- */
.closing { text-align: center; padding: 60px 0 40px; }
.closing h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 22px; }

/* ---------- subpages ---------- */
.page-heading { padding: 10px 0 34px; }
.page-heading h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.02em; margin-bottom: 8px; }
.page-heading p { color: var(--muted); font-size: 17px; margin: 0; }

.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--accent-strong); }
.prose strong { color: var(--text); }

.note-card { padding: 20px 24px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--border); margin-bottom: 8px; }
.note-card p { color: var(--text); margin: 0; }

.release { max-width: 800px; }
.release-entry { position: relative; padding: 0 0 36px 28px; border-left: 2px solid var(--hairline); }
.release-entry::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.release-entry .ver { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.release-entry h2 { font-size: 24px; margin: 0; }
.release-entry .date { color: var(--muted); font-size: 14px; }
.release-entry .pill { padding: 2px 10px; border-radius: 999px; background: var(--sage-soft); color: var(--sage); font-size: 12px; font-weight: 700; }
.release-entry h3 { font-size: 16px; margin: 18px 0 6px; }
.release-entry ul { padding-left: 20px; margin: 0; }
.release-entry li { color: var(--muted); font-size: 15.5px; margin-bottom: 6px; }
.release-entry li strong { color: var(--text); }

/* ---------- footer ---------- */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; }
.footer-brand .mark { width: 24px; height: 24px; border-radius: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.site-footer p { margin: 0; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .hero, .split, .download-band { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .hero-showcase .window { transform: none; }
  .gallery { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-nav { justify-content: flex-start; gap: 14px; }
  .band, .download-band { padding: 32px 22px; }
}
