/* Ced&Dunn site — P1 LAUNCH LAYER.
   Public production surfaces that the approved design did not yet carry:
   the inquiry / demo / subscribe form system with every visitor-facing state,
   the privacy presentation, and the production footer.
   Nothing here redesigns an approved composition — it completes it.
   Load order on every page: styles.css -> site/v11.css -> [page css] -> site/launch.css -> site/v11-mobile.css */

/* one signal color, used only by validation and failure. Not a brand color:
   brass is ceremonial and cannot carry error, bone cannot carry error.
   Flagged for review in the P1 handoff. */
:root{--signal:#C4553D}

/* the beat chassis sets pointer-events:none and hands it back per element.
   Forms were not on that list — every input inside a beat was unclickable. */
.beat .gate,.beat .cdform,.beat form,.beat .consent,.beat .formerr,.beat .done{pointer-events:auto}

/* ---------- the opener ---------- */
/* an approved CTA stays exactly where it is; it now opens the real interaction inline */
.gate{width:100%;display:grid;justify-items:center}
.gate .opener{margin-top:44px}
.gate.open .opener{display:none}

/* ---------- form shell ---------- */
.cdform{width:min(720px,100%);display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .9s cubic-bezier(.16,1,.3,1),opacity .7s ease}
.cdform>.wrap{overflow:hidden}
.gate.open .cdform,.cdform.always{grid-template-rows:1fr;opacity:1}
.cdform .in{display:grid;gap:30px;text-align:left;padding-top:5vh}
.cdform.always .in{padding-top:0}

/* two short fields per row on desktop; one per row on a phone */
.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}
/* labelled honeypot — never seen, never read aloud */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ---------- field ---------- */
.fld{display:grid;gap:11px}
.fld .lbl{font-family:var(--font-mono);text-transform:uppercase;font-size:13px;letter-spacing:.14em;color:rgba(242,236,224,.6);transition:color .35s}
.fld .lbl .opt{color:rgba(242,236,224,.38);letter-spacing:.1em}
.fld input,.fld textarea,.fld select{width:100%;background:rgba(0,0,0,.42);border:0;border-bottom:1px solid rgba(242,236,224,.32);color:var(--bone);font-family:var(--font-body);font-size:24px;line-height:1.4;padding:14px 2px;transition:border-color .4s,background .4s,opacity .4s;border-radius:0;-webkit-appearance:none;appearance:none}
.fld textarea{resize:vertical;min-height:104px}
.fld select{background-image:linear-gradient(45deg,transparent 50%,rgba(242,236,224,.62) 50%),linear-gradient(135deg,rgba(242,236,224,.62) 50%,transparent 50%);background-position:calc(100% - 15px) calc(1.35em),calc(100% - 9px) calc(1.35em);background-size:6px 6px,6px 6px;background-repeat:no-repeat;padding-right:34px;cursor:pointer}
.fld select option{background:var(--black);color:var(--bone)}
.fld input::placeholder,.fld textarea::placeholder{color:rgba(242,236,224,.3)}
.fld input:focus,.fld textarea:focus,.fld select:focus{outline:0;border-bottom-color:var(--brass);background:rgba(0,0,0,.62)}
.fld:focus-within .lbl{color:var(--brass)}
/* completed input — the line holds, quietly */
.fld.is-filled input,.fld.is-filled textarea,.fld.is-filled select{border-bottom-color:rgba(242,236,224,.62)}
/* validation */
.fld .err{font-family:var(--font-mono);text-transform:uppercase;font-size:13px;letter-spacing:.1em;color:var(--signal);display:flex;align-items:center;gap:10px;margin-top:-2px}
.fld .err::before{content:"";width:14px;height:1px;background:var(--signal);flex:0 0 auto}
.fld .err[hidden]{display:none}
.fld.has-err input,.fld.has-err textarea,.fld.has-err select{border-bottom-color:var(--signal)}
.fld.has-err .lbl{color:var(--signal)}

/* choice chips — a short mutually exclusive answer, never a dropdown */
.choice{display:flex;flex-wrap:wrap;gap:12px}
.choice label{position:relative;display:inline-flex;align-items:center;min-height:48px;padding:12px 20px;border:1px solid rgba(242,236,224,.28);font-family:var(--font-mono);text-transform:uppercase;font-size:13px;letter-spacing:.12em;color:rgba(242,236,224,.78);cursor:pointer;white-space:nowrap;transition:border-color .35s,color .35s,background .35s}
.choice input{position:absolute;opacity:0;width:100%;height:100%;left:0;top:0;margin:0;cursor:pointer}
.choice label:hover{border-color:rgba(176,137,74,.7);color:var(--bone)}
.choice input:focus-visible+span{text-decoration:underline;text-underline-offset:4px}
.choice label:has(input:checked){border-color:var(--brass);color:var(--brass);background:rgba(176,137,74,.09)}
.fld.has-err .choice label{border-color:rgba(196,85,61,.6)}

/* privacy reference — visible and legitimate, never a wall */
.consent{display:block;font-family:var(--font-mono);text-transform:uppercase;font-size:13px;letter-spacing:.1em;line-height:1.8;color:rgba(242,236,224,.5);text-wrap:pretty}
.consent a{color:rgba(242,236,224,.72);border-bottom:1px solid rgba(176,137,74,.6);padding-bottom:2px}
.consent a:hover{color:var(--brass)}
.consent .keyline{height:1px;background:rgba(176,137,74,.32);margin-bottom:16px}

/* ---------- actions + submitting ---------- */
.cdform .acts{justify-content:flex-start;margin-top:6px;gap:22px}
.cdform button.cta{position:relative;cursor:pointer;white-space:nowrap}
.cdform button.cta .txt{white-space:nowrap}
.cdform button.cta[disabled]{cursor:progress;opacity:.62}
.cdform button.cta[disabled]:hover{background:var(--bone);color:var(--black);border-color:var(--bone);gap:14px}
.spin{width:15px;height:15px;border:1px solid rgba(0,0,0,.28);border-top-color:var(--black);border-radius:50%;animation:cdspin .8s linear infinite;display:none;flex:0 0 auto}
.cdform.is-busy .spin{display:block}
.cdform.is-busy .arw{display:none}
@keyframes cdspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:2.4s}}
/* the whole field set goes quiet while the submission is in flight */
.cdform.is-busy .fld,.cdform.is-busy .consent{opacity:.42;pointer-events:none}
.cdform .fld,.cdform .consent{transition:opacity .4s}

/* ---------- failure ---------- */
/* the visitor stays inside the experience: no codes, no API language, entries preserved */
.formerr{display:grid;gap:12px;border-left:1px solid var(--signal);padding:18px 0 18px 22px;margin-top:4px}
.formerr[hidden]{display:none}
.formerr b{font-family:var(--font-display);text-transform:uppercase;font-weight:600;font-size:17px;letter-spacing:.1em;color:var(--signal)}
.formerr span{font-size:20px;line-height:1.5;color:rgba(242,236,224,.84);text-wrap:pretty;max-width:52ch}
.formerr a{color:var(--bone);border-bottom:1px solid rgba(176,137,74,.6)}

/* ---------- success ---------- */
.cdform .done{display:none;text-align:left;padding-top:5vh}
.cdform.always .done{padding-top:0}
.cdform.is-done .in{display:none}
.cdform.is-done .done{display:grid;gap:20px;justify-items:start}
.done .rule{width:88px;height:1px;background:var(--brass)}
.done h3{font-family:var(--font-display);text-transform:uppercase;font-weight:700;font-size:clamp(34px,4.4vw,72px);line-height:1;letter-spacing:0}
.done p{font-size:24px;line-height:1.5;color:rgba(242,236,224,.86);max-width:44ch;text-wrap:pretty}
.done .after{font-family:var(--font-mono);text-transform:uppercase;font-size:13px;letter-spacing:.12em;color:rgba(242,236,224,.5);line-height:1.7}
.done .after a{color:rgba(242,236,224,.74);border-bottom:1px solid rgba(176,137,74,.55)}
/* centred beat: the statement and the button own the axis, but the field set and
   its consent line stay left — they are a list, and a list reads from its left edge */
.cdform.mid.is-done .done{justify-items:center;text-align:center}
.cdform.mid .in{justify-items:stretch}
.cdform.mid .acts{justify-self:center;justify-content:center}

/* ---------- ON CUE subscribe: one line, editorial ---------- */
.sub1{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px 30px;text-align:left}
.sub1 .full{grid-column:1/-1}

/* ---------- production footer ---------- */
#fin{display:block;padding:0;background:var(--black);border-top:1px solid rgba(176,137,74,.3)}
#fin .fin-in{max-width:1500px;margin-inline:auto;padding:64px 6vw 54px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto);gap:44px 6vw;align-items:start}
#fin .fin-brand{display:grid;gap:18px;justify-items:start}
#fin .fin-brand img{height:44px;filter:invert(1) brightness(2);opacity:.9}
#fin .fin-brand .say{font-family:var(--font-mono);text-transform:uppercase;font-size:13px;letter-spacing:.14em;color:rgba(242,236,224,.6)}
/* label type pins the service mark at the 12px floor with its matching offset */
#fin .fin-brand .say .sm{font-size:12px;vertical-align:.55em}
#fin .fin-nav{display:flex;flex-wrap:wrap;gap:14px 34px;justify-content:flex-end}
#fin .fin-nav a{font-family:var(--font-display);text-transform:uppercase;font-weight:600;font-size:15px;letter-spacing:.14em;color:rgba(242,236,224,.82);min-height:44px;display:inline-flex;align-items:center;transition:color .35s}
#fin .fin-nav a:hover{color:var(--brass)}
#fin .fin-law{grid-column:1/-1;border-top:1px solid rgba(176,137,74,.24);padding-top:26px;display:flex;flex-wrap:wrap;gap:12px 30px;align-items:center;font-family:var(--font-mono);text-transform:uppercase;font-size:13px;letter-spacing:.12em;color:rgba(242,236,224,.5)}
#fin .fin-law a{color:rgba(242,236,224,.66);min-height:44px;display:inline-flex;align-items:center}
#fin .fin-law a:hover{color:var(--brass)}
#fin .fin-law .sp{flex:1 1 auto}

/* ---------- privacy presentation ---------- */
.legal{position:relative;z-index:2;background:var(--black);max-width:960px;margin-inline:auto;padding:0 6vw 16vh;text-align:left}
.legal .art{display:grid;gap:20px;padding:44px 0;border-top:1px solid rgba(176,137,74,.28)}
.legal .art h2{font-size:clamp(24px,2.4vw,38px);line-height:1.06;letter-spacing:.02em}
.legal .art p{font-size:21px;line-height:1.62;color:rgba(242,236,224,.84);max-width:64ch;text-wrap:pretty}
.legal .art ul{display:grid;gap:12px;padding-left:22px}
.legal .art li{font-size:21px;line-height:1.55;color:rgba(242,236,224,.84);text-wrap:pretty;max-width:60ch}
.legal .art li::marker{color:var(--brass)}
/* the launch layer's link vocabulary: a brass keyline, never color alone */
.legal .art a{color:var(--bone);border-bottom:1px solid rgba(176,137,74,.6);padding-bottom:2px}
.legal .art a:hover{color:var(--brass);border-bottom-color:var(--brass)}
/* where the supplied legal text lands. Identified, not hidden. */
.legal .slot{border:1px solid rgba(176,137,74,.45);background:rgba(255,255,255,.015);padding:26px 28px;display:grid;gap:12px}
.legal .slot .tag{font-family:var(--font-mono);text-transform:uppercase;font-size:13px;letter-spacing:.14em;color:var(--brass)}
.legal .slot p{font-size:19px;color:rgba(242,236,224,.66);max-width:60ch}
.legal .toc{display:flex;flex-wrap:wrap;gap:12px 30px;padding:34px 0 10px}
.legal .toc a{font-family:var(--font-mono);text-transform:uppercase;font-size:13px;letter-spacing:.12em;color:rgba(242,236,224,.62);min-height:44px;display:inline-flex;align-items:center}
.legal .toc a:hover{color:var(--brass)}

/* ---------- mobile ---------- */
@media (max-width:820px){
.cdform{width:100%}
.cdform .in{gap:26px;padding-top:4vh}
.pair{grid-template-columns:minmax(0,1fr);gap:26px}
.fld input,.fld textarea,.fld select{font-size:20px;padding:13px 2px;min-height:52px}
.fld select{background-position:calc(100% - 15px) 1.5em,calc(100% - 9px) 1.5em}
.fld textarea{min-height:118px}
.choice label{padding:12px 16px;min-height:50px}
.cdform .acts{margin-top:10px;justify-content:stretch}
.cdform .acts .cta{width:100%;justify-content:center}
.cdform.mid .acts{justify-content:stretch}
.consent{font-size:13px;letter-spacing:.08em}
.done h3{font-size:clamp(32px,9.4vw,50px)}
.done p{font-size:20px;max-width:none}
.formerr span{font-size:19px}
.sub1{grid-template-columns:minmax(0,1fr)}
#fin .fin-in{grid-template-columns:minmax(0,1fr);gap:34px;padding:48px 6vw 44px}
#fin .fin-nav{justify-content:flex-start;gap:6px 26px}
#fin .fin-law{gap:8px 22px;padding-top:22px}
#fin .fin-law .sp{display:none}
.legal{padding:0 6vw 12vh}
.legal .art{padding:34px 0;gap:16px}
.legal .art p,.legal .art li{font-size:19px}
.legal .slot{padding:22px 20px}
}
