:root {
  --ink: #17212b;
  --muted: #5c6875;
  --soft: #eef4f7;
  --paper: #ffffff;
  --line: #d8e2e8;
  --brand: #0b7a68;
  --brand-dark: #07594c;
  --blue: #245fba;
  --yellow: #f3ba43;
  --danger: #b42318;
  --ok: #087443;
  --shadow: 0 18px 48px rgba(20, 35, 48, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7fafb;
  line-height: 1.55;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.site-header,
.footer-inner,
.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--brand-dark);
}

.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 22px;
  align-items: stretch;
  padding: 24px 0 20px;
}

.hero-copy,
.trust-card,
.card,
.tool-panel,
.preview-panel,
.content-card,
.faq-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(28px, 6vw, 58px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
summary {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.25rem, 7vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.lede {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

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

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

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

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

.button.wide {
  width: 100%;
}

.button[aria-disabled="true"],
.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.trust-card {
  padding: 26px;
}

.trust-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.check {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 0.8rem;
  font-weight: 900;
}

.section {
  padding: 22px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-head p {
  color: var(--muted);
}

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

.card {
  padding: 20px;
}

.card p {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: none;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 18px;
  align-items: start;
}

.tool-panel,
.preview-panel,
.content-card,
.faq-card {
  padding: 22px;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 154px;
  border: 2px dashed #aebdc7;
  border-radius: 8px;
  padding: 22px;
  text-align: center;
  background: #f8fbfc;
  cursor: pointer;
}

.upload-box.is-dragging {
  border-color: var(--brand);
  background: #eef9f6;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-title {
  display: block;
  font-weight: 900;
  font-size: 1.08rem;
}

.upload-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.preset {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.preset.is-active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
  color: var(--brand-dark);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

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

.input-wrap {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}

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

.status.error {
  color: var(--danger);
}

.status.ok {
  color: var(--ok);
}

.preview-box {
  display: grid;
  place-items: center;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: var(--muted);
  background:
    linear-gradient(45deg, #edf3f6 25%, transparent 25%),
    linear-gradient(-45deg, #edf3f6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf3f6 75%),
    linear-gradient(-45deg, transparent 75%, #edf3f6 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.preview-box img {
  display: block;
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.result-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.result-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.result-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
}

.note {
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  margin: 16px 0 0;
  padding: 12px;
  color: var(--muted);
  background: #fff8e6;
}

.content-card,
.faq-card {
  margin-top: 16px;
}

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

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

.step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--yellow);
  font-weight: 900;
}

.faq-card details {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

.faq-card details:first-of-type {
  border-top: 0;
}

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

.faq-card p,
.content-card p,
.content-card li,
.footer-inner {
  color: var(--muted);
}

.site-footer {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  text-decoration: none;
}

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

.legal-page .content-card {
  margin-top: 0;
}

@media (max-width: 880px) {
  .menu-button {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav a {
    min-height: 44px;
    padding: 10px;
  }

  .menu-toggle:checked ~ .nav {
    display: flex;
  }

  .hero,
  .tool-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .grid,
  .preset-grid,
  .field-row,
  .result-meta,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .trust-card,
  .tool-panel,
  .preview-panel,
  .content-card,
  .faq-card {
    padding: 18px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
