/* pdfedit.in — site styles (landing pages, workspace frame, ad gate).
   Editor internals: editor.css (from the desktop app). */
:root {
  --navy: #0b1324;
  --navy-2: #1e2a44;
  --ink: #1f2937;
  --grey: #4b5563;
  --grey-2: #6b7280;
  --red: #e3121b;
  --red-d: #c10e16;
  --pill: #eaf0f7;
  --page: #f7f9fc;
  --white: #ffffff;
  --border: #e3e8f0;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* editor tokens (desktop app palette) */
  --bg: #f4f6fb; --card: #ffffff; --line: #e3e8f0; --line-2: #cfd6e2; --text: #111827; --muted: #5b6474;
  --blue: #1d6fe8; --blue-d: #175bc0; --blue-soft: #e8f0fd; --blue-line: #a5c5f6;
  --surface: #ffffff; --surface-2: #f3f5f9; --well: #eef1f6; --label: #374151; --soft-bg: #fbfcfe;
  --green: #16a34a; --green-d: #12823c; --green-soft: #e7f6ec;
  --orange: #b45309; --orange-soft: #fdf1dc; --red-soft: #fdecec;
  --brand-a: var(--blue); --brand-b: #141414;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .05);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--page); line-height: 1.6; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ── decorative corner swooshes ── */
.swoosh { position: absolute; pointer-events: none; z-index: 0; }
.swoosh-tl { left: -40px; top: 90px; width: 260px; }
.swoosh-br { right: -30px; bottom: -10px; width: 380px; }
.hero-shell { position: relative; overflow: hidden; }
@media (max-width: 900px) { .swoosh-tl { display: none; } .swoosh-br { width: 220px; } }

/* ── header ── */
.site-head { position: relative; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: clamp(22px, 3vw, 34px); letter-spacing: -.02em; }
.brand svg { width: clamp(38px, 4vw, 54px); height: clamp(38px, 4vw, 54px); flex: none; }
.head-nav { display: flex; align-items: center; gap: 22px; }
.head-nav a { color: var(--navy); font-weight: 500; font-size: 17px; text-underline-offset: 4px; }
.head-nav a.plain { text-decoration: none; }
.head-nav a.plain:hover { text-decoration: underline; }
@media (max-width: 720px) { .head-nav .opt { display: none; } .head-nav a { font-size: 15px; } }

/* ── hero ── */
.hero { position: relative; z-index: 2; text-align: center; padding: 18px 0 70px; }
.hero h1 { margin: 0 auto; max-width: 1100px; color: var(--navy); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; font-size: clamp(34px, 6.4vw, 84px); }
.hero h1 .r { color: var(--red); }
.hero .lead { margin: 18px auto 0; max-width: 820px; color: var(--grey); font-size: clamp(16px, 2.2vw, 28px); font-weight: 500; line-height: 1.35; }
.pill { display: inline-flex; align-items: center; gap: 18px; margin-top: 44px; background: var(--pill); border-radius: 999px; padding: 14px 34px 14px 24px; color: var(--navy); font-size: clamp(14px, 1.9vw, 22px); text-align: left; }
.pill svg { width: 44px; height: 44px; flex: none; }
.pill .bar { width: 1.5px; align-self: stretch; background: #8a96aa; margin: 4px 0; }
.pill b { font-weight: 800; }
@media (max-width: 560px) { .pill { padding: 10px 16px; gap: 10px; border-radius: 20px; } .pill svg { width: 32px; height: 32px; } }

/* ── drop zone ── */
.drop-outer { margin: 42px auto 0; max-width: 1360px; background: var(--white); border-radius: 44px; padding: 22px; box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 60px rgba(15, 23, 42, .08); border: 1px solid #edf1f6; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 340px; border: 2px dashed #9aa4b2; border-radius: 30px; cursor: pointer; padding: 36px 20px; transition: background-color .15s, border-color .15s; background: var(--white); width: 100%; color: inherit; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.over { background: #fff6f6; border-color: var(--red); outline: none; }
.dropzone .cloud { width: 160px; height: 120px; color: var(--navy); }
.dropzone .dz-title { display: block; color: var(--navy); font-weight: 800; font-size: clamp(20px, 3vw, 44px); letter-spacing: -.02em; margin-top: 8px; }
.dropzone .dz-sub { display: block; color: var(--grey); font-size: clamp(15px, 2vw, 30px); }
.dropzone .dz-types { display: block; margin-top: 14px; color: var(--grey-2); font-size: 14px; }
@media (max-width: 560px) { .drop-outer { border-radius: 26px; padding: 12px; } .dropzone { min-height: 260px; border-radius: 20px; } .dropzone .cloud { width: 110px; height: 84px; } }

/* ── ad slots in the page ── */
.ad-inline { margin: 32px auto 0; max-width: 970px; min-height: 0; text-align: center; }
.ad-inline:empty { display: none; }
.ad-inline::before { content: "Advertisement"; display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-2); margin-bottom: 4px; }

/* ── content sections ── */
.content { position: relative; z-index: 2; padding: 30px 0 70px; }
.section { margin-top: 64px; }
.section h2 { color: var(--navy); font-size: clamp(24px, 3.2vw, 38px); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 14px; }
.section h3 { color: var(--navy); font-size: 19px; margin: 0 0 6px; }
.section p, .section li { color: var(--grey); font-size: 17px; }
.section .intro { max-width: 860px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 26px; }
.tile { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }
.tile p { margin: 0; font-size: 16px; }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fdecec; color: var(--red); margin-bottom: 14px; font-weight: 800; font-size: 20px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 26px; }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 24px 22px 22px; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps li b { display: block; color: var(--navy); margin-bottom: 4px; font-size: 18px; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 4px 22px; margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 0; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.links a { text-decoration: none; background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; font-weight: 600; color: var(--navy); }
.links a:hover { border-color: var(--red); color: var(--red); }
.prose { max-width: 860px; }
.prose h2 { margin-top: 40px; }
.prose p, .prose li { font-size: 17px; color: var(--grey); }
.prose a { color: var(--red); }
.crumbs { font-size: 14px; color: var(--grey-2); padding-top: 4px; }
.crumbs a { color: var(--grey-2); }
.page-head { padding: 30px 0 10px; }
.page-head h1 { color: var(--navy); font-size: clamp(30px, 4.6vw, 54px); letter-spacing: -.03em; margin: 8px 0 6px; line-height: 1.1; }

/* ── footer ── */
.site-foot { position: relative; z-index: 2; background: var(--navy); color: #c7cfdc; padding: 46px 0 30px; margin-top: 40px; }
.site-foot .cols { display: grid; gap: 28px; grid-template-columns: 2fr repeat(2, 1fr); }
.site-foot .brand { color: #fff; font-size: 24px; }
.site-foot .brand svg { width: 38px; height: 38px; }
.site-foot h2 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin: 6px 0 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 6px 0; }
.site-foot a { color: #c7cfdc; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .copy { border-top: 1px solid #26324b; margin-top: 30px; padding-top: 18px; font-size: 14px; }
@media (max-width: 720px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .cols > :first-child { grid-column: 1 / -1; } }

/* ── workspace (the editor, full screen) ── */
body.ws-open { overflow: hidden; }
body.ws-open .landing { display: none; }
.ws { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; color: var(--text); font-size: 14px; line-height: 1.4; }
.ws .work-pe { flex: 1; padding: 10px; }
.ws .pe-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ws .pe-top { flex-wrap: wrap; }
.ws .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ws-home { font-weight: 600; }
#btnShowPdf, #btnNewScan, #seScan, #seScanDrop { display: none !important; }
@media (max-width: 900px) {
  .ws .pe-body { grid-template-columns: 64px minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) auto; }
  .ws .pe-props { grid-column: 1 / -1; max-height: 38vh; overflow: auto; border-left: 0 !important; border-top: 1px solid var(--line); }
  .ws .se-body { grid-template-columns: minmax(0, 1fr) !important; }
  .ws .pe-rail .pe-tool span { font-size: 10px; }
  .ws .pe-top { gap: 6px !important; padding: 8px !important; }
  .ws .pe-top .btn span { display: none; }
  .ws .pe-name { display: none; }
  .ws .pe-top .btn, .ws .pe-top .small-btn { min-height: 32px; }   /* touch targets on phones */
}
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover:not(:disabled) { background: var(--red-d); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.modal.pw-modal { z-index: 125; }   /* the password box stays above the "Opening…" progress (120) */
.modal { position: fixed; inset: 0; z-index: 110; background: rgba(15, 23, 42, .5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { background: var(--card); border-radius: 16px; padding: 24px; width: min(460px, 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal-card h2 { margin: 0 0 6px; color: var(--navy); font-size: 22px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* ── ✓ Apply / ✕ Cancel above the text being edited ── */
.pe-okbar { position: absolute; z-index: 30; display: flex; gap: 6px; padding: 4px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 6px 18px rgba(15, 23, 42, .18); pointer-events: auto; white-space: nowrap; animation: okbar-in .12s ease-out; }
.pe-okbar button { border: 0; border-radius: 7px; font: 700 14px/1 var(--font); padding: 8px 12px; cursor: pointer; }
.pe-okbar .ok { background: var(--green); color: #fff; }
.pe-okbar .ok:hover { background: var(--green-d); }
.pe-okbar .no { background: #f1f3f7; color: #374151; }
.pe-okbar .no:hover { background: #fdecec; color: var(--red); }
.pe-okbar .mv { background: #eef3fd; color: var(--blue); cursor: move; touch-action: none; padding: 8px 10px; font-size: 16px; }   /* ✥ drag to move */
.pe-okbar .mv:hover { background: #dde8fb; }
.pe-from { position: absolute; border: 1px dashed var(--blue); opacity: .7; pointer-events: none; }
@keyframes okbar-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── ad gate ── */
.adgate { position: fixed; inset: 0; z-index: 140; background: rgba(11, 19, 36, .72); display: flex; align-items: center; justify-content: center; padding: 14px; font-family: var(--font); }
.adgate-card { background: #fff; border-radius: 22px; width: min(760px, 100%); max-height: calc(100vh - 28px); overflow: auto; padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.adgate-head b { display: block; color: var(--navy); font-size: 20px; }
.adgate-sub { color: var(--grey); font-size: 15px; }
.adgate-label { margin-top: 14px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-2); }
.adgate-slot { margin-top: 6px; min-height: 280px; border-radius: 14px; background: #f3f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.adgate-slot > * { max-width: 100%; }
.adgate-slot .house { text-align: center; padding: 30px 20px; color: var(--grey); }
.adgate-slot .house b { color: var(--navy); font-size: 22px; display: block; margin-bottom: 6px; }
.adgate-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.adgate-timer { margin-right: auto; color: var(--grey); font-weight: 600; }
