:root {
  --ink: #17212b;
  --muted: #5d6b7a;
  --line: #dbe5ee;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --mint: #2fc18c;
  --mint-dark: #16805f;
  --blue: #2563eb;
  --coral: #f76f53;
  --gold: #f3b63f;
  --shadow: 0 22px 60px rgba(23, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 193, 140, 0.18), transparent 34rem),
    linear-gradient(180deg, #f9fbfd 0%, #eef4f8 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(219, 229, 238, 0.82);
  background: rgba(249, 251, 253, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--coral), var(--blue));
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 2rem);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.header-action,
.primary-button,
.secondary-button,
.convert-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-action,
.primary-button,
.convert-button {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(23, 33, 43, 0.18);
}

.primary-button:hover,
.convert-button:hover,
.header-action:hover {
  transform: translateY(-2px);
}

.secondary-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper);
}

.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 33, 43, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 30rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem);
}

.hero-copy {
  max-width: 45rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--mint-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 48rem;
  margin-bottom: 1.2rem;
  font-size: clamp(2.45rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 39rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.converter-card,
.price-card,
.ad-preview {
  border: 1px solid rgba(219, 229, 238, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.converter-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.converter-card::before {
  content: "";
  display: block;
  height: 7rem;
  margin: -1.35rem -1.35rem 1rem;
  background:
    linear-gradient(135deg, rgba(247, 111, 83, 0.92), rgba(37, 99, 235, 0.94)),
    url("data:image/svg+xml,%3Csvg width='560' height='180' viewBox='0 0 560 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='white' stroke-opacity='.32' stroke-width='2'%3E%3Cpath d='M40 118h120l22-62h104l28 82h186'/%3E%3Cpath d='M78 74h88l18 48h92l22-66h182'/%3E%3C/g%3E%3Cg fill='white' fill-opacity='.72'%3E%3Crect x='48' y='34' width='64' height='82' rx='8'/%3E%3Crect x='248' y='52' width='72' height='92' rx='8'/%3E%3Crect x='420' y='30' width='84' height='106' rx='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

.plan-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-size: 0.9rem;
}

.plan-strip strong {
  color: var(--ink);
}

.upload-area {
  position: relative;
  display: grid;
  min-height: 10rem;
  place-items: center;
  border: 2px dashed #b8c7d6;
  border-radius: 8px;
  background: #fbfdff;
  text-align: center;
}

.upload-area.is-dragging {
  border-color: var(--mint);
  background: rgba(47, 193, 140, 0.08);
}

.upload-area input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-area label {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  padding: 1rem;
  cursor: pointer;
}

.upload-icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  color: white;
  font-size: 1.8rem;
  font-weight: 800;
  border-radius: 8px;
  background: var(--mint);
}

.upload-area small,
.format-option small,
.price-copy,
.site-footer,
.ad-section p {
  color: var(--muted);
}

.format-panel {
  margin-top: 1.2rem;
}

.format-panel h2 {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.format-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.format-option {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.format-option:has(input:checked) {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.format-option input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--blue);
}

.format-option span {
  font-weight: 800;
}

.convert-button {
  width: 100%;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--mint-dark), var(--blue));
}

.status-message {
  min-height: 1.3rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.status-message[data-type="success"] {
  color: var(--mint-dark);
}

.status-message[data-type="error"] {
  color: #c2412d;
}

.trust-band,
.plans-section,
.ad-section {
  padding: clamp(2.4rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
}

.trust-band article {
  padding: clamp(1.3rem, 3vw, 2.2rem);
  background: #fff;
}

.trust-band span {
  color: var(--coral);
  font-weight: 800;
}

.trust-band h2 {
  margin: 0.8rem 0 0.55rem;
  font-size: 1.25rem;
}

.trust-band p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 1.7rem;
}

.section-heading h2,
.ad-section h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.price-card {
  position: relative;
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.price-card.featured {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, #17212b, #315f74);
}

.popular-label {
  justify-self: start;
  padding: 0.35rem 0.7rem;
  color: var(--ink);
  border-radius: 999px;
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.price-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.price {
  margin-bottom: 0.4rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.price span {
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
}

.price-card.featured .price-copy,
.price-card.featured li {
  color: rgba(255, 255, 255, 0.78);
}

.price-card ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  padding-left: 1.5rem;
  color: var(--muted);
  background: linear-gradient(var(--mint), var(--mint)) left 0.6rem / 0.7rem 0.7rem no-repeat;
}

.full {
  width: 100%;
}

.ad-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
  gap: 1.5rem;
  align-items: center;
}

.ad-section p {
  max-width: 40rem;
  line-height: 1.65;
}

.ad-preview {
  display: grid;
  min-height: 9rem;
  place-items: center;
  gap: 0.4rem;
  color: #738193;
  border-style: dashed;
  background:
    repeating-linear-gradient(135deg, #ffffff, #ffffff 12px, #f2f6fa 12px, #f2f6fa 24px);
  box-shadow: none;
}

.ad-preview span {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ad-preview strong {
  color: var(--ink);
  font-size: 1.7rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  background: white;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
}

.legal-page {
  width: min(52rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.legal-page h1 {
  max-width: 42rem;
  margin-bottom: 1.2rem;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1;
}

.legal-page h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.35rem;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 920px) {
  .hero,
  .ad-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .header-action {
    min-height: 2.5rem;
    padding: 0 0.85rem;
  }

  .trust-band,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .format-options {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.25rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .plan-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}
