@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("Plus_Jakarta_Sans/static/PlusJakartaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("Plus_Jakarta_Sans/static/PlusJakartaSans-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("Plus_Jakarta_Sans/static/PlusJakartaSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("Plus_Jakarta_Sans/static/PlusJakartaSans-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #fdfbf5;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #595959;
  --soft: #eee9df;
  --line: #ded8ce;
  --accent: #e7222a;
  --accent-dark: #c81820;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

.site-header {
  border-bottom: 1px solid var(--soft);
  background: var(--paper);
}

.site-header-inner {
  width: min(100% - 32px, 1400px);
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  display: block;
  width: 171px;
  max-width: 44vw;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #2f3a4a;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.page-shell {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
}

.tool-hero {
  padding: 30px 0 34px;
  text-align: center;
}

.tool-title {
  margin: 0;
  font-size: clamp(34px, 4.1vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.tool-subtitle {
  margin: 22px auto 0;
  color: #3f3f3f;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.35;
  font-weight: 400;
}

.privacy-note {
  display: block;
  color: #555;
  font-size: 15px;
  font-style: italic;
  font-weight: 300;
}

.drop-active {
  border-color: var(--accent) !important;
  background: #fffafa !important;
  box-shadow: 0 0 0 4px rgb(231 34 42 / 0.12);
}

.dragging {
  opacity: 0.48;
}

.upload-panel {
  min-height: clamp(380px, 48vh, 445px);
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: var(--paper);
  display: flex;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 24px;
  text-align: center;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.upload-icon {
  width: 151px;
  max-width: 38vw;
  opacity: 0.5;
}

.upload-title {
  margin-top: 24px;
  color: #333;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.25;
  font-weight: 400;
}

.upload-or {
  margin-top: 20px;
  color: #a0a0a0;
  font-size: 18px;
  font-weight: 400;
}

.select-button {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  background: var(--accent);
  padding: 0 21px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgb(231 34 42 / 0.2);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.upload-panel:hover .select-button,
.select-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.visually-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.tool-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.merge-page {
  padding-bottom: 48px;
}

.merge-status-panel {
  align-self: start;
}

.progress-complete {
  background: #3f3f3f !important;
}

@media (min-width: 1024px) {
  .tool-grid.has-status {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

.content-page {
  padding: 54px 0 72px;
}

.content-card {
  border: 1px solid var(--soft);
  border-radius: 8px;
  background: var(--paper);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 18px 50px rgb(17 17 17 / 0.04);
}

.content-card h1,
.content-card h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.content-card h1 {
  font-size: clamp(32px, 4vw, 46px);
}

.content-card h2 {
  margin-top: 36px;
  font-size: 24px;
}

.content-card p,
.content-card li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.content-card p {
  margin: 14px 0 0;
}

.content-card ol,
.content-card ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

.site-footer {
  border-top: 1px solid var(--soft);
  background: var(--paper);
}

.site-footer-inner {
  width: min(100% - 32px, 1400px);
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  .site-header-inner {
    height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .page-shell {
    width: min(100% - 24px, 1200px);
  }

  .tool-hero {
    padding-top: 28px;
  }

  .upload-panel {
    min-height: 360px;
    padding: 34px 18px;
  }

  .merge-page {
    padding-bottom: 32px;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }
}
