:root {
  color: #1f1f1f;
  background: #f8f6f1;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #f8f6f1;
  --text: #1f1f1f;
  --muted: #6b7280;
  --dark: #151515;
  --gold: #b8893b;
  --card: #ffffff;
  --border: #e5e1d8;
  --soft-gold: #f4ead9;
  --shadow: 0 24px 60px rgba(31, 31, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(184, 137, 59, 0.11) 0, rgba(248, 246, 241, 0) 380px),
    var(--bg);
}

button,
input,
textarea {
  font: inherit;
}

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

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
}

.site-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px 0;
  gap: 18px;
}

.topbar::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.92);
  content: "";
  transform: translateX(-50%);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 8px;
  background: var(--dark);
  box-shadow: 0 12px 30px rgba(21, 21, 21, 0.14);
}

.brand-icon img {
  display: block;
  width: 34px;
  height: 34px;
}

.brand-title {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

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

.nav-links a,
.footer-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  background: rgba(184, 137, 59, 0.13);
  outline: none;
}

.nav-links .nav-tool-link {
  min-height: 42px;
  border: 1px solid rgba(184, 137, 59, 0.34);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(31, 31, 31, 0.07);
  font-weight: 800;
  padding: 0 14px;
}

.nav-links .nav-tool-link:hover,
.nav-links .nav-tool-link:focus-visible {
  border-color: rgba(184, 137, 59, 0.58);
  background: #fff;
  box-shadow: 0 14px 32px rgba(184, 137, 59, 0.13);
}

.hero-tool {
  min-height: calc(100vh - 78px);
  display: grid;
  align-content: center;
  gap: 32px;
  padding: 28px 0 64px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 7vw, 5rem);
  line-height: 0.97;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 660px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.65;
}

.hero-copy .trust-text {
  max-width: 620px;
  margin-top: 10px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  gap: 22px;
  align-items: start;
}

.tool-card,
.preview-card,
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool-card {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--dark);
}

.preview-card {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 26px);
  overflow: hidden;
}

.drop-zone {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 26px;
  background: linear-gradient(180deg, #fff, #fbfaf7);
  text-align: center;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-dragging {
  border-color: rgba(184, 137, 59, 0.58);
  background: var(--soft-gold);
  box-shadow: 0 0 0 4px rgba(184, 137, 59, 0.12);
  outline: none;
}

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

.drop-icon {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  box-shadow: 0 12px 30px rgba(21, 21, 21, 0.16);
  font-weight: 900;
  text-align: center;
}

.drop-icon-text {
  display: block;
  width: 100%;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.drop-symbol {
  display: none;
  position: relative;
  gap: 6px;
  width: 34px;
}

.drop-symbol::before {
  position: absolute;
  top: -12px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--gold);
  content: "";
  transform: rotate(8deg);
}

.drop-symbol span {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #fff;
}

.drop-symbol span:nth-child(2) {
  width: 76%;
}

.drop-symbol span:nth-child(3) {
  width: 54%;
}

.drop-zone p {
  margin-top: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.08rem;
}

.drop-zone span,
.helper-text,
.status-message {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.status-message[data-type="error"] {
  border: 1px solid rgba(176, 57, 57, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff3f0;
  color: #9f2f2f;
  font-weight: 700;
}

.status-message:empty {
  display: none;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  padding: 0 20px;
  text-align: center;
}

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

.primary-button:hover,
.primary-button:focus-visible {
  background: #2a261f;
  outline: 3px solid rgba(184, 137, 59, 0.22);
}

.secondary-button {
  min-width: 0;
  border-color: var(--border);
  background: #fff;
  color: var(--text);
  padding: 0 14px;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(184, 137, 59, 0.5);
  background: var(--soft-gold);
  outline: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.preview-box {
  display: grid;
  min-height: 290px;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfaf7);
  overflow: hidden;
  text-align: center;
}

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

.preview-box p {
  padding: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.result-label {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px 16px;
  background: #fff;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 137, 59, 0.16);
  outline: none;
}

.copy-button {
  width: 100%;
}

.section-band {
  padding: 76px 0;
  border-top: 1px solid rgba(229, 225, 216, 0.8);
}

.section-heading {
  max-width: 610px;
  margin-bottom: 24px;
}

.section-heading span {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
}

.section-heading h2 {
  margin-top: 8px;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: 0;
}

.section-heading p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

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

.info-card {
  min-height: 184px;
  padding: 24px;
}

.card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-gold);
  color: var(--gold);
  font-weight: 900;
}

.info-card h3 {
  margin-top: 18px;
  color: var(--text);
  font-size: 1.08rem;
}

.info-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: start;
}

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

.use-list li {
  position: relative;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  line-height: 1.55;
}

.tools-cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tools-cta-section .section-heading {
  margin-bottom: 0;
}

.tools-button {
  flex: 0 0 auto;
}

.footer {
  display: grid;
  gap: 10px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.footer-links {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
}

.footer p {
  color: var(--text);
}

.legal-page {
  min-height: 70vh;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 48px 0 76px;
}

.legal-page h1 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 0.98;
}

.legal-intro {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
}

.legal-breadcrumb .back-link {
  color: var(--muted);
}

.legal-breadcrumb .back-link::before {
  color: var(--muted);
  content: "←";
  margin-right: 6px;
  font-size: 1.25rem;
  line-height: 1;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--gold);
  outline: none;
}

.legal-content {
  display: grid;
  gap: 14px;
  max-width: 688px;
  margin-top: 34px;
}

.legal-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 20px 24px;
  background: var(--card);
  box-shadow: 0 18px 46px rgba(31, 31, 31, 0.055);
}

.legal-card h2 {
  font-size: 1.18rem;
}

.legal-card p,
.legal-card ul {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.legal-cta {
  width: fit-content;
}

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

.legal-card ul {
  padding-left: 20px;
}

.contact-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--soft-gold);
  color: var(--gold);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-link:hover,
.contact-link:focus-visible {
  background: rgba(184, 137, 59, 0.18);
  color: var(--text);
  outline: none;
}

@media (max-width: 980px) {
  .tool-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .preview-card {
    max-width: 640px;
  }

  .hero-tool {
    align-content: start;
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 24px, 1160px);
  }

  .topbar {
    align-items: flex-start;
    gap: 12px;
    min-height: auto;
    padding: 12px 0;
  }

  .brand-icon {
    width: 44px;
    height: 44px;
  }

  .brand-icon img {
    width: 31px;
    height: 31px;
  }

  .nav-links {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.84rem;
  }

  .brand-title {
    font-size: 0.8rem;
  }

  .legal-page {
    padding: 34px 0 56px;
  }

  .legal-content {
    max-width: none;
  }

  .nav-links a,
  .footer-links a {
    min-height: 34px;
    padding: 0 8px;
  }

  .hero-tool {
    padding-top: 22px;
  }

  .button-row,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .tools-cta-section {
    display: grid;
  }

  .tools-button {
    width: 100%;
  }

  .section-band {
    padding: 56px 0;
  }

  .drop-zone,
  .preview-box {
    min-height: 240px;
  }
}
