@font-face {
  font-family: Noto PDFHelper;
  src: url("noto-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4fbfa;
  --white: #ffffff;
  --ink: #102a2a;
  --muted: #54706c;
  --red: #0f766e;
  --red-hover: #115e59;
  --line: #d3e7e3;
  --rose: #e4f3ef;
  --dark: #123c3a;
  --sans: system-ui, "Segoe UI", sans-serif;
  --serif: Georgia, Cambria, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.65rem); }
h3 { font-size: 1.18rem; line-height: 1.2; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--red); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .54; }
input, textarea, select { min-width: 0; color: var(--ink); }
:focus-visible { outline: 3px solid #0d9488; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: 12px; left: 12px; padding: 10px 15px; transform: translateY(-180%); background: var(--white); }
.skip:focus { transform: none; }

.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 0; font: 760 1.4rem/1 var(--sans); letter-spacing: -.065em; text-decoration: none; white-space: nowrap; }
.brand img { margin-right: 9px; border-radius: 8px; }
.brand span { color: var(--red); }
.header nav { display: flex; align-items: center; gap: clamp(14px, 3.2vw, 36px); }
.header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; text-decoration: none; font-weight: 630; }

.hero { display: grid; grid-template-columns: 1.03fr .97fr; gap: clamp(30px, 5vw, 74px); align-items: center; padding-block: clamp(40px, 7vw, 90px); }
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 5.75rem); line-height: 1.04; }
.hero h1 em { color: var(--red); font-weight: 400; }
.lede { margin-top: 22px; color: var(--muted); max-width: 38ch; font-size: clamp(1rem, 1.7vw, 1.2rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 28px; }
.hero-image { border-radius: 8px 64px 8px 8px; overflow: hidden; background: var(--rose); }
.hero-image img { width: 100%; height: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65em; min-height: 46px; padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; line-height: 1.2; text-decoration: none; font-weight: 675; }
.button.primary { background: var(--red); color: white; }
.button.primary:hover:not(:disabled) { background: var(--red-hover); color: white; }
.button.secondary { background: var(--white); border-color: var(--line); color: var(--ink); }
.button.secondary:hover:not(:disabled), .button.secondary[aria-pressed="true"] { background: var(--rose); border-color: #8ac2b9; color: var(--red-hover); }
.button.small { min-height: 42px; padding-inline: 10px; font-size: .85rem; }
.text-link { color: var(--red-hover); font-weight: 650; }

.workspace { padding-block: clamp(34px, 5vw, 62px); background: var(--rose); border-block: 1px solid #cce5e0; scroll-margin-top: 8px; }
.section { padding-block: clamp(38px, 7vw, 76px); }
.section-head { display: flex; gap: 10px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.section-head p, .workspace-note { color: var(--muted); }
.workspace-note { margin-top: 13px; font-size: .87rem; }
.editor-shell { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: clip; }
.file-zone { display: flex; align-items: center; gap: 16px; padding: clamp(16px, 4vw, 30px); min-height: 132px; }
.file-zone[data-over="true"] { background: #ecfdf8; box-shadow: inset 0 0 0 2px var(--red); }
.file-zone img { flex: none; border-radius: 11px; }
.file-zone .strong { font-size: 1.12rem; font-weight: 710; color: var(--ink); }
.file-zone p { color: var(--muted); }
.file-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 7px; flex: none; }
.editor-notice { padding: 12px 17px; color: #315b57; background: #fff8dc; font-size: .91rem; }
.editor-notice[data-kind="error"] { color: #b42318; background: #fff1f0; }
.document-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.document-name { overflow-wrap: anywhere; font-weight: 660; min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.editor-grid { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.editor-tools { padding: 16px; border-right: 1px solid var(--line); }
.editor-tools h3 { margin-bottom: 9px; font-size: .96rem; }
.tool-help { color: var(--muted); min-height: 2.65em; margin: 9px 0 16px; font-size: .82rem; }
.page-label, .text-options label { display: block; margin-bottom: 4px; font-size: .8rem; font-weight: 660; }
.editor-tools select, .editor-tools textarea { width: 100%; border: 1px solid #b9d3ce; border-radius: 6px; background: #fff; padding: 7px; }
.text-options { margin-top: 10px; }
.text-options textarea { resize: vertical; display: block; margin-bottom: 6px; font-size: 1rem; }
.text-options select { max-width: 110px; }
.page-actions { margin-top: 8px; }
.editor-stage { min-width: 0; background: #e9f3f1; }
.page-nav { display: flex; align-items: center; justify-content: center; gap: 12px; padding-block: 9px; font-variant-numeric: tabular-nums; font-size: .88rem; }
.page-frame { padding: 5px 14px 18px; overflow: auto; }
.paper { display: grid; width: fit-content; margin-inline: auto; background: white; box-shadow: 0 3px 13px #123c3a20; }
.paper canvas { grid-area: 1 / 1; max-width: 100%; display: block; }
.paper #pdf-page { width: auto; }
#marks { z-index: 1; width: 100%; height: 100%; pointer-events: none; }
#marks[data-active="true"] { cursor: crosshair; pointer-events: auto; touch-action: none; }

.guides { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 3vw, 25px); }
.guide { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.guide img { width: 100%; height: auto; background: var(--rose); }
.guide-copy { padding: clamp(16px, 3vw, 25px); }
.guide h3 { display: flex; align-items: baseline; gap: 9px; font: 400 1.7rem/1.1 var(--serif); }
.guide h3 span { color: var(--muted); font: 540 .82rem/1.2 var(--sans); }
.guide ol { padding-left: 1.35em; margin-block: 14px; }
.guide li { margin-bottom: 6px; }
.guide li::marker { color: var(--red); font-weight: 700; }
.guide a { color: var(--red-hover); font-size: .83rem; }
#install-app { display: flex; margin-bottom: 8px; }

.pricing { border-top: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.price-card { display: flex; flex-direction: column; align-items: start; gap: 9px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.price-card.available { border-color: #71b6ab; }
.price-card .price { color: var(--red-hover); font: 400 clamp(1.9rem, 4vw, 3rem)/1 var(--serif); }
.price-card p { color: var(--muted); font-size: .88rem; }
.price-card a { font-size: .88rem; font-weight: 650; }

.faq { display: grid; grid-template-columns: .65fr 1.35fr; gap: 28px; border-top: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); padding-block: 13px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin-top: 8px; color: var(--muted); }
.contact-section { background: #edf7f5; border-top: 1px solid var(--line); padding-block: clamp(36px, 7vw, 68px); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(22px, 6vw, 80px); }
.contact-grid > div p { margin-top: 14px; max-width: 39ch; color: var(--muted); }
.feedback { display: grid; gap: 8px; align-content: start; }
.feedback > label { font-size: .9rem; font-weight: 650; }
.feedback > input, .feedback > textarea { width: 100%; padding: 10px; border-radius: 7px; border: 1px solid #b4cec9; background: var(--white); }
.feedback > textarea { resize: vertical; }
.feedback [aria-invalid="true"] { border-color: #c43228; }
.feedback .button { width: fit-content; margin-top: 6px; }
.form-note, .consent, .field-error { font-size: .84rem; }
.form-note { color: var(--muted); }
.consent { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 8px; margin-top: 6px; }
.consent input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--red); }
.consent a, .field-error { color: var(--red-hover); }
.trap { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.form-result { padding: 9px 12px; border-radius: 6px; }
.form-result.success { background: #e5f6ed; color: #17623b; }
.form-result.error { background: #fde8e6; color: #9f2d27; }
#feedback-result:empty { display: none; }

.legal { max-width: 790px; padding-block: clamp(32px, 6vw, 75px); }
.legal .back { display: inline-block; margin-bottom: 14px; color: var(--red-hover); }
.legal h1 { font-size: clamp(2.2rem, 6.5vw, 4rem); margin-bottom: 18px; overflow-wrap: anywhere; }
.legal .revision { color: var(--muted); font-size: .9rem; }
.legal h2 { font-size: 1.55rem; margin: 24px 0 7px; }
.legal p { margin-bottom: 10px; overflow-wrap: anywhere; }
.legal a { color: var(--red-hover); }

.footer { padding-block: 24px max(30px, env(safe-area-inset-bottom)); background: var(--dark); color: #d2ebe6; font-size: .94rem; text-align: center; }
.footer-content { display: grid; gap: 10px; width: min(1240px, calc(100% - 40px)); padding-top: 22px; border-top: 1px solid #2b625d; }
.footer-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 19px; row-gap: 5px; padding: 0; margin: 0; list-style: none; }
.footer-row li { position: relative; max-width: 100%; }
.footer address { font-style: normal; }
.footer nav { font-size: .875rem; }
.footer nav .footer-row { column-gap: 16px; }
.footer a { color: #f4fffd; overflow-wrap: anywhere; }
.footer a:hover, .footer a[aria-current="page"] { color: #7dd3c7; }
.footer-copyright { margin-top: 4px; color: #aad4cd; font-size: .86rem; }
.footer :focus-visible { outline-color: #7dd3c7; }

@media (min-width: 1024px) {
  .footer-content > .footer-row li + li::before, .footer address li + li::before { content: ""; position: absolute; inset-inline-start: -11px; inset-block-start: .72em; width: 3px; height: 3px; border-radius: 50%; background: #6da39b; }
}
@media (min-width: 1240px) {
  .footer nav li + li::before { content: ""; position: absolute; inset-inline-start: -9px; inset-block-start: .72em; width: 3px; height: 3px; border-radius: 50%; background: #6da39b; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 25px; padding-block: 34px; }
  .hero h1 { font-size: clamp(2.75rem, 9vw, 4.2rem); }
  .hero-image { border-top-right-radius: 42px; }
  .hero-image img { max-height: 285px; object-fit: cover; }
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
  .editor-tools { border-right: 0; border-bottom: 1px solid var(--line); }
  .page-frame { padding-inline: 8px; }
  .faq, .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .price-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .wrap { width: calc(100% - 30px); }
  .header-inner { min-height: 63px; gap: 10px; }
  .header nav { gap: 12px; }
  .header nav a { font-size: .79rem; }
  .header .nav-contact { display: none; }
  .section-head { display: block; }
  .section-head p { margin-top: 6px; }
  .file-zone { display: grid; grid-template-columns: 44px 1fr; }
  .file-actions { margin-left: 0; grid-column: 1 / -1; }
  .guides { grid-template-columns: 1fr; }
  .footer { font-size: .88rem; }
  .footer address li:first-child { flex: 0 0 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
