:root {
  --bg: #f4efe3;
  --bg-accent: #fffaf1;
  --ink: #14213d;
  --ink-soft: #42506b;
  --line: rgba(20, 33, 61, 0.12);
  --panel: rgba(255, 252, 245, 0.88);
  --hero: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(249, 230, 195, 0.86));
  --accent: #d95d39;
  --accent-deep: #b94b2a;
  --success: #1b7f5b;
  --warning: #b66a00;
  --error: #9e2f36;
  --shadow: 0 24px 70px rgba(20, 33, 61, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(217, 93, 57, 0.16), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(20, 33, 61, 0.12), transparent 26%),
    linear-gradient(180deg, #f8f2e8, #f1e9d9 65%, #efe5d3);
  color: var(--ink);
  font-family: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
  overflow-x: hidden;
}

h1,
h2,
h3,
strong {
  font-family: Georgia, "Times New Roman", serif;
}

button,
input,
a {
  font: inherit;
}

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

.topbar,
.hero-grid,
.workspace-grid {
  display: grid;
  gap: 22px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 26px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(145deg, #18253f, #355389);
  color: #fff8ef;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.topbar h1,
.hero-copy h2,
.panel h3 {
  margin: 0;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-visual,
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
  background: var(--hero);
}

.hero-copy h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  text-wrap: balance;
}

.lede {
  max-width: 40rem;
  margin: 0 0 24px;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

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

.feature-strip div {
  min-width: 0;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.feature-strip strong,
.compression-notes strong,
.pricing-list li::marker {
  color: var(--ink);
}

.feature-strip span,
.compression-notes span,
.support-text,
.pricing-copy,
.pricing-list,
.result-details p {
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.feature-strip span,
.compression-notes span {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
}

.hero-visual {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(20, 33, 61, 0.98), rgba(30, 58, 95, 0.94)),
    var(--bg-accent);
  color: #fff;
}

.visual-card {
  min-width: 0;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.visual-card-big {
  transform: rotate(-2deg);
}

.visual-card-small {
  transform: rotate(2deg);
}

.visual-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visual-card strong {
  display: block;
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.visual-card p,
.visual-arrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.visual-arrow {
  text-align: center;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.workspace-grid {
  grid-template-columns: 1.3fr 0.7fr;
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(12px);
  padding: 28px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

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

#shrink-form {
  scroll-margin-top: 24px;
}

.dropzone {
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 2px dashed rgba(20, 33, 61, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dropzone:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 93, 57, 0.44);
  box-shadow: 0 18px 30px rgba(20, 33, 61, 0.08);
}

.dropzone input {
  display: none;
}

.dropzone-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.dropzone-copy,
.selected-file {
  color: var(--ink-soft);
}

.selected-file,
.compression-notes,
.result-metrics,
.pricing-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.selected-file {
  padding: 14px 16px;
}

.compression-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.compression-notes div {
  min-width: 0;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

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

.primary-button:disabled,
.ghost-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.primary-button {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
}

.ghost-button {
  background: transparent;
  border: 1px solid rgba(20, 33, 61, 0.18);
  color: var(--ink);
}

.status-banner {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 600;
}

.status-banner.info {
  background: rgba(53, 83, 137, 0.12);
  color: #29426e;
}

.status-banner.success {
  background: rgba(27, 127, 91, 0.14);
  color: var(--success);
}

.status-banner.warning {
  background: rgba(182, 106, 0, 0.14);
  color: var(--warning);
}

.status-banner.error {
  background: rgba(158, 47, 54, 0.14);
  color: var(--error);
}

.hidden {
  display: none;
}

.result-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.metric {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.metric.accent {
  background: rgba(217, 93, 57, 0.12);
}

.metric-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.metric strong,
.price {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.price {
  margin: 14px 0 10px;
}

.pricing-list {
  padding-left: 20px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .hero-grid,
  .workspace-grid,
  .feature-strip,
  .compression-notes,
  .result-metrics {
    grid-template-columns: 1fr;
  }

  .topbar,
  .panel-heading {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .topbar .ghost-button {
    width: 100%;
  }

  .hero-copy,
  .hero-visual,
  .panel {
    border-radius: 24px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 16px);
    padding-top: 18px;
  }

  .topbar {
    margin-bottom: 18px;
  }

  .hero-grid {
    gap: 14px;
    margin-bottom: 18px;
  }

  .hero-copy,
  .hero-visual,
  .panel {
    padding: 20px;
    width: 100%;
    max-width: 100%;
  }

  .hero-visual {
    order: -1;
    padding: 16px;
    gap: 10px;
  }

  .hero-copy h2 {
    font-size: 2.1rem;
    line-height: 1;
  }

  .hero-copy {
    padding-bottom: 18px;
  }

  .lede {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }

  .feature-strip {
    display: none;
  }

  .visual-card {
    padding: 16px;
    transform: none;
  }

  .visual-card strong {
    font-size: 1.2rem;
  }

  .visual-label {
    margin-bottom: 8px;
  }

  .visual-arrow {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
  }

  .page-shell * {
    max-width: 100%;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button,
  .result-actions .primary-button,
  .result-actions .ghost-button,
  .upload-form .primary-button,
  .pricing-panel .primary-button {
    width: 100%;
  }
}
