:root {
  --paper: #f4f0e8;
  --panel: #fbf8f1;
  --ink: #24231f;
  --muted: #6f6a60;
  --line: #d8d0c2;
  --accent: #c7472d;
  --accent-dark: #91301f;
  --steel: #647277;
  --radius: 2px;
  --measure: 72rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }

.site-header {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 680; letter-spacing: -0.02em; }
.mark { width: 18px; height: 18px; background: var(--accent); display: inline-block; box-shadow: inset 6px 0 0 var(--ink); }
nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
nav a { text-decoration: none; }
nav a:hover { color: var(--ink); }

main { max-width: var(--measure); margin: 0 auto; padding: 56px 20px; }
.hero { max-width: 760px; margin-bottom: 42px; }
.eyebrow { color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 760; }
h1 { font-size: clamp(44px, 8vw, 92px); line-height: 0.93; letter-spacing: -0.07em; margin: 12px 0 22px; font-weight: 760; }
.intro { font-size: clamp(18px, 2vw, 24px); line-height: 1.35; color: var(--muted); margin: 0; }

.tool-panel {
  background: var(--panel);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(36, 35, 31, 0.11);
  padding: clamp(18px, 3vw, 34px);
  margin-bottom: 56px;
}
.panel-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.panel-head p, .copy-grid p, .feedback p { color: var(--muted); margin: 0; line-height: 1.5; }
.privacy-pill { border: 1px solid var(--ink); padding: 7px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }

.dropzone {
  border: 1px dashed var(--steel);
  min-height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: #f7f2e8;
  margin-bottom: 22px;
}
.dropzone.dragover { outline: 3px solid var(--accent); outline-offset: 3px; }
.select-button, button, .download {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
button:hover, .download:hover, .select-button:hover { background: var(--accent-dark); }
.dropzone p { color: var(--muted); margin: 14px 0 0; }

.controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
select, input {
  width: 100%;
  border: 1px solid var(--ink);
  background: #fffdf8;
  color: var(--ink);
  padding: 12px;
  font: inherit;
  min-height: 44px;
  border-radius: 0;
}

.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
figure { margin: 0; border: 1px solid var(--line); background: #fffdf8; padding: 14px; }
figcaption { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
figure img { width: 100%; max-height: 320px; object-fit: contain; background: #eee6d9; border: 1px solid var(--line); }
dl { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; margin: 12px 0 0; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.status { color: var(--muted); margin: 12px 0 0; font-size: 14px; }

.copy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 56px; }
.copy-grid article { border-top: 1px solid var(--ink); padding-top: 16px; }
.feedback { border-top: 1px solid var(--line); padding-top: 28px; max-width: 760px; }
.feedback form { display: flex; gap: 10px; margin-top: 16px; }
.feedback input { flex: 1; }
footer { max-width: var(--measure); margin: 0 auto; padding: 32px 20px 48px; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; gap: 18px; flex-direction: column; }
  .controls, .preview-grid, .copy-grid { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; }
  .feedback form { flex-direction: column; }
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.hero.compact {
  padding-bottom: 1.5rem;
}

.legal-page {
  max-width: 860px;
}

.legal-copy {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.legal-copy h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.legal-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}


.how-it-works,
.faq {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 2rem;
}

.how-it-works h2,
.faq h2 {
  margin-top: 0;
}

.how-it-works ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.7;
}

.how-it-works strong {
  color: var(--ink);
}

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

.faq summary {
  cursor: pointer;
  font-weight: 650;
}

.faq p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.guide-copy,
.related-tools {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 2rem;
}

.guide-copy {
  display: grid;
  gap: 1.25rem;
}

.guide-copy article {
  max-width: 760px;
}

.guide-copy h2,
.related-tools h2 {
  margin-top: 0;
}

.guide-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.related-grid a {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255,255,255,0.35);
}

.related-grid a:hover {
  border-color: var(--accent);
}


.tool-list {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 2rem;
}

.tool-list h2 {
  margin-top: 0;
}


.field-hint {
  display: block;
  margin-top: 0.2rem;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
