@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Work+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-soft: #eff6ff;
  --panel: #ffffff;
  --text: #1e293b;
  --muted: #475569;
  --line: #dbe7f3;
  --line-strong: #93c5fd;
  --accent: #f97316;
  --accent-dark: #c2410c;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --sky: #0ea5e9;
  --ink: #0f172a;
  --error: #b42318;
  --success: #087443;
  --shadow: 0 28px 80px rgb(15 23 42 / 12%);
  --radius: 8px;
  font-family: "Work Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgb(224 242 254 / 88%) 0 18%, transparent 44%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 52%, #ffffff 100%);
  color: var(--text);
}

a {
  color: inherit;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 32px, 1280px);
  min-height: 60px;
  margin: 10px auto 0;
  padding: 0 clamp(14px, 2vw, 22px);
  border: 1px solid rgb(219 231 243 / 86%);
  border-radius: 999px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 18px 60px rgb(15 23 42 / 8%);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
button,
.download-link,
summary {
  -webkit-tap-highlight-color: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Outfit", "Work Sans", sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #ffffff;
  box-shadow: 0 12px 24px rgb(37 99 235 / 24%);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.4;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.nav a {
  border-radius: 999px;
  padding: 9px 12px;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--bg-soft);
  color: var(--blue-dark);
  outline: none;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  width: min(100% - 48px, 820px);
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) 0 clamp(26px, 4vw, 46px);
}

.hero-copy {
  width: 100%;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-family: "Outfit", "Work Sans", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 100%;
  margin: 12px auto 14px;
  color: var(--ink);
  font-family: "Outfit", "Work Sans", sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-family: "Outfit", "Work Sans", sans-serif;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

.panel-header h2 {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: "Outfit", "Work Sans", sans-serif;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.intro {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-metrics span,
.status-pill,
.support-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgb(255 255 255 / 82%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-metrics strong {
  margin-right: 4px;
  color: var(--blue-dark);
}

.download-panel,
.trust-row article,
.steps article,
.info-grid article,
.feature-grid article,
.faq-list details,
.guide-panel {
  border: 1px solid rgb(219 231 243 / 90%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 18px 52px rgb(15 23 42 / 8%);
}

.download-panel {
  width: 100%;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.panel-subtitle {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.status-pill {
  background: #e0f2fe;
  color: var(--blue-dark);
  border-color: #bae6fd;
  white-space: nowrap;
}

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

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 14px;
}

input {
  width: 100%;
  min-width: 0;
  height: 68px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 22px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 19px;
  font-weight: 600;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input::placeholder {
  color: #64748b;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(37 99 235 / 15%);
}

button,
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 190px;
  height: 68px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 26px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-family: "Outfit", "Work Sans", sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

button:hover,
.download-link:hover {
  background: var(--accent-dark);
  box-shadow: 0 14px 28px rgb(249 115 22 / 24%);
}

button:focus-visible,
.download-link:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(249 115 22 / 28%);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.76;
  box-shadow: none;
}

.progress-card {
  margin-top: 18px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 16px;
  background: #eff6ff;
}

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

.status {
  min-width: 0;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.status[data-state="failed"],
.status[data-state="error"] {
  color: var(--error);
}

.status[data-state="complete"],
.status[data-state="success"] {
  color: var(--success);
}

.progress-label {
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 900;
}

.progress-track {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
}

.progress-bar {
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--accent));
  animation: processing-slide 1.2s ease-in-out infinite;
}

.progress-bar[data-state="complete"],
.progress-bar[data-state="success"],
.progress-bar[data-state="failed"],
.progress-bar[data-state="error"] {
  width: 100%;
  animation: none;
}

.progress-bar[data-state="complete"],
.progress-bar[data-state="success"] {
  background: var(--success);
}

.progress-bar[data-state="failed"],
.progress-bar[data-state="error"] {
  background: var(--error);
}

@keyframes processing-slide {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(240%);
  }
}

.download-link {
  width: fit-content;
  margin-top: 14px;
}

.preview-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  margin-top: 18px;
  border: 1px solid rgb(219 231 243 / 90%);
  border-radius: var(--radius);
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgb(15 23 42 / 8%);
}

.preview-media {
  overflow: hidden;
  height: 110px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgb(219 234 254 / 92%), rgb(255 237 213 / 76%)),
    #eff6ff;
}

.preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-content {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 2px 0;
}

.preview-content h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.preview-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.preview-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.preview-meta div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: #f8fafc;
}

.preview-meta dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-meta dd {
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-family: "Outfit", "Work Sans", sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-slot {
  display: grid;
  min-height: 60px;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px);
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

/* Full-width leaderboard — below hero, above footer */
.ad-slot--leaderboard {
  width: min(100% - 48px, 1120px);
  min-height: 90px;
  margin: 0 auto;
}

/* Banner between content sections */
.ad-slot--banner {
  width: min(100% - 48px, 1120px);
  min-height: 90px;
  margin: 0 auto;
}

/* In-panel slot shown during the 30–90 sec wait */
.ad-slot--waiting {
  min-height: 100px;
  margin: 12px 0 4px;
  border-radius: var(--radius);
}

/* Sticky side skyscraper ads — only shown when there's room beside the content */
.side-ad {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  z-index: 100;
}

.side-ad--left  { left: calc(50% - 600px - 160px - 12px); }
.side-ad--right { right: calc(50% - 600px - 160px - 12px); }

.side-ad__inner {
  width: 160px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px);
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

/* Only reveal when viewport is wide enough to not overlap content */
@media (min-width: 1400px) {
  .side-ad { display: block; }
}

.final-download-button {
  width: 100%;
}

.support-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.trust-row article {
  padding: 16px;
}

.trust-row strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.trust-row span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

code {
  border-radius: 6px;
  padding: 2px 5px;
  background: #eff6ff;
  color: var(--blue-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.content-section {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 86px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.steps,
.feature-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-family: "Outfit", "Work Sans", sans-serif;
  font-weight: 800;
}

.steps p,
.feature-grid p,
.info-grid p,
.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.feature-band {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100% - 1120px) / 2));
  padding-left: max(24px, calc((100% - 1120px) / 2));
  background:
    radial-gradient(circle at 82% 10%, rgb(14 165 233 / 20%), transparent 28%),
    var(--ink);
}

.feature-band .eyebrow {
  color: #7dd3fc;
}

.feature-band h2,
.feature-grid h3 {
  color: #ffffff;
}

.feature-band .section-heading p {
  color: #d1d5db;
}

.feature-grid article {
  border-color: rgb(255 255 255 / 14%);
  background: rgb(255 255 255 / 7%);
  box-shadow: none;
}

.feature-grid svg {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  color: #7dd3fc;
}

.feature-grid p {
  color: #d1d5db;
}

.info-section {
  padding-top: clamp(54px, 7vw, 92px);
}

.info-grid article {
  min-height: 210px;
}

.info-grid h3 {
  margin-bottom: 10px;
}

.guide-section {
  padding-top: 0;
}

.guide-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 5vw, 60px);
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(239 246 255 / 88%)),
    #ffffff;
}

.guide-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.guide-list li::before {
  position: absolute;
  top: 0.38em;
  left: 0;
  width: 12px;
  height: 12px;
  border: 3px solid var(--accent);
  border-radius: 999px;
  content: "";
}

.faq-section {
  padding-bottom: 92px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

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

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

details p {
  padding-top: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(16px, 4vw, 52px) 16px;
}

.footer-top div {
  display: grid;
  gap: 4px;
}

.footer-top strong {
  color: var(--blue-dark);
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px clamp(16px, 4vw, 52px) 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
  }

  .steps,
  .feature-grid,
  .info-grid,
  .trust-row,
  .guide-panel {
    grid-template-columns: 1fr;
  }

  .info-grid article {
    min-height: auto;
  }
}

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

  .footer-top {
    flex-direction: column;
  }

  .site-header {
    padding-top: 14px;
    padding-bottom: 14px;
    border-radius: 18px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav a {
    padding: 8px 10px;
  }

  .hero,
  .content-section {
    width: min(100% - 32px, 1120px);
  }

  .panel-header,
  .input-row,
  .progress-head,
  .preview-card,
  .preview-meta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  button,
  .download-link,
  .final-download-button {
    width: 100%;
  justify-content: center;
  .status-pill,
  .support-strip span {
    width: fit-content;
  }
}
