/* ==========================================================================
   FlipFilez — shared design system
   ========================================================================== */

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

:root{
  --bg: #F7F7FB;
  --surface: #FFFFFF;
  --text: #14151A;
  --text-muted: #676B7A;
  --indigo: #4F46E5;
  --indigo-dark: #3F37C9;
  --mint: #0F9D8E;
  --mint-bg: #DFF5F1;
  --coral: #FF6B57;
  --coral-bg: #FFE9E5;
  --amber-bg: #FFF3DA;
  --border: #E7E7EF;
  --display: 'Space Grotesk', -apple-system, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}
a{ color: inherit; text-decoration: none; }

/* ---------------- Top nav ---------------- */
.topnav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo{ display: flex; align-items: center; gap: 10px; }
.logo-mark{
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--indigo);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  transform: rotate(0deg);
}
.logo-word{ font-family: var(--display); font-weight: 700; font-size: 19px; }
.nav-links{ display: flex; gap: 28px; align-items: center; }
.nav-links a{ font-size: 14.5px; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover{ color: var(--text); }
.nav-badge{
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--mint-bg); color: var(--mint);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
}

.wrap{ max-width: 1200px; margin: 0 auto; padding: 0 40px 80px; }

/* ---------------- Hero ---------------- */
.hero{ text-align: center; padding: 50px 20px 40px; }
.hero .eyebrow{
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 24px;
}
.hero h1{
  font-family: var(--display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.hero h1 span{ color: var(--indigo); }
.hero p{
  color: var(--text-muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------------- Tool grid ---------------- */
.section-label{
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 46px 0 16px;
}
.tool-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tool-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s ease, transform .15s ease;
}
.tool-card:hover{ border-color: var(--indigo); transform: translateY(-2px); }
.tool-icon{
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.tool-icon.indigo{ background: #ECEBFD; color: var(--indigo); }
.tool-icon.mint{ background: var(--mint-bg); color: var(--mint); }
.tool-icon.coral{ background: var(--coral-bg); color: var(--coral); }
.tool-card h3{ font-family: var(--display); font-size: 17px; margin: 0; }
.tool-card p{ color: var(--text-muted); font-size: 13.5px; margin: 0; line-height: 1.5; }
.tool-tag{
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  width: fit-content;
}
.tool-tag.browser{ background: var(--mint-bg); color: var(--mint); }
.tool-tag.server{ background: var(--amber-bg); color: #A5730F; }

/* ---------------- Trust strip ---------------- */
.trust-strip{
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.trust-item{ display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.trust-item svg{ color: var(--mint); flex-shrink: 0; }

/* ---------------- Tool page shell ---------------- */
.tool-page{ max-width: 720px; margin: 0 auto; padding: 40px 20px 80px; }
.tool-page .back{ font-size: 13px; color: var(--text-muted); margin-bottom: 18px; display: inline-block; }
.tool-page h1{ font-family: var(--display); font-weight: 700; font-size: 32px; margin: 0 0 10px; }
.tool-page > p.intro{ color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0 0 28px; }

.privacy-banner{
  display: flex; align-items: center; gap: 10px;
  background: var(--mint-bg); color: var(--mint);
  border-radius: 12px; padding: 12px 16px;
  font-size: 13.5px; font-weight: 600;
  margin-bottom: 24px;
}
.privacy-banner.server{ background: var(--amber-bg); color: #A5730F; }

.dropzone{
  border: 2px dashed var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone.dragover{ border-color: var(--indigo); background: #F4F3FE; }
.dropzone svg{ color: var(--text-muted); margin-bottom: 12px; }
.dropzone .dz-title{ font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.dropzone .dz-sub{ color: var(--text-muted); font-size: 13px; }
.dropzone input[type="file"]{ display: none; }

.file-list{ margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.file-row{
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; font-size: 13.5px;
}
.file-row .name{ font-weight: 500; }
.file-row .remove{ color: var(--coral); cursor: pointer; font-weight: 600; font-size: 13px; }

.options-row{
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; margin-top: 16px;
}
.options-row label{ font-size: 14px; font-weight: 500; }
.options-row select{
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--sans); font-size: 14px; background: var(--bg);
}

.convert-btn{
  width: 100%;
  padding: 15px;
  background: var(--indigo);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 18px;
}
.convert-btn:hover{ background: var(--indigo-dark); }
.convert-btn:disabled{ opacity: .5; cursor: default; }

.result-list{ margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.result-row{
  display: flex; align-items: center; justify-content: space-between;
  background: var(--mint-bg); border: 1px solid #C4E9E1;
  border-radius: 12px; padding: 12px 16px;
}
.result-row .name{ font-weight: 600; font-size: 14px; color: var(--text); }
.result-row a{
  background: var(--mint); color: #fff;
  padding: 7px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
}

.status-msg{ margin-top: 14px; font-size: 13.5px; color: var(--text-muted); }
.status-msg.error{ color: var(--coral); }

.disclaimer{
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

footer.site-footer{
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

@media (max-width: 800px){
  .tool-grid{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 34px; }
  .topnav{ padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
  .wrap{ padding: 0 20px 60px; }
}
