:root {
  --navy: #12365a;
  --teal: #28c7b7;
  --teal-dark: #0f8f86;
  --bg: #eef4f7;
  --surface: #fbfdfe;
  --surface-alt: #e3edf2;
  --border: #c6d6df;
  --muted: #5f7180;
  --gold: #c7922b;
  --shadow: 0 18px 50px rgba(18, 54, 90, 0.12);
  --shadow-strong: 0 28px 70px rgba(18, 54, 90, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  background: rgba(238, 244, 247, 0.92);
  border-bottom: 1px solid rgba(198, 214, 223, 0.75);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--navy);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.9fr);
  align-items: center;
  gap: 48px;
  padding: 60px 0 42px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 28px;
  right: min(44vw, 430px);
  width: 210px;
  height: 210px;
  background: url("assets/pixalike-logo-transparent.png") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
  transform: rotate(-8deg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.95;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(251, 253, 254, 0.75);
  border: 1px solid rgba(198, 214, 223, 0.85);
  border-radius: 999px;
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--teal);
  color: var(--navy);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--border);
}

.app-preview,
.license-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-strong);
}

.app-preview {
  position: relative;
  overflow: hidden;
}

.app-preview::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: 18px;
  width: 190px;
  height: 190px;
  background: url("assets/pixalike-logo-transparent.png") center / contain no-repeat;
  opacity: 0.055;
  pointer-events: none;
}

.preview-topbar,
.preview-toolbar,
.preview-body,
.preview-footer {
  position: relative;
  z-index: 1;
}

.preview-topbar {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  background: rgba(18, 54, 90, 0.24);
  border-radius: 50%;
}

.preview-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.folder-field,
.mode-pill,
.scan-button {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.folder-field {
  overflow: hidden;
  color: var(--muted);
  background: white;
  border: 1px solid var(--border);
  text-overflow: ellipsis;
}

.mode-pill {
  background: white;
  border: 1px solid var(--border);
}

.scan-button {
  background: var(--teal);
  font-weight: 700;
}

.preview-body {
  display: grid;
  grid-template-rows: 210px auto;
}

.preview-thumbs {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.85fr;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(227, 237, 242, 0.65), rgba(251, 253, 254, 0.95));
}

.photo-card {
  min-height: 176px;
  padding: 8px;
  border: 1px solid rgba(198, 214, 223, 0.85);
  border-radius: 9px;
  background: var(--surface);
}

.photo-card.large {
  min-height: 198px;
}

.photo-card.selected {
  border: 2px solid var(--teal);
}

.photo-card small,
.mini-photo small {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 7px;
  background-image: url("assets/pet-duplicates-grid.png");
  background-repeat: no-repeat;
  background-size: 200% 200%;
  box-shadow: inset 0 0 0 1px rgba(18, 54, 90, 0.08);
}

.sample-photo.small {
  aspect-ratio: 4 / 3;
}

.sample-photo.crop-one {
  background-position: 0 0;
}

.sample-photo.crop-two {
  background-position: 100% 0;
}

.sample-photo.crop-three {
  background-position: 0 100%;
}

.sample-photo.crop-four {
  background-position: 100% 100%;
}

.sample-photo.compressed {
  filter: saturate(0.82) contrast(0.88);
}

.sample-photo.rotated {
  transform: rotate(5deg) scale(0.94);
  box-shadow: 0 10px 24px rgba(18, 54, 90, 0.18);
}

.sample-photo.resized {
  transform: scale(0.86);
  background-color: var(--surface-alt);
  box-shadow: 0 0 0 12px var(--surface-alt), inset 0 0 0 1px rgba(18, 54, 90, 0.08);
}

.preview-table {
  padding: 0 16px 16px;
}

.table-row {
  display: grid;
  grid-template-columns: 36px 60px 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.table-row span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-row.heading {
  color: var(--navy);
  background: var(--surface-alt);
  border-radius: 8px 8px 0 0;
  font-weight: 700;
}

.table-row.active {
  color: var(--navy);
  background: rgba(216, 242, 239, 0.72);
}

.preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 13px;
}

.license-box p,
.section p,
.faq p {
  color: var(--muted);
}

.section {
  padding: 72px 0;
  border-top: 1px solid rgba(198, 214, 223, 0.75);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 44px;
  align-items: start;
}

.grid,
.feature-grid,
.matching-grid,
.workflow-grid {
  display: grid;
  gap: 16px;
}

.grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.matching-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid article,
.feature-grid article,
.matching-card,
.workflow-card,
.download-card,
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.grid article,
.feature-grid article {
  padding: 20px;
}

.matching-card {
  padding: 22px;
}

.workflow-card {
  padding: 18px;
}

.workflow-visual {
  min-height: 190px;
  margin-bottom: 18px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(227, 237, 242, 0.82), rgba(251, 253, 254, 0.94));
  border: 1px solid rgba(198, 214, 223, 0.9);
  border-radius: 9px;
}

.two-up {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.two-up .sample-photo {
  aspect-ratio: 1 / 1;
  height: auto;
}

.selected-photo {
  border: 3px solid var(--teal);
  box-shadow: 0 14px 34px rgba(18, 54, 90, 0.14), inset 0 0 0 1px rgba(18, 54, 90, 0.08);
}

.faded-photo {
  opacity: 0.72;
}

.action-stack,
.destination-visual {
  display: grid;
  align-content: center;
  gap: 12px;
}

.action-row,
.destination-card {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.action-row span,
.destination-card span {
  color: var(--muted);
  font-size: 13px;
}

.active-action,
.primary-destination {
  background: rgba(216, 242, 239, 0.78);
  border-color: rgba(40, 199, 183, 0.48);
}

.undo-action {
  border-style: dashed;
}

.premium-card {
  border-color: rgba(199, 146, 43, 0.48);
}

.matching-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.matching-header h3 {
  margin-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.free {
  color: var(--teal-dark);
  background: rgba(40, 199, 183, 0.16);
}

.badge.premium {
  color: #7b5312;
  background: rgba(199, 146, 43, 0.18);
}

.example-strip,
.visual-examples {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.exact-strip {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.visual-examples {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-photo {
  min-width: 0;
  padding: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.equals {
  color: var(--muted);
  font-size: 24px;
  font-weight: 700;
}

.feature-icon {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--surface-alt);
}

.feature-icon.exact {
  background: linear-gradient(135deg, var(--teal), #d8f2ef);
}

.feature-icon.visual {
  background: linear-gradient(135deg, var(--gold), #f5e8c9);
}

.feature-icon.review {
  background: linear-gradient(135deg, var(--navy), #d7e6ec);
}

.feature-icon.local {
  background: linear-gradient(135deg, var(--teal-dark), #d8f2ef);
}

.download-list {
  display: grid;
  gap: 12px;
}

.download-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  min-height: 78px;
  padding: 18px;
  text-decoration: none;
}

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

.download-card small {
  color: var(--muted);
}

.download-card code {
  display: block;
  overflow-x: auto;
  padding: 8px 10px;
  color: var(--navy);
  background: var(--surface-alt);
  border: 1px solid rgba(198, 214, 223, 0.9);
  border-radius: 7px;
  font-size: 12px;
  white-space: nowrap;
}

.download-card[aria-disabled="true"],
.muted-card {
  color: var(--muted);
}

.download-card[aria-disabled="true"] {
  cursor: not-allowed;
}

.license-box {
  padding: 22px;
}

.clean-list {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}

.clean-list li + li {
  margin-top: 7px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  margin: 12px 0 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  color: var(--muted);
  border-top: 1px solid rgba(198, 214, 223, 0.75);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
}

.footer-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0.78;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    gap: 12px;
    padding: 12px 20px;
  }

  .nav {
    width: 100%;
    align-self: stretch;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .hero,
  .split,
  .grid,
  .feature-grid,
  .matching-grid,
  .workflow-grid,
  .visual-examples {
    grid-template-columns: 1fr;
  }

  .workflow-grid {
    justify-items: center;
  }

  .workflow-card {
    width: 100%;
    max-width: 430px;
    overflow: hidden;
  }

  .workflow-visual {
    min-height: auto;
  }

  .two-up {
    grid-template-columns: 1fr;
  }

  .two-up .sample-photo {
    height: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero::before {
    right: -42px;
    width: 180px;
    height: 180px;
  }

  .preview-toolbar {
    grid-template-columns: 1fr;
  }

  .preview-body {
    grid-template-rows: auto auto;
  }

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

  .photo-card,
  .photo-card.large {
    min-height: auto;
  }

  .photo-card small,
  .mini-photo small {
    white-space: normal;
  }

  .preview-footer {
    flex-direction: column;
    gap: 4px;
  }

  .exact-strip {
    grid-template-columns: 1fr;
  }

  .equals {
    text-align: center;
  }
}
