:root {
  --text-color: #1a1a1a;
  --background-color: #fdfdfd;
  --light-color: #888;
  --primary-color: #127d74;
}

* {margin: 0; padding: 0; box-sizing: border-box;}
html {scroll-behavior: smooth;}
body {
  font-family: 'Open Sans', Arial, sans-serif, 'Helvetica Neue', 'Helvetica';
  font-size: 16px;
  color: var(--text-color);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--background-color);
}
.btn {
  text-decoration: none;
  text-align: center;
  background: var(--primary-color);
  color: #fff;
  padding: .5rem;
  border-radius: 6px;
  font-size: 16px;
  border: 1px solid var(--primary-color);
  cursor: pointer;
  transition: all .3s ease;
  font-weight: 600;
  font-family: 'Open Sans', Arial, sans-serif, 'Helvetica Neue', 'Helvetica';
  white-space: nowrap;
  display: inline-block;
}
.btn:hover {filter: brightness(72%);}

/* HEADER */
#header {
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--light-color);
  width: 100%;
  z-index: 1;
  background: var(--background-color);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area {
  display: flex;
  align-items: center;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
}
.logo-icon {
  margin-right: 0.5rem;
}
.logo-text {
  font-size: 18px;
  font-weight: normal;
  letter-spacing: -0.5px;
}

/* Main menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-items {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.menu-items li {
  margin-left: 1rem;
  margin-bottom: 0;
}
.menu-item {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 0;
}
.menu-item:hover {
  color: var(--primary-color);
}

/* MAIN */
main {
  max-width: 100% !important;
  width: 100%;
  margin: 0;
  position: relative;
}
h1 {font-size: 3rem; margin-bottom: 1rem; text-align: center;}
h2 {font-size: 1.8rem; margin: 1rem 0;}
h3 {font-size: 18px; margin: 1rem 0;}
h4 {font-size: 1.25rem; margin-bottom: 1rem;}
p, em {font-size: 16px; line-height: 1.5; margin-bottom: 1rem;}
li {font-size: 16px;line-height: 1.5;}
em {display: inline-block;}
a {color: var(--primary-color); font-weight: 600; transition: all .3s ease;}
a:hover {text-decoration: none;}
ol, ul {padding-left: 2rem;}
ul li::marker {color: var(--text-color); font-size: 20px;}
strong {display: inline-block; font-size: 18px; line-height: 1.5;}

/* home */
.categories {padding: 3rem 1rem;}
.categories .hero {text-align: center;margin-bottom: 2rem;}
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.tools .tool {
  background: #fff;
  border: 1px solid var(--light-color);
  border-radius: 12px;
  padding: .5rem 1.2rem;
  width: 100%;
  text-decoration: none;
  color: var(--text-color);
}
.tools .tool-icon {font-size: 24px;margin-top: .5rem;display: inline-block;}
.tools .tool h3 {font-size: 20px;margin-bottom: 1rem;}
.tools .tool p {
  font-size: 16px;
  line-height: 1.5;
  font-weight: normal;
  color: var(--light-color);
}
.tools .tool:hover {background: rgba(18, 125, 116, 0.04);border-color: var(--primary-color);box-shadow: 0 0 10px 0 rgba(18, 125, 116, 0.2);}
.tools .tool:hover h3 {color: var(--primary-color);text-decoration: underline;}

/* TOOLS */
.tool-container {
  display: flex;
  width: 100%;
  position: relative;
  border-bottom: 1px solid var(--light-color);
}
.preview-container {
  width: 68%;
  padding: 1rem;
  background-color: #f2f2f2;
  background-image: radial-gradient(#aaa 1px, transparent 1px);
  background-size: 40px 40px;
  flex: 1;
  z-index: 1;
}
aside {
  min-width: 150px;
  width: 16%;
  font-size: 14px;
  position: relative;
}
aside h1 {font-size: 22px; text-align: left;}
aside p {font-size: 14px;}
.sidebar-left {
  border-right: 1px solid var(--light-color);
  position: relative;
  padding: 1rem;
}
.sidebar-left .faq-item {
  border-radius: 6px;
  background: #ededed;
  padding: 5px;
}
.sidebar-left .faq-question {
  padding: 0;
  font-size: 14px;
  font-weight: normal;
}
.sidebar-left .faq-answer.active {padding: .5rem 0 0 0; margin-top: 5px; border-top: 1px solid var(--light-color);}
.drag-handle {
  width: 8px;
  cursor: col-resize;
  background: transparent;
  position: absolute;
  right: -8px;
  top: 0;
  bottom: 0;
}
.drag-handle:hover {background: rgba(0, 0, 0, 0.1);}
.drag-handle:active {background: rgba(0, 0, 0, 0.2);}
.app-by {margin-top: 1rem;display: block;}
.app-by a {color: var(--text-color);text-decoration: underline;font-weight: normal;}
.app-by a:hover {text-decoration: none;}
.sidebar-right {
  border-left: 1px solid var(--light-color);
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
}

/* FORMS */
input, select, textarea {
  background-color: var(--background-color);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 14px;
  color: var(--text-color);
  width: 100%;
  box-sizing: border-box;
  margin: 0.5rem 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {outline: none;border-color: var(--primary-color);}
textarea {resize: vertical;font-family: 'Open Sans', Arial, sans-serif, 'Helvetica Neue', 'Helvetica'; line-height: 1.5;}
input[type="color"] {
  height: 40px;
  padding: 0;
  width: 100%;
  min-width: 100px;
  border: none;
  cursor: pointer;
}
input[type="checkbox"], input[type="radio"] {width: auto;margin: 0;}
input[type="range"] {cursor: pointer;}
.section h3 {padding-bottom: 8px;border-bottom: 2px solid #ddd;}
.form-group label {display: block;margin-top: 10px;}
.column-config {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
}
.column-header {display: flex;justify-content: space-between;align-items: center;margin-bottom: 10px;}
.remove-column-btn {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 2px 4px 0px 4px;
  border-radius: 4px;
  cursor: pointer;
}
.remove-column-btn:hover {background: #fecaca;color: #b91c1c;border-color: #b91c1c;}
.column-title {font-weight: 600;}
.link-group {border-top: 1px solid #ddd;padding-top: 10px;margin: 10px 0;}
.add-link-btn, .add-column-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1px dashed #cbd5e1;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.add-column-btn {font-size: 14px;border-style: solid;}
.add-link-btn:hover {background: #e2e8f0;border-color: #94a3b8;}
.remove-link-btn {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  max-width: 40px;
}
.remove-link-btn:hover {background: #fecaca;color: #b91c1c;border-color: #b91c1c;}
.copy-buttons {margin-top: 14px;padding-top: 12px;border-top: 2px solid #ddd;}
.copy-btn {width: 100%;height: 48px;}
.secondary-copy-btn {background: #f1f5f9;color: var(--primary-color);border: 1px solid var(--primary-color);width: 100%;margin-top: .5rem;height: 48px;}
.preview-header {font-size: 18px;margin-bottom: 1rem;background: #f2f2f2;padding: .5rem;display: inline-block;}
.preview-inner {position: sticky;top: 0;align-self: flex-start;margin-top: 3rem;}
.preview-content {border: 1px solid var(--light-color);}

/* BANNERS */
.sidebar-banner {
  padding: 2rem 1rem;
  position: sticky;
  top: 0;
  align-self: flex-start;
}
.sidebar-banner h2 {font-size: 26px;}
.sidebar-banner span {position: relative; white-space: nowrap;}
.sidebar-banner span:before {
  content: "";
  display: inline-block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: -5px;
  padding: 0 5px;
  z-index: -1;
}
.sidebar-banner ul {padding-left: 1.2rem;}
.sidebar-banner li {margin-bottom: .5rem;}
.banner-btn {
  margin-top: .5rem;
  display: inline-block;
  width: 100%;
  padding: .8rem .5rem;
}

/* HELP */
.tool-help {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem;
}
.tool-help p {font-size: 18px; color: #666;}
/* HOW IT WORKS */
.how-it-works, .faq-section, .more-tools {margin-bottom: 5rem;}
.how-it-works h3 span {
  margin-right: 10px;
  background: var(--primary-color);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 50%;
}
/* FAQ */
.faq-section strong {margin-bottom: -1rem;color: var(--primary-color);display: block;}
.faq-item {overflow: hidden;border-bottom: 1px solid #ddd;}
.faq-item:last-child {border-bottom: none;}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-color);
  font-weight: 600;
  font-size: 18px;
}
.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-question[aria-expanded="true"] .faq-icon {transform: rotate(180deg);}
.faq-answer {
  padding: 0 1rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  visibility: hidden;
}
.faq-answer p {margin: 0;}
.faq-answer.active {
  padding-bottom: 1.25rem;
  max-height: max-content;
  height: auto;
  opacity: 1;
  visibility: visible;
}
/* CTA */
.cta-section {
  max-width: 800px;
  text-align: center;
  margin: 2rem auto;
  border: 3px solid;
  border-radius: 12px;
  background: #fafafa;
  padding: 1.5rem 1rem;
}
.cta-section h2 {font-size: 42px;margin: 0 0 20px 0;}
.cta-section p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 auto 32px auto;
  max-width: 700px;
}
.cta-section .btn {
  display: inline-block;
  padding: 14px 32px;
  margin: 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
/*MORE TOOLS*/
.more-tools {margin-top: 5rem;}
.more-tools strong {margin-bottom: -1rem;color: var(--primary-color);display: block;}
.more-tools .btn {margin: 1rem auto;display: block;max-width: max-content;}

/* FOOTER */
footer {padding: 1.5rem 1rem;border-top: 1px solid var(--light-color);background: var(--text-color);}
footer .container {max-width: 980px;margin: 0 auto;}
footer p {font-size: 14px;color: #fff;}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.footer-column {flex: 1;min-width: 250px;}
.footer-column h4 {font-size: 18px;margin-bottom: 1rem;color: #fff;}
.footer-column ul {padding-left: 0;list-style: none;}
.footer-column li {margin-bottom: 0.5rem;font-size: 14px;}
.footer-column a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: normal;
}
.footer-column a:hover {text-decoration: underline;}
.copyright {text-align: center;padding-top: 1.5rem;}


@media (max-width: 1200px) {
  .tool-container {flex-direction: column;}
  aside, .preview-container {width: 100%;}
  .drag-handle {display: none;}
  .sidebar-right {height: auto;border-top: 1px solid var(--light-color);border-left: none;}
}
@media (max-width: 960px) {
  h1 {font-size: 2.5rem;}
}
@media (max-width: 768px) {

}