/* ============================================================
   VibeQuotr — Website
   Static, dependency-free, GDPR-friendly.
   Mirrors the iOS app's visual identity: warm off-white,
   stone foreground, orange accent, generous whitespace.
   ============================================================ */

:root {
  --accent-primary: #F97316;
  --accent-primary-dim: rgba(249, 115, 22, 0.12);
  --accent-primary-strong: #EA580C;

  --bg-primary: #FAFAF9;
  --bg-surface: #FFFFFF;
  --bg-surface-elev: #F5F5F4;
  --bg-overlay: rgba(250, 250, 249, 0.78);

  --text-primary: #1C1917;
  --text-secondary: #57534E;
  --text-tertiary: #78716C;
  --text-on-accent: #FFFFFF;

  --border-subtle: rgba(28, 25, 23, 0.08);
  --border-medium: rgba(28, 25, 23, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05), 0 1px 1px rgba(28, 25, 23, 0.03);
  --shadow-md: 0 4px 24px rgba(28, 25, 23, 0.06), 0 1px 3px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 24px 60px rgba(28, 25, 23, 0.10), 0 4px 12px rgba(28, 25, 23, 0.05);

  --container: 1080px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", "Inter", "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "IBM Plex Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0C0A09;
    --bg-surface: #1C1917;
    --bg-surface-elev: #292524;
    --bg-overlay: rgba(12, 10, 9, 0.78);

    --text-primary: #FAFAF9;
    --text-secondary: #D6D3D1;
    --text-tertiary: #A8A29E;

    --border-subtle: rgba(250, 250, 249, 0.10);
    --border-medium: rgba(250, 250, 249, 0.18);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent-primary); text-decoration: none; }
a:hover { color: var(--accent-primary-strong); text-decoration: underline; }
h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.15;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

.section { padding: 72px 0; }
@media (min-width: 768px) {
  .section { padding: 112px 0; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-overlay);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .nav-container { padding: 18px 40px; }
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; color: var(--text-primary); }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
  font-family: var(--font-mono);
}
.nav-links {
  display: none;
  gap: 28px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}
@media (min-width: 640px) {
  .nav-links { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
  text-align: center;
}
@media (min-width: 768px) {
  .hero { padding: 112px 0 128px; }
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: var(--accent-primary-dim);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(48px, 8vw, 84px);
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 8px;
}
.hero-subtitle {
  font-size: clamp(20px, 3vw, 26px);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-tagline {
  font-size: clamp(20px, 2.6vw, 24px);
  color: var(--text-primary);
  font-weight: 500;
  max-width: 640px;
  margin: 0 auto 16px;
}
.hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.appstore-badge {
  display: inline-block;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.appstore-badge:hover { transform: translateY(-2px); opacity: 0.92; text-decoration: none; }
.price-note {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.price-note strong { color: var(--text-primary); font-weight: 600; }
.hero-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- Sections ---------- */
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  max-width: 720px;
}
.section-lead {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 56px;
  max-width: 640px;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 960px) {
  .feature-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}
.feature-card.highlight {
  border-color: var(--accent-primary);
  background: linear-gradient(180deg, var(--accent-primary-dim) 0%, var(--bg-surface) 60%);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-surface-elev);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
}
.feature-icon.accent {
  background: var(--accent-primary);
  color: var(--text-on-accent);
}
.feature-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- Pro Section ---------- */
.section-pro {
  background: var(--bg-surface-elev);
}
.pro-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  box-shadow: var(--shadow-md);
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .pro-card { padding: 56px 56px; }
}
.pro-tag {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--text-on-accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.pro-card h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}
.pro-price {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 32px;
}
.pro-list {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
}
.pro-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--bg-surface-elev);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.pro-list li strong {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
}
.pro-list li span {
  font-size: 14.5px;
  color: var(--text-secondary);
}
.pro-note {
  font-size: 14px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* ---------- Author ---------- */
.section-author { padding-bottom: 56px; }
.author-block {
  max-width: 720px;
  text-align: center;
}
.author-text h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  margin-bottom: 16px;
}
.author-text p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.author-rationale {
  font-size: 16px;
  color: var(--text-tertiary);
}
.author-rationale em { color: var(--accent-primary); font-style: normal; font-weight: 500; }

.author-block { max-width: 960px; }

.other-apps-title {
  margin: 40px 0 16px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.other-apps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  text-align: left;
}
.other-apps-grid a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.other-apps-grid a:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  background: var(--bg-surface-elev);
  text-decoration: none;
}
.other-apps-grid .oa-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.other-apps-grid .oa-desc {
  font-size: 12.5px;
  color: var(--text-tertiary);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-surface-elev);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand p {
  margin-top: 12px;
  color: var(--text-tertiary);
  font-size: 14px;
}
.footer-nav h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav ul li a {
  color: var(--text-secondary);
  font-size: 15px;
}
.footer-nav ul li a:hover { color: var(--text-primary); text-decoration: none; }
.footer-base {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
}

/* ============================================================
   Legal pages — privacy / impressum / support
   ============================================================ */

.legal-page {
  padding: 56px 0 96px;
}
.legal-page .container {
  max-width: 780px;
}
.legal-page h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 12px;
}
.legal-page h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}
.legal-page h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}
.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.legal-page ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}
.legal-page ul li { margin-bottom: 6px; }
.legal-page strong { color: var(--text-primary); font-weight: 600; }
.legal-page .lead {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.legal-page address {
  font-style: normal;
  background: var(--bg-surface-elev);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  border: 1px solid var(--border-subtle);
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 12px 0 20px;
}

/* Language toggle (privacy) */
.lang-toggle {
  position: sticky;
  top: 76px;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.lang-toggle-inner {
  display: inline-flex;
  background: var(--bg-overlay);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}
.lang-toggle-inner button {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-toggle-inner button:hover { color: var(--text-primary); }
.lang-toggle-inner button.active {
  background: var(--accent-primary);
  color: var(--text-on-accent);
}

[data-lang] { display: none; }
[data-lang].is-visible { display: block; }

/* Support page */
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}
@media (min-width: 640px) {
  .support-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.contact-card a {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
}
.contact-card .meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.faq-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.faq-item p {
  font-size: 15px;
  margin-bottom: 0;
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Fade-in helper used by IntersectionObserver */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Screenshots ---------- */
.section-screenshots {
  padding-top: 40px;
  padding-bottom: 56px;
}
.section-screenshots .section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}
.section-screenshots .section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}
.section-screenshots .section-header p {
  color: var(--text-secondary);
  font-size: 17px;
}

/* Horizontal-snap rail on phones, grid on wider screens */
.shots-rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 24px;
  margin: 0 -16px;
  scrollbar-width: none;
}
.shots-rail::-webkit-scrollbar { display: none; }

@media (min-width: 900px) {
  .shots-rail {
    overflow-x: visible;
    margin: 0;
    padding: 8px 0 0;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.shot {
  flex: 0 0 auto;
  width: 240px;
  margin: 0;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* iPhone-style frame: black bezel + rounded corners */
.phone-frame {
  width: 240px;
  height: 521px;
  background: #000;
  border-radius: 36px;
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 48px -16px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}
.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  object-position: top;
}

.shot figcaption {
  margin-top: 14px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 240px;
}
.shot figcaption strong {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}
.shot figcaption span {
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.4;
}
