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

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

:root {
  --bg:           #f8fafc;
  --surface:      #ffffff;
  --border:       #e2e8f0;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --accent:       #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: #eef2ff;
  --nav-bg:       #0f172a;
  --nav-text:     #f1f5f9;
  --radius:       12px;
  --shadow:       0 1px 3px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:    0 4px 12px rgba(15,23,42,0.10), 0 2px 4px rgba(15,23,42,0.05);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Navigation ── */

header {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nav-text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-brand:hover {
  text-decoration: none;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex: 1;
}

.nav-links a {
  color: rgba(241,245,249,0.65);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--nav-text);
  text-decoration: none;
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.lang-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(241,245,249,0.65);
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  letter-spacing: 0.03em;
}

.lang-btn:hover,
.lang-btn.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

/* ── Main layout ── */

main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

/* ── Hero ── */

.hero {
  text-align: center;
  padding: 4.5rem 0 3.5rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Section labels ── */

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ── App cards ── */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.app-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.app-icon-recaps      { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.app-icon-utilquizz   { background: linear-gradient(135deg, #db2777, #9d174d); }
.app-icon-friendlists { background: linear-gradient(135deg, #0284c7, #0369a1); }

.app-info-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.app-info-platform {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.app-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: var(--accent-light);
  color: var(--accent);
}

.btn-secondary:hover { background: #e0e7ff; }

.btn-ghost {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.btn-android {
  background: #3ddc84;
  color: #1a1a1a;
}

.btn-android:hover { background: #2bb96d; }

/* ── Legal page header ── */

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}

.page-header .meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Legal prose ── */

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2.25rem 0 0.6rem;
  color: var(--text);
  padding-top: 0.25rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.9375rem;
  color: #334155;
  margin-bottom: 0.75rem;
  line-height: 1.75;
}

.legal-content ul,
.legal-content ol {
  margin: 0.5rem 0 0.875rem 1.5rem;
}

.legal-content li {
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 0.25rem;
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content a {
  word-break: break-all;
}

/* ── Deletion page ── */

.deletion-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
  max-width: 760px;
}

.deletion-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.deletion-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.deletion-card-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.deletion-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
  line-height: 1.65;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.6;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
  padding: 0.5rem 1rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.email-link:hover {
  background: #e0e7ff;
  text-decoration: none;
}

/* ── Info box ── */

.info-box {
  background: var(--accent-light);
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: #3730a3;
  line-height: 1.6;
}

/* ── Footer ── */

footer {
  background: var(--nav-bg);
  color: rgba(241,245,249,0.55);
  padding: 2rem 1.5rem;
  margin-top: auto;
}

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

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
  font-weight: 700;
  color: var(--nav-text);
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(241,245,249,0.55);
  font-size: 0.8125rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--nav-text);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.8rem;
  text-align: center;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  nav {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .nav-links {
    display: none;
  }

  main {
    padding: 2rem 1rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

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

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
