/* ============================================================
   Pillizer — Global Stylesheet
   ============================================================ */

:root {
  --primary:       #4F46E5;
  --primary-light: #6366f1;
  --primary-dim:   rgba(79, 70, 229, 0.15);
  --bg:            #0a0a1a;
  --bg-card:       rgba(255, 255, 255, 0.05);
  --border:        rgba(255, 255, 255, 0.1);
  --border-hover:  rgba(255, 255, 255, 0.2);
  --text:          #e2e8f0;
  --text-muted:    #94a3b8;
  --text-heading:  #ffffff;
  --link:          #818cf8;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.4);
  --transition:    0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text); }

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

ul { list-style: none; }

/* ---- Layout ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 26, 0.8);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--text-heading); text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color var(--transition);
}
.nav a:hover { color: var(--text-heading); text-decoration: none; }

/* ---- Hero ---- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  background: var(--primary-dim);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  padding: 4px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 12px;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero__web-link {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hero__web-link a { color: var(--link); }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
  text-decoration: none;
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hover);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--text-heading);
}

/* ---- Badge Buttons (App Store / Google Play) ---- */
.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-heading);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.badge-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--text-heading);
}
.badge-btn__icon { font-size: 1.5rem; line-height: 1; }
.badge-btn__text { display: flex; flex-direction: column; }
.badge-btn__sub  { font-size: 0.6875rem; color: var(--text-muted); line-height: 1; }
.badge-btn__name { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.125rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---- Feature Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- Section headers ---- */
.section-label {
  display: inline-block;
  background: var(--primary-dim);
  color: var(--primary-light);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 16px auto 0;
}

/* ---- Privacy highlight ---- */
.privacy-highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  max-width: 640px;
  margin: 0 auto;
}
.privacy-highlight__icon { font-size: 1.5rem; flex-shrink: 0; }
.privacy-highlight p { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }

/* ---- Download section ---- */
.download-section {
  text-align: center;
}
.download-section .badge-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--text-heading); text-decoration: none; }
.footer__copy {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ---- Page content (policy / support pages) ---- */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.page-content h1 {
  margin-bottom: 8px;
}

.page-content .page-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.page-content h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.page-content p,
.page-content li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.page-content ul,
.page-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content ul li { list-style: disc; }
.page-content ol li { list-style: decimal; }

.page-content strong { color: var(--text); }

.page-content a { color: var(--link); }

/* ---- Support / FAQ ---- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-bottom: 56px;
}
.contact-card .contact-email {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary-light);
  display: inline-block;
  margin-top: 12px;
}

/* Pure-CSS accordion */
.faq { margin-bottom: 40px; }
.faq h2 { text-align: center; margin-bottom: 32px; border: none; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item input[type="checkbox"] { display: none; }

.faq-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  transition: color var(--transition);
  user-select: none;
}
.faq-item label:hover { color: var(--text-heading); }

.faq-item label::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}

.faq-item input:checked + label::after {
  transform: rotate(45deg);
  color: var(--primary-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item input:checked ~ .faq-answer {
  max-height: 400px;
}
.faq-answer p {
  padding-bottom: 20px;
  color: var(--text-muted);
}

/* ---- Delete account page ---- */
.delete-notice {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 24px;
}
.delete-notice p {
  color: #fca5a5;
  font-size: 0.9375rem;
  margin: 0;
}

.method-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
}
.method-block h3 {
  margin-bottom: 16px;
  color: var(--text-heading);
}
.method-block ol {
  padding-left: 20px;
  margin: 0;
}
.method-block ol li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav { gap: 20px; }
  .nav a:not(.btn-primary) { display: none; }

  .hero { padding: 120px 0 72px; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .contact-card { padding: 28px 20px; }

  .badge-btn { width: 100%; max-width: 240px; }

  .hero__actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .section { padding: 56px 0; }
  .page-content { padding: 100px 16px 60px; }
}
