:root {
  --canvas: #f6efe5;
  --ink: #182126;
  --ink-soft: rgba(24, 33, 38, 0.72);
  --line: rgba(24, 33, 38, 0.12);
  --card: rgba(255, 250, 244, 0.8);
  --accent: #d65233;
  --accent-dark: #9e3119;
  --shadow: 0 30px 80px rgba(24, 33, 38, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 82, 51, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(111, 151, 179, 0.16), transparent 22%),
    linear-gradient(180deg, #fffaf4 0%, var(--canvas) 60%, #efe3d4 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  align-items: start;
  padding-top: 16px;
}

.hero-copy,
.upload-card,
.detail-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
}

.eyebrow,
.section-label,
.card-kicker,
.pricing-label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 6rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  margin-bottom: 12px;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.lede,
.hero-copy p,
.upload-card p,
.detail-card p,
.result-note,
.metric-label,
.result-file {
  color: var(--ink-soft);
  line-height: 1.6;
}

.lede {
  font-size: 1.15rem;
  max-width: 48ch;
  margin: 20px 0 24px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-points span,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.pricing-card {
  border-radius: 22px;
  padding: 20px 22px;
  background: rgba(24, 33, 38, 0.96);
  color: #fff8f1;
}

.pricing-price {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 700;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
}

.pricing-note {
  margin: 10px 0 0;
  color: rgba(255, 248, 241, 0.74);
}

.upload-card,
.detail-card,
.result-card {
  padding: 28px;
}

.compress-form {
  display: grid;
  gap: 16px;
}

.file-picker {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px dashed rgba(24, 33, 38, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.file-picker input {
  width: 100%;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #f18d44 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 18px 30px rgba(214, 82, 51, 0.26);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
}

.content-grid,
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.result-shell {
  padding-top: 20px;
}

.result-header {
  display: grid;
  gap: 16px;
  max-width: 780px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.metric-value {
  margin: 4px 0 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
}

.result-file {
  margin: 6px 0 18px;
  font-size: 1.1rem;
}

.download-button {
  width: 100%;
}

@media (max-width: 960px) {
  .hero,
  .content-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding: 18px 0 28px;
  }

  .hero-copy,
  .upload-card,
  .detail-card,
  .result-card {
    padding: 22px;
    border-radius: 22px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }
}
