/* Finolio — public site
   Dark, minimal, premium. System font stack only. No external deps. */

:root {
  --bg: #07090c;
  --bg-elev: #0d1117;
  --bg-card: #11151c;
  --border: #1f2630;
  --border-strong: #2a3340;
  --text: #e6ebf2;
  --text-dim: #9aa4b2;
  --text-faint: #6b7585;
  --accent: #34d399;
  --accent-2: #22d3ee;
  --accent-glow: rgba(52, 211, 153, 0.15);
  --danger: #f87171;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  --max-w: 1100px;
  --max-w-prose: 720px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px 400px at 70% -10%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(600px 400px at 10% 10%, rgba(52, 211, 153, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Layout primitives */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.prose {
  max-width: var(--max-w-prose);
  margin: 0 auto;
}

/* Header */
.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 12, 0.7);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0a0f0d;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.04em;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 160ms ease, background 160ms ease;
}
.nav a:hover {
  color: var(--text);
  background: var(--bg-card);
}
.nav a.cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0f0d;
  font-weight: 600;
}
.nav a.cta:hover {
  filter: brightness(1.1);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* Hero */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
  background: rgba(52, 211, 153, 0.04);
}
h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 36px;
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0f0d;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px var(--accent-glow);
}
.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-elev);
  border-color: var(--text-faint);
}

/* App Store badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 150ms ease, box-shadow 200ms ease;
}
.appstore-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.appstore-badge svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  flex-shrink: 0;
}
.appstore-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.appstore-small {
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 500;
}
.appstore-big {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Feature grid */
.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(34, 211, 238, 0.15));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* Doc page */
.doc {
  padding: 64px 0 96px;
}
.doc-header {
  margin-bottom: 48px;
  text-align: left;
}
.doc-header h1 {
  font-size: clamp(36px, 5vw, 52px);
}
.doc-meta {
  color: var(--text-faint);
  font-size: 14px;
  margin-top: 8px;
}
.doc h2 {
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  font-weight: 600;
}
.doc h3 {
  font-size: 18px;
  margin: 32px 0 12px;
  font-weight: 600;
  color: var(--text);
}
.doc p,
.doc ul,
.doc ol {
  color: var(--text-dim);
  margin-bottom: 16px;
}
.doc strong {
  color: var(--text);
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li {
  margin-bottom: 8px;
}
.doc a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.doc a:hover {
  border-bottom-color: var(--accent);
}
.doc code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}
.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin: 24px 0;
}
.callout p {
  margin-bottom: 0;
  color: var(--text);
}

/* FAQ */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--text-faint);
  transition: transform 200ms ease;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details[open] summary {
  border-bottom: 1px solid var(--border);
}
.faq-body {
  padding: 18px 22px;
  color: var(--text-dim);
  line-height: 1.7;
}
.faq-body p { margin-bottom: 12px; }
.faq-body p:last-child { margin-bottom: 0; }

/* Contact card */
.contact-card {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.04), rgba(34, 211, 238, 0.04));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin: 48px 0;
}
.contact-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.contact-card p {
  color: var(--text-dim);
  margin-bottom: 20px;
}
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  transition: border-color 160ms ease;
}
.email-link:hover {
  border-color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 96px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 160ms ease;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-copy {
  color: var(--text-faint);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .nav a:not(.cta) { display: none; }
  .doc { padding: 40px 0 64px; }
  .contact-card { padding: 28px 20px; }
}
