/* The registration before a FREE download: the window (partials/download-gate.php, opened by js/download-gate.js) and the page
   (community/register-download.php, what a visitor without JavaScript gets), in the look of the home page. The window borrows .am, .am-x, .am-body
   and .am-head from site.css, the form its .field, .lbl, .inp, .chk, .btn, .pill and .field-error from theme.css. Only what is new is here.
   Every message carries its own contrast pair (ink on the warm white card), the fields are 48px high, the radio buttons are 44px pills.
   Sizes of type come from the one scale in theme.css: the client's words are var(--fs-body), the heading of the form var(--fs-h4) (the
   window's own title above it is var(--fs-h3)), and the line that offers signing in instead var(--fs-small). The labels and fields keep theirs. */
@media (min-width:521px){
  .dg{width:min(680px,calc(100vw - 24px))}   /* a phone keeps the full-width sheet of .am */
}

.dg-intro{display:flex; flex-direction:column; gap:12px}
.dg-intro p{margin:0; font-size:var(--fs-body); line-height:1.6; color:var(--ink)}
.dg-intro p:first-child{line-height:1.55}   /* the free-of-charge line: the same size, a little tighter */
.dg-intro strong{font-weight:700}

.dg-form{display:flex; flex-direction:column; gap:20px}
.dg-group,.dg-radios{margin:0; padding:0; border:0; min-width:0}
.dg-group{display:flex; flex-direction:column; gap:18px}
.dg-legend{padding:0; margin:0 0 14px; font:400 var(--fs-h4)/1.3 var(--display); letter-spacing:-.02em; color:var(--deep)}
.dg-row{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px}   /* two fields side by side, one under the other on a phone */
.dg-radios legend{padding:0; margin:0 0 10px}
.dg-radio-row{display:flex; flex-wrap:wrap; gap:12px}
.dg-radios .field-error{margin-top:10px}
.dg-radio-row .chk{align-items:center; gap:0; padding-left:16px; border:1.5px solid var(--edge); border-radius:999px; background-color:#FFFFFF; transition:background-color .2s,border-color .2s}
.dg-radio-row .chk label{padding:11px 22px 11px 10px; font-size:16px; font-weight:600}
.dg-radio-row .chkbox{margin:0}
.dg-radio-row .chk:has(input:checked){border-color:var(--plum); background-color:var(--lilac)}
.dg-submit{width:100%}
.dg-small{margin:0}
.dg-signin{margin:0; text-align:center; font-size:var(--fs-small)}
.dg-form .field-error a,.dg-signin a{font-weight:700}
.dg-signin a{display:inline-block; padding:3px 0}   /* a 24px target */
@media (max-width:560px){
  .dg-row{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){
  .dg-radio-row .chk{transition:none}
}

/* the page: the client's words on the left, the form in a warm white card on the right */
.dg-page{padding-top:clamp(8px,1.5vw,20px)}
.dg-card{display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(22px,3.4vw,40px) clamp(28px,5vw,80px); align-items:start; padding:clamp(20px,4vw,52px)}
.dg-card .dg-intro{grid-column:1; grid-row:1 / span 2}
.dg-card .dg-form{grid-column:2}
.dg-card .dg-signin{grid-column:2; text-align:left}
@media (max-width:900px){
  .dg-card{grid-template-columns:minmax(0,1fr)}
  .dg-card .dg-intro,.dg-card .dg-form,.dg-card .dg-signin{grid-column:1; grid-row:auto}
}
