/* =============================================================
   Soupiska — landing page (static, no build step, no framework)
   Palette / font stack mirrored from Client/wwwroot/css/app.css
   default ("beach") theme — kept as plain values, no CSS variable
   trickery, since this file stands entirely on its own.
   ============================================================= */

:root {
  --bg:          oklch(0.97 0.008 195);
  --bg-elev:     oklch(0.999 0.005 195);
  --surface:     oklch(1 0 0);

  --ink:         oklch(0.22 0.03 240);
  --ink-soft:    oklch(0.45 0.04 240);
  --ink-mute:    oklch(0.62 0.03 240);

  --line:        oklch(0.90 0.015 195);
  --line-soft:   oklch(0.94 0.01 195);

  --accent:      oklch(0.55 0.085 215);
  --accent-soft: oklch(0.93 0.04 215);
  --accent-ink:  oklch(0.98 0.01 215);

  --warm:        oklch(0.72 0.16 55);
  --warm-ink:    oklch(0.25 0.05 55);
  --warm-soft:   oklch(0.94 0.05 55);

  --radius-sm:   8px;
  --radius-md:   10px;
  --radius:      14px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-full: 999px;

  --shadow:      0 1px 0 oklch(0.88 0.02 85 / .7), 0 8px 24px -12px oklch(0.3 0.05 240 / .15);
  --shadow-lg:   0 1px 0 oklch(0.88 0.02 85 / .7), 0 24px 60px -20px oklch(0.3 0.05 240 / .25);

  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          oklch(0.18 0.03 240);
    --bg-elev:     oklch(0.22 0.035 240);
    --surface:     oklch(0.26 0.04 240);
    --ink:         oklch(0.96 0.01 85);
    --ink-soft:    oklch(0.78 0.02 85);
    --ink-mute:    oklch(0.60 0.02 240);
    --line:        oklch(0.34 0.04 240);
    --line-soft:   oklch(0.30 0.035 240);
    --accent:      oklch(0.62 0.10 215);
    --accent-soft: oklch(0.30 0.05 215);
    --accent-ink:  oklch(0.98 0.01 215);
    --shadow:      0 1px 0 oklch(0.3 0.03 240), 0 8px 24px -12px oklch(0 0 0 / .4);
    --shadow-lg:   0 1px 0 oklch(0.3 0.03 240), 0 24px 60px -20px oklch(0 0 0 / .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--accent); }
a:hover { color: var(--warm-ink); }

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand-link { display: inline-flex; text-decoration: none; }
.brand-mark {
  height: 40px;
  aspect-ratio: 878.74 / 283.465;
  background: url('/landing/brand-mark.svg') center / contain no-repeat;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .1s, opacity .15s;
}
.btn-app:hover { color: var(--accent-ink); transform: translateY(-1px); }
.btn-app:active { transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 44px;
}
.hero-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--accent);
  margin: 0 0 6px;
}
h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 28px;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
}
.chips li {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* ---------- Generic sections ---------- */
section { padding: 40px 0; }
section + section { border-top: 1px solid var(--line); }

h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.feature h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Pro koho ---------- */
.for-whom p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 68ch;
  margin: 0;
}

/* ---------- Screenshots ---------- */
.screenshot-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.screenshot-list figure { margin: 0; }
.screenshot-list img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.screenshot-list figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Story ---------- */
.story p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 68ch;
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 0;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--accent);
  font-weight: 700;
}
.faq-item[open] summary::before { content: "–"; }
.faq-item p {
  margin: 0 0 16px 1.2em;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- Final CTA ---------- */
.final-cta { background: var(--bg-elev); }
.final-cta .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.final-cta h2 { margin: 0 0 10px; }
.final-cta p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 24px;
}
.btn-cta-final { padding: 12px 28px; font-size: 15px; }

/* ---------- Support / financing ---------- */
.support .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.support p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 66ch;
  margin: 0 0 22px;
}
.support strong { color: var(--ink); }
.support-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.btn-coffee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--warm-soft);
  color: var(--warm-ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid color-mix(in oklab, var(--warm) 35%, transparent);
}
.btn-coffee:hover { opacity: 0.85; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--warm-ink); }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
}
@media (min-width: 720px) {
  .wrap { max-width: 880px; }
}
