/* Promotion tool pages: links (generator), banners, images, media, landing, pdf. Tokens in ../site.css. */

/* ---- shared ---- */
.inp{width:100%;min-height:52px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px 14px;font:17px/1.4 var(--sans);color:var(--ink)}
.inp:focus{outline:3px solid rgba(155,63,120,.25);border-color:var(--plum)}
.inp.mono{font:16px/1.4 var(--mono);background:var(--mist)}
.field label{display:block;font-weight:700;font-size:17px;margin:0 0 6px;color:var(--aub)}
.field-err{color:#b0263f;font-size:16px;margin:8px 0 0}
.inp[aria-invalid="true"]{border-color:#b0263f}
.linkbtn{display:inline-flex;align-items:center;gap:8px;background:none;border:0;padding:6px 0;font:500 17px/1.4 var(--sans);color:var(--plum);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.linkbtn .ico{width:20px;height:20px}
.linkbtn:hover{color:var(--violet)}
.tl-intro{max-width:820px}
.tl-intro p:last-child{margin-bottom:0}
.sec-new{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.sec-new .tag-new{font-size:16px}
.sec-sub2{color:var(--muted);margin:-6px 0 20px;font-size:18px}
.res{display:flex;flex-direction:column;gap:14px}
.res-pic{background:radial-gradient(circle at 50% 45%,#fff 0%,var(--mist) 70%,#eadff0 100%);border-radius:14px;display:grid;place-items:center;padding:16px;min-height:200px}
.res-pic img{max-height:240px;width:auto}
.res-t{font:700 21px/1.3 var(--serif);color:var(--aub);margin:0}
.res-btns{display:flex;flex-wrap:wrap;gap:8px}
.res-meta{color:var(--muted);font-size:16px;margin:0}

/* ---- links: generator ---- */
.gen{display:grid;gap:22px}
.gen-h{display:flex;align-items:center;gap:14px;margin:0 0 18px}
.gen-h h2{margin:0;font-size:clamp(23px,2.3vw,29px)}
.gen-n{width:48px;height:48px;border-radius:50%;flex:0 0 auto;display:grid;place-items:center;font:800 22px/1 var(--serif);color:var(--aub);background:linear-gradient(135deg,var(--gold-l),var(--gold));box-shadow:0 0 0 6px rgba(247,194,27,.18)}
.gen-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.gen-help{display:flex;flex-wrap:wrap;gap:6px 24px;margin:12px 0 0}
.gen-pick{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:26px;align-items:start}
.gen-list #select-page{display:none}
.lp-opts{display:flex;flex-direction:column;gap:8px}
.lp-opt{display:flex;align-items:flex-start;gap:12px;text-align:left;width:100%;background:var(--mist);border:2px solid transparent;border-radius:12px;padding:11px 14px;font:500 17px/1.4 var(--sans);color:var(--ink);cursor:pointer}
.lp-opt:hover{border-color:var(--line);background:#fff}
.lp-opt.on{background:#fff;border-color:var(--plum);box-shadow:0 4px 14px rgba(155,63,120,.14)}
.lp-dot{width:18px;height:18px;border-radius:50%;border:2px solid #b9a6bd;flex:0 0 auto;margin-top:3px}
.lp-opt.on .lp-dot{border-color:var(--plum);background:radial-gradient(circle,var(--plum) 0 45%,#fff 50%)}
.gen-prev{margin:0;position:sticky;top:150px}
.gen-prev-img{background:linear-gradient(160deg,var(--aub-2),var(--space));border-radius:16px;padding:14px;box-shadow:var(--shadow)}
.gen-prev-img img{width:100%;height:auto;border-radius:8px;display:block}
.gen-prev figcaption{font:700 20px/1.35 var(--serif);color:var(--aub);margin-top:12px;text-align:center}
.gen-out{background:linear-gradient(160deg,#fff 0%,#fff 60%,#fbf4e0 100%)}
.gen-lab{margin:0 0 8px;font-weight:700}
.gen-row{display:flex;gap:10px}
.gen-row .inp{flex:1 1 auto;min-width:0}
.gen-save{margin-top:16px}

/* ---- banners / images ---- */
.bset{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:26px;align-items:start}
.bset+.bset{margin-top:22px}
.bset-pic{background:var(--mist);border-radius:14px;display:grid;place-items:center;padding:14px;min-height:220px;overflow:hidden}
.bset-pic img{max-width:100%;max-height:420px;width:auto;height:auto}
.bset-t{font:700 24px/1.3 var(--serif);color:var(--aub);margin:0 0 12px}
.bset-side{display:flex;flex-direction:column;gap:12px}
.bset-side label.lab{font-weight:700;font-size:17px;color:var(--aub)}
.bset-dl{display:flex;flex-wrap:wrap;gap:8px}
.bnew{margin-top:22px}
.bnew-sizes{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.bnew-sizes button{border:2px solid var(--line);background:#fff;border-radius:999px;padding:8px 14px;font:500 16px/1.2 var(--sans);color:var(--ink);cursor:pointer;min-height:44px}
.bnew-sizes button.on{border-color:var(--plum);background:var(--plum);color:#fff}
.bnew-stage{background:repeating-conic-gradient(#f1ebf3 0 25%,#fff 0 50%) 0 0/24px 24px;border-radius:14px;display:grid;place-items:center;padding:18px;min-height:260px;overflow:hidden}
.bnew-stage img{max-width:100%;max-height:520px;width:auto;height:auto;box-shadow:0 6px 20px rgba(29,13,31,.18)}
.bnew-night .bnew-stage{background:linear-gradient(160deg,var(--aub-2),var(--space))}
.bnew-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}
.bnew-meta p{margin:0;color:var(--muted);font-size:16px}
.imgs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.imgs .res-pic img{max-height:260px}

/* ---- media ---- */
.m-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.m-item{background:#fff;border-radius:16px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}
.m-item>a.m-pic{display:block;background:var(--mist)}
.m-item img{width:100%;height:auto;display:block;aspect-ratio:1/1;object-fit:cover}
.m-item video{width:100%;display:block;aspect-ratio:1/1;background:var(--space);object-fit:cover}
.m-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;flex-wrap:wrap}
.m-foot .m-n{font-weight:700;color:var(--aub);font-size:16px}
.m-foot .res-btns{gap:6px}

/* ---- landing ---- */
.steps{counter-reset:none;display:grid;gap:18px}
.step{display:grid;grid-template-columns:56px minmax(0,1fr);gap:18px;align-items:start}
.step-n{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font:800 23px/1 var(--serif);color:#fff;background:linear-gradient(135deg,var(--plum),var(--violet));box-shadow:0 0 0 6px rgba(155,63,120,.14)}
.step-b>p:first-child{margin-top:12px}
.step-b p:last-child{margin-bottom:0}
.tpls{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:18px}
.tpl{background:var(--mist);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.tpl a.tpl-pic{display:block;width:100%}
.tpl img{width:100%;height:auto;display:block}
.tpl-t{font:700 20px/1.3 var(--serif);color:var(--aub);margin:0}
.pre{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:26px;align-items:center}
.pre+.pre{margin-top:22px}
.pre-pic{border-radius:14px;overflow:hidden;background:var(--mist);box-shadow:var(--shadow);max-height:420px}
.pre-pic img{width:100%;height:auto;display:block}
.pre-t{font:700 24px/1.3 var(--serif);color:var(--aub);margin:6px 0 10px}
.pre-list{margin:0 0 16px;padding-left:20px}
.pre-list li{margin:0 0 4px}

/* ---- pdf ---- */
.pdfs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}

@media (max-width:900px){
  .gen-pick,.bset,.pre{grid-template-columns:1fr}
  .gen-prev{position:static;order:-1}
  .m-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  .gen-fields,.tpls,.imgs,.pdfs{grid-template-columns:1fr}
  .gen-row{flex-direction:column}
  .gen-row .btn,.gen-save{width:100%;justify-content:center}
  .m-grid{grid-template-columns:1fr}
  .step{grid-template-columns:44px minmax(0,1fr);gap:14px}
  .step-n{width:44px;height:44px;font-size:20px}
}

/* pdf extras */
.res-photo{padding:0;overflow:hidden;min-height:0}
.res-photo img{width:100%;height:200px;max-height:none;object-fit:cover}
.pdf-more{margin-top:26px}
.tile-wide{display:flex;align-items:center;gap:16px;color:var(--ink);text-decoration:none}
.tile-wide:hover{box-shadow:var(--shadow-lg)}
.tile-wide .tile-ic{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,var(--plum),var(--violet));color:#fff;flex:0 0 auto}
.tile-wide b{font:700 20px/1.3 var(--serif);color:var(--aub)}
.m-item video{background:linear-gradient(160deg,var(--aub-2),var(--space))}
.pdfs-old{margin-top:28px}

/* ---- fix1 ---- */
/* #21 numbers sit in the middle of their circles */
.gen-n,.step-n{font-family:var(--sans);font-variant-numeric:lining-nums;padding-top:1px}
/* #22 option list in two columns so the preview column is not left with a blank area */
.gen-pick{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.lp-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lp-opt{height:100%}
/* #28 light banner set on a plain light background */
.bnew-stage{background:linear-gradient(180deg,#faf6fb,#efe6f2)}
.bnew-night .bnew-stage{background:linear-gradient(160deg,var(--aub-2),var(--space))}
.bset-pic{background:linear-gradient(180deg,#faf6fb,#efe6f2)}
@media (max-width:1100px){.lp-opts{grid-template-columns:1fr}}
@media (max-width:700px){
  /* #23 save button on one line, icon beside the words */
  .gen-save{padding:12px 14px;gap:8px;font-size:16px;justify-content:flex-start;text-align:left}
  /* #29 banner buttons: a tidy grid (Copy full width, then View and Download side by side) */
  .bset .codebox-btns,.bnew .codebox-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .bset .codebox-btns>:first-child,.bnew .codebox-btns>:first-child{grid-column:1/-1}
  .bset .codebox-btns .btn,.bnew .codebox-btns .btn{justify-content:center;width:100%}
}
/* images: picture area takes the spare height, code box at the bottom; white picture backgrounds blend in */
.imgs{align-items:stretch}
.imgs .res-pic{flex:1 1 auto}
.imgs .res-pic img{mix-blend-mode:multiply}
.imgs .res .codebox{margin-top:auto}
.gen-outf{resize:none;field-sizing:content;min-height:48px;overflow:hidden;overflow-wrap:anywhere;line-height:1.45}
/* fix2: presell cards show the desktop and phone screenshots side by side */
.tpl a.tpl-pics{position:relative;padding-right:22%}
.tpl a.tpl-pics img.tpl-desk{border-radius:10px;box-shadow:0 6px 18px rgba(40,20,60,.18)}
.tpl a.tpl-pics img.tpl-phone{position:absolute;right:0;bottom:-6px;width:30%;border:5px solid #1d1530;border-radius:16px;box-shadow:0 8px 20px rgba(40,20,60,.3);background:#fff}

/* ---- fix2 (design check 2 + review 5c2) ---- */
/* links desktop: the preview column runs the full height of the option list, picture centred in it */
.gen-pick{align-items:stretch}
.gen-prev{display:flex;flex-direction:column;justify-content:center;position:static}
/* phone and tablet: one column, preview on top full width, nothing wider than the screen */
@media (max-width:900px){
  .gen-pick,.bset,.pre{grid-template-columns:minmax(0,1fr)}
  .gen-prev{order:-1}
}
@media (max-width:700px){
  .gen-fields,.tpls,.imgs,.pdfs,.lp-opts{grid-template-columns:minmax(0,1fr)}
  .lp-opt{height:auto}
}
.bset-pic,.res-pic,.bnew-stage{grid-template-columns:minmax(0,1fr);justify-items:center}
.bset-side,.res,.tpl{min-width:0}
/* #13 "Added" date beside a New section heading, not a badge inside it */
.sec-h{flex-wrap:wrap}
.sec-h .sec-sub{margin:0 0 0 auto;align-self:center;font-size:17px;color:#57465b;white-space:nowrap}
@media (max-width:640px){.sec-h .sec-sub{margin:0;flex-basis:100%;white-space:normal}}
.sec-h h2{flex:1 1 0;min-width:0}

/* ---- fix3 ---- */
/* links: option cards as tall as their own words */
.lp-opts{align-items:start}
.lp-opt{height:auto}
/* banners phone: "Download Set" on one line */
@media (max-width:700px){
  .bset .codebox-btns .btn,.bnew .codebox-btns .btn{white-space:nowrap;padding-left:8px;padding-right:8px;gap:6px}
  .bset .codebox-btns .btn span{white-space:nowrap}
}
