/* PDFree landing — "eco-style". Tokens, fonts, and the highlighter signature
   live in tokens.css (imported below); this file styles the page. Both the
   light default and the "Zen" eco-dark set come from the tokens file. */

@import "tokens.css";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header (filled warm-green bar) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--on-header);
  text-decoration: none;
}

.brand .leaf {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  transform: rotate(8deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: #eaf1e2;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.92;
}

.site-nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  padding: 11px 22px;
  box-shadow: 0 10px 22px -14px rgba(60, 98, 52, 0.85);
}

.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}

/* On the green header the primary button needs to invert to cream */
.btn-onbrand {
  background: #fbfaf3;
  color: #3c6234;
  padding: 9px 18px;
}

.btn-onbrand:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 74px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-highlight);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

/* Highlighted words keep dark text in both themes (marker is always light) */
.hero h1 .hl { color: var(--on-highlight); }

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36ch;
  margin-bottom: 30px;
}

.lede b {
  color: var(--ink);
  font-weight: 700;
}

/* highlighter swipe fill helpers (shape lives in tokens .hl) */
.hl-yellow path {
  fill: var(--hl-yellow);
  opacity: 0.85;
}

.hl-apricot path {
  fill: var(--apricot);
  opacity: 0.5;
}

/* pills */
.pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1.5px solid var(--green-soft);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 9px 16px 9px 13px;
  border-radius: 7px;
}

.pill svg {
  width: 17px;
  height: 17px;
  color: var(--green);
}

/* ---------- Hero CTA panel (the drop zone) ---------- */

.hero-panel {
  background: var(--cream);
  border: 1px solid var(--green-soft);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 24px 50px -26px rgba(31, 38, 27, 0.42);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-panel.drag-over {
  border-color: var(--green);
  box-shadow: 0 24px 50px -22px rgba(60, 98, 52, 0.5);
}

.doc-preview {
  background: var(--bg);
  border: 1px solid var(--green-soft);
  border-radius: 6px;
  padding: 16px 16px 14px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.doc-preview .fname {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.doc-preview .fname::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--green);
}

.doc-preview .line {
  height: 9px;
  border-radius: 2px;
  background: var(--green-soft);
  margin: 8px 0;
  opacity: 0.7;
}

.doc-preview .line.s1 { width: 86%; }
.doc-preview .line.s2 { width: 70%; }
.doc-preview .line.s3 { width: 78%; }
.doc-preview .line.hl-line {
  width: 52%;
  background: var(--hl-yellow);
  opacity: 0.55;
}

.doc-preview .sig {
  position: absolute;
  right: 14px;
  bottom: 9px;
  color: var(--green);
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 600;
  transform: rotate(-4deg);
}

.cta-note {
  position: relative;
  font-family: var(--font-hand);
  font-weight: 600;
  color: var(--green-deep);
  font-size: 1.4rem;
  text-align: right;
  padding-right: 28px;
  margin-bottom: 4px;
  transform: rotate(-2deg);
}

.cta-note svg {
  position: absolute;
  right: 4px;
  bottom: -15px;
  width: 38px;
  height: 36px;
  pointer-events: none;
}

.cta-big {
  display: block;
  width: 100%;
  font-size: 1.22rem;
  padding: 16px;
  border-radius: 8px;
}

.drop-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 13px;
}

.drop-error {
  text-align: center;
  margin-top: 8px;
  min-height: 1.2em;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--danger);
}

.panel-trust {
  text-align: center;
  color: var(--green);
  font-weight: 700;
  font-size: 0.82rem;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px dashed var(--green-soft);
}

/* ---------- Ad slots ---------- */

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 44px auto;
}

.ad-slot .ad-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--label);
}

.ad-slot .ad-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--bg-alt);
  border: 1px dashed var(--green-soft);
  border-radius: 6px;
  color: var(--muted-2);
  font-size: 0.8125rem;
}

.ad-leaderboard .ad-container { max-width: 728px; min-height: 90px; }
.ad-rectangle .ad-container { max-width: 336px; min-height: 280px; }

/* ---------- Sections ---------- */

.section { padding: 68px 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--green-soft);
  border-bottom: 1px solid var(--green-soft);
}

.section-heading {
  text-align: center;
  margin-bottom: 44px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.section-heading p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Tools breadth strip ---------- */

.tools-strip { padding: 56px 0 8px; }

.tools-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.tools-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
}

.tools-head .count {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--apricot);
  font-weight: 600;
  transform: rotate(-4deg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: var(--cream);
  border: 1.5px solid var(--green-soft);
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.chip.more {
  background: transparent;
  border-style: dashed;
  color: var(--green);
  font-family: var(--font-hand);
  font-size: 1.15rem;
  padding-top: 6px;
}

/* ---------- Features ---------- */

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

.feature {
  padding: 24px;
  border: 1px solid var(--green-soft);
  border-radius: var(--radius);
  background: var(--cream);
}

.feature svg {
  color: var(--green);
  background: var(--brand-wash);
  padding: 9px;
  border-radius: var(--radius);
  box-sizing: content-box;
  margin-bottom: 14px;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.step { text-align: center; }

.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-wash);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.step p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid var(--green-soft);
  padding: 4px 0;
}

.faq-list summary {
  cursor: pointer;
  padding: 15px 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-list summary::after {
  content: "+";
  color: var(--green);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
}

.faq-list details[open] summary::after { content: "\2212"; }

.faq-list details p {
  padding: 0 4px 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--green-soft);
  padding: 48px 0 32px;
  background: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-grid p {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 300px;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--green-soft);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--label);
  font-size: 0.8125rem;
}

/* ---------- Theme toggle ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-header);
  cursor: pointer;
}

.theme-toggle:hover { background: rgba(255, 255, 255, 0.14); }

.theme-toggle .theme-icon-sun { display: none; }
:root[data-theme="zen"] .theme-toggle .theme-icon-sun { display: block; }
:root[data-theme="zen"] .theme-toggle .theme-icon-moon { display: none; }

/* Keyboard focus stays visible in both themes */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ---------- Subpages (comparison, alternatives, task pages) ---------- */

.page-hero { padding: 70px 0 40px; text-align: center; }
.page-hero .eyebrow { margin-bottom: 18px; }

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto 16px;
}

.page-hero .lede {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 58ch;
  margin: 0 auto;
}

.prose { max-width: 720px; margin: 0 auto; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 34px 0 12px;
}
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose strong { color: var(--ink); }

/* Comparison table */
.cmp-wrap {
  max-width: 920px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--green-soft);
  border-radius: 10px;
}

.cmp-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  background: var(--cream);
  font-size: 0.95rem;
}

.cmp-table th,
.cmp-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--green-soft);
}

.cmp-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-alt);
}

.cmp-table tbody th { font-weight: 700; color: var(--ink); }
.cmp-table td { color: var(--muted); }

/* highlight the PDFree column */
.cmp-table .col-us { background: var(--brand-wash); }
.cmp-table thead th.col-us { color: var(--green-deep); }
.cmp-table td.col-us { color: var(--ink); font-weight: 600; }

.cmp-table tr:last-child th,
.cmp-table tr:last-child td { border-bottom: none; }

.cmp-note {
  max-width: 920px;
  margin: 14px auto 0;
  color: var(--label);
  font-size: 0.82rem;
  text-align: center;
}

/* CTA band */
.cta-band {
  background: var(--header-bg);
  text-align: center;
  padding: 60px 24px;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--on-header);
  margin-bottom: 10px;
}
.cta-band p { color: #dbe7d0; max-width: 48ch; margin: 0 auto; }
.cta-band .btn { margin-top: 22px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  /* Same-page anchors are reachable by scrolling; keep only cross-page links. */
  .site-nav a[href^="#"],
  .site-nav a[href^="/#"] { display: none; }
  .hero { padding: 48px 0 40px; }
  .feature-grid,
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
