@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #233d32;
  --green: #27664c;
  --green-hover: #194d38;
  --green-light: #edf2e5;
  --green-border: #b7c6a9;
  --muted: #6b776c;
  --line: #e3e6dd;
  --cream: #f7f8f2;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 14px/1.6 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Header & Nav */
header {
  height: 86px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 22px 'Manrope', sans-serif;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.7px;
}

.logo {
  background: var(--green);
  color: white;
  border-radius: 10px;
  padding: 3px 9px;
  font-size: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge {
  font: 600 9px 'DM Sans', sans-serif;
  letter-spacing: 1.5px;
  background: #e8ecdf;
  padding: 6px 8px;
  border-radius: 5px;
  margin-left: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: #4a5c48;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s ease;
}

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

.privacy {
  color: #586f56;
  font-size: 12px;
  font-weight: 500;
  background: #edf0df;
  border: 1px solid #e0e6cb;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Main Container */
main {
  max-width: 1450px;
  margin: auto;
  padding: 44px 5% 40px;
}

/* Hero Section */
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 38px;
  gap: 20px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #688057;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h1 {
  font: 800 clamp(30px, 3.4vw, 48px)/1.15 'Manrope', sans-serif;
  letter-spacing: -1.8px;
  margin: 10px 0 16px;
  color: var(--ink);
}

h1 span {
  color: #67944d;
}

.intro p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
  max-width: 680px;
  margin: 0 0 16px;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.trust-pill {
  font-size: 11px;
  font-weight: 600;
  color: #3b5736;
  background: #ebf0df;
  border: 1px solid #dce2ce;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.note {
  display: flex;
  align-items: center;
  gap: 15px;
  transform: rotate(-3deg);
  padding: 18px 25px;
  background: #edf0df;
  border: 1px solid #e0e6cb;
  border-radius: 9px;
  margin-right: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px #263c2908;
}

.note > span {
  font-size: 40px;
  color: #789661;
}

.note p {
  font-size: 14px;
  color: #46613f;
  line-height: 1.6;
  margin: 0;
}

.note small {
  font-size: 11px;
}

/* Workspace Grid */
.workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  overflow: hidden;
  box-shadow: 0 8px 30px #263c2910;
}

aside {
  padding: 26px;
  border-right: 1px solid var(--line);
  background: #fcfcf8;
}

.step {
  font-size: 11px;
  color: #9aa38f;
  letter-spacing: 1px;
  font-weight: 700;
}

.step span {
  margin-left: 8px;
  color: #65745c;
}

.drop {
  border: 1.5px dashed var(--green-border);
  border-radius: 9px;
  background: #f5f7ed;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  padding: 22px 10px;
  margin-top: 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drop:hover, .drop.over, .drop.drag {
  background: #e8f0dc;
  border-color: var(--green);
}

.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.drop:focus-within {
  outline: 2px solid var(--green);
}

.upload {
  font-size: 26px;
  line-height: 30px;
  color: #678458;
}

.drop strong {
  font-size: 13px;
  color: var(--ink);
}

.drop small {
  font-size: 10px;
  color: var(--muted);
}

.drop .secondary {
  margin-top: 3px;
}

button, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border-radius: 7px;
  font-weight: 600;
  transition: background 0.15s, opacity 0.15s;
}

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

button:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #a0bd85;
  outline-offset: 2px;
}

.sample {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 11px;
  width: 100%;
  padding: 13px 0;
  font-weight: 600;
}

.sample:hover {
  text-decoration: underline;
}

.field {
  display: block;
  font-size: 11px;
  color: #6b7866;
  font-weight: 600;
  margin-top: 14px;
}

textarea {
  width: 100%;
  height: 65px;
  resize: vertical;
  margin-top: 6px;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 6px;
  font-size: 11px;
  background: white;
  color: var(--ink);
  font-family: monospace;
}

.secondary {
  background: white;
  border: 1px solid #dce2d5;
  color: #4e6745;
  padding: 9px 12px;
  font-size: 11px;
}

.secondary:hover:not(:disabled) {
  background: #f2f5ed;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 23px 0;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 19px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.option input {
  accent-color: var(--green);
  margin: 2px 0 0;
}

.option span {
  font-weight: 600;
  color: var(--ink);
}

.option small {
  display: block;
  font-size: 10px;
  color: #8a9184;
  margin-top: 3px;
  line-height: 1.4;
  font-weight: 400;
}

.primary {
  border: 0;
  background: var(--green);
  color: white;
  padding: 13px 18px;
  font-size: 12px;
}

.primary:hover:enabled {
  background: var(--green-hover);
}

aside .primary {
  width: 100%;
  margin-top: 25px;
}

.formatting {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}

.formatting select {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: #526449;
  font-size: 11px;
  width: 100%;
}

/* Article & Preview Section */
article {
  padding: 27px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

h2 {
  font: 700 20px 'Manrope', sans-serif;
  margin: 13px 0 24px;
  color: var(--ink);
}

#filename {
  font: 400 11px 'DM Sans', sans-serif;
  color: #7c8a77;
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.tabs {
  display: flex;
  background: #f1f3eb;
  padding: 4px;
  border-radius: 7px;
}

.tabs button {
  border: 0;
  background: none;
  color: #8b9485;
  font-size: 11px;
  padding: 7px 14px;
}

.tabs .active {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 4px #00000018;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf7;
  padding: 18px 0;
}

.stats div {
  padding: 0 20px;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border: 0;
}

.stats small {
  font-size: 9px;
  letter-spacing: 1px;
  color: #88917e;
  font-weight: 700;
}

.stats strong {
  display: block;
  font: 700 25px 'Manrope', sans-serif;
  margin-top: 7px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 53px;
  padding: 8px 0;
}

#file-meta {
  font-size: 11px;
  color: #7d8b73;
  line-height: 1.6;
}

.status-line input {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 11px;
  width: 160px;
  min-width: 0;
  background: white;
}

.error {
  padding: 12px;
  background: #fff1ed;
  border: 1px solid #efcfc4;
  border-radius: 6px;
  color: #a14c36;
  font-size: 12px;
  margin-bottom: 12px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  min-height: 340px;
  max-height: 480px;
  background: #fff;
  flex: 1;
}

.empty-state {
  text-align: center;
  padding: 56px 14px;
}

.empty-state > div {
  font-size: 38px;
  color: #90a878;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 12px 0 6px;
}

.empty-state p {
  font-size: 12px;
  margin-bottom: 22px;
  color: var(--muted);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: pre;
}

th, td {
  padding: 13px 15px;
  border-bottom: 1px solid #edf0e8;
  text-align: left;
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
}

th {
  background: #f1f4e9;
  position: sticky;
  top: 0;
  color: #526449;
  font-weight: 700;
}

td:first-child, th:first-child {
  color: #9ba68e;
  background: #fafbf6;
  width: 44px;
  text-align: center;
}

tr:nth-child(even) {
  background: #fcfdf9;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 0;
  font-size: 11px;
  color: #8a9580;
}

#preview-badge {
  background: #edf2e5;
  color: #5a7750;
  border-radius: 4px;
  padding: 4px 8px;
  font-weight: 600;
}

.text-button {
  border: 0;
  background: none;
  color: #7d8875;
  font-size: 11px;
  white-space: nowrap;
  margin-left: auto;
  cursor: pointer;
}

.text-button:hover {
  color: #ad382a;
}

.export {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.export h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.export p {
  font-size: 11px;
  margin: 4px 0 18px;
  color: var(--muted);
}

.export-options {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.export-options label {
  font-size: 10px;
  color: #7d8875;
  font-weight: 600;
  flex: 1;
}

.export-options select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: #526449;
  font-size: 11px;
}

.formula-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #707b68;
  margin-top: 14px;
  cursor: pointer;
  user-select: none;
}

.formula-option input {
  accent-color: var(--green);
}

[hidden] {
  display: none !important;
}

/* ========================================================
   SEO CONTENT SECTIONS & ENHANCEMENTS
   ======================================================== */

.seo-content {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 85px;
}

.seo-section {
  scroll-margin-top: 100px;
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
}

.section-head .eyebrow {
  margin-bottom: 8px;
}

.section-head h2 {
  font: 800 clamp(24px, 2.5vw, 36px)/1.25 'Manrope', sans-serif;
  letter-spacing: -1px;
  margin: 6px 0 14px;
  color: var(--ink);
}

.section-head p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.feature-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 3px 12px #263c2906;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #263c290c;
  border-color: #ccd5bf;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #edf2e5;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font: 700 17px/1.3 'Manrope', sans-serif;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 22px;
  position: relative;
  box-shadow: 0 3px 10px #263c2905;
}

.step-number {
  font: 800 13px 'Manrope', sans-serif;
  color: var(--green);
  background: #eaf0e0;
  border: 1px solid #d8e2ca;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.step-card h3 {
  font: 700 16px/1.3 'Manrope', sans-serif;
  margin: 0 0 10px;
  color: var(--ink);
}

.step-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Use Cases Grid */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.use-case-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 2px 8px #263c2905;
}

.use-case-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #55704d;
  background: #edf0df;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

.use-case-card h3 {
  font: 700 17px/1.3 'Manrope', sans-serif;
  margin: 0 0 10px;
  color: var(--ink);
}

.use-case-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 14px;
}

.use-case-card ul {
  margin: 0;
  padding-left: 18px;
  color: #4b5849;
  font-size: 12px;
  line-height: 1.8;
}

/* Comparison Table */
.comparison-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
  box-shadow: 0 4px 20px #263c2908;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #edf0e8;
  white-space: normal;
}

.comparison-table th {
  background: #f4f6ee;
  color: #3b5033;
  font-weight: 700;
  font-size: 13px;
}

.comparison-table th.highlight, .comparison-table td.highlight {
  background: #f2f7ec;
  font-weight: 600;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  background: white;
  width: 35%;
}

.check {
  color: #27664c;
  font-weight: 700;
}

.cross {
  color: #a63f35;
  font-weight: 600;
}

.badge-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #ddead1;
  color: #21543e;
  margin-left: 6px;
}

/* FAQ Accordion */
.faq-list {
  max-width: 880px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: #b7c7a9;
}

.faq-question {
  padding: 18px 24px;
  font: 700 15px/1.4 'Manrope', sans-serif;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: #65745c;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.faq-answer p {
  margin: 0 0 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer code {
  background: #f1f3ea;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #284737;
}

/* Tech Specs Callout */
.specs-card {
  background: #f2f5ec;
  border: 1px solid #dbe3d0;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.specs-text h3 {
  font: 700 18px 'Manrope', sans-serif;
  margin: 0 0 6px;
  color: var(--ink);
}

.specs-text p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.specs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-tag {
  background: white;
  border: 1px solid #d3dcc6;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #3f5539;
}

/* Enhanced Rich Footer */
footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding: 40px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand p {
  font-size: 12px;
  color: #7b8776;
  line-height: 1.6;
  margin: 10px 0 0;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font: 700 11px 'Manrope', sans-serif;
  letter-spacing: 1px;
  color: #637059;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.footer-col a {
  font-size: 12px;
  color: #556651;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8c9684;
  border-top: 1px solid #ebefe5;
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  header {
    padding: 0 5%;
    height: 70px;
  }
  .nav-links, .privacy, .note {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .intro {
    margin-bottom: 25px;
  }
  main {
    padding-top: 28px;
  }
  h1 {
    letter-spacing: -1px;
  }
  .stats div {
    padding: 0 10px;
  }
  .stats small {
    font-size: 8px;
  }
  article {
    padding: 20px;
  }
  .badge {
    font-size: 8px;
  }
  .preview-head {
    align-items: flex-start;
  }
  .status-line {
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .preview-toolbar {
    flex-wrap: wrap;
  }
  #preview-footer {
    flex: 1;
  }
  .formatting {
    grid-template-columns: 1fr 1fr;
  }
  .formatting .field {
    grid-column: 1 / -1;
  }
  .export-options .primary {
    width: 100%;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .features-grid, .use-cases-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1200px) {
  main {
    padding-top: 38px;
  }
  .intro {
    margin-bottom: 30px;
  }
  .workspace {
    grid-template-columns: 310px minmax(0, 1fr);
  }
}
