/* Document Generator: the public page (document-generator.php) and the editor page (document-generator-app.php). Built on tester/landing.css (the .lp-* classes); everything new is .dg-* */
:root { --dg-teal: #14b8a6; --dg-violet: #7c5cff; --dg-rose: #ff6b9a; --dg-amber: #ffb020; --dg-ink: #0b1630; }

/* ---------- buttons, small things ---------- */
.lp-btn.plain { border-color: #c4d2ec; background: #fff; color: var(--lp-navy-2); }
.lp-btn.plain:hover, .lp-btn.plain:focus { background: #eef3fc; color: var(--lp-navy-2); }
.dg-lp .lp-btn { height: 52px; padding: 0 28px; border-radius: 14px; }
.dg-lp .lp-btn.main { background: linear-gradient(180deg, #ffc43d 0%, #ffae12 100%); box-shadow: 0 12px 26px rgba(255, 176, 32, .38), inset 0 1px 0 rgba(255, 255, 255, .5); }
.dg-lp .lp-btn.main:hover, .dg-lp .lp-btn.main:focus { background: linear-gradient(180deg, #ffcd5c 0%, #ffb52b 100%); transform: translateY(-2px); }
.dg-lp .lp-btn.ghost { border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.lp code { padding: 1px 6px; border-radius: 6px; background: #eaf0fb; color: #17356d; font: 13px/1.4 Consolas, "SFMono-Regular", Menlo, monospace; }

/* ---------- the advertisements: top, bottom, left and right ---------- */
.dg-adlab { display: block; margin-bottom: 4px; color: #8a97ad; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.dg-adtop, .dg-adbottom { background: #f1f4fa; border-bottom: 1px solid var(--lp-line); }
.dg-adtop .dg-adbox, .dg-adbottom .dg-adbox { max-width: 780px; margin: 0 auto; padding: 10px 20px 12px; min-height: 40px; }
.dg-adbottom { border-top: 1px solid var(--lp-line); border-bottom: 0; }
.dg-rail { display: none; }
@media (min-width: 1500px) {
    .dg-rail { position: fixed; top: 74px; z-index: 5; display: block; width: 160px; }
    .dg-rail-l { left: calc(50% - 560px - 184px); }
    .dg-rail-r { right: calc(50% - 560px - 184px); }
    .dg-railin { padding: 8px; border: 1px solid var(--lp-line); border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(20, 40, 90, .12); }
}

/* ---------- the public page ---------- */
.dg-lp { background: #fff; }
.dg-hero { position: relative; overflow: hidden; color: #fff; background:
    radial-gradient(900px 420px at 88% -8%, rgba(88, 130, 255, .5), transparent 62%),
    radial-gradient(700px 420px at -4% 108%, rgba(20, 184, 166, .32), transparent 58%),
    linear-gradient(158deg, #081330 0%, #0e2a5f 58%, #15427f 100%); }
.dg-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.2px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%); mask-image: linear-gradient(180deg, #000 0%, transparent 88%); pointer-events: none; }
.dg-herogrid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 104px; }
.dg-pill { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 6px 15px 6px 11px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 99px; background: rgba(255, 255, 255, .09); font-size: 13px; font-weight: 600; letter-spacing: .2px; backdrop-filter: blur(6px); }
.dg-pill i { width: 8px; height: 8px; border-radius: 50%; background: #5df0b1; box-shadow: 0 0 0 0 rgba(93, 240, 177, .7); animation: dgpulse 2.2s infinite; }
.dg-hero h1 { font-size: 54px; font-weight: 800; line-height: 1.06; letter-spacing: -1.6px; }
.dg-grad { background: linear-gradient(92deg, #ffd47a 0%, #ff9f6e 48%, #ff7aa8 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.dg-hero .lp-lead { max-width: 540px; margin-top: 22px; color: #cdd9f3; font-size: 18.5px; line-height: 1.6; }
.dg-hero .lp-cta { margin-top: 32px; gap: 14px; }
.dg-hero .lp-ticks { margin-top: 28px; color: #b9c9ea; }
.dg-herofig { position: relative; padding: 18px 0 28px; }
.dg-herofig .lp-frame { transform: rotate(1.4deg); border-radius: 16px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12); }
.dg-herofig .lp-frame img { aspect-ratio: 1240 / 970; }
.dg-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .96); color: var(--dg-ink); font-size: 13px; font-weight: 700; line-height: 1.25; box-shadow: 0 18px 40px rgba(5, 12, 35, .4); animation: dgfloat 6.5s ease-in-out infinite alternate; }
.dg-chip i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; font-size: 14px; }
.dg-chip small { display: block; color: #6b7894; font-size: 11.5px; font-weight: 600; }
.dg-chip.c1 { top: 0; right: -10px; } .dg-chip.c1 i { background: #1e9650; }
.dg-chip.c2 { bottom: 0; left: -22px; animation-delay: -2.4s; } .dg-chip.c2 i { background: #2f6fde; }
.dg-chip.c3 { top: 46%; right: -26px; animation-delay: -4.1s; } .dg-chip.c3 i { background: var(--dg-violet); }

/* the numbers under the hero */
.dg-stats { position: relative; z-index: 3; margin-top: -52px; }
.dg-statgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dg-stat { padding: 20px 22px; border: 1px solid var(--lp-line); border-radius: 18px; background: #fff; box-shadow: 0 18px 40px rgba(14, 36, 90, .14); }
.dg-stat b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; background: linear-gradient(90deg, #2f6fde, #7c5cff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.dg-stat span { color: var(--lp-mute); font-size: 14px; }

/* section heads */
.dg-lp .lp-sec { padding: 92px 0; }
.dg-kick { display: inline-block; margin-bottom: 10px; color: var(--lp-blue); font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dg-lp .lp-sec h2 { font-size: 38px; letter-spacing: -1px; }
.dg-lp .lp-sub { max-width: 640px; font-size: 17.5px; }

/* the steps */
.dg-lp .lp-steps { gap: 20px; margin-top: 40px; }
.dg-lp .lp-steps li { padding: 26px 24px 26px 24px; border: 1px solid var(--lp-line); border-radius: 20px; background: linear-gradient(180deg, #fff 0%, #f8faff 100%); box-shadow: 0 10px 28px rgba(20, 40, 90, .06); transition: transform .2s, box-shadow .2s; }
.dg-lp .lp-steps li:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 40, 90, .12); }
.dg-lp .lp-steps li::before { position: static; display: grid; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(135deg, #2f6fde, #7c5cff); font-size: 19px; box-shadow: 0 10px 22px rgba(47, 111, 222, .32); }
.dg-lp .lp-steps b { font-size: 19px; }

/* the blocks: cards with a coloured tile */
.dg-lp .lp-sec.alt { background: linear-gradient(180deg, #f4f7fd 0%, #eef3fb 100%); }
.dg-lp .lp-feats li { padding: 20px 20px 18px 20px; border-radius: 18px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.dg-lp .lp-feats li:hover { transform: translateY(-3px); border-color: #b9ccf0; box-shadow: 0 16px 34px rgba(20, 40, 90, .1); }
.dg-lp .lp-feats i { position: static; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 13px; color: #fff; font-size: 19px; box-shadow: 0 8px 18px rgba(20, 40, 90, .18); }
.dg-lp .lp-feats li:nth-child(8n+1) i { background: linear-gradient(135deg, #2f6fde, #5b9bff); }
.dg-lp .lp-feats li:nth-child(8n+2) i { background: linear-gradient(135deg, #14b8a6, #3dd9c3); }
.dg-lp .lp-feats li:nth-child(8n+3) i { background: linear-gradient(135deg, #7c5cff, #a98bff); }
.dg-lp .lp-feats li:nth-child(8n+4) i { background: linear-gradient(135deg, #f59e0b, #ffc547); }
.dg-lp .lp-feats li:nth-child(8n+5) i { background: linear-gradient(135deg, #ec4899, #ff7aa8); }
.dg-lp .lp-feats li:nth-child(8n+6) i { background: linear-gradient(135deg, #0ea5e9, #5fd0ff); }
.dg-lp .lp-feats li:nth-child(8n+7) i { background: linear-gradient(135deg, #16a34a, #4ade80); }
.dg-lp .lp-feats li:nth-child(8n+8) i { background: linear-gradient(135deg, #ef4444, #ff8585); }
.dg-lp .lp-feats b { font-size: 16.5px; }

/* the pages it makes: portrait pages, a little uneven, they straighten when touched */
.dg-pages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 42px; align-items: start; }
.dg-pages figure { margin: 0; }
.dg-pages figure:nth-child(even) { margin-top: 26px; }
.dg-pages a { display: block; overflow: hidden; border: 1px solid var(--lp-line); border-radius: 12px; background: #fff; box-shadow: 0 14px 32px rgba(20, 40, 90, .14); transition: transform .22s, box-shadow .22s; }
.dg-pages figure:nth-child(odd) a { transform: rotate(-1deg); }
.dg-pages figure:nth-child(even) a { transform: rotate(1deg); }
.dg-pages a:hover, .dg-pages a:focus-visible { transform: translateY(-8px) rotate(0) scale(1.03); box-shadow: 0 26px 48px rgba(20, 40, 90, .24); }
.dg-pages a:focus-visible { outline: 3px solid rgba(47, 111, 222, .5); outline-offset: 3px; }
.dg-pages img { display: block; width: 100%; height: auto; }
.dg-pages figcaption { margin-top: 12px; color: var(--lp-mute); font-size: 13.5px; line-height: 1.45; }
.dg-pages figcaption b { display: block; color: var(--lp-ink); font-size: 14.5px; }

/* the dark band: made to be changed later */
.dg-dark { position: relative; overflow: hidden; padding: 92px 0; color: #fff; background:
    radial-gradient(700px 360px at 100% 0%, rgba(124, 92, 255, .34), transparent 62%),
    radial-gradient(600px 360px at 0% 100%, rgba(20, 184, 166, .24), transparent 60%),
    linear-gradient(160deg, #0a1633 0%, #12306a 100%); }
.dg-dark h2 { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.dg-dark .dg-kick { color: #8fb4ff; }
.dg-dark .dg-lead { margin-top: 14px; max-width: 460px; color: #c3d2f0; font-size: 17.5px; }
.dg-darkgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.dg-glass { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.dg-glass li { padding: 20px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; background: rgba(255, 255, 255, .07); backdrop-filter: blur(8px); transition: transform .2s, background .2s; }
.dg-glass li:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .11); }
.dg-glass i { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #ffd47a; font-size: 18px; }
.dg-glass b { display: block; font-size: 16.5px; }
.dg-glass span { color: #bccbe9; font-size: 14.5px; line-height: 1.5; }

/* who writes with it */
.dg-for { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.dg-for > div { padding: 26px 22px; border: 1px solid var(--lp-line); border-radius: 20px; background: #fff; transition: transform .2s, box-shadow .2s; }
.dg-for > div:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(20, 40, 90, .12); }
.dg-for i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: #e8f0fe; color: var(--lp-blue); font-size: 21px; }
.dg-for > div:nth-child(2) i { background: #e6f8f4; color: #0f9d8e; }
.dg-for > div:nth-child(3) i { background: #f0ebff; color: #6a47f0; }
.dg-for > div:nth-child(4) i { background: #fff3dc; color: #d98a00; }
.dg-for > div:nth-child(5) i { background: #ffe9f1; color: #d6336c; }
.dg-for > div:nth-child(6) i { background: #e3f4ff; color: #0b7dc4; }
.dg-for > div:nth-child(7) i { background: #e5f7ea; color: #1b9a4a; }
.dg-for > div:nth-child(8) i { background: #ffe8e8; color: #d63c3c; }
.dg-for b { display: block; margin-bottom: 6px; font-size: 18px; }
.dg-for span { color: var(--lp-mute); font-size: 14.5px; line-height: 1.55; }

/* questions */
.dg-lp .lp-narrow { max-width: 820px; }
.dg-lp details { margin-bottom: 12px; border: 1px solid var(--lp-line); border-radius: 16px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.dg-lp details[open] { border-color: #b9ccf0; box-shadow: 0 12px 30px rgba(20, 40, 90, .08); }
.dg-lp summary { padding: 18px 22px; }
.dg-lp details p { padding: 0 22px 20px; }

/* the end */
.dg-lp .lp-final { position: relative; overflow: hidden; padding: 84px 0; background:
    radial-gradient(700px 320px at 50% -20%, rgba(255, 176, 32, .26), transparent 62%),
    linear-gradient(158deg, #081330 0%, #0e2a5f 60%, #15427f 100%); }
.dg-lp .lp-final h2 { font-size: 38px; letter-spacing: -1px; }
.dg-finalcta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.dg-lp .lp-foot { background: #0a1226; color: #8fa0c4; }
.dg-lp .lp-foot a { color: #b9c9ea; }

/* things that come into the screen */
html.dg-js .dg-rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
html.dg-js .dg-rv.in { opacity: 1; transform: none; }
@keyframes dgfloat { from { transform: translateY(-5px); } to { transform: translateY(7px); } }
@keyframes dgpulse { 0% { box-shadow: 0 0 0 0 rgba(93, 240, 177, .65); } 70% { box-shadow: 0 0 0 10px rgba(93, 240, 177, 0); } 100% { box-shadow: 0 0 0 0 rgba(93, 240, 177, 0); } }

/* ---------- the editor page ---------- */
body.dg-appbody { min-height: 100vh; background: #eef2fa; }
.dg-frame { max-width: 1240px; margin: 0 auto; padding: 24px 20px 40px; }
.dg-app { min-width: 0; }
.dg-apptop { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 18px; padding: 20px 24px; border-radius: 20px; color: #fff; background:
    radial-gradient(520px 200px at 100% 0%, rgba(124, 92, 255, .4), transparent 62%),
    linear-gradient(135deg, #0b1d44 0%, #17428a 100%); box-shadow: 0 16px 38px rgba(14, 36, 90, .22); }
.dg-appico { display: grid; place-items: center; flex: 0 0 auto; width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .14); font-size: 26px; }
.dg-apptxt { flex: 1 1 320px; min-width: 0; }
.dg-apptxt h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.dg-apptxt p { margin: 4px 0 0; color: #c9d7f3; font-size: 14.5px; line-height: 1.5; }
.dg-appuser { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dg-appuser form { margin: 0; }
.dg-who { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 13px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: 13.5px; font-weight: 600; }
.dg-btnline { height: 36px; padding: 0 15px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; background: transparent; color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; line-height: 34px; text-decoration: none; cursor: pointer; transition: background .15s; }
.dg-btnline:hover, .dg-btnline:focus { background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }
.dg-loadmsg { margin: 24px 0; color: var(--lp-mute); text-align: center; }
#dgEditor { min-width: 0; }
.dg-app .dg-adbottom { margin-top: 22px; border: 1px solid var(--lp-line); border-radius: 14px; overflow: hidden; }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
    .dg-pages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dg-for { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dg-statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .dg-herogrid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 44px; padding-bottom: 96px; }
    .dg-hero h1 { font-size: 38px; letter-spacing: -1px; }
    .dg-herofig .lp-frame { transform: none; }
    .dg-chip.c1 { right: 6px; } .dg-chip.c2 { left: 6px; } .dg-chip.c3 { display: none; }
    .dg-darkgrid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .dg-lp .lp-sec, .dg-dark { padding: 60px 0; }
    .dg-lp .lp-sec h2, .dg-dark h2, .dg-lp .lp-final h2 { font-size: 28px; }
}
@media (max-width: 700px) {
    .dg-pages { display: flex; gap: 14px; margin-right: -20px; padding: 6px 20px 18px 0; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
    .dg-pages figure { flex: 0 0 64%; scroll-snap-align: center; }
    .dg-pages figure:nth-child(even) { margin-top: 0; }
}
@media (max-width: 600px) {
    .dg-for, .dg-glass { grid-template-columns: minmax(0, 1fr); }
    .dg-apptop { padding: 16px; }
    .dg-frame { padding: 14px 10px 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .dg-chip, .dg-pill i { animation: none !important; }
    html.dg-js .dg-rv { opacity: 1; transform: none; transition: none; }
    .dg-lp *, .dg-pages a { transition: none !important; }
}
/* a place of an advertisement shows nothing (no box, no word "Advertisement") until the advertisement is really there; the script of the page adds .is-filled then. The place keeps its width, so that the advertisement can be made. */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.dg-adtop:not(.is-filled), .dg-adbottom:not(.is-filled) { height: 0; overflow: hidden; border: 0; }
.dg-rail:not(.is-filled) { visibility: hidden; }

/* the heading in the middle and the cards three in a row (the page is much shorter than with the heading at the side) */
.dg-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.dg-head p, .dg-head .dg-lead { margin-left: auto; margin-right: auto; }
.dg-lp .lp-feats.dg-feats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dg-lp .lp-feats.dg-feats3 li { padding: 18px 18px 16px; }
.dg-glass.dg-glass3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .dg-lp .lp-feats.dg-feats3, .dg-glass.dg-glass3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dg-lp .lp-feats.dg-feats3, .dg-glass.dg-glass3 { grid-template-columns: minmax(0, 1fr); } }
@media print { html.dg-js .dg-rv { opacity: 1 !important; transform: none !important; } }
