/* Duplicate Photo Finder page specific styles */

:root {
    --dfp-blue: #1b89fe;
    --dfp-blue-deep: #1071e5;
    --dfp-text: #101828;
    --dfp-muted: #667085;
    --dfp-line: #d9e6f6;
    --dfp-soft: #f3f8ff;
    --dfp-soft-2: #eef5ff;
}

.photo-header {
    padding-top: 32px;
}

.photo-header .text-area {
    padding-top: 8px;
}

.photo-header h1 {
    max-width: 520px;
    font-size: 36px;
    line-height: 1.2;
}

.photo-header .dp-list {
    max-width: 500px;
}

.photo-header .hero img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.why-section {
    padding: 78px 0;
    background: var(--dfp-soft);
}
.compare-section {
  width: 100%;
  padding: 26px 0 38px;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  text-align: center;
  background: #fff;
}

.compare-section h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.compare-desc {
  width: 650px;
  margin: 24px auto 52px;
  line-height: 1.55;
  color: #111;
}

.compare-wrap {
  position: relative;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 46px;
}

.compare-card {
  width: 500px;
  min-height: 468px;
  box-sizing: border-box;
  padding: 30px 20px 24px;
  border-radius: 19px;
}

.compare-card.manual {
  background: #f6f7f9;
}

.compare-card.solution {
  background: linear-gradient(180deg, #eef7ff 0%, #f7fbff 100%);
  border: 1.5px solid #74b9ff;
}

.top-icon {
  width: 48px;
  height: 48px;
  margin: -4px auto 14px;
  border-radius: 11px;
}

.top-icon.hand {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #5da8e9;
  color: #fff;
  font-size: 27px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}

.top-icon.app {
  position: relative;
  background: linear-gradient(
    180deg,
    #178fff 0 23%,
    #ffd500 23% 46%,
    #ff8a00 46% 69%,
    #e72e8b 69% 100%
  );
  border-radius: 10px;
}

.top-icon.app::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 5px;
  width: 13px;
  height: 13px;
  background: #ffd800;
  border-radius: 50%;
}

.compare-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
    text-align: center;
}

.compare-card .sub {
  margin: 8px 0 22px;
  color: #222;
}

.item {
  height: 94px;
  margin-bottom: 12px;
  padding: 0 12px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dde6ef;
  display: flex;
  align-items: center;
  text-align: left;
}

.item span {
  flex: 0 0 24px;
  height: 24px;
  margin-right: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

.item.bad span {
  color: #a6b2bd;
}

.item.good span {
  color: #087bff;
}

.item strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.item p {
  margin: 0;
  color: #222;
    font-size: 14px;
}

.vs {
  position: absolute;
  left: 50%;
  top: 33px;
  transform: translateX(-50%);
  z-index: 5;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d36bff 0%, #2d7cff 100%);
  color: #fff;
  font-size: 34px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 8px #fff,
    0 10px 22px rgba(72, 87, 255, .35);
}

.user-section {
    padding: 78px 0 0;
    background: #fff;
}

.adv-section {
    padding: 0 0 20px;
    background: #fff;
}

.section-head {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 34px;
}

.section-head h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.16;
    color: var(--dfp-text);
}

.section-head p {
    margin: 14px auto 0;
    max-width: 780px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--dfp-muted);
}

.why-stack {
    display: grid;
    gap: 56px;
}

/* Find Duplicate Photos comparison block */
.why-block h3 {
    margin: 0 0 24px;
    text-align: center;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 600;
    color: #050505;
}

.comparison-layout {
    max-width: 1000px;
    height: 414px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 210px;
    background: #fff;
    border: 1px solid #dce4ea;
    border-radius: 18px;
    overflow: hidden;
}

.feature-list {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    background: #fff;
}

.feature-list--left {
    border-right: 1px solid #e4e8ec;
}

.feature-list--right {
    border-left: 1px solid #e4e8ec;
}

.feature-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    border-bottom: 1px solid #edf0f3;
    color: #000;
}

.feature-chip:last-child {
    border-bottom: 0;
}

.feature-chip__icon {
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    line-height: 1;
    font-weight: 400;
    color: #000;
}

.feature-chip__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.feature-chip__icon--blue {
    color: #000;
}

.feature-chip strong {
    font-size: 13.5px;
    line-height: 1.2;
    font-weight: 600;
    color: #000;
    text-align: center;
}

/* Hover overlay for feature chips */
.feature-chip {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-chip__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 12px;
    background: var(--dfp-blue);
    opacity: 0;
    transition: opacity 0.28s ease;
    z-index: 5;
    text-align: center;
    pointer-events: none;
}

.feature-chip:hover .feature-chip__overlay {
    opacity: 1;
}

.feature-chip:has(.feature-chip__overlay):hover .feature-chip__icon,
.feature-chip:has(.feature-chip__overlay):hover > strong,
.feature-chip:has(.feature-chip__overlay):hover > .feature-chip__text {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.feature-chip__overlay-title {
    font-size: 13.5px;
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
    display: block;
}

.feature-chip__overlay-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.comparison-art {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.duplicate-card {
    position: absolute;
    z-index: 3;
    left: 32px;
    right: 32px;
    top: 0px;
    padding: 20px 14px;
    border-radius: 10px;
}

.duplicate-card img,
.comparison-art > img {
    display: block;
    width: 100%;
    height: auto;
}

/* Compatible with your old HTML: .comparison-art directly contains img */
.comparison-art > img {
    position: absolute;
    z-index: 3;
    left: 32px;
    right: 32px;
    top: 0px;
    width: calc(100% - 64px);
    padding: 20px 14px;

    border-radius: 10px;

    box-sizing: border-box;
}

.how-graphic {
    padding: 14px 0 0;
    text-align: center;
}

.how-graphic img {
    width: min(1100px, 100%);
    display: inline-block;
}

.photo-switch {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 32px;
    align-items: center;
}

.photo-switch--advanced {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 32px;
}

.photo-switch .steps {
    display: grid;
    gap: 12px;
}

.photo-switch .step {
    padding: 18px 18px 16px;
    border-radius: 16px;
    background: #fafcff;
    border: 1px solid #e4ebf5;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.photo-switch .step:hover {
    border-color: #cfe0f6;
    transform: translateY(-1px);
}

.photo-switch .step.active {
    background: #f4f9ff;
    border-color: #cfe0f6;
    box-shadow: 0 8px 20px rgba(27, 137, 254, 0.08);
}

.photo-switch .step-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.2;
    color: var(--dfp-text);
}

.photo-switch .step-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dfp-muted);
}

.photo-switch .images {
    position: relative;
    margin: 0;
    justify-self: center;
}

.photo-switch--advanced .images {
    justify-self: center;
    max-width: 620px;
}

.photo-switch .images .image {
    display: none;
    width: auto;
    max-height: 360px;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(16, 24, 40, 0.08);
}

.photo-switch .images .image.active {
    display: block;
}

.photo-footer {
    padding-top: 40px;
    padding-bottom: 76px;
}

.photo-footer .text {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.steps-container {
    max-width: 1000px;
}

.steps-container .step-content p {
    max-width: none;
}

.how-section {
    padding: 78px 0;
    text-align: center;
}

.how-graphic {
    max-width: 1200px;
    margin: 0 auto 30px;
}

.how-graphic img {
    display: block;
    width: 100%;
    height: auto;
}

.how-steps {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.step-item {
    flex: 1;
    text-align: center;
}

.step-item h4 {
    margin: 0 0 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.step-item p {
    margin: 0 auto;
    max-width: 260px;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

@media (max-width: 1024px) {
    .photo-header h1 {
        font-size: 30px;
        max-width: 100%;
    }

    .compare-section {
        padding: 40px 40px;
    }

    .compare-section h2,
    .section-head h2 {
        font-size: 28px;
    }

    .photo-header .dp-list {
        text-align: left;
        max-width: 100%;
    }

    .duplicate-card {
        top: 50%;
        transform: translateY(-50%);
    }

    .why-section {
        padding: 60px 0;
    }

    .how-section {
        padding: 30px 0 60px;
    }

    .user-section {
        padding: 60px 0 0;
    }

    .adv-section {
        padding: 0 0 20px;
    }

    .photo-switch,
    .photo-switch--advanced {
        grid-template-columns: 1fr;
    }

    .photo-switch--advanced .images {
        order: -1;
    }

    .photo-switch .step {
        max-width: 100%;
        box-sizing: border-box;
        align-items: flex-start;
    }

    .photo-switch .step-content h3,
    .photo-switch .step-content p {
        text-align: left;
    }
}

@media (max-width: 767px) {

    .compare-section {
        padding: 50px 20px;
    }

    .compare-section h2 {
        font-size: 22px;
        line-height: 1.3;
        text-align: left;
    }

    .compare-desc {
        width: 100%;
        margin: 20px auto 40px;
        font-size: 14px;
        box-sizing: border-box;
        text-align: left;
    }

    .compare-wrap {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .compare-card {
        width: 100%;
        max-width: 500px;
        min-height: auto;
    }

    .compare-card h3 {
        font-size: 22px;
    }

    .compare-card .sub {
        font-size: 13px;
    }

    .item {
        height: auto;
        min-height: 70px;
        padding: 12px;
    }

    .item strong {
        font-size: 15px;
    }

    .item p {
        font-size: 12px;
    }

    /* move VS to center */
    .vs {
        position: static;
        transform: none;
        margin: -10px 0;
        width: 80px;
        height: 80px;
        font-size: 30px;
    }

    .how-section {
        padding: 48px 0;
    }

    .how-graphic {
        margin-bottom: 40px;
    }

    .how-graphic img {
        width: 100%;
        height: auto;
    }

    .how-steps {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .step-item {
        text-align: left;
    }

    .step-item h4 {
        font-size: 14px;
        margin-bottom: 10px;
        text-align: left;
    }

    .step-item p {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.6;
        text-align: left;
    }

    .comparison-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .feature-list--left,
    .feature-list--right {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        border: 0;
    }

    .comparison-art {
        height: 330px;
        border-top: 1px solid #e4e8ec;
        border-bottom: 1px solid #e4e8ec;
    }

    .feature-chip {
        min-height: 96px;
        border-right: 1px solid #edf0f3;
        padding: 8px 6px;
    }

    .feature-chip strong {
        font-size: 12px;
        text-align: center;
        word-break: break-word;
    }

    .feature-chip div {
        text-align: center;
        width: 100%;
    }

    .feature-chip:nth-child(2n) {
        border-right: 0;
    }

    .feature-chip__overlay-title {
        font-size: 14px;
    }

    .feature-chip__overlay-desc {
        font-size: 13px;
        line-height: 1.5;
    }

    .photo-header {
        padding-top: 22px;
    }

    .photo-header h1 {
        font-size: 26px;
    }

    .photo-header .hero img {
        max-width: 100%;
        margin: 0 auto 10px;
    }

    .why-section {
        padding: 48px 0;
    }

    .how-section {
        padding: 24px 0 48px;
    }

    .user-section {
        padding: 48px 0 0;
    }

    .adv-section {
        padding: 0 0 16px;
    }

    .photo-switch .steps {
        padding: 0;
    }

    .section-head {
        margin-bottom: 22px;
        text-align: left;
    }

    .section-head h2 {
        font-size: 22px;
        text-align: left;
    }

    .section-head p {
        margin-top: 10px;
        font-size: 14px;
        text-align: left;
    }

    .why-stack {
        gap: 34px;
    }

    .why-block h3 {
        font-size: 20px;
        margin-bottom: 14px;
        text-align: left;
    }

    .comparison-layout {
        border-radius: 18px;
    }

    .duplicate-card,
    .comparison-art > img {
        left: 22px;
        right: 22px;
        top: 78px;
        width: calc(100% - 44px);
        padding: 16px 12px;
        transform: none;
    }

    .how-graphic {
        padding-top: 8px;
    }

    .photo-switch {
        gap: 14px;
    }

    .photo-switch .step {
        padding: 14px;
        border-radius: 14px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        align-items: flex-start;
    }

    .photo-switch .step-content h3 {
        font-size: 16px;
        text-align: left;
    }

    .photo-switch .step-content p {
        font-size: 13px;
        text-align: left;
    }

    .photo-switch .images {
        min-height: 0;
    }

    .photo-footer {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .photo-footer .footer-title {
        font-size: 22px;
    }

    .photo-footer .text {
        font-size: 14px;
    }
}
