
/* ==============================
   FORMFIX - MINT GREEN DESIGN
================================ */

:root {
  --primary: #00a878;
  --primary-dark: #008b63;
  --primary-light: #e4f8ef;
  --background: #f6faf8;
  --surface: #ffffff;
  --text: #172b25;
  --muted: #71817a;
  --border: #e3ece7;
  --shadow: 0 10px 35px rgba(17, 77, 53, 0.07);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.25s, color 0.25s;
}

[hidden] {
  display: none !important;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}


/* HEADER */

.header {
  width: 100%;
  min-height: 72px;
  padding: 12px 7%;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 800;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navigation a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.navigation a:hover {
  color: var(--primary);
}

.theme-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
}


/* HERO */

.hero {
  padding: 90px 20px 85px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, #d6f8e8 0%, transparent 65%),
    var(--background);
}

.hero-tag,
.eyebrow {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.15;
  letter-spacing: -2px;
  margin: 20px 0;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 16px;
}


/* BUTTONS */

.primary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 25px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 15px;
  transition: 0.2s;
}

.primary-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.primary-btn:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 168, 120, 0.35);
  outline-offset: 3px;
}


/* SECTION HEADINGS */

.section-heading {
  text-align: center;
  margin-bottom: 35px;
}

.section-heading h2 {
  font-size: clamp(25px, 4vw, 36px);
  margin: 8px 0;
  letter-spacing: -1px;
}

.section-heading p {
  color: var(--muted);
  font-size: 14px;
}


/* MAIN TOOL */

.main-tool,
.extra-tools,
.projects-section {
  padding: 75px 7%;
}

.tool-card {
  max-width: 720px;
  margin: auto;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mode-tabs {
  display: flex;
  padding: 5px;
  background: var(--background);
  border-radius: 12px;
  margin-bottom: 25px;
}

.mode-btn {
  flex: 1;
  border: none;
  border-radius: 9px;
  padding: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.mode-btn.active {
  background: var(--primary);
  color: white;
}


/* UPLOAD AREA */

.upload-area {
  min-height: 190px;
  padding: 25px 15px;
  border: 2px dashed #9bdcc0;
  border-radius: 16px;
  background: #f3fcf7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
}

.upload-area:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d9f5e7;
  color: var(--primary-dark);
  font-size: 30px;
}

.upload-area strong {
  font-size: 17px;
}

.upload-area span {
  color: var(--muted);
  font-size: 13px;
}

.upload-area .upload-hint {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
}

.file-info {
  margin-top: 15px;
  padding: 12px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  overflow-wrap: anywhere;
}

.file-info button {
  border: none;
  background: transparent;
  color: #d33b3b;
  font-weight: 700;
}


/* INPUT SETTINGS */

.settings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 25px 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  color: var(--text);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--primary);
}

.process-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 5px;
}

.status-message {
  min-height: 22px;
  margin-top: 12px;
  color: var(--primary-dark);
  font-size: 13px;
  text-align: center;
}


/* RESULT */

.result-panel {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.result-panel h3 {
  margin-bottom: 18px;
}

.result-panel img {
  display: block;
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  margin: 0 auto 18px;
  border-radius: 12px;
  background: var(--background);
}

.result-details {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.result-details strong {
  color: var(--text);
}


/* FEATURE CARDS */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  transition: 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #9bdcc0;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-light);
  font-size: 23px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 13px;
}


/* OUR PROJECTS */

.projects-section {
  background: #edf8f2;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 950px;
  margin: auto;
}

.project-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #9bdcc0;
}

.project-icon {
  width: 55px;
  height: 55px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--primary-light);
  font-size: 27px;
}

.project-card h3 {
  font-size: 19px;
  margin-bottom: 5px;
}

.project-card p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.project-link {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}


/* PRIVACY */

.privacy-section {
  padding: 65px 20px;
  text-align: center;
}

.privacy-icon {
  font-size: 32px;
}

.privacy-section h2 {
  margin: 12px 0;
  font-size: 26px;
}

.privacy-section p {
  max-width: 570px;
  margin: auto;
  color: var(--muted);
  font-size: 14px;
}


/* FOOTER */

.footer {
  padding: 40px 7% 25px;
  text-align: center;
  background: #e9f5ee;
}

.footer .logo {
  justify-content: center;
  margin-bottom: 10px;
}

.footer > p {
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 22px 0;
}

.footer-links a {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.footer .copyright {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}


/* DARK THEME */

body.dark {
  --background: #101b17;
  --surface: #192720;
  --text: #e9f5ee;
  --muted: #a3b7ac;
  --border: #2b4035;
  --primary-light: #203e30;
  --shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

body.dark .header {
  background: rgba(25, 39, 32, 0.96);
}

body.dark .hero {
  background: radial-gradient(circle at 50% 0%, #244d39 0%, transparent 65%);
}

body.dark .upload-area {
  background: #20382c;
  border-color: #477e61;
}

body.dark .projects-section,
body.dark .footer {
  background: #14221a;
}

body.dark .mode-tabs {
  background: #101b17;
}

body.dark .field input,
body.dark .field select {
  background: #101b17;
}


/* TABLET */

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

  .navigation {
    gap: 16px;
  }
}


/* MOBILE */

@media (max-width: 600px) {

  .header {
    padding: 12px 4%;
    min-height: 65px;
    gap: 10px;
  }

  .logo {
    font-size: 20px;
  }

  .logo-icon {
    width: 33px;
    height: 33px;
  }

  .navigation {
    gap: 11px;
  }

  .navigation a {
    font-size: 11px;
  }

  .theme-btn {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
  }

  .hero {
    padding: 65px 18px;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 14px;
  }

  .main-tool,
  .extra-tools,
  .projects-section {
    padding: 55px 5%;
  }

  .tool-card {
    padding: 18px;
    border-radius: 16px;
  }

  .settings {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card {
    padding: 20px;
  }

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

  .project-card {
    padding: 19px;
  }

  .footer-links {
    gap: 16px;
  }
}

@media (max-width: 360px) {
  .navigation {
    gap: 7px;
  }

  .navigation a {
    font-size: 10px;
  }

  .logo {
    font-size: 17px;
  }
}

/* EXTRA PHONE-FRIENDLY ADDITIONS */
body { overflow-x: hidden; }
.full-field { grid-column: 1 / -1; }
.slate-row { display: flex; gap: 10px; flex-wrap: wrap; }
.slate-row input { flex: 1 1 200px; }

.quick-kb-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.kb-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.kb-chip:hover { border-color: var(--primary); color: var(--primary); }

button.feature-card { text-align: left; width: 100%; }

.help-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.help-btns .primary-btn { flex: 1 1 180px; }
.secondary-btn {
  flex: 1 1 180px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 600px) {
  .mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .mode-btn { padding: 11px 8px; font-size: 13px; }
  .full-field { grid-column: auto; }
}

/* BIG PROMO BANNER & 4-COLUMN DIRECTORY */
.promo-banner {
  max-width: 980px;
  margin: 0 auto 36px;
  padding: 32px;
  border-radius: 22px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: center;
}
.promo-text h2 { font-size: clamp(22px, 3vw, 30px); margin: 8px 0 12px; line-height: 1.2; }
.promo-text p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.promo-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.promo-btns .primary-btn, .promo-btns .secondary-btn { flex: 0 1 auto; text-align: center; }

.promo-visual { display: flex; flex-direction: column; gap: 10px; }
.mini-app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow);
}
.mini-app-card small { color: var(--muted); font-size: 12px; }

.mega-directory {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.dir-col { display: flex; flex-direction: column; gap: 9px; }
.dir-col h4 { font-size: 15px; margin-bottom: 4px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.dir-col a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.dir-col a:hover { color: var(--primary); }
.new-badge { font-size: 10px; background: var(--primary); color: #fff; padding: 2px 7px; border-radius: 999px; font-weight: 800; }

@media (max-width: 820px) {
  .promo-banner { grid-template-columns: 1fr; padding: 22px; }
  .mega-directory { grid-template-columns: repeat(2, 1fr); padding: 20px; }
}
@media (max-width: 480px) {
  .mega-directory { grid-template-columns: 1fr; }
}
