:root {
  color-scheme: light;
  --forest: #073c34;
  --green: #0f6b57;
  --mint: #37d8ab;
  --cream: #fbfaf5;
  --white: #fff;
  --ink: #14211f;
  --muted: #5c6d69;
  --line: #d8e4df;
  --soft: #edf6f2;
  --danger: #b42318;
  --success: #087443;
  --shadow: 0 18px 52px rgba(7, 60, 52, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.62 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--green); }
button, input, select { font: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; padding: .7rem 1rem; background: white; }
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgba(216,228,223,.9); background: rgba(251,250,245,.95); backdrop-filter: blur(12px); }
.nav { max-width: 1160px; min-height: 68px; margin: auto; padding: .7rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--forest); text-decoration: none; font-weight: 850; letter-spacing: -.025em; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--green); box-shadow: inset 0 -6px 14px rgba(0,0,0,.13); font-size: .72rem; }
.brand-mark::before { content: "PDF"; font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 1.15rem; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 700; }
.hero { position: relative; overflow: hidden; background: var(--forest); color: white; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -240px; top: -245px; border: 1px solid rgba(55,216,171,.28); border-radius: 50%; box-shadow: 0 0 0 74px rgba(55,216,171,.055), 0 0 0 148px rgba(55,216,171,.03); }
.hero-inner { max-width: 1160px; margin: auto; padding: 5.3rem 1.25rem 4.8rem; position: relative; z-index: 1; }
.eyebrow { display: inline-block; color: var(--green); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 850; }
.hero .eyebrow, .tool-hero .eyebrow { color: #78f0cc; }
h1, h2, h3 { color: var(--forest); line-height: 1.12; letter-spacing: -.035em; }
.hero h1 { max-width: 780px; margin: .6rem 0 1.2rem; color: white; font-size: clamp(2.75rem, 7vw, 5.6rem); }
.hero p { max-width: 690px; margin: 0; color: #d2e8e1; font-size: 1.15rem; }
.trust-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; font-weight: 750; }
.trust-row span::before { content: "✓"; margin-right: .45rem; color: var(--mint); }
.wrap { max-width: 1160px; margin: auto; padding: 4.5rem 1.25rem; }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head h2 { margin: .3rem 0 .8rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.section-head p { color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.tool-card { position: relative; display: block; min-height: 205px; padding: 1.5rem; overflow: hidden; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 18px; background: white; transition: transform .15s, border-color .15s, box-shadow .15s; }
.tool-card:hover { transform: translateY(-3px); border-color: #85c8b5; box-shadow: 0 12px 28px rgba(7,60,52,.09); }
.tool-number { color: var(--green); font-size: .78rem; font-weight: 850; letter-spacing: .08em; }
.tool-card h3 { margin: .65rem 0 .45rem; font-size: 1.3rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.tool-card::after { content: "→"; position: absolute; right: 1.2rem; bottom: 1rem; color: var(--green); font-size: 1.35rem; }
.tool-hero { padding: 3.8rem 1.25rem 5rem; text-align: center; background: var(--forest); color: white; }
.tool-hero h1 { max-width: 860px; margin: .45rem auto 1rem; color: white; font-size: clamp(2.35rem, 5vw, 4.35rem); }
.tool-hero p { max-width: 720px; margin: auto; color: #d2e8e1; font-size: 1.08rem; }
.tool-shell { max-width: 980px; margin: -2.1rem auto 0; padding: 0 1.25rem 4rem; position: relative; z-index: 2; }
.tool-panel { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.dropzone { min-height: 175px; padding: 1.5rem; display: grid; place-items: center; text-align: center; border: 2px dashed #84b8aa; border-radius: 16px; background: #f5fbf8; cursor: pointer; }
.dropzone[data-drag=true] { border-color: var(--mint); background: #ebfff8; }
.dropzone strong { display: block; color: var(--forest); font-size: 1.15rem; }
.dropzone span { color: var(--muted); }
.dropzone input { max-width: 100%; margin-top: .8rem; }
.file-summary { padding: .85rem 0 0; color: var(--muted); }
.file-summary strong { color: var(--ink); }
.file-summary span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .87rem; }
.controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1.35rem 0; }
.field { display: grid; gap: .35rem; color: var(--ink); font-weight: 750; }
.field small { color: var(--muted); font-weight: 450; }
.field-wide { grid-column: 1 / -1; }
input[type=number], input[type=text], select { width: 100%; min-height: 47px; padding: .6rem .75rem; color: var(--ink); border: 1px solid #9bb8b0; border-radius: 9px; background: white; }
.button { min-height: 48px; padding: .75rem 1.2rem; display: inline-flex; align-items: center; justify-content: center; color: white; border: 0; border-radius: 10px; background: var(--green); text-decoration: none; font-weight: 820; cursor: pointer; }
.button:hover { background: var(--forest); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-small { min-height: 40px; padding: .55rem .9rem; }
.status { min-height: 1.6rem; margin: .85rem 0; color: var(--muted); }
.status[data-kind=success] { color: var(--success); }
.status[data-kind=error] { color: var(--danger); }
.work-grid { display: grid; grid-template-columns: minmax(0,240px) 1fr; gap: 1rem; align-items: start; }
.preview { padding: 1rem; border-radius: 13px; background: var(--soft); }
.preview canvas { display: block; max-width: 100%; height: auto; margin: auto; background: white; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.preview[hidden] + .results { grid-column: 1 / -1; }
.results { display: grid; gap: .65rem; }
.result-item { min-height: 64px; padding: .7rem .8rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfc; }
.result-item strong, .result-item small { display: block; }
.result-item small { color: var(--muted); }
.content { max-width: 790px; margin: auto; padding: 3.8rem 1.25rem; }
.content h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.content h2 { margin-top: 2.6rem; font-size: 1.85rem; }
.content li + li { margin-top: .55rem; }
.notice { padding: 1rem 1.2rem; border-left: 4px solid var(--mint); border-radius: 8px; background: var(--soft); }
.ad-slot { max-width: 970px; min-height: 110px; margin: 2.5rem auto; display: grid; place-items: center; border: 1px dashed #c6d4d0; border-radius: 12px; color: #84928f; background: #f4f5f2; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.ad-slot[data-active=false] { display: none; }
.ad-separation { padding: 0 1.25rem; }
.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-inner { max-width: 1160px; margin: auto; padding: 2rem 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 780px) {
  .tool-grid { grid-template-columns: 1fr; }
  .controls, .work-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .preview { max-width: 260px; }
  .nav-links a:not(:first-child) { display: none; }
  .hero-inner { padding-top: 4rem; }
  .result-item { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
