:root {
  --ink: #17201b;
  --muted: #647067;
  --paper: #faf8f2;
  --panel: #ffffff;
  --line: #d9ded5;
  --accent: #0d6f63;
  --accent-dark: #064f47;
  --warm: #f0c36d;
  --soft: #edf5f1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 242, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

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

.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.support-link {
  color: var(--accent);
  font-weight: 800;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.tool-workspace {
  padding: 24px 0 44px;
}

.tool-intro {
  margin-bottom: 14px;
}

.tool-intro h1 {
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.06;
  margin-bottom: 6px;
}

.tool-intro .lede {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.upload-area {
  margin-bottom: 10px;
}

.upload-area .dropzone {
  min-height: 160px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.40fr) minmax(280px, 0.60fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
  margin-top: 0;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 12px;
}

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

h1 {
  max-width: 680px;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.05;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1.08;
  margin-bottom: 12px;
}

h3 {
  font-size: 18px;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 46px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.tool-section,
.band,
.support {
  padding: 40px 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 28px;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.6;
}

.customize-card,
.preview-card,
.cards article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.dropzone {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 130px;
  padding: 20px;
  border: 2px dashed #a8b9ad;
  border-radius: 8px;
  background: var(--soft);
  text-align: center;
  cursor: pointer;
}

.dropzone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dropzone.drag-over {
  border-color: var(--accent);
  background: #e1f2ec;
}

.drop-title {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 900;
}

.drop-help {
  color: var(--muted);
}

.quick-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.quick-presets button {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.quick-presets button.active,
.quick-presets button:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.quality-control {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.quality-control label {
  display: flex;
  justify-content: space-between;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.trust-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.preview-box {
  display: grid;
  place-items: center;
  min-height: 320px;
  background:
    linear-gradient(45deg, #eef0ed 25%, transparent 25%),
    linear-gradient(-45deg, #eef0ed 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef0ed 75%),
    linear-gradient(-45deg, transparent 75%, #eef0ed 75%);
  background-color: #fff;
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  border-radius: 8px;
  overflow: hidden;
}

canvas {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.file-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 0;
}

.file-stats div {
  padding: 14px;
  background: var(--soft);
  border-radius: 8px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

dd {
  margin: 5px 0 0;
  font-weight: 900;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.service-status {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.service-status.live {
  color: #fff;
  background: var(--accent);
}

.service-status.next {
  color: var(--accent-dark);
  background: var(--soft);
  border: 1px solid var(--line);
}

.cards p {
  color: var(--muted);
  line-height: 1.55;
}

.after-upload-info {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.after-upload-info h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.after-upload-info p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.results {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.results h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.result-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.result-item:first-child {
  border-top: 0;
}

.result-item strong {
  display: block;
  margin-bottom: 4px;
}

.result-item span {
  color: var(--muted);
  font-size: 13px;
}

.result-item a {
  padding: 9px 11px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.faq-list {
  max-width: 740px;
}

details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

details:first-child {
  border-top: 1px solid var(--line);
}

summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

details[open] summary::after {
  content: "–";
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

@media (max-width: 820px) {
  .topbar,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    gap: 12px;
    padding: 14px 16px;
    position: static;
  }

  main {
    width: min(100% - 20px, 560px);
  }

  .cards,
  .service-grid,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .tool-workspace {
    padding: 20px 0 36px;
  }

  .tool-intro h1 {
    font-size: 30px;
    line-height: 1.06;
  }

  .lede {
    font-size: 15px;
  }

  .customize-card,
  .preview-card,
  .cards article,
  .service-grid article {
    padding: 16px;
  }

  .upload-area .dropzone {
    min-height: 168px;
    padding: 20px 14px;
  }

  .controls,
  .file-stats {
    grid-template-columns: 1fr;
  }

  .quick-presets button {
    flex: 1 1 calc(33.333% - 8px);
  }

  .button.full {
    min-height: 52px;
  }

  .preview-box {
    min-height: 260px;
  }

  .result-item {
    grid-template-columns: 1fr;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }
}
