:root {
  --pink: #ec4899;
  --pink-dark: #be185d;
  --pink-soft: #fdf2f8;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --surface: #fff;
  --band: #f8fafc;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-nav {
  height: 64px;
  background: var(--pink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 24px -12px rgba(0, 0, 0, 0.35);
}
.nav-inner {
  max-width: 1152px;
  height: 100%;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  font-size: 24px;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.language-select select,
.mobile-language select {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 28px 6px 12px;
  outline: 0;
  cursor: pointer;
}
.language-select {
  margin-left: 8px;
}
.language-select option,
.mobile-language option {
  color: #111827;
  background: #fff;
}
.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.mobile-menu {
  display: none;
}
.site-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 16px 80px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #9d174d 0%, #db2777 58%, #ec4899 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.26) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}
.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(48px);
}
.hero-glow-left {
  width: 290px;
  height: 290px;
  left: -100px;
  top: -100px;
  background: rgba(255, 255, 255, 0.13);
}
.hero-glow-right {
  width: 320px;
  height: 320px;
  right: -100px;
  bottom: -140px;
  background: rgba(0, 0, 0, 0.2);
}
.site-hero h1 {
  margin: 0 auto;
  max-width: 768px;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.site-hero > p {
  max-width: 672px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}
.site-search {
  display: flex;
  gap: 8px;
  max-width: 768px;
  margin: 32px auto 0;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 25px 50px -18px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: 0.2s;
}
.site-search:focus-within {
  box-shadow:
    0 25px 50px -18px rgba(0, 0, 0, 0.35),
    0 0 0 4px rgba(255, 255, 255, 0.35);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  padding-left: 10px;
}
.autocomplete-shell {
  position: relative;
  min-width: 0;
  flex: 1;
}
.search-leading {
  font-size: 23px;
  color: #94a3b8;
  transform: rotate(-45deg);
}
.search-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 0;
  outline: 0;
  color: #1e293b;
  font-size: 16px;
  background: transparent;
}
.search-suggestions {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: -8px;
  right: -8px;
  display: grid;
  gap: 2px;
  max-height: 288px;
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 36px -22px rgba(15, 23, 42, 0.55);
  list-style: none;
  text-align: left;
}
.search-suggestions[hidden] {
  display: none;
}
.search-suggestions > [role="option"] {
  padding: 11px 12px;
  border-radius: 9px;
  color: #334155;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
}
.search-suggestions > [role="option"]::before {
  content: "↗";
  display: inline-block;
  margin-right: 9px;
  color: #db2777;
  transform: rotate(-45deg);
}
.search-suggestions > [role="option"]:hover,
.search-suggestions > [role="option"][aria-selected="true"] {
  background: #fdf2f8;
  color: #9d174d;
}
.search-input-wrap input::placeholder {
  color: #94a3b8;
}
.paste-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: #f1f5f9;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.paste-button:hover {
  background: #e2e8f0;
}
.icon {
  width: 20px;
  height: 20px;
  display: block;
}
.submit-button {
  height: 54px;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 18px -12px rgba(190, 24, 93, 0.8);
  transition: 0.2s;
}
.submit-button:hover {
  filter: brightness(1.08);
}
.submit-button:active {
  transform: scale(0.985);
}
.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.htmx-request .spinner {
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
main {
  min-height: 280px;
}
.intro-copy {
  max-width: 896px;
  margin: 40px auto;
  text-align: center;
  padding: 0 16px;
}
.intro-copy p,
.callout p {
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 2;
  text-align: left;
}
.callout {
  max-width: 896px;
  margin: 40px auto 64px;
  padding: 32px 40px;
  border: 1px solid #fbcfe8;
  border-radius: 24px;
  background: var(--pink-soft);
  text-align: center;
}
.callout h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}
.section {
  max-width: 1152px;
  margin: 0 auto;
  padding: 64px 16px;
}
.section.narrow {
  max-width: 1152px;
}
.section-heading {
  max-width: 768px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-heading h2,
.steps-band h2,
.faq-section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  transition: 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: #f9a8d4;
  box-shadow: 0 20px 34px -24px rgba(15, 23, 42, 0.35);
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--pink-soft);
  color: #db2777;
  box-shadow: 0 0 0 1px #fbcfe8;
}
.feature-card:hover .feature-icon {
  background: var(--pink);
  color: #fff;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.steps-band {
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  background: var(--band);
}
.steps-band h2 {
  text-align: center;
}
.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 42px;
}
.steps-grid:before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 28px;
  height: 2px;
  background: linear-gradient(90deg, #fbcfe8, #f472b6, #fbcfe8);
}
.steps-grid article {
  position: relative;
  text-align: center;
}
.steps-grid span,
.how-grid span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--pink);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow:
    0 0 0 8px var(--band),
    0 9px 20px -12px rgba(190, 24, 93, 0.85);
}
.steps-grid p {
  max-width: 260px;
  margin: 0 auto;
  color: #334155;
  line-height: 1.7;
}
.how-section {
  padding-bottom: 64px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how-grid article {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.how-grid span {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 12px;
  font-size: 17px;
  box-shadow: none;
}
.how-grid p {
  margin: 0;
  color: #334155;
  line-height: 1.65;
}
.faq-section {
  padding: 64px 16px 80px;
  background: var(--band);
}
.faq-list {
  max-width: 896px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary span {
  color: #db2777;
  font-size: 22px;
  transition: 0.2s;
}
.faq-list details[open] summary span {
  transform: rotate(180deg);
}
.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.75;
}
.results-panel {
  max-width: 896px;
  margin: 0 auto 56px;
  padding: 0 16px;
}
.results-card,
.converter-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px -36px rgba(15, 23, 42, 0.45);
}
.results-heading {
  margin-bottom: 20px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  color: #db2777;
}
.results-heading h2,
.converter-card h2 {
  margin: 8px 0 6px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
}
.results-heading p,
.converter-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.result-list {
  display: grid;
  gap: 10px;
}
.result-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
}
.result-row img {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
  flex: 0 0 auto;
}
.result-copy {
  min-width: 0;
  flex: 1;
}
.result-copy h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.result-copy p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}
.result-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.result-button:hover {
  filter: brightness(1.06);
}
.result-message {
  padding: 18px;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  background: #fff1f2;
  color: #9f1239;
  line-height: 1.6;
}
.standalone-converter {
  max-width: 960px;
  margin: 48px auto;
  padding: 0 16px 64px;
}
.converter-card h3 {
  margin: 28px 0 8px;
  font-size: 19px;
}
.converter-meta {
  font-size: 14px !important;
}
.converter-preview {
  position: relative;
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
}
.converter-preview img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  opacity: 0.9;
}
.converter-preview a {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.widget-frame {
  min-height: 330px;
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
}
.widget-frame iframe {
  display: block;
  width: 100%;
  min-height: 330px;
  border: 0;
}
.back-button {
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #475569;
  cursor: pointer;
}
.info-page {
  max-width: 768px;
  margin: 0 auto;
  padding: 72px 16px 96px;
}
.info-page h1 {
  margin: 10px 0 24px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
}
.info-page p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.inline-button {
  margin-top: 10px;
}
.site-footer {
  padding: 48px 16px 22px;
  background: #0f172a;
  color: #94a3b8;
}
.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-inner p {
  margin: 8px 0 0;
  font-size: 14px;
}
.footer-inner nav {
  max-width: 720px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}
.footer-inner nav a {
  padding: 6px 10px;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
}
.footer-inner nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.footer-bottom {
  max-width: 1152px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 800px) {
  .nav-links {
    display: none;
  }
  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }
  .mobile-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82%);
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #334155;
    box-shadow: -18px 0 42px -24px rgba(15, 23, 42, 0.55);
    padding-bottom: 20px;
  }
  .mobile-menu[hidden] {
    display: none;
  }
  .mobile-menu:before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0 100% 0 -100vw;
    background: rgba(15, 23, 42, 0.5);
  }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
  }
  .mobile-menu-head button {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 30px;
    cursor: pointer;
  }
  .brand-dark {
    color: #0f172a;
    font-size: 16px;
  }
  .brand-dark .brand-mark {
    width: 32px;
    height: 32px;
    background: var(--pink-soft);
    color: var(--pink);
  }
  .mobile-menu > a {
    padding: 14px 18px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
  }
  .mobile-menu > a:hover {
    background: var(--pink-soft);
    color: #be185d;
  }
  .mobile-language {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 18px;
    border-top: 1px solid #f1f5f9;
    color: #64748b;
  }
  .mobile-language select {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-inner nav {
    justify-content: center;
  }
}
@media (max-width: 560px) {
  .site-hero {
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .site-search {
    flex-direction: column;
  }
  .search-input-wrap {
    padding: 0 8px;
  }
  .search-input-wrap input {
    height: 48px;
  }
  .paste-button {
    padding: 8px 10px;
  }
  .submit-button {
    width: 100%;
    height: 50px;
  }
  .intro-copy,
  .callout {
    margin-top: 32px;
  }
  .callout {
    padding: 24px 20px;
  }
  .intro-copy p,
  .callout p {
    text-align: left;
    font-size: 16px;
    line-height: 1.8;
  }
  .feature-grid,
  .steps-grid,
  .how-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid:before {
    display: none;
  }
  .steps-grid article {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
  }
  .steps-grid span {
    box-shadow:
      0 0 0 8px #fff,
      0 9px 20px -12px rgba(190, 24, 93, 0.85);
  }
  .result-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .result-copy {
    width: calc(100% - 112px);
  }
  .result-button {
    margin-left: 110px;
  }
  .results-card,
  .converter-card {
    padding: 20px;
  }
  .footer-inner nav a {
    font-size: 13px;
  }
}
