/* Bad Habits — Shared Stylesheet */
/* Dark brutalist design system */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #050505;
  color: #f5f5f5;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

a {
  color: #e83434;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ff4d4d;
  opacity: 0.9;
}

img {
  max-width: 100%;
  display: block;
}

/* ─── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; font-weight: 700; }

p {
  color: #aaaaaa;
  line-height: 1.7;
}

strong { color: #f5f5f5; font-weight: 600; }

/* ─── Layout ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ─── Navigation ────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a1a1a;
  padding: 1rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  color: #ffffff;
  opacity: 0.8;
}

.nav-logo .skull {
  font-size: 1.3rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: #888888;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #f5f5f5;
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: #e83434;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(232, 52, 52, 0.35);
}

.btn-primary:hover {
  background-color: #ff3f3f;
  color: #ffffff;
  box-shadow: 0 6px 28px rgba(232, 52, 52, 0.5);
}

.btn-secondary {
  background-color: transparent;
  color: #f5f5f5;
  border: 1px solid #333333;
}

.btn-secondary:hover {
  background-color: #111111;
  color: #f5f5f5;
  border-color: #444444;
}

.btn-ghost {
  background-color: transparent;
  color: #888888;
  border: 1px solid #1a1a1a;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
}

.btn-ghost:hover {
  color: #f5f5f5;
  border-color: #333333;
  background-color: #0a0a0a;
}

/* ─── Cards ─────────────────────────────────────────────────────── */
.card {
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: #333333;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card p {
  font-size: 0.9rem;
  color: #777777;
}

/* ─── Section Labels ────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  background: rgba(232, 52, 52, 0.12);
  color: #e83434;
  border: 1px solid rgba(232, 52, 52, 0.25);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* ─── Hero Section ──────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 52, 52, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-skull {
  font-size: 4.5rem;
  display: block;
  margin-bottom: 1.5rem;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero h1 span {
  color: #e83434;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #888888;
  font-weight: 500;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #666666;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.8rem;
  color: #444444;
}

/* ─── Features Grid ─────────────────────────────────────────────── */
#features {
  background: #000000;
  border-top: 1px solid #111111;
  border-bottom: 1px solid #111111;
}

.features-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.features-header p {
  max-width: 480px;
  margin: 0.75rem auto 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ─── How It Works ──────────────────────────────────────────────── */
#how-it-works {
  text-align: center;
}

.how-header {
  margin-bottom: 3.5rem;
}

.how-header p {
  max-width: 420px;
  margin: 0.75rem auto 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 1px;
  background: linear-gradient(to right, transparent, #333333, #333333, transparent);
  display: none;
}

@media (min-width: 768px) {
  .steps-grid::before {
    display: block;
  }
}

.step {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.step-number {
  width: 3rem;
  height: 3rem;
  background: #e83434;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
}

/* ─── Pricing Section ───────────────────────────────────────────── */
#pricing {
  background: #000000;
  border-top: 1px solid #111111;
  border-bottom: 1px solid #111111;
  text-align: center;
}

.pricing-header {
  margin-bottom: 1rem;
}

.pricing-trial {
  font-size: 1rem;
  color: #888888;
  margin-bottom: 3rem;
}

.pricing-trial strong {
  color: #e83434;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.pricing-card {
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.pricing-card:hover {
  border-color: #333333;
  transform: translateY(-3px);
}

.pricing-card.featured {
  border-color: #e83434;
  box-shadow: 0 0 0 1px rgba(232, 52, 52, 0.2), 0 8px 32px rgba(232, 52, 52, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: #e83434;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-label {
  color: #888888;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.pricing-amount {
  font-size: 2.75rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-period {
  color: #555555;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.pricing-savings {
  color: #e83434;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.pricing-note {
  font-size: 0.8rem;
  color: #444444;
  margin-top: 1.5rem;
}

/* ─── Footer ────────────────────────────────────────────────────── */
footer {
  background: #000000;
  border-top: 1px solid #111111;
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.footer-brand .nav-logo {
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #444444;
  max-width: 260px;
}

.footer-links-group h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555555;
  margin-bottom: 1rem;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links-group a {
  color: #666666;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links-group a:hover {
  color: #f5f5f5;
}

.footer-divider {
  height: 1px;
  background: #111111;
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-legal {
  font-size: 0.775rem;
  color: #333333;
  line-height: 1.7;
}

.footer-legal a {
  color: #444444;
}

.footer-legal a:hover {
  color: #888888;
}

.footer-copyright {
  font-size: 0.775rem;
  color: #333333;
  text-align: right;
}

/* ─── Legal Page Layout ─────────────────────────────────────────── */
.legal-page {
  padding: 4rem 0 6rem;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: #555555;
  font-size: 0.875rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1a1a1a;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f5f5f5;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #111111;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #dddddd;
  margin: 1.75rem 0 0.75rem;
}

.legal-content p {
  color: #888888;
  margin-bottom: 1rem;
  font-size: 0.925rem;
}

.legal-content ul, .legal-content ol {
  color: #888888;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  font-size: 0.925rem;
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.legal-content strong {
  color: #cccccc;
}

.legal-content .highlight-box {
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  border-left: 3px solid #e83434;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.legal-content .highlight-box p {
  margin-bottom: 0;
  color: #aaaaaa;
  font-size: 0.875rem;
}

/* ─── Support Page ──────────────────────────────────────────────── */
.faq-item {
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: #2a2a2a;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 0.625rem;
}

.faq-item p {
  font-size: 0.9rem;
  color: #777777;
  margin-bottom: 0;
}

.contact-card {
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 0.75rem;
}

.contact-card .btn {
  font-size: 0.9rem;
  padding: 0.625rem 1.25rem;
}

/* ─── Delete Account Page ───────────────────────────────────────── */
.delete-steps {
  counter-reset: delete-step;
  list-style: none;
  padding: 0;
}

.delete-steps li {
  counter-increment: delete-step;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #0a0a0a;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  font-size: 0.925rem;
  color: #888888;
}

.delete-steps li::before {
  content: counter(delete-step);
  background: #e83434;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.warning-box {
  background: rgba(232, 52, 52, 0.06);
  border: 1px solid rgba(232, 52, 52, 0.2);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.warning-box p {
  color: #cc4444;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.warning-box strong {
  color: #e83434;
}

/* ─── Store Badges ──────────────────────────────────────────────── */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  color: #f5f5f5;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  min-width: 160px;
}

.store-badge:hover {
  background: #1a1a1a;
  border-color: #3a3a3a;
  color: #f5f5f5;
  transform: translateY(-2px);
}

.store-badge-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
}

.store-badge-small {
  font-size: 0.65rem;
  color: #888888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-badge-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f5f5f5;
  line-height: 1.2;
}

.store-badge.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  section { padding: 3.5rem 0; }

  .hero { padding: 4rem 0 3.5rem; }
  .hero-skull { font-size: 3.5rem; }

  .nav-links { display: none; }

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

  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copyright { text-align: left; }

  .contact-card {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Utilities ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-red    { color: #e83434; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
