/* =========================
   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 {
  display: flex;
  align-items: center;
  gap: 0px;
  text-decoration: none;
}

.logo-icon {
  width: 25px;
  height: 25px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.logo:hover {
  opacity: 0.9;
}


/* =========================
   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;
}

/* =========================
   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;
  }
}
/* =========================
   FILE CONVERTER TOOL
========================= */

.tool-page {
  max-width: 720px;
  margin: 70px auto 100px;
  padding: 0 20px;
  text-align: center;
}

.tool-title {
  font-size: 32px;
  margin-bottom: 36px;
}

/* Main card */
.converter-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

/* Sentence line */
.converter-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 16px;
  margin-bottom: 24px;
}

.converter-line select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
}

/* Upload */
.upload-box {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
}

/* Button */
.primary-btn {
  padding: 14px 26px;
  font-size: 15px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  cursor: pointer;
}

/* Progress */
.progress-wrapper {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  margin-top: 20px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.3s ease;
}

/* Download */
.download-btn {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
}

.download-btn:hover {
  text-decoration: underline;
}

/* Helpers */
.tool-details {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

/* Utils */
.hidden {
  display: none;
}

/* Mobile */
@media (max-width: 600px) {
  .tool-title {
    font-size: 26px;
  }
}
.from-text {
  font-weight: 600;
  color: var(--text);
}

/* =========================
   INFO SECTIONS (FINAL)
========================= */

.info-section {
  width: 100%;
  padding: 80px 20px;
  background: #ffffff;
}

.info-section.alt {
  background: #f8fafc;
}

.info-wrapper {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.info-wrapper.reverse {
  flex-direction: row-reverse;
}

.info-text {
  max-width: 520px;
}

.info-text h2 {
  font-size: 34px;
  margin-bottom: 18px;
  color: var(--text);
}

.info-text p,
.info-text li {
  font-size: 18px;
  line-height: 1.8;
  color: #334155;
}

.info-text ol {
  padding-left: 20px;
  margin: 0;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .info-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .info-wrapper img {
    width: 320px;
    max-width: 40%
  }

  .info-text {
    max-width: 100%;
  }

  .info-text ol {
    text-align: left;
    display: inline-block;
  }
}

/* ========================= 
   SERVICES SECTION
========================= */

.services-section {
  background: #f8fafc; /* SAME as footer */
  padding: 70px 20px;
}

.services-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--text);
}

.services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.service-column h3 {
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--text);
}

.service-column a {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--primary);
  text-decoration: none;
}

.service-column a:hover {
  text-decoration: underline;
}

/* MOBILE */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* SERVICES FOOTER LINKS */
.services-footer {
  margin-top: 60px;
  text-align: center;
  font-size: 14px;
}

.services-footer a {
  margin: 0 12px;
  color: var(--muted);
  text-decoration: none;
}

.services-footer a:hover {
  text-decoration: none;
  color: var(--text);
}

/* =========================
   FOOTER (GLOBAL & TOOL PAGES)
========================= */

footer.footer {
  text-align: center;
  margin-top: 40px;
  padding: 36px 0;        /* makes it feel centered */
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

footer.footer a {
  font-size: 14px;
  margin: 0 8px;
  color: var(--muted);
  text-decoration: none;
}

footer.footer a:hover {
  color: var(--text);
}

/* =========================
   TOOL SWITCHER (HOMEPAGE)
========================= */

.tool-switcher {
  max-width: 1100px;
  margin: 0 auto 90px;
  padding: 0 20px;
}

/* ---------- TABS ---------- */
.tool-switch-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text);
  border-color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---------- PANELS ---------- */
.tool-panel {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.tool-panel.active {
  display: grid;
}

/* ---------- BIG TOOL CARDS ---------- */
.tool-big {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tool-big:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.tool-big img {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.tool-big h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.tool-big p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- DISABLED ---------- */
.tool-big.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- MOBILE ---------- */
@media (max-width: 600px) {
  .tool-big {
    padding: 18px;
  }

  .tool-big img {
    width: 44px;
    height: 44px;
  }

  .tool-big h3 {
    font-size: 16px;
  }
}
.tool-big img {
  object-fit: contain;
  padding: 6px;
  background: #f8fafc;
  border-radius: 10px;
}

