@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --ink: #101820;
  --ink-2: #24313d;
  --paper: #f7f3ea;
  --panel: #fffaf0;
  --line: #d8d0c2;
  --coral: #ff6847;
  --green: #2aa86b;
  --blue: #2f72ff;
  --amber: #f2c14e;
  --muted: #6f766f;
  --shadow: 0 24px 60px rgba(16, 24, 32, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(0deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px) 0 0 / 34px 34px,
    radial-gradient(circle at 82% 8%, rgba(255, 104, 71, 0.2), transparent 28%),
    var(--paper);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 2px solid var(--ink);
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 800 22px/1 "Bricolage Grotesque", sans-serif;
}

.brand img {
  width: 38px;
  height: 38px;
  box-shadow: 5px 5px 0 var(--amber);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  padding: 8px 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink-2);
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--ink);
  background: var(--panel);
}

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

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 26px;
  align-items: center;
  padding: 38px 0 28px;
}

.hero-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 96px);
  max-width: 10ch;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 56px);
}

h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.lead {
  max-width: 620px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.6;
}

.trust-row,
.button-row,
.tool-switcher,
.format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stamp {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--green);
  font-weight: 800;
}

.button {
  border: 2px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

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

.button.ghost {
  box-shadow: none;
  background: transparent;
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: 5px 5px 0 var(--ink);
}

.panel,
.tool-card,
.content-card,
.result-card,
.guide-panel {
  border: 2px solid var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.tool-card {
  padding: clamp(18px, 3vw, 30px);
}

.tool-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.drop-zone {
  position: relative;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 2px dashed var(--ink);
  background:
    linear-gradient(135deg, rgba(47, 114, 255, 0.08), transparent 48%),
    #fff;
  text-align: center;
  cursor: pointer;
}

.drop-zone.dragover {
  background: rgba(42, 168, 107, 0.12);
}

.drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-zone strong {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 30px;
  margin-bottom: 8px;
}

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

.tool-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

.field input[type="range"] {
  padding: 0;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 2px solid var(--ink);
  padding: 10px 12px;
  background: #fff;
  font-weight: 700;
}

.file-list,
.result-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.file-row,
.result-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
}

.thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  background: #eee;
  border: 1px solid var(--line);
}

.meta {
  min-width: 0;
}

.meta strong {
  display: block;
  overflow-wrap: anywhere;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.metric {
  border: 2px solid var(--ink);
  background: #fff;
  padding: 12px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 26px;
}

.section {
  padding: 56px 0;
}

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

.content-card {
  padding: 20px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 8px 8px 0 rgba(16, 24, 32, 0.12);
}

.content-card p {
  color: var(--ink-2);
  line-height: 1.55;
}

.content-card a {
  font-weight: 800;
  color: var(--blue);
}

.stripe {
  border-block: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 22px 0;
}

.stripe .shell {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stripe strong {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 28px;
}

.article {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 26px;
  padding: 44px 0;
}

.guide-panel {
  padding: 28px;
}

.guide-panel p,
.guide-panel li {
  line-height: 1.7;
  color: var(--ink-2);
}

.footer {
  border-top: 2px solid var(--ink);
  padding: 30px 0;
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer a {
  color: var(--paper);
  margin-right: 12px;
}

.notice {
  border-left: 8px solid var(--blue);
  padding: 14px 16px;
  background: #fff;
  margin: 18px 0;
}

.status {
  min-height: 26px;
  margin-top: 12px;
  font-weight: 800;
}

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

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 12ch;
  }

  .section-grid,
  .stripe .shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .tool-options,
  .section-grid,
  .stripe .shell,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .file-row,
  .result-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .file-row .button,
  .result-row .button {
    grid-column: 1 / -1;
  }

  .thumb {
    width: 58px;
    height: 48px;
  }

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