@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f7fbfa;
  --white: #ffffff;
  --text: #17332f;
  --muted: #6d807c;
  --primary: #54b9aa;
  --primary-dark: #319888;
  --border: #dcebe7;
  --soft: #eaf7f4;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.navbar {
  width: 100%;
  padding: 22px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 251, 250, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
}

.logo span {
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.nav-button {
  background: var(--text);
  color: white;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.hero {
  min-height: 650px;
  padding: 90px 7%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  max-width: 700px;
}

.hero h1 span {
  color: var(--primary-dark);
  display: block;
}

.hero-text {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 25px 0 30px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.3s;
}

.primary-btn {
  background: var(--primary);
  color: white;
}

.primary-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.secondary-btn {
  border: 1px solid var(--border);
  background: white;
}

.secondary-btn:hover {
  transform: translateY(-2px);
}

.hero-visual {
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-card {
  width: 330px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(40, 90, 80, 0.12);
  transform: rotate(4deg);
  z-index: 3;
}

.color-preview {
  height: 250px;
  background: linear-gradient(135deg, #54b9aa, #8ee6d6);
}

.color-info {
  padding: 22px;
}

.color-info p,
.color-info span {
  color: var(--muted);
  font-size: 0.85rem;
}

.color-info h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.8rem;
  margin: 4px 0;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
}

.circle-one {
  width: 110px;
  height: 110px;
  background: #ffd6aa;
  top: 30px;
  right: 10%;
}

.circle-two {
  width: 70px;
  height: 70px;
  background: #bce8ff;
  bottom: 40px;
  left: 8%;
}

.circle-three {
  width: 45px;
  height: 45px;
  background: #e9c4ff;
  top: 50%;
  left: 4%;
}

.tools-section {
  padding: 90px 7%;
  background: white;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}

.section-heading h2,
.why-content h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  max-width: 650px;
}

.view-link {
  color: var(--primary-dark);
  font-weight: 700;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--bg);
  transition: 0.3s;
}

.tool-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 45px rgba(40, 90, 80, 0.09);
}

.featured-tool {
  background: var(--soft);
}

.tool-icon {
  font-size: 2rem;
  margin-bottom: 18px;
}

.tool-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.tool-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.tool-card a {
  color: var(--primary-dark);
  font-weight: 700;
}

.why-section {
  padding: 100px 7%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.why-content h2 span {
  color: var(--primary-dark);
}

.why-content > p:last-child {
  max-width: 580px;
  color: var(--muted);
  margin-top: 24px;
}

.feature-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.feature-box {
  padding: 24px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 20px;
}

.feature-box strong {
  color: var(--primary-dark);
  font-size: 0.8rem;
}

.feature-box h3 {
  margin: 10px 0 8px;
}

.feature-box p {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer {
  padding: 45px 7%;
  background: var(--text);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer p {
  color: #b9cbc7;
  font-size: 0.85rem;
  margin-top: 6px;
}
.mobile-menu-btn {
  display: none;
}
@media (max-width: 900px) {

 .nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 18px 7%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 16px;
}
.mobile-menu-btn {
  display: block;
}

.nav-links.open {
  display: flex;
}



  .hero,
  .why-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 60px;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-boxes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {

  .navbar {
    padding: 18px 5%;
  }

  .nav-button {
    display: none;
  }

  .hero,
  .tools-section,
  .why-section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero-visual {
    min-height: 330px;
  }

  .color-card {
    width: 280px;
  }

  .color-preview {
    height: 200px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

 .footer {
  flex-direction: column;
  align-items: flex-start;
}
}
/* Tools Page */

.tools-hero {
  padding: 100px 7% 70px;
  background: linear-gradient(135deg, #eefaf7, #f7fbfa);
  border-bottom: 1px solid var(--border);
}

.tools-hero-content {
  max-width: 760px;
}

.tools-hero h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
}

.tools-hero h1 span {
  color: var(--primary-dark);
  display: block;
}

.tools-hero p:last-child {
  max-width: 650px;
  color: var(--muted);
  margin-top: 22px;
  font-size: 1.05rem;
}

.all-tools-section {
  padding: 80px 7%;
  background: white;
}

.tools-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.large-tool-card {
  padding: 34px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.large-tool-card:nth-child(1) {
  background: #eaf7f4;
}

.large-tool-card:nth-child(2) {
  background: #f4efff;
}

.large-tool-card:nth-child(3) {
  background: #fff7e9;
}

.large-tool-card:nth-child(4) {
  background: #eef5ff;
}

.large-tool-card:nth-child(5) {
  background: #fff0f7;
}

.tool-label {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}

.large-tool-card h2 {
  font-family: "Manrope", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.large-tool-card p {
  color: var(--muted);
  max-width: 520px;
}

.tool-action {
  margin-top: auto;
  padding-top: 25px;
  color: var(--primary-dark);
  font-weight: 700;
}

.tools-info {
  padding: 90px 7%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tools-info h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
}

.tools-info h2 span {
  color: var(--primary-dark);
  display: block;
}

.tools-info > p {
  color: var(--muted);
  max-width: 550px;
}

@media (max-width: 800px) {
  .tools-page-grid,
  .tools-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .tools-hero,
  .all-tools-section,
  .tools-info {
    padding-left: 5%;
    padding-right: 5%;
  }

  .tools-hero {
    padding-top: 65px;
  }

  .large-tool-card {
    min-height: 280px;
  }
}
/* =========================
   COLOR PICKER PAGE
========================= */

.tool-page-hero {
  padding: 90px 7% 65px;
  background: linear-gradient(135deg, #eefaf7, #f7fbfa);
  border-bottom: 1px solid var(--border);
}

.tool-page-hero h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  max-width: 760px;
}

.tool-page-hero h1 span {
  display: block;
  color: var(--primary-dark);
}

.tool-page-hero > p:last-child {
  max-width: 680px;
  color: var(--muted);
  margin-top: 22px;
  font-size: 1.05rem;
}


.picker-section {
  padding: 70px 7%;
  background: var(--bg);
}

.picker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
}


.picker-card,
.color-result-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 15px 50px rgba(40, 90, 80, 0.07);
}


.picker-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.picker-card-top h2,
.color-result-card h2 {
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
}

.small-btn {
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}


.upload-area {
  min-height: 390px;
  border: 2px dashed #bcd9d3;
  border-radius: 20px;
  background: #f5fbf9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 35px;
  transition: 0.3s;
  cursor: pointer;
}

.upload-area.dragover {
  border-color: var(--primary);
  background: #e9f8f4;
  transform: scale(1.01);
}

.upload-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--primary-dark);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.upload-area h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.3rem;
}

.upload-area p {
  color: var(--muted);
  margin: 6px 0 20px;
}

.upload-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.upload-area small {
  color: #8a9996;
  margin-top: 15px;
}


.canvas-wrapper.hidden,
.hidden {
  display: none !important;
}

.canvas-wrapper {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: #edf2f1;
}

.canvas-toolbar {
  padding: 12px 14px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.zoom-btn {
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  min-width: 35px;
  height: 35px;
  cursor: pointer;
  font-family: inherit;
}

#zoomValue {
  min-width: 50px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.canvas-tip {
  font-size: 0.78rem;
  color: var(--muted);
}

.canvas-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  min-height: 390px;
  overflow: auto;
}

#imageCanvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  cursor: crosshair;
  transform-origin: center center;
  transition: transform 0.2s ease;
}


.picker-marker {
  width: 18px;
  height: 18px;
  border: 3px solid white;
  outline: 2px solid #17332f;
  border-radius: 50%;
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 3;
}


.status-message {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}


.selected-color-preview {
  height: 190px;
  border-radius: 18px;
  margin: 20px 0;
  background: #54b9aa;
  border: 1px solid var(--border);
}


.color-result {
  display: grid;
  gap: 12px;
}

.value-row {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.value-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.value-row strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  word-break: break-word;
}

.copy-btn {
  border: none;
  background: var(--soft);
  color: var(--primary-dark);
  padding: 8px 11px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
}

.copy-btn.copied {
  background: var(--text);
  color: white;
}

.copy-all-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 15px;
  font-family: inherit;
}


.history-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.history-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.history-heading h3 {
  font-size: 1rem;
}

.history-heading button {
  border: none;
  background: transparent;
  color: var(--primary-dark);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.history-color {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}

.history-color span {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 5px;
  padding: 2px 4px;
  text-align: center;
  font-size: 0.57rem;
  font-weight: 700;
}

.empty-history {
  color: var(--muted);
  font-size: 0.8rem;
}


.how-section {
  padding: 90px 7%;
  background: white;
}

.how-heading h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.how-heading h2 span {
  color: var(--primary-dark);
}

.how-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.how-card {
  padding: 25px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.how-card strong {
  color: var(--primary-dark);
  font-size: 0.85rem;
}

.how-card h3 {
  margin: 10px 0 8px;
}

.how-card p {
  color: var(--muted);
  font-size: 0.9rem;
}


.tool-content {
  padding: 85px 7%;
  background: var(--bg);
}

.tool-content-inner {
  max-width: 850px;
}

.tool-content h2 {
  font-family: "Manrope", sans-serif;
  font-size: 1.8rem;
  margin: 28px 0 10px;
}

.tool-content p {
  color: var(--muted);
  margin-bottom: 15px;
}


@media (max-width: 1050px) {
  .picker-layout {
    grid-template-columns: 1fr;
  }

  .color-result-card {
    max-width: none;
  }
}


@media (max-width: 700px) {

  .tool-page-hero,
  .picker-section,
  .how-section,
  .tool-content {
    padding-left: 5%;
    padding-right: 5%;
  }

  .tool-page-hero {
    padding-top: 65px;
  }

  .upload-area,
  .canvas-stage {
    min-height: 300px;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .canvas-tip {
    width: 100%;
  }
}
/* =========================
   IMAGE COLOR EXTRACTOR
========================= */

.extractor-section {
  padding: 70px 7%;
  background: var(--bg);
}

.extractor-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.extractor-card,
.palette-result-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 15px 50px rgba(40, 90, 80, 0.07);
}

.extractor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 20px;
}

.extractor-heading h2,
.palette-result-card h2 {
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
}

.extract-preview {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f3f7f6;
  padding: 15px;
}

.extract-preview img {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 12px;
}

.palette-title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
  margin-bottom: 25px;
}

.palette-title-row p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.palette-grid {
  display: grid;
  gap: 14px;
}

.palette-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: white;
}

.palette-swatch {
  height: 105px;
}

.palette-details {
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.palette-values strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
}

.palette-values span {
  color: var(--muted);
  font-size: 0.78rem;
}

.palette-copy {
  border: none;
  background: var(--soft);
  color: var(--primary-dark);
  padding: 8px 11px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
}

.palette-copy.copied {
  background: var(--text);
  color: white;
}

.palette-empty {
  min-height: 250px;
  border: 2px dashed #c8ddd8;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  text-align: center;
  padding: 30px;
}

.palette-empty span {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .extractor-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .extractor-section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .palette-title-row {
    flex-direction: column;
  }

  .extractor-heading {
    align-items: flex-start;
  }
}
/* =========================
   COLOR CONVERTER
========================= */

.converter-section {
  padding: 70px 7%;
  background: var(--bg);
}

.converter-card {
  max-width: 850px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 15px 50px rgba(40, 90, 80, 0.07);
}

.converter-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.converter-top h2 {
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
}

.converter-input-group {
  margin-bottom: 22px;
}

.converter-input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.converter-input-row {
  display: flex;
  gap: 10px;
}

.converter-input-row input {
  flex: 1;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  color: var(--text);
  outline: none;
}

.converter-input-row input:focus {
  border-color: var(--primary);
}

.converter-input-group small {
  color: var(--muted);
  font-size: 0.75rem;
}

.converter-preview-wrap {
  margin-top: 30px;
}

.converter-preview {
  height: 190px;
  border-radius: 18px;
  margin-top: 10px;
  background: #54B9AA;
  border: 1px solid var(--border);
}

.converter-results {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.converter-result {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}

.converter-result span {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.converter-result strong {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  word-break: break-word;
}

.converter-result.error {
  border-color: #e2b5b5;
}

@media (max-width: 700px) {

  .converter-section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .converter-card {
    padding: 22px;
  }

  .converter-results {
    grid-template-columns: 1fr;
  }

  .converter-input-row {
    flex-direction: column;
  }
}
/* =========================
   CONTRAST CHECKER
========================= */

.contrast-section {
  padding: 70px 7%;
  background: var(--bg);
}

.contrast-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 15px 50px rgba(40, 90, 80, 0.07);
}


/* HERO */

.tool-page-hero {
  padding: 90px 7% 65px;
  background: linear-gradient(135deg, #eefaf7, #f7fbfa);
  border-bottom: 1px solid var(--border);
}

.tool-page-hero h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  max-width: 760px;
}

.tool-page-hero h1 span {
  display: block;
  color: var(--primary-dark);
}

.tool-page-hero > p:last-child {
  max-width: 680px;
  color: var(--muted);
  margin-top: 22px;
  font-size: 1.05rem;
}


/* COLOR CONTROLS */

.contrast-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 18px;
}

.color-control {
  min-width: 0;
}

.contrast-main-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.color-control-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.color-control input[type="color"] {
  width: 62px;
  height: 52px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.hex-input-wrap {
  flex: 1;
}

.hex-input-wrap label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 700;
}

.hex-input-wrap input {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}

.hex-input-wrap input:focus {
  border-color: var(--primary);
}

.hex-input-wrap input.color-input-valid {
  border-color: #9fd5c7;
}

.hex-input-wrap input.color-input-invalid {
  border-color: #d98f8f;
  background: #fff8f8;
}


/* CHOOSE COLOR */

.choose-color-btn {
  width: 100%;
  height: 52px;
  margin-top: 12px;
  padding: 0 16px;
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--primary-dark);
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: 0.2s ease;
}

.choose-color-btn:hover {
  background: #dff3ee;
  transform: translateY(-1px);
}


/* QUICK PALETTE */

.contrast-palette-wrap {
  margin-top: 16px;
}

.quick-palette-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contrast-palette {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.contrast-swatch {
  width: 31px;
  height: 31px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid white;
  outline: 1px solid var(--border);
  background: var(--swatch);
  cursor: pointer;
  transition: 0.2s ease;
}

.contrast-swatch:hover {
  transform: scale(1.12);
  outline-color: var(--primary);
}


/* SWAP */

.swap-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  cursor: pointer;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: 0.3s ease;
}

.swap-btn:hover {
  transform: rotate(180deg);
}


/* RESULT */

.contrast-result-box {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  background: var(--bg);
}

.ratio-box span {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 1px;
  font-weight: 700;
}

.ratio-box strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 2.4rem;
  margin-top: 5px;
}

.result-status {
  text-align: right;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.status-badge.pass {
  background: #e4f7ef;
  color: #21714f;
}

.status-badge.fail {
  background: #fceaea;
  color: #a74242;
}

.result-status p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.85rem;
}


/* SECTION HEADINGS */

.contrast-preview-section,
.wcag-section {
  margin-top: 42px;
}

.contrast-section-heading {
  max-width: 720px;
}

.contrast-overline {
  color: var(--primary-dark);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  font-weight: 800;
  margin-bottom: 7px;
}

.contrast-section-heading h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 8px;
}

.contrast-section-heading > p:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}


/* LIVE PREVIEW */

.contrast-preview-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.contrast-preview-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
}

.contrast-preview-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  background: #fbfdfc;
}

.contrast-preview-card-top strong {
  font-size: 0.82rem;
}

.contrast-preview-card-top span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.preview-normal,
.preview-large,
.preview-button-area,
.preview-ui-area {
  min-height: 155px;
}

.preview-normal {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px;
  font-size: 16px;
  line-height: 1.7;
}

.preview-large {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
}

.preview-button-area,
.preview-ui-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.demo-contrast-button {
  border: none;
  border-radius: 11px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.demo-ui-box {
  padding: 17px 22px;
  border: 2px solid currentColor;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
}


/* WCAG GRID */

.wcag-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.wcag-card {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 15px;
  padding: 18px;
  transition: 0.2s ease;
}

.wcag-card > span:first-child {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.8px;
  font-weight: 700;
}

.wcag-card > strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
  margin: 5px 0;
}

.wcag-card small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  margin-bottom: 12px;
}

.wcag-card .status-badge {
  font-size: 0.7rem;
}

.wcag-card.pass {
  border-color: #b9dfce;
}

.wcag-card.fail {
  border-color: #e4c0c0;
}


/* ACTIONS */

.contrast-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.contrast-copy-message {
  min-height: 22px;
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}


/* RESPONSIVE */

@media (max-width: 950px) {

  .wcag-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 800px) {

  .contrast-section,
  .tool-page-hero {
    padding-left: 5%;
    padding-right: 5%;
  }

  .contrast-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .swap-btn {
    justify-self: center;
  }

  .contrast-result-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-status {
    text-align: left;
  }

  .wcag-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 600px) {

  .tool-page-hero {
    padding-top: 65px;
  }

  .contrast-card {
    padding: 22px;
  }

  .contrast-preview-grid {
    grid-template-columns: 1fr;
  }

  .wcag-grid {
    grid-template-columns: 1fr;
  }

  .color-control-row {
    align-items: stretch;
  }

  .color-control input[type="color"] {
    width: 56px;
    height: 50px;
  }

  .hex-input-wrap input {
    font-size: 0.82rem;
  }

  .contrast-actions {
    flex-direction: column;
  }

  .contrast-actions button {
    width: 100%;
  }

}

/* =========================
   GRADIENT GENERATOR
========================= */

.gradient-section {
  padding: 70px 7%;
  background: var(--bg);
}

.gradient-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.gradient-card,
.gradient-preview-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 15px 50px rgba(40, 90, 80, 0.07);
}

.gradient-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.gradient-card-heading h2 {
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
}

.gradient-control {
  margin-bottom: 24px;
}

.gradient-control label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 9px;
}

.gradient-control select {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
  font-family: inherit;
  color: var(--text);
  outline: none;
}

.gradient-color-row {
  margin-bottom: 20px;
}

.color-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.color-input-row input[type="color"] {
  width: 58px;
  height: 48px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.color-input-row input[type="text"] {
  flex: 1;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.color-input-row input[type="text"]:focus {
  border-color: var(--primary);
}

.color-input-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.optional-label {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0;
}

.range-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.range-label-row strong {
  color: var(--primary-dark);
}

.gradient-control input[type="range"] {
  width: 100%;
  cursor: pointer;
  accent-color: var(--primary);
}

.css-output {
  margin-top: 28px;
  padding: 18px;
  background: #f3f8f6;
  border: 1px solid var(--border);
  border-radius: 15px;
}

.css-output-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.css-output code {
  display: block;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}

.gradient-preview-card {
  position: sticky;
  top: 100px;
}

.gradient-preview {
  min-height: 430px;
  margin: 15px 0 18px;
  border-radius: 20px;
  background: linear-gradient(
    90deg,
    #54B9AA,
    #8EE6D6
  );
  border: 1px solid var(--border);
}

.gradient-preview-card > p {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 850px) {

  .gradient-layout {
    grid-template-columns: 1fr;
  }

  .gradient-preview-card {
    position: static;
  }
}

@media (max-width: 600px) {

  .gradient-section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .gradient-card,
  .gradient-preview-card {
    padding: 22px;
  }

  .gradient-preview {
    min-height: 300px;
  }
}
/* =========================
   ABOUT PAGE
========================= */

.about-hero {
  padding: 100px 7% 80px;
  background: linear-gradient(135deg, #eefaf7, #f7fbfa);
  border-bottom: 1px solid var(--border);
}

.about-hero-content {
  max-width: 820px;
}

.about-hero h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
}

.about-hero h1 span {
  display: block;
  color: var(--primary-dark);
}

.about-hero p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 22px;
}

.about-section {
  padding: 90px 7%;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.about-heading h2,
.about-section-heading h2,
.about-cta h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.15;
}

.about-heading h2 span,
.about-section-heading h2 span,
.about-cta h2 span,
.privacy-card h2 span {
  display: block;
  color: var(--primary-dark);
}

.about-text {
  max-width: 650px;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 18px;
}

.about-tools-section {
  padding: 90px 7%;
  background: var(--bg);
}

.about-section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-feature-card {
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: 0.3s;
}

.about-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(40, 90, 80, 0.08);
}

.feature-number {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.about-feature-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 9px;
}

.about-feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.about-privacy {
  padding: 85px 7%;
  background: white;
}

.privacy-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 24px;
  background: var(--soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.privacy-card h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.privacy-card > p {
  color: var(--muted);
}

.about-users {
  padding: 90px 7%;
  background: var(--bg);
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.user-card {
  padding: 25px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 18px;
}

.user-card > span {
  font-size: 1.8rem;
}

.user-card h3 {
  margin: 12px 0 8px;
}

.user-card p {
  color: var(--muted);
  font-size: 0.86rem;
}

.about-cta {
  padding: 100px 7%;
  text-align: center;
  background: white;
}

.about-cta h2 {
  margin-bottom: 16px;
}

.about-cta > p:nth-of-type(2) {
  max-width: 550px;
  margin: 0 auto 28px;
  color: var(--muted);
}

@media (max-width: 900px) {

  .about-grid,
  .privacy-card {
    grid-template-columns: 1fr;
  }

  .about-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .user-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .about-hero,
  .about-section,
  .about-tools-section,
  .about-privacy,
  .about-users,
  .about-cta {
    padding-left: 5%;
    padding-right: 5%;
  }

  .about-hero {
    padding-top: 65px;
  }

  .about-feature-grid,
  .user-grid {
    grid-template-columns: 1fr;
  }

  .privacy-card {
    padding: 28px;
  }
}
/* =========================
   ABOUT EXTRA SECTIONS
========================= */

.about-founder {
  padding: 80px 7%;
  background: var(--bg);
}

.founder-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.founder-card h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.founder-card h2 span {
  display: block;
  color: var(--primary-dark);
}

.founder-card p:last-child {
  color: var(--muted);
}


.about-contact {
  padding: 75px 7%;
  background: var(--soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.about-contact h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.about-contact h2 span {
  display: block;
  color: var(--primary-dark);
}

.about-contact p:last-child {
  max-width: 600px;
  color: var(--muted);
  margin-top: 12px;
}

.about-contact .primary-btn {
  flex-shrink: 0;
}


@media (max-width: 800px) {

  .founder-card {
    grid-template-columns: 1fr;
  }

  .about-contact {
    flex-direction: column;
    align-items: flex-start;
  }

}


@media (max-width: 600px) {

  .about-founder,
  .about-contact {
    padding-left: 5%;
    padding-right: 5%;
  }

  .founder-card {
    padding: 28px;
  }

}
/* =========================
   CONTACT PAGE
========================= */

.contact-hero {
  padding: 100px 7% 80px;
  background: linear-gradient(135deg, #eefaf7, #f7fbfa);
  border-bottom: 1px solid var(--border);
}

.contact-hero-content {
  max-width: 800px;
}

.contact-hero h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
}

.contact-hero h1 span {
  display: block;
  color: var(--primary-dark);
}

.contact-hero p:last-child {
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.05rem;
}


.contact-section {
  padding: 85px 7%;
  background: var(--bg);
}

.contact-layout {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.15;
}

.contact-info h2 span {
  display: block;
  color: var(--primary-dark);
}

.contact-info > p:nth-of-type(2) {
  max-width: 560px;
  color: var(--muted);
  margin-top: 22px;
}

.contact-reasons {
  margin-top: 35px;
  display: grid;
  gap: 18px;
}

.contact-reason {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-reason > span {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--soft);
  font-size: 1.25rem;
}

.contact-reason h3 {
  font-size: 1rem;
  margin-bottom: 3px;
}

.contact-reason p {
  color: var(--muted);
  font-size: 0.85rem;
}


.contact-form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 15px 50px rgba(40, 90, 80, 0.07);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-submit {
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}


.contact-faq {
  padding: 90px 7%;
  background: white;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.faq-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--bg);
}

.faq-card h3 {
  font-family: "Manrope", sans-serif;
  margin-bottom: 8px;
}

.faq-card p {
  color: var(--muted);
  font-size: 0.9rem;
}


@media (max-width: 850px) {

  .contact-layout {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 600px) {

  .contact-hero,
  .contact-section,
  .contact-faq {
    padding-left: 5%;
    padding-right: 5%;
  }

  .contact-hero {
    padding-top: 65px;
  }

  .contact-form-card {
    padding: 22px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

}
/* =========================
   PALETTE LIBRARY
========================= */

.palette-library {
  padding: 80px 7%;
  background: var(--bg);
}

.palette-library-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 35px;
}

.palette-library-top h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.palette-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.palette-library-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 35px rgba(40, 90, 80, 0.06);
}

.palette-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.palette-card-heading h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
}

.copy-full-palette {
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--primary-dark);
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
}

.palette-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border-radius: 15px;
}

.palette-color {
  min-height: 135px;
  position: relative;
  cursor: pointer;
  transition: 0.2s;
}

.palette-color:hover {
  transform: scale(1.03);
  z-index: 2;
}

.palette-color-code {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 5px 4px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
}

.palette-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 800px) {
  .palette-gallery {
    grid-template-columns: 1fr;
  }

  .palette-library-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .palette-library {
    padding-left: 5%;
    padding-right: 5%;
  }

  .palette-strip {
    grid-template-columns: repeat(5, 1fr);
  }

  .palette-color {
    min-height: 100px;
  }

  .palette-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* =========================
   PRIVACY POLICY
========================= */

.policy-hero {
  padding: 90px 7% 70px;
  background: linear-gradient(135deg, #eefaf7, #f7fbfa);
  border-bottom: 1px solid var(--border);
}

.policy-hero h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
}

.policy-hero h1 span {
  display: block;
  color: var(--primary-dark);
}

.policy-hero > p:nth-of-type(2) {
  max-width: 700px;
  color: var(--muted);
  margin-top: 22px;
}

.policy-updated {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 18px;
}

.policy-section {
  padding: 80px 7%;
  background: white;
}

.policy-content {
  max-width: 850px;
  margin: 0 auto;
}

.policy-content h2 {
  font-family: "Manrope", sans-serif;
  font-size: 1.55rem;
  margin: 35px 0 12px;
}

.policy-content p {
  color: var(--muted);
  margin-bottom: 12px;
}

.policy-content ul {
  padding-left: 20px;
  color: var(--muted);
}

.policy-content li {
  margin-bottom: 6px;
}

.policy-content a {
  color: var(--primary-dark);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d4e2df;
  font-size: 0.82rem;
}

@media (max-width: 600px) {

  .policy-hero,
  .policy-section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .policy-hero {
    padding-top: 65px;
  }

  .footer-links {
    gap: 12px;
  }

}
/* =========================
   COLOR PICKER MAGNIFIER
========================= */

.magnifier-canvas {
  width: 120px;
  height: 120px;
  position: absolute;
  border-radius: 50%;
  border: 3px solid white;
  outline: 2px solid var(--text);
  pointer-events: none;
  display: none;
  z-index: 10;
  background: white;
  image-rendering: pixelated;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.canvas-stage {
  position: relative;
}
.paste-image-btn {
  margin-top: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
}

.paste-hint {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.75rem;
}
/* =========================
   EXTRACTOR EXTRA CONTROLS
========================= */

.palette-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.palette-controls label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

.palette-controls select {
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  padding: 9px 12px;
  border-radius: 9px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.palette-controls select:focus {
  border-color: var(--primary);
}

.palette-controls .small-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.paste-image-btn {
  margin-top: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  width: auto;
}


.paste-hint {
  color: var(--muted);
  font-size: 0.76rem;
  margin: 10px 0;
}


@media (max-width: 700px) {

  .palette-controls {
    width: 100%;
  }

  .palette-controls select {
    flex: 1;
  }

  .paste-image-btn {
    width: 100%;
  }

}
/* =========================
   IMPROVED COLOR CONVERTER
========================= */

.main-color-picker {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  margin-top: 25px;
}

.visual-picker-wrap {
  min-height: 110px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.visual-picker-wrap input[type="color"] {
  width: 70px;
  height: 70px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.visual-picker-wrap strong {
  display: block;
  margin-bottom: 4px;
}

.visual-picker-wrap span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.main-text-input label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.main-text-input input {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.main-text-input input:focus {
  border-color: var(--primary);
}

.main-text-input small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.converter-live-preview {
  margin-top: 28px;
}

.converter-preview {
  height: 170px;
  margin-top: 10px;
  border-radius: 18px;
  background: #54B9AA;
  border: 1px solid var(--border);
}

.conversion-results {
  margin-top: 35px;
}

.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.results-heading h2 {
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
}

.results-heading .primary-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.conversion-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 17px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 11px;
}

.conversion-info {
  min-width: 0;
}

.format-name {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 5px;
}

.conversion-info strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  word-break: break-word;
}

.css-conversion-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #f3f8f6;
}

.css-box-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.css-box-heading p {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.css-conversion-box code {
  display: block;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.6;
  word-break: break-word;
}


/* Success state */

.converter-success {
  color: var(--primary-dark);
}


/* Error input */

.converter-invalid {
  border-color: #d98f8f !important;
}


/* Responsive */

@media (max-width: 800px) {

  .main-color-picker {
    grid-template-columns: 1fr;
  }

  .visual-picker-wrap {
    min-height: auto;
  }

}

@media (max-width: 600px) {

  .converter-card {
    padding: 22px;
  }

  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .css-box-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .conversion-row {
    align-items: flex-start;
  }

  .converter-preview {
    height: 140px;
  }

}
/* QUICK COLORS */
.quick-colors {
  margin-top: 22px;
}

.quick-colors-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.quick-colors-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.contrast-swatch {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid #ffffff;
  outline: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contrast-swatch:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 14px rgba(40, 90, 80, 0.15);
}
/* =========================
   CONTRAST CHECKER FOOTER
========================= */

.contrast-footer {
  justify-content: center;
  position: relative;
}

.contrast-footer .footer-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
}

.contrast-footer .footer-links a {
  color: #d4e2df;
  font-size: 0.82rem;
}

.contrast-footer .footer-links a:hover {
  color: white;
}

.contrast-footer::after {
  content: "© 2026 ColorCraft. All rights reserved.";
  margin-left: auto;
  color: #b9cbc7;
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .contrast-footer {
    position: static;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contrast-footer .footer-links {
    position: static;
    transform: none;
    justify-content: center;
  }

  .contrast-footer::after {
    margin-left: 0;
  }
}
/* =========================
   BACK BUTTON
========================= */

.back-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--text);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.2s ease;
}

.back-button:hover {
  background: var(--soft);
  color: var(--primary-dark);
  transform: translateX(-2px);
}

@media (max-width: 600px) {

  .back-button {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

}
@media (max-width: 900px) {
  .mobile-menu-btn {
    display: block;
  }
}
/* Allow touch dragging for mobile magnifier */
#imageCanvas {
  touch-action: none;
}
