/* ── Home page ── */
main.hp {
  width: 100%;
  max-width: none;
}

.hp {
  --hp-brand: #dd4db5;
  --hp-brand-strong: #c2379b;
  --hp-brand-soft: #fdf1fa;
  --hp-brand-line: #f6cfea;
  --hp-ink: #17131f;
  --hp-text: #4b4758;
  --hp-muted: #7b7788;
  --hp-line: #e9e7ef;
  --hp-surface: #ffffff;
  --hp-tint: #faf9fc;
  --hp-radius: 16px;
  --hp-shadow: 0 1px 2px rgba(23, 19, 31, 0.04), 0 12px 32px rgba(23, 19, 31, 0.07);
  color: var(--hp-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: left;
}

.hp *,
.hp *::before,
.hp *::after {
  box-sizing: border-box;
}

.hp ul,
.hp ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp ul li,
.hp ol li {
  margin: 0;
}

.hp p {
  margin: 0;
}

.hp a {
  text-decoration: none;
}

/* The theme sizes every "ul li span" as a 20px icon slot */
.hp ul li span {
  display: inline;
  width: auto;
  margin-right: 0;
}

.hp svg {
  width: 20px;
  height: 20px;
  fill: none;
  /* stroke: currentColor; */
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.hp-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hp-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.hp-container--narrow {
  max-width: 800px;
}

.hp-center {
  text-align: center;
}

/* ── Hero ── */
.hp-hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(900px 380px at 50% -80px, rgba(221, 77, 181, 0.13), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--hp-tint) 100%);
  border-bottom: 1px solid var(--hp-line);
  scroll-margin-top: 110px;
}

.hp-hero-copy {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 18px !important;
  border: 1px solid var(--hp-brand-line);
  border-radius: 999px;
  background: var(--hp-surface);
  color: var(--hp-brand-strong);
  font-size: 13px;
  font-weight: 600;
}

.hp-eyebrow svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

.hp-h1 {
  margin: 0 0 14px;
  color: var(--hp-ink);
  /* font-size: clamp(30px, 4.6vw, 48px); */
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hp-accent {
  color: var(--hp-brand);
}

.hp-sub {
  margin: 0;
  color: var(--hp-text);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 400;
  line-height: 1.55;
}

/* ── Upload box ── */
.hp-tool {
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  transition: max-width 0.25s ease;
}

/* ── Trust row ── */
.hp-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 24px !important;
  color: var(--hp-text);
  font-size: 14px;
  font-weight: 500;
}

.hp-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hp-trust svg {
  width: 18px;
  height: 18px;
  color: var(--hp-brand);
}

/* ── Editor ── */
.hp-editing .hp-hero-copy,
.hp-editing .hp-trust {
  display: none;
}

.hp-hero.hp-editing {
  padding-top: 28px;
}

.hp-editing .hp-tool {
  max-width: 1120px;
}

.hp-workspace {
  padding: 20px;
  border: 1px solid var(--hp-line);
  border-radius: 24px;
  background: var(--hp-surface);
  box-shadow: var(--hp-shadow);
}

.hp-ws-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.hp-ws-title {
  color: var(--hp-ink);
  font-size: 18px;
  font-weight: 700;
}

.hp-ws-reset {
  padding: 8px 14px;
  border: 1px solid var(--hp-line);
  border-radius: 10px;
  color: var(--hp-ink) !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.hp-ws-reset:hover {
  border-color: var(--hp-brand);
  color: var(--hp-brand-strong) !important;
}

.hp-ws-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.hp-workspace .select-img-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: 20px;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #f1f0f5 25%, transparent 25%, transparent 75%, #f1f0f5 75%),
    linear-gradient(45deg, #f1f0f5 25%, transparent 25%, transparent 75%, #f1f0f5 75%);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}

.hp-workspace #canvas-box-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-workspace canvas {
  max-width: 100%;
  max-height: 560px;
  box-shadow: 0 6px 24px rgba(23, 19, 31, 0.16);
}

.hp-workspace #saving-data {
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  margin-bottom: 12px;
  color: var(--hp-ink);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.hp-workspace #saving-data img {
  height: 24px;
}

.hp-ws-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hp-workspace .options-panel {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  text-align: left;
}

.hp-workspace .sz-label,
.hp-workspace .input-title {
  color: var(--hp-muted);
}

.hp-ws-export {
  padding: 18px;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  background: var(--hp-tint);
}

.hp-ws-export .sz-label {
  display: block;
}

.hp-ws-export-row {
  display: flex;
  gap: 10px;
}

.hp-workspace #image-format {
  flex: 0 0 104px;
  height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--hp-line);
  border-radius: 10px;
  background: #fff;
  color: var(--hp-ink);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.hp-workspace #download-button {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: var(--hp-brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(221, 77, 181, 0.3);
  transition: background 0.18s ease;
}

.hp-workspace #download-button:hover {
  background: var(--hp-brand-strong);
}

.hp-workspace #download-button svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  stroke: none;
}

/* ── Popular sizes ── */
.hp-sizes {
  padding: 28px 0;
  border-bottom: 1px solid var(--hp-line);
  background: var(--hp-surface);
}

.hp-sizes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hp-sizes-title {
  margin: 0;
  color: var(--hp-ink);
  font-size: 16px;
  font-weight: 700;
}

.hp-sizes-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.hp-size {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hp-line);
  border-radius: 12px;
  background: var(--hp-surface);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.hp-size-name {
  color: var(--hp-ink);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hp-size-hint {
  color: var(--hp-muted);
  font-size: 12.5px;
}

.hp-size:hover,
.hp-size:focus-visible {
  border-color: var(--hp-brand);
  background: var(--hp-brand-soft);
  outline: none;
}

.hp-size:hover .hp-size-name {
  color: var(--hp-brand-strong);
}

.hp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hp-brand-strong) !important;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.hp-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.hp-link:hover svg {
  transform: translateX(3px);
}

/* ── Sections ── */
.hp-section {
  padding: 72px 0;
  scroll-margin-top: 90px;
}

.hp-section-head {
  margin-bottom: 36px;
  text-align: center;
}

.hp-section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  text-align: left;
}

.hp-kicker {
  margin-bottom: 8px !important;
  color: var(--hp-brand-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hp-h2 {
  margin: 0;
  color: var(--hp-ink);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ── Tool search ── */
.hp-search {
  position: relative;
  flex: 0 1 340px;
  min-width: 240px;
}

.hp-search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--hp-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.hp-search input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  border: 1.5px solid var(--hp-line);
  border-radius: 12px;
  background: var(--hp-surface);
  color: var(--hp-ink);
  font-size: 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.hp-search input::placeholder {
  color: var(--hp-muted);
}

.hp-search input:focus {
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 4px rgba(221, 77, 181, 0.14);
  outline: none;
}

.hp-search-results {
  display: none !important;
}

.hp-tools.is-searching .hp-search-results {
  display: grid !important;
}

.hp-tools.is-searching .hp-tools-browse {
  display: none;
}

/* Results markup comes from the theme search script */
.hp .home1-features.hp-search-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
}

.hp .hp-search-results .home1-features-box {
  width: auto;
  padding: 0;
}

.hp .hp-search-results .home1-feature-name {
  height: 88px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  transition: border-color 0.18s ease;
}

.hp .hp-search-results .home1-feature-name:hover {
  border-color: var(--hp-brand);
  background: var(--hp-brand-soft);
}

.hp .hp-search-results .home1-feature-text {
  padding: 18px 48px 16px 66px;
  color: var(--hp-ink);
}

.hp .hp-search-results .home1-feature-desc {
  top: 44px;
  left: 66px;
  right: 48px;
  overflow: hidden;
  color: var(--hp-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hp .hp-search-results .home1-feature-img {
  top: 22px;
  left: 16px;
  border-radius: 10px;
  line-height: 0;
}

.hp .hp-search-results .home1-right-arrow-icon {
  top: 30px;
  color: var(--hp-muted);
}

.hp .hp-search-results .home1-right-arrow-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
}

.hp .hp-search-results .no-result-found-msg {
  grid-column: 1 / -1;
  padding: 40px 0;
  color: var(--hp-muted);
  text-align: center;
}

/* ── Theme content slot ── */
.hp .home-content-box:empty {
  display: none;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hp-sizes-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hp-ws-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hp-workspace .select-img-panel {
    min-height: 240px;
  }

  .hp-workspace canvas {
    max-height: 360px;
  }

  .hp .home1-features.hp-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 600px) {
  .hp-container {
    padding: 0 16px;
  }

  .hp-hero {
    padding: 36px 0 28px;
  }

  .hp-hero-copy {
    margin-bottom: 24px;
  }

  .hp-trust {
    flex-direction: column;
    align-items: center;
  }

  .hp-workspace {
    padding: 12px;
    border-radius: 20px;
  }

  .hp-section {
    padding: 52px 0;
  }

  .hp-section-head {
    margin-bottom: 28px;
  }

  .hp-search {
    flex-basis: 100%;
  }

  .hp .home1-features.hp-search-results {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (prefers-reduced-motion: reduce) {
  .hp * {
    transition: none !important;
  }
}
