/* CalcBean PDF Editor landing — own code, EXACT CalcBean tokens from
   the main site's src/app/globals.css (light theme). No framework. */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1b2422;
  background: #f4f6f4;
}

a { color: #085548; }

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* --- Dark header (CalcBean dark tokens) --- */
.site-header {
  background: #0d1312;
  color: #e9f0ed;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand { display: inline-flex; }
.brand img { display: block; height: 40px; width: auto; max-width: 100%; }

.calculators-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid #35c4ab;
  border-radius: 999px;
  color: #5fd6c0;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.calculators-btn:hover { background: #151d1b; }

/* --- Hero: compact on desktop (Block 35, D-094) — content sits close
   under the header instead of filling the viewport: the old
   100vh/100svh min-height + centering left ~250px of empty space
   above and below the hero content on tall screens. Mobile already
   used min-height: 0 and is unchanged. --- */
.hero {
  background: #f4f6f4;
  display: flex;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 32px;
  align-items: center;
  width: 100%;
}

.pill {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 14px;
  border: 1px solid #cfd8d3;
  border-radius: 999px;
  background: #ffffff;
  color: #085548;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #1b2422;
}

.green { color: #0b6e5f; }

.hero-line {
  margin: 0 0 20px;
  font-size: 18px;
  color: #4d5d58;
  max-width: 34rem;
}

.start-btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: #0b6e5f;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.start-btn:hover { background: #085548; }

.start-note {
  margin: 10px 0 0;
  font-size: 14px;
  color: #4d5d58;
}

/* --- Editor preview mock (static shapes, no fake controls) --- */
.preview {
  background: #ffffff;
  border: 1px solid #cfd8d3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgb(27 36 34 / 0.12);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #0d1312;
  color: #e9f0ed;
  font-size: 13px;
}

.preview-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #35c4ab;
}

.preview-title { margin-left: 8px; font-weight: 600; }

.preview-download {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: #0b6e5f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid #cfd8d3;
  font-size: 13px;
  color: #4d5d58;
}

.preview-toolbar span {
  padding: 3px 10px;
  border: 1px solid #cfd8d3;
  border-radius: 999px;
}

.preview-body { display: flex; gap: 12px; padding: 12px; }

.preview-thumbs { display: flex; flex-direction: column; gap: 8px; }

.thumb {
  width: 44px;
  padding: 6px;
  border: 1px solid #cfd8d3;
  border-radius: 4px;
  background: #f4f6f4;
}

.thumb i {
  display: block;
  height: 3px;
  margin: 4px 0;
  background: #cfd8d3;
  border-radius: 2px;
}

.preview-page {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #cfd8d3;
  border-radius: 4px;
  background: #ffffff;
}

.preview-heading {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 700;
  color: #1b2422;
}

.preview-sub { margin: 0 0 10px; font-size: 11px; color: #4d5d58; }

.preview-line {
  height: 6px;
  margin: 6px 0;
  background: #eef2ef;
  border-radius: 3px;
}

.preview-line.short { width: 62%; }

.preview-selected {
  display: inline-block;
  margin: 6px 0;
  padding: 1px 6px;
  border: 2px solid #0b6e5f;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #1b2422;
}

.preview-sign {
  margin: 10px 0 0;
  font-family: cursive;
  font-size: 20px;
  color: #4d5d58;
  transform: rotate(-4deg);
}

.preview-panel { width: 92px; flex: none; }

.preview-panel-title { margin: 0 0 8px; font-size: 11px; font-weight: 700; }

.preview-field {
  height: 16px;
  margin: 6px 0;
  border: 1px solid #cfd8d3;
  border-radius: 4px;
  background: #f4f6f4;
}

/* --- Feature row / trust strip / simple section --- */
.features { padding: 44px 0 8px; }

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

.feature { text-align: center; }

.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eef2ef;
  color: #0b6e5f;
  font-size: 22px;
  font-weight: 700;
}

.feature h2 { margin: 0 0 4px; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: #4d5d58; }

.trust { padding: 36px 0 8px; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  background: #eef2ef;
}

.trust-item h2 { margin: 0 0 4px; font-size: 16px; }
.trust-item p { margin: 0; font-size: 14px; color: #4d5d58; }

.simple { padding: 36px 0 8px; text-align: center; }

.overline {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b6e5f;
}

.simple h2 { margin: 0 0 8px; font-size: 32px; }
.simple p:last-child { margin: 0; color: #4d5d58; }

/* --- Ad slot: hidden unless ad.html holds real code (or the preview
   placeholder box, Block 35, D-094) --- */
.ad-section { padding: 28px 0 0; }

.ad-label {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d5d58;
  text-align: center;
}

#ad-slot-body { text-align: center; }

/* Labelled preview placeholder: the same dashed reserved-space box the
   main-site AdSlot renders in preview mode. Same-origin markup only. */
.ad-placeholder {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 2px dashed #cfd8d3;
  border-radius: 12px;
  color: #4d5d58;
  text-align: center;
}

/* --- Details + FAQ --- */
.details { padding: 36px 0 8px; }

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.details h2, .faq h2 { font-size: 24px; }
.details ul { margin: 8px 0; padding-left: 20px; }
.details li { margin: 6px 0; }

.faq { padding: 28px 0 44px; }
.faq h2 { margin-bottom: 16px; }
.faq h3 { margin: 20px 0 4px; font-size: 18px; }
.faq p { margin: 0; color: #4d5d58; max-width: 44rem; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid #cfd8d3;
  background: #ffffff;
  padding: 24px 0;
}

.footer-row { text-align: center; }
.footer-row p { margin: 0 0 8px; }
.footer-row nav { margin: 0 0 8px; }
.footer-row nav a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 12px;
  font-weight: 600;
}

.attribution { font-size: 13px; color: #4d5d58; }

/* --- Small screens: stack, never scroll sideways --- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-copy h1 { font-size: 38px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .details-grid { grid-template-columns: 1fr; }
  .preview-panel { display: none; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 32px; }
  .preview-thumbs { display: none; }
}
