/* Akunting — marketing site. Brand tokens mirror the app (teal #337367 / #59b8a6),
   system fonts, monospaced digits for figures. Light + dark via prefers-color-scheme.
   No frameworks, no external requests — self-contained for static hosting. */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f6;
  --panel: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --text: #16181a;
  --text-secondary: #5b6169;
  --text-tertiary: #8a9099;
  --accent: #2c6a5e;
  --accent-strong: #337367;
  --accent-weak: rgba(51, 115, 103, 0.10);
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(16,32,28,.08);
  --radius: 16px;
  --maxw: 1080px;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --bg-alt: #131316;
    --panel: #161619;
    --border: rgba(255, 255, 255, 0.10);
    --text: #f2f3f5;
    --text-secondary: #a6acb5;
    --text-tertiary: #71777f;
    --accent: #6fc9b7;
    --accent-strong: #59b8a6;
    --accent-weak: rgba(89, 184, 166, 0.14);
    --on-accent: #04120f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 48px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
@media (max-width: 640px) { .section { padding: 60px 0; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand span { letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text-secondary); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 560px) { .nav a:not(.btn-store-sm) { display: none; } }

/* Buttons */
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff;
  padding: 13px 22px 13px 18px; border-radius: 13px;
  font-weight: 600; letter-spacing: -0.01em;
}
.btn-store:hover { text-decoration: none; opacity: 0.9; }
.btn-store svg { width: 26px; height: 26px; fill: #fff; }
.btn-store .lbl { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-store .lbl small { font-size: 11px; font-weight: 500; opacity: 0.85; }
.btn-store .lbl b { font-size: 18px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .btn-store { background: #fff; color: #000; } .btn-store svg { fill: #000; } }
.btn-store-sm { font-size: 15px; font-weight: 600; color: var(--accent) !important; }

/* Hero */
.hero { padding: 84px 0 40px; text-align: center; }
.hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); background: var(--accent-weak);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 700; max-width: 16ch; margin: 0 auto 20px; }
.hero .lede { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--text-secondary); max-width: 40ch; margin: 0 auto 32px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero .free { color: var(--text-tertiary); font-size: 14px; }

/* Trust bar */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.trust .item { text-align: center; }
.trust .item b { display: block; font-size: 15px; font-weight: 600; }
.trust .item small { color: var(--text-secondary); font-size: 13px; }
@media (max-width: 720px) { .trust .wrap { grid-template-columns: repeat(2, 1fr); } }

/* Section heads */
.head { text-align: center; max-width: 46ch; margin: 0 auto 48px; }
.head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 14px; }
.head p { color: var(--text-secondary); font-size: 1.05rem; margin: 0; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.card .glyph { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-weak);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--accent); }
.card .glyph svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.card h3 { font-size: 1.25rem; font-weight: 650; margin-bottom: 10px; }
.card p { color: var(--text-secondary); margin: 0 0 14px; }
.card ul { margin: 0; padding: 0; list-style: none; color: var(--text-secondary); font-size: 15px; }
.card li { position: relative; padding-left: 22px; margin: 7px 0; }
.card li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--accent); }

/* Screenshots */
.shots-bg { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 10px 4px 20px; scroll-snap-type: x mandatory; }
.shots figure { flex: 0 0 auto; width: 260px; margin: 0; scroll-snap-align: center; }
.shots img { width: 100%; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--panel); }
.shots figcaption { text-align: center; color: var(--text-secondary); font-size: 14px; margin-top: 12px; }
@media (max-width: 560px) { .shots figure { width: 78vw; } }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
@media (max-width: 640px) { .platforms { grid-template-columns: 1fr; } }
.platforms .p { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.platforms .p b { display: block; font-size: 1.1rem; }
.platforms .p small { color: var(--text-secondary); }

/* Vision showcase */
.vision { margin-top: 40px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.vision img { width: 100%; }

/* Closing CTA */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 10px; }
.cta-band p { color: var(--text-secondary); margin: 0 0 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 44px 0; color: var(--text-secondary); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { color: var(--text-secondary); }
.site-footer nav a:hover { color: var(--text); }
.site-footer .fine { flex-basis: 100%; color: var(--text-tertiary); font-size: 12.5px; line-height: 1.5; margin-top: 6px; }

/* Legal / doc pages */
.doc { max-width: 740px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
.doc .meta { color: var(--text-tertiary); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 1.3rem; font-weight: 650; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--text-secondary); }
.doc .lead { color: var(--text); font-size: 1.1rem; }
.doc a { font-weight: 500; }
.back { display: inline-block; margin-bottom: 24px; font-size: 14px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
