/* pdf.ucagg.de - additions on top of the shared UCA site.css: the document hero, scan / sign demos, panels, share page. */

/* ---------- hero: a document that signs and stamps itself ---------- */
.sheet-stage { position: relative; display: grid; place-items: center; min-height: 600px; perspective: 1600px; }
.sheet { position: relative; width: 400px; aspect-ratio: 210 / 297; padding: 30px 30px 22px; border-radius: 10px; background: linear-gradient(180deg, #fbfcff, #eef2fa); color: #1a2233;
  box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 0 90px -30px rgba(var(--ember-rgb), .45);
  transform: rotateY(-12deg) rotateX(7deg) rotateZ(1deg); transition: transform .8s var(--ease); animation: float 8s ease-in-out infinite; display: flex; flex-direction: column; gap: 12px; font-size: 9.5px; }
.sheet:hover { transform: rotateY(-4deg) rotateX(2deg); }
.sheet.back { position: absolute; transform: rotateY(-12deg) rotateX(7deg) rotateZ(-5deg) translate(-26px, 14px); background: #c9d3e6; opacity: .14; animation: none; box-shadow: none; }
@keyframes float { 50% { translate: 0 -10px; } }
.sh-head { display: flex; gap: 10px; align-items: center; } .sh-head b { font-size: 12px; display: block; } .sh-head small { color: #6b7488; }
.sh-logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #4f8cff, #2b55c7); flex: none; }
.sh-addr { display: grid; gap: 1px; margin-top: 6px; } .sh-addr small { font-size: 6.5px; color: #8a93a6; text-decoration: underline; margin-bottom: 3px; }
.sh-title { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #dbe2ef; padding-bottom: 6px; margin-top: 4px; }
.sh-title b { font-size: 15px; letter-spacing: -.01em; } .sh-title span { color: #6b7488; }
.sh-lines { display: grid; gap: 5px; } .sh-lines i { display: block; height: 5px; width: var(--w, 100%); border-radius: 3px; background: #dde4f0; position: relative; overflow: hidden; }
.sh-lines i.hl::after { content: ""; position: absolute; inset: -2px 100% -2px 0; background: rgba(255, 214, 64, .7); animation: hl 9s var(--ease) infinite; }
@keyframes hl { 0%, 8% { right: 100%; } 20%, 90% { right: 30%; } 100% { right: 100%; } }
.sh-table { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 14px; font-variant-numeric: tabular-nums; }
.sh-table span:nth-child(3n) { text-align: right; } .sh-table .t { color: #6b7488; } .sh-table .sum { font-weight: 800; font-size: 11px; border-top: 1px solid #c9d3e6; padding-top: 4px; }
.sh-sign { margin-top: auto; display: flex; gap: 16px; align-items: flex-end; }
.sh-stamp { width: 96px; height: 62px; border: 2.4px solid #2f5fd0; border-radius: 10px; display: grid; place-content: center; text-align: center; color: #2f5fd0; transform: rotate(-8deg) scale(1.6); opacity: 0;
  animation: stamp 9s var(--ease) infinite; mix-blend-mode: multiply; } .sh-stamp b { font-size: 13px; letter-spacing: .12em; } .sh-stamp small { font-size: 6px; letter-spacing: .1em; }
@keyframes stamp { 0%, 52% { opacity: 0; transform: rotate(-8deg) scale(1.6); } 56% { opacity: .95; transform: rotate(-8deg) scale(.96); } 60%, 92% { opacity: .9; transform: rotate(-8deg) scale(1); } 100% { opacity: 0; transform: rotate(-8deg) scale(1); } }
.sh-sigbox { flex: 1; display: grid; } .sh-sigbox small { color: #6b7488; } .sh-sigbox span { border-top: 1px solid #9aa6bd; padding-top: 3px; font-weight: 600; }
.sh-sigbox svg { width: 150px; height: 46px; }
.sig { fill: none; stroke: #1b3d9c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sig 9s var(--ease) infinite; }
@keyframes sig { 0%, 20% { stroke-dashoffset: 1; } 46%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.sh-foot { font-size: 6px; color: #8a93a6; border-top: 1px solid #dbe2ef; padding-top: 5px; }
.chip { position: absolute; display: inline-flex; gap: 6px; align-items: center; padding: 7px 13px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ember-2);
  background: rgba(12, 15, 22, .88); border: 1px solid rgba(var(--ember-rgb), .3); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8); animation: bob 6s ease-in-out infinite; }
.chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip.c1 { top: 12%; left: 0; } .chip.c2 { bottom: 20%; right: 0; animation-delay: -2s; } .chip.c3 { top: 30%; right: 4%; animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -8px; } }

/* ---------- scan demo ---------- */
.scan-demo { position: relative; height: 360px; border-radius: 26px; background: radial-gradient(80% 70% at 50% 40%, #1a2338, #0b0f17); border: 1px solid var(--line); overflow: hidden; }
.scan-paper { position: absolute; left: 22%; top: 14%; width: 54%; height: 72%; background: #e9eef8; border-radius: 4px; transform: rotate(-7deg) skewX(-4deg); padding: 22px 18px; display: grid; gap: 9px; align-content: start; box-shadow: 0 30px 50px -20px #000; }
.scan-paper i { height: 6px; border-radius: 3px; background: #c4cede; } .scan-paper i:nth-child(1) { width: 60%; height: 9px; background: #9fb0cc; } .scan-paper i:nth-child(4) { width: 80%; }
.scan-frame { position: absolute; left: 22%; top: 14%; width: 54%; height: 72%; transform: rotate(-7deg) skewX(-4deg); border: 2px solid var(--ember); border-radius: 4px; box-shadow: 0 0 0 9999px rgba(5, 8, 14, .35), 0 0 24px rgba(var(--ember-rgb), .5); animation: lock 5s var(--ease) infinite; }
.scan-frame b { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(var(--ember-rgb), .25); }
.scan-frame b:nth-child(1) { left: -8px; top: -8px; } .scan-frame b:nth-child(2) { right: -8px; top: -8px; } .scan-frame b:nth-child(3) { left: -8px; bottom: -8px; } .scan-frame b:nth-child(4) { right: -8px; bottom: -8px; }
@keyframes lock { 0% { opacity: 0; scale: 1.15; } 25%, 85% { opacity: 1; scale: 1; } 100% { opacity: 0; } }
.scan-beam { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ember-2), transparent); box-shadow: 0 0 18px var(--ember); animation: beam 5s linear infinite; }
@keyframes beam { from { top: 10%; } to { top: 90%; } }

/* ---------- company sign demo ---------- */
.sign-demo { padding: 28px; border-radius: 26px; background: linear-gradient(180deg, #fbfcff, #e9eef8); color: #1a2233; box-shadow: 0 40px 80px -40px #000, 0 0 70px -30px rgba(var(--ember-rgb), .5); display: grid; gap: 20px; }
.sd-row { display: flex; gap: 18px; align-items: flex-end; }
.sd-stamp { padding: 14px 16px; border: 2.5px solid #2f5fd0; border-radius: 12px; color: #2f5fd0; font-weight: 800; letter-spacing: .14em; text-align: center; transform: rotate(-7deg); line-height: 1.3; } .sd-stamp small { font-size: 9px; }
.sd-sig { display: grid; flex: 1; } .sd-sig svg { width: 180px; height: 56px; } .sd-sig b { border-top: 1px solid #9aa6bd; padding-top: 4px; } .sd-sig small { color: #6b7488; }
.sd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.sd-list .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: #3fae68; box-shadow: 0 0 8px rgba(63, 174, 104, .6); }

/* ---------- buttons ---------- */
.btn.play { display: inline-flex; align-items: center; gap: 10px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.play svg { fill: currentColor; stroke: none; }
.btn.play.soon { background: rgba(255, 255, 255, .06); color: var(--muted); border: 1px solid var(--line-2); box-shadow: none; cursor: default; }

/* ---------- cards, shield ---------- */
.card > svg { fill: none; stroke: var(--ember); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.shield { display: grid; place-items: center; min-height: 260px; }
.shield svg { width: 180px; height: 180px; fill: none; stroke: var(--ember); stroke-width: 1.1; filter: drop-shadow(0 0 30px rgba(var(--ember-rgb), .5)); animation: bob 6s ease-in-out infinite; }

/* ---------- panels: admin, company, partner ---------- */
.badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--ember); color: #06101f; font-size: 11px; font-weight: 800; text-align: center; }
svg.chart { width: 100%; height: 140px; display: block; margin-top: 8px; }
svg.chart .b1 { fill: rgba(var(--ember-rgb), .35); } svg.chart .b2 { fill: var(--ember); }
.chart-axis { display: flex; justify-content: space-between; color: var(--faint); font-size: 11.5px; margin-top: 4px; }
.shares { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.shares li { display: grid; grid-template-columns: minmax(70px, 34%) 1fr 48px; gap: 10px; align-items: center; font-size: 13.5px; }
.shares .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.shares .bar { height: 8px; border-radius: 5px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.shares .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ember), var(--ember-2)); border-radius: 5px; }
.shares .n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.list.chat li.team { border-left: 3px solid var(--ember); } .list.chat li.user { border-left: 3px solid rgba(255, 255, 255, .15); }
fieldset.fs { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 6px; margin: 0 0 16px; display: grid; gap: 12px; min-width: 0; }
fieldset.fs legend { padding: 0 8px; color: var(--ember-2); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.img-preview { display: grid; place-items: center; min-height: 120px; padding: 16px; border-radius: 14px; margin-bottom: 10px;
  background: repeating-conic-gradient(#e6eaf2 0% 25%, #fff 0% 50%) 50% / 18px 18px; }
.img-preview img { max-width: 100%; max-height: 160px; object-fit: contain; }
.img-preview.sig img { max-height: 110px; }
.legal-short { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; } .legal-short b { color: var(--text); }
.share-box h1 { word-break: break-word; }
.share-box .row-btns { justify-content: center; }

@media (max-width: 1080px) { .sheet-stage { min-height: 560px; } .sheet { width: 360px; } }
@media (max-width: 860px) { .sheet { transform: none; } .sheet.back, .chip { display: none; } .scan-demo { height: 300px; } }
@media (max-width: 560px) { .sheet { width: 300px; padding: 22px 20px 16px; font-size: 8px; } .sheet-stage { min-height: 460px; } .sd-row { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) {
  .sheet, .chip, .shield svg, .scan-frame, .scan-beam { animation: none; }
  .sig, .sh-stamp, .sh-lines i.hl::after { animation: none; stroke-dashoffset: 0; opacity: .9; } .sh-lines i.hl::after { right: 30%; }
}

/* ---------- for companies, tutorials ---------- */
.biz-hero { max-width: 860px; margin: 30px auto 10px; text-align: center; }
.biz-hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 18px; }
.biz-hero .lead { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 700px; margin: 0 auto; }
.biz-hero .cta { justify-content: center; margin-top: 26px; }
.section.tight { padding-top: 44px; padding-bottom: 44px; }
.steps5 { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps5 li { position: relative; padding: 22px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.steps5 li b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(var(--ember-rgb), .14); color: var(--ember-2); font-size: 15px; }
.steps5 h3 { margin: 14px 0 6px; font-size: 16px; } .steps5 p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; align-items: start; }
.shots.small { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 16px; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.shot.phone-shot { max-width: 300px; justify-self: center; border-radius: 28px; }
.narrow-form { max-width: 820px; margin: 0 auto; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tut-toc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 980px; margin: 30px auto; padding: 22px 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.tut-toc h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.tut-toc a { display: block; padding: 5px 0; color: var(--text); font-size: 14.5px; } .tut-toc a:hover { color: var(--ember-2); }
.tut-group { max-width: 980px; margin: 46px auto 14px; font-size: 28px; }
.guide { max-width: 980px; margin: 0 auto 18px; scroll-margin-top: 90px; } .guide h2 { margin-top: 0; font-size: 21px; }
.tut-steps { margin: 0; padding-left: 22px; display: grid; gap: 9px; color: #d6dce6; line-height: 1.6; } .tut-steps b { color: var(--text); }
.tut-steps code { background: rgba(255, 255, 255, .07); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 1080px) { .steps5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .steps5, .shots, .tut-toc { grid-template-columns: 1fr; } }
.play-note { flex-basis: 100%; width: 100%; margin: 10px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 560px; }
.cta.center .play-note { margin-left: auto; margin-right: auto; text-align: center; }
