/*
Theme Name: Getsper
Theme URI: https://getsper.com
Author: Getsper
Description: Light, mobile-first WordPress theme for Getsper.com — hardcoded HTML home page, CMS-managed pages and blog.
Version: 0.1.0
License: GPL-2.0-or-later
Text Domain: getsper
*/

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #f1f5f9;
  --text: #0f172a;
  --text-sec: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-subtle: #cbd5e1;
  --accent: #10b981;
  --accent-dark: #059669;
  --accent-soft: rgba(16, 185, 129, 0.03);
  --accent-ring: rgba(16, 185, 129, 0.145);
  --shadow-btn: 0 4px 12px rgba(14, 165, 233, 0.2);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.3px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; -webkit-tap-highlight-color: transparent; cursor: pointer; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 3px; }
@media (max-width: 480px) { body { font-size: 14px; } }

/* ---------- Nav ---------- */
.gs-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-bottom: 1px solid transparent;
  padding: 0 16px;
  display: flex; align-items: center; justify-content: center;
  height: 56px;
  transition: all .3s var(--ease);
}
.gs-nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1200px; margin: 0 auto; }
.gs-nav.is-scrolled { border-bottom-color: var(--border); background: rgba(255, 255, 255, 0.97); }
.gs-nav__brand { font-weight: 700; font-size: 20px; color: var(--text); letter-spacing: -0.02em; }
.gs-nav__links { display: flex; align-items: center; gap: 24px; }
.gs-nav__link { font-size: 18px; font-weight: 500; color: var(--text-muted); padding-bottom: 6px; border-bottom: 2px solid transparent; transition: color .2s; min-height: 44px; display: inline-flex; align-items: center; }
.gs-nav__link:hover { color: var(--text); }
.gs-nav__link.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.gs-nav__cta {
  background: var(--accent); color: #fff; border: 0;
  border-radius: 8px; padding: 10px 16px;
  font-weight: 600; font-size: 13px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
  transition: all .3s var(--ease);
  min-height: 44px;
}
.gs-nav__cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

@media (min-width: 768px) {
  .gs-nav { padding: 0 48px; height: 80px; }
  .gs-nav__inner { max-width: 1200px; }
  .gs-nav__brand { font-size: 22px; }
  .gs-nav__links { gap: 40px; }
  .gs-nav__link { font-size: 19px; }
  .gs-nav__cta { padding: 12px 24px; font-size: 14px; }
}

/* ---------- Layout ---------- */
.gs-main { padding-top: 56px; }
@media (min-width: 768px) { .gs-main { padding-top: 70px; } }
.gs-container { max-width: 1200px; margin: 0 auto; }
.gs-section { padding: 64px 16px; border-top: 1px solid var(--border); }
.gs-section--alt { background: var(--bg-alt); }
@media (min-width: 768px) { .gs-section { padding: 100px 48px; } }
.gs-section__head { max-width: 640px; margin: 0 auto 40px; }
.gs-section__h2 { font-weight: 800; font-size: clamp(28px, 5vw, 48px); color: var(--text); letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 14px; }
.gs-section__lead { color: var(--text-sec); font-size: 16px; line-height: 1.7; }
@media (min-width: 768px) {
  .gs-section__head { margin: 0 0 60px; }
  .gs-section__lead { font-size: 17px; line-height: 1.8; }
}

/* ---------- Hero ---------- */
.gs-hero {
  min-height: calc(100vh - 56px);
  display: flex; align-items: center;
  padding: 56px 16px 48px;
  background: linear-gradient(135deg, #fff 0%, var(--bg-alt) 100%);
}
@media (min-width: 768px) { .gs-hero { min-height: calc(100vh - 70px); padding: 80px 48px; } }
.gs-hero__inner { max-width: 640px; margin: 0 auto; width: 100%; }
.gs-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  border-radius: 20px;
  padding: 8px 16px; margin-bottom: 24px;
  font-size: 12px; font-weight: 600; color: var(--accent);
}
.gs-hero__badge::before { content: ''; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.gs-hero__h1 { font-weight: 800; font-size: clamp(34px, 7vw, 60px); color: var(--text); line-height: 1.15; letter-spacing: -0.035em; margin-bottom: 24px; }
.gs-hero__lead { color: var(--text-sec); font-size: 16px; line-height: 1.7; margin-bottom: 32px; max-width: 580px; }
@media (min-width: 768px) {
  .gs-hero__badge { font-size: 13px; margin-bottom: 32px; }
  .gs-hero__lead { font-size: 18px; line-height: 1.8; margin-bottom: 48px; }
}

/* ---------- Waitlist form ---------- */
.gs-waitlist { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
@media (min-width: 600px) { .gs-waitlist { flex-direction: row; gap: 14px; } }
.gs-waitlist__input {
  flex: 1; padding: 14px 18px;
  border-radius: 8px; border: 1.5px solid var(--border);
  background: #fff; color: var(--text);
  font-size: 15px; outline: none;
  transition: border-color .2s;
  min-height: 48px;
}
.gs-waitlist__input:focus { border-color: var(--accent); }
.gs-waitlist__btn {
  background: var(--accent); color: #fff; border: 0;
  border-radius: 8px; padding: 14px 28px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  box-shadow: var(--shadow-btn);
  transition: all .3s var(--ease);
  min-height: 48px;
}
.gs-waitlist__btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.gs-waitlist__btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
.gs-waitlist__success {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-weight: 600; font-size: 15px;
  padding: 14px 0;
}
.gs-waitlist__success::before {
  content: '\2713';
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 12px;
}
.gs-waitlist__error { color: #dc2626; font-size: 14px; margin-top: 8px; }

/* ---------- Features ---------- */
.gs-features { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .gs-features { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .gs-features { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.gs-feature {
  padding: 24px; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gs-feature:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
@media (min-width: 768px) { .gs-feature { padding: 32px; } }
.gs-feature__dot { width: 12px; height: 12px; background: var(--accent); border-radius: 2px; margin-bottom: 14px; }
.gs-feature__title { font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -0.015em; margin-bottom: 10px; }
.gs-feature__text { color: var(--text-sec); font-size: 15px; line-height: 1.7; }

/* ---------- Benefits ---------- */
.gs-benefits { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .gs-benefits { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.gs-benefit {
  padding: 24px; border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gs-benefit:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
@media (min-width: 768px) { .gs-benefit { padding: 32px; } }
.gs-benefit__icon { font-size: 36px; margin-bottom: 14px; line-height: 1; }
.gs-benefit__title { font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -0.015em; margin-bottom: 8px; }
.gs-benefit__text { color: var(--text-sec); font-size: 15px; line-height: 1.7; }

/* ---------- Beta CTA ---------- */
.gs-beta { background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 100%); }
.gs-beta__inner { max-width: 900px; margin: 0 auto; }
.gs-beta__h2 { font-weight: 800; font-size: clamp(28px, 5vw, 48px); color: var(--text); letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 20px; }
.gs-beta__lead { color: var(--text-sec); font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
@media (min-width: 768px) {
  .gs-beta__h2 { margin-bottom: 28px; }
  .gs-beta__lead { font-size: 17px; line-height: 1.8; margin-bottom: 40px; }
}
.gs-beta__contact { color: var(--text-muted); font-size: 14px; }

/* ---------- Footer ---------- */
.gs-footer { border-top: 1px solid var(--border); padding: 36px 16px 28px; background: var(--bg-alt); display: flex; justify-content: center; }
@media (min-width: 768px) { .gs-footer { padding: 48px 48px 40px; } }
.gs-footer__inner { max-width: 1200px; width: 100%; margin: 0; display: flex; flex-direction: column; gap: 24px; }
.gs-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.gs-footer__brand { font-weight: 700; font-size: 18px; color: var(--text); }
.gs-footer__socials { display: flex; gap: 12px; }
.gs-footer__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: all .2s;
}
.gs-footer__social:hover { color: var(--accent); border-color: var(--accent-ring); }
.gs-footer__social svg { width: 18px; height: 18px; }
.gs-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.gs-footer__link { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.gs-footer__link:hover { color: var(--text); }
.gs-footer__copy { font-size: 13px; color: var(--text-muted); }

/* ---------- Pages (Imprint / Data Protection / generic) ---------- */
.gs-page { max-width: 100%; display: flex; justify-content: center; padding: 48px 0 80px; }
.gs-page__inner { max-width: 1200px; width: 100%; padding: 0 16px; }
@media (min-width: 768px) { .gs-page__inner { padding: 0 48px; } }
@media (min-width: 768px) { .gs-page { padding: 80px 0 120px; } }
.gs-page__title { font-weight: 800; font-size: clamp(32px, 5vw, 44px); color: var(--text); letter-spacing: -0.035em; line-height: 1.2; margin-bottom: 32px; }
.gs-prose { color: var(--text-sec); font-size: 16px; line-height: 1.8; }
.gs-prose h2 { color: var(--text); font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 16px; }
.gs-prose h3 { color: var(--text); font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.gs-prose p { margin-bottom: 18px; }
.gs-prose ul, .gs-prose ol { margin: 0 0 18px 1.4em; }
.gs-prose li { margin-bottom: 6px; }
.gs-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.gs-prose a:hover { color: var(--accent-dark); }
.gs-prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 24px 0; color: var(--text); font-style: italic; }
.gs-prose code { background: var(--bg-card); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }
.gs-prose pre { background: var(--bg-card); padding: 16px; border-radius: 8px; overflow-x: auto; margin-bottom: 18px; }
.gs-prose img { border-radius: 8px; margin: 24px 0; }

/* ---------- Blog index ---------- */
.gs-blog { max-width: 100%; display: flex; justify-content: center; padding: 48px 0 80px; }
.gs-blog__inner { max-width: 1200px; width: 100%; padding: 0 16px; }
@media (min-width: 768px) { .gs-blog__inner { padding: 0 48px; } }
@media (min-width: 768px) { .gs-blog { padding: 80px 0 120px; } }
.gs-blog__title { font-weight: 800; font-size: clamp(32px, 5vw, 44px); color: var(--text); letter-spacing: -0.035em; margin-bottom: 12px; }
.gs-blog__lead { color: var(--text-sec); font-size: 16px; line-height: 1.7; margin-bottom: 40px; }

.gs-blog-card { display: block; padding: 28px; border-radius: 12px; border: 1px solid var(--border); background: #fff; margin-bottom: 20px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.gs-blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.gs-blog-card--featured { background: var(--bg-alt); padding: 32px; margin-bottom: 32px; }
@media (min-width: 768px) { .gs-blog-card--featured { padding: 48px; } }
.gs-blog-card__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; font-size: 13px; color: var(--text-muted); }
.gs-blog-card__tag { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-ring); border-radius: 12px; padding: 3px 10px; font-weight: 600; font-size: 12px; }
.gs-blog-card__h { font-weight: 700; font-size: 20px; color: var(--text); letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 10px; }
.gs-blog-card--featured .gs-blog-card__h { font-size: clamp(22px, 3vw, 30px); }
.gs-blog-card__excerpt { color: var(--text-sec); font-size: 15px; line-height: 1.7; }

.gs-pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.gs-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-muted); font-size: 14px; font-weight: 500; }
.gs-pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.gs-pagination a.page-numbers:hover { color: var(--text); border-color: var(--text-muted); }

/* ---------- Single post ---------- */
.gs-post { max-width: 100%; display: flex; justify-content: center; padding: 48px 0 80px; }
.gs-post__inner { max-width: 1200px; width: 100%; padding: 0 16px; }
@media (min-width: 768px) { .gs-post__inner { padding: 0 48px; } }
@media (min-width: 768px) { .gs-post { padding: 80px 0 120px; } }
.gs-post__back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.gs-post__back:hover { color: var(--accent); }
.gs-post__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.gs-post__title { font-weight: 800; font-size: clamp(30px, 5vw, 44px); color: var(--text); letter-spacing: -0.035em; line-height: 1.2; margin-bottom: 32px; }
.gs-post__content { color: var(--text-sec); font-size: 17px; line-height: 1.8; }
.gs-post__content > * { margin-bottom: 20px; }
.gs-post__content h2 { color: var(--text); font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 16px; }
.gs-post__content h3 { color: var(--text); font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.gs-post__content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.gs-post__content ul, .gs-post__content ol { margin: 0 0 20px 1.4em; }
.gs-post__content blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 24px 0; font-style: italic; color: var(--text); }
.gs-post__content img { border-radius: 8px; margin: 24px 0; }
.gs-post__content code { background: var(--bg-card); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }
.gs-post__content pre { background: var(--bg-card); padding: 16px; border-radius: 8px; overflow-x: auto; }
