:root {
  --ink: #15221f;
  --muted: #566b66;
  --line: #d7ded9;
  --paper: #fffdf8;
  --fog: #f2f3ed;
  --green: #145b4d;
  --green-soft: #e4efe9;
  --gold: #efae4e;
  --gold-deep: #db9130;
  --red: #a03c30;
  --red-soft: #fff0ea;
  --success: #146047;
  --shadow: 0 28px 70px rgba(23, 40, 34, 0.1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at 8% 3%, rgba(239, 174, 78, 0.16), transparent 27rem),
    radial-gradient(circle at 92% 11%, rgba(20, 91, 77, 0.1), transparent 24rem),
    linear-gradient(180deg, #fffdf8 0%, #f3f4ed 100%);
}

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

button,
input {
  font: inherit;
}

code {
  border-radius: 7px;
  background: var(--green-soft);
  padding: 0.12rem 0.35rem;
  color: var(--green);
  font-family: "Cascadia Code", "SFMono-Regular", monospace;
  font-size: 0.92em;
}

.site-header {
  padding: 22px 22px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1190px, 100%);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 17px rgba(20, 91, 77, 0.24);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--green);
}

.page-shell {
  width: min(1190px, calc(100% - 44px));
  margin: 0 auto;
  padding: 56px 0 68px;
}

.tool-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  align-items: end;
  gap: 44px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro-copy h1 {
  max-width: 730px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 4.45rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.intro-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.trust-row span {
  border: 1px solid #cbd9d2;
  border-radius: 999px;
  background: #fff;
  padding: 8px 14px;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 600;
}

.privacy-note {
  border: 1px solid #cddbd4;
  border-radius: var(--radius-lg);
  background: var(--green-soft);
  padding: 22px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.privacy-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 0.97rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.9);
  padding: 20px;
  box-shadow: var(--shadow);
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 204px;
  border: 1.5px dashed #b0c9bc;
  border-radius: 22px;
  background: #fbfcf8;
  padding: 26px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--green);
  background: var(--green-soft);
  transform: translateY(-1px);
}

.drop-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.48rem;
  font-weight: 600;
}

.drop-hint {
  max-width: 310px;
  margin: 9px 0 19px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.file-picker-text {
  border-radius: 999px;
  background: var(--green);
  padding: 11px 24px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(100%);
}

.status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  background: var(--fog);
  padding: 11px 13px;
  color: var(--muted);
  font-size: 0.85rem;
}

.status-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-card strong {
  flex-shrink: 0;
  color: var(--ink);
}

.control-stack {
  display: grid;
  gap: 13px;
}

.control {
  display: grid;
  gap: 8px;
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.control-row output {
  color: var(--green);
  font-size: 0.82rem;
}

.control input[type="text"] {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 0 14px;
  outline: none;
}

.control input[type="text"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 91, 77, 0.1);
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.quick-actions,
.actions {
  display: flex;
  gap: 9px;
}

.btn {
  min-height: 45px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 650;
  transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.btn-primary {
  flex: 1;
  color: #fff;
  background: var(--green);
}

.btn-primary:hover:not(:disabled) {
  background: #104c41;
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.quick-actions .btn {
  flex: 1;
  min-height: 39px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.message {
  min-height: 47px;
  border-radius: 13px;
  background: var(--fog);
  padding: 13px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.message[data-tone="success"] {
  color: var(--success);
  background: var(--green-soft);
}

.message[data-tone="error"] {
  color: var(--red);
  background: var(--red-soft);
}

.preview-panel {
  display: flex;
  min-height: 572px;
  flex-direction: column;
  padding: 18px;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 4px 17px;
  font-size: 0.95rem;
}

.file-meta {
  color: var(--muted);
  font-size: 0.83rem;
}

.page-picker-shell {
  flex: 1;
  border-radius: 21px;
  background:
    linear-gradient(135deg, rgba(20, 91, 77, 0.07), rgba(239, 174, 78, 0.08)),
    #f5f6f0;
  padding: 22px;
}

.page-buttons {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 9px;
  height: 100%;
  max-height: 524px;
  overflow-y: auto;
}

.empty-picker {
  display: grid;
  width: 100%;
  min-height: 100%;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.page-button {
  display: grid;
  width: 57px;
  height: 72px;
  place-items: center;
  border: 1px solid #d8ded9;
  border-radius: 11px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 650;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.page-button:hover {
  border-color: var(--green);
  color: var(--green);
}

.page-button.is-selected {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.seo-section {
  margin-top: 64px;
}

.seo-section > h2 {
  max-width: 750px;
  margin: 0 0 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.seo-section > p {
  max-width: 770px;
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.75;
}

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

.feature,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.72);
  padding: 22px;
}

.feature h3,
.faq-item h3 {
  margin: 0 0 9px;
  font-size: 1rem;
}

.feature p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.68;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 24px 22px 30px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1190px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.content-page {
  max-width: 800px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.88);
  padding: clamp(27px, 6vw, 55px);
  box-shadow: var(--shadow);
}

.content-page h1 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  letter-spacing: -0.05em;
}

.content-page h2 {
  margin-top: 34px;
  font-size: 1.18rem;
}

.content-page p {
  color: var(--muted);
  line-height: 1.75;
}

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

  .privacy-note {
    max-width: 560px;
  }

  .preview-panel {
    min-height: 380px;
  }

  .page-buttons {
    max-height: 360px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 17px 16px 0;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    gap: 15px;
  }

  .page-shell {
    width: calc(100% - 30px);
    padding-top: 40px;
  }

  .intro-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3rem);
  }

  .panel {
    padding: 14px;
    border-radius: 23px;
  }

  .quick-actions,
  .actions,
  .footer-inner {
    flex-direction: column;
  }

  .feature-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
