/* =========================
   ROOT VARIABLES
========================= */
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --border: #e5e7eb;
  --highlight: #fecaca;
}

/* =========================
   BASE RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* =========================
   HEADER
========================= */
.header {
  padding: 24px 40px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  position: relative;
  max-width: 900px;
  margin: 90px auto 70px;
  padding: 0 20px;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  white-space: nowrap; /* desktop single line */
}

.hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================
   RED BRUSH HIGHLIGHT
========================= */
.highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.highlight::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 6px;
  width: calc(100% + 12px);
  height: 0.9em;
  background: var(--highlight);
  z-index: -1;
  border-radius: 6px;
  transform: rotate(-2deg);
}

/* =========================
   HERO ILLUSTRATION
========================= */
.hero-illustration {
  position: absolute;
  right: -80px;
  top: -40px;
  width: 260px;
  opacity: 0.9;
  pointer-events: none;
}

/* =========================
   TOOLS GRID
========================= */
.tools {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.tool-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.tool-card.active:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.tool-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================
   BADGES
========================= */
.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
}

.badge.coming {
  background: #f1f5f9;
  color: #475569;
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 14px;
}

.footer a {
  margin: 0 10px;
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* =========================
   MOBILE FIXES
========================= */
@media (max-width: 900px) {
  .hero h1 {
    white-space: normal; /* allow wrap on mobile */
  }

  .hero-illustration {
    position: static;
    display: block;
    margin: 30px auto 0;
    width: 200px;
  }
}

/* =========================
   STATIC PAGES (PRIVACY / TERMS / CONTACT)
========================= */

.page {
  max-width: 900px;
  margin: 60px auto 100px;
  padding: 0 20px;
}

/* HERO */
.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: 32px;
  margin: 0 0 8px;
}

.page-hero p {
  font-size: 15px;
  color: var(--muted);
  max-width: 420px;
}

/* Illustration */
.page-illustration {
  width: 200px;
  opacity: 0.9;
  pointer-events: none;
}

/* CONTENT */
.page-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.page-content h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 18px;
}

.page-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

/* LINKS */
.page-content a {
  color: var(--primary);
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

/* =========================
   MOBILE FIXES
========================= */
@media (max-width: 900px) {
  .page-hero {
    flex-direction: column;
    text-align: center;
  }

  .page-illustration {
    width: 160px;
    margin-top: 20px;
  }

  .page-hero p {
    margin: 0 auto;
  }
}

/* =========================
   TERMS PAGE
========================= */

.terms-page {
  max-width: 900px;
  margin: 70px auto 100px;
  padding: 0 20px;
}

/* Header */
.terms-header {
  text-align: center;
  margin-bottom: 36px;
}

.terms-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.terms-header p {
  font-size: 15px;
  color: var(--muted);
}

/* Content card */
.terms-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

/* Headings inside content */
.terms-content h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

/* Paragraphs */
.terms-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 14px;
}

/* Links */
.terms-content a {
  color: var(--primary);
  text-decoration: none;
}

.terms-content a:hover {
  text-decoration: underline;
}

/* =========================
   MOBILE FIXES
========================= */

@media (max-width: 900px) {
  .terms-header h1 {
    font-size: 28px;
  }

  .terms-content {
    padding: 24px;
  }
}

/* =========================
   CONTACT PAGE
========================= */

.contact-page {
  max-width: 900px;
  margin: 70px auto 100px;
  padding: 0 20px;
}

/* Header */
.contact-header {
  text-align: center;
  margin-bottom: 36px;
}

.contact-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-header p {
  font-size: 15px;
  color: var(--muted);
}

/* Content card */
.contact-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

/* Contact blocks */
.contact-item {
  margin-bottom: 28px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-item p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

/* Links */
.contact-content a {
  color: var(--primary);
  text-decoration: none;
}

.contact-content a:hover {
  text-decoration: underline;
}

/* =========================
   MOBILE FIXES
========================= */

@media (max-width: 900px) {
  .contact-header h1 {
    font-size: 28px;
  }

  .contact-content {
    padding: 24px;
  }
}
