/* Reality Investor — minimal but polished CSS pre public stránky.
 * Cieľ: <10 KB gzipped, žiadny framework, dark accent + light bg.
 * Mobile-first, no media queries pre <600px (default = mobile layout).
 */

:root {
  --color-bg: #ffffff;
  --color-fg: #0b1623;
  --color-fg-muted: #6b7785;
  --color-fg-subtle: #94a0ad;
  --color-bg-subtle: #f4f6f8;
  --color-border: #e1e6eb;
  --color-primary: #1f6feb;
  --color-primary-hover: #1657c7;
  --color-success: #2ea043;
  --color-warning: #d29922;
  --color-danger: #cf222e;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(11, 22, 35, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 22, 35, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 22, 35, 0.12);

  --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-fg);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; margin-top: 3rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; color: var(--color-fg); }

p { margin: 0 0 1rem 0; }
ul, ol { margin: 0 0 1rem 0; padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

.text-muted { color: var(--color-fg-muted); }
.text-center { text-align: center; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header / nav ─────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-fg);
  text-decoration: none;
}
.brand-logo { font-size: 1.4rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  color: var(--color-fg-muted);
  font-weight: 500;
}
.nav-links a:hover { color: var(--color-fg); text-decoration: none; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.4;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms, transform 80ms;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary {
  background: var(--color-primary);
  color: white;
}
.btn-primary:hover { background: var(--color-primary-hover); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--color-fg);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-bg-subtle); }
.btn-google {
  background: white;
  color: var(--color-fg);
  border-color: var(--color-border);
}
.btn-google:hover { background: var(--color-bg-subtle); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--color-bg-subtle) 0%, var(--color-bg) 100%);
  padding: 5rem 0 4rem;
}
.hero-inner { max-width: 760px; }
.hero h1 { font-size: 2.75rem; line-height: 1.15; margin-bottom: 1.25rem; }
.hero .lead {
  font-size: 1.2rem;
  color: var(--color-fg-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.hero-note { font-size: 0.875rem; }

/* ── Features ──────────────────────────────────────────────────────────── */
.features { padding: 4rem 1.25rem; }
.features h2 { text-align: center; margin-bottom: 2.5rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 150ms, box-shadow 150ms;
}
.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { margin: 0; color: var(--color-fg-muted); font-size: 0.95rem; }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--color-fg);
  color: white;
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 { color: white; margin-top: 0; }
.cta-band p { color: #cdd5dd; font-size: 1.1rem; margin-bottom: 1.5rem; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.pricing-card {
  padding: 2rem;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card-featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}
.price-period {
  font-size: 1rem;
  color: var(--color-fg-muted);
  font-weight: 500;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}
.pricing-features li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.pricing-features li.muted { color: var(--color-fg-subtle); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list { margin-top: 2rem; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.5rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 0.5rem;
  font-size: 1.5rem;
  color: var(--color-fg-muted);
  font-weight: 400;
  transition: transform 200ms;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin-top: 0.75rem;
  color: var(--color-fg-muted);
  line-height: 1.6;
}

/* ── Pages (general layout) ────────────────────────────────────────────── */
.page { padding: 3rem 1.25rem; }
.page-narrow { max-width: 760px; }
.page h1 { margin-bottom: 0.5rem; }
.page .lead { font-size: 1.15rem; color: var(--color-fg-muted); margin-bottom: 2rem; }

/* ── Auth (login + register) ───────────────────────────────────────────── */
.auth-page {
  padding: 3rem 1.25rem;
  display: flex;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--color-fg-subtle);
  font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--color-border);
}
.auth-divider-dot { color: var(--color-fg-subtle); margin: 0 0.5rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-field span {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-fg);
}
.form-field input {
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 120ms;
  background: white;
}
.form-field input:focus { border-color: var(--color-primary); }
.form-hint { color: var(--color-fg-muted); font-size: 0.8rem; }
.auth-disclaimer {
  font-size: 0.85rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
}
.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-fg-muted);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-bg-subtle);
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
  border-top: 1px solid var(--color-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-fg-muted); margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 0.4rem; }
.footer-grid ul a { color: var(--color-fg); font-size: 0.95rem; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.footer-bottom p { margin: 0; font-size: 0.85rem; }

/* ── Responsive — mobile ──────────────────────────────────────────────── */
@media (max-width: 700px) {
  .nav-links li:nth-child(1),
  .nav-links li:nth-child(2) { display: none; }  /* Cenník + FAQ schované, pristúpiš cez footer */
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
  .hero .lead { font-size: 1.05rem; }
  .features { padding: 2.5rem 1.25rem; }
  h2 { font-size: 1.5rem; }
  .pricing-card-featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
