/* ─────────────────────────────────────────────────────────────
   Onwards Digital — landing chooser + ready-made builder
   Same Ledger language as site.css: paper, ink, hairlines,
   square corners, Instrument Serif over Schibsted Grotesk.
   ───────────────────────────────────────────────────────────── */

/* ── Landing chooser (index.html) ───────────────────────────── */
.choose { padding-top: 64px; padding-bottom: 104px; }
.choose-head { margin-bottom: 48px; }
.choose-head .h-hero { font-size: clamp(40px, 6vw, 92px); }
.choices2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.choice2 { display: flex; flex-direction: column; gap: 22px; padding: 40px 40px 36px; color: var(--ink); background: var(--bg); border: 1px solid var(--ink);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s cubic-bezier(.2,.7,.2,1), background .3s ease, color .3s ease; }
.choice2:hover { color: var(--ink); transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(26,25,23,.45); }
.choice2 .h-choice { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.04; letter-spacing: -0.01em; max-width: 16ch; }
.choice2 .lede { max-width: 420px; transition: color .3s ease; }
.c-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid currentColor; margin-top: auto; }
.c-facts div { padding: 16px 16px 16px 0; display: flex; flex-direction: column; gap: 6px; }
.c-facts div + div { padding-left: 16px; border-left: 1px solid var(--hair); }
.c-facts .serif { font-size: 28px; line-height: 1; }
.choice2 .btn-line { align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .choice2, .choice2:hover { transition: background .2s ease, color .2s ease; transform: none; } }

/* ── Ready-made page ───────────────────────────────────────── */
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.builder { padding-top: 104px; }
.builder .section-head { margin-bottom: 28px; }
.bl { display: grid; grid-template-columns: minmax(0, 1fr) 420px; transition: grid-template-columns .5s cubic-bezier(.2,.7,.2,1); gap: 24px; height: calc(100vh - 48px); min-height: 620px; max-height: 1000px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.bl-view { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--hair); background: var(--stone); overflow: hidden; }
.pv-bar { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 0 20px; background: var(--bg); border-bottom: 1px solid var(--hair); }
.pv-tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.pv-tabs::-webkit-scrollbar { display: none; }
.pv-tabs button { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; padding: 16px 0 14px; color: var(--muted); border-bottom: 1px solid transparent; white-space: nowrap; }
.pv-tabs button:hover { color: var(--ink); }
.pv-tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.pv-tools { display: flex; align-items: center; gap: 14px; flex: none; }
.pv-dev { display: flex; border: 1px solid var(--ink); }
.pv-dev button { width: 38px; height: 32px; display: flex; align-items: center; justify-content: center; }
.pv-dev button + button { border-left: 1px solid var(--ink); }
.pv-dev button.on { background: var(--ink); color: var(--bg); }
.pv-tools .btn-text { font-size: 12px; }
.pv-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.pv-wrap { position: relative; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(26,25,23,.1), 0 26px 60px -36px rgba(26,25,23,.5); transition: width .3s ease, height .3s ease; }
.pv-wrap iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; }
.is-phone .pv-wrap { border: 1px solid var(--ink); border-radius: 26px; box-shadow: 0 30px 60px -40px rgba(26,25,23,.55); }

.bl-side { display: flex; flex-direction: column; min-height: 0; min-width: 0; border: 1px solid var(--hair); background: var(--paper); overflow: hidden; }
.bl-panels { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pn { border-bottom: 1px solid var(--hair); transition: background .3s ease; overflow: hidden; }
.pn.open { background: var(--bg); }
.pn-h { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 22px; text-align: left; }
.pn-no { font-family: var(--serif); font-size: 18px; color: var(--muted); width: 18px; flex: none; }
.pn-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.pn-n { font-family: var(--serif); font-size: 23px; line-height: 1.1; }
.pn-s { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-i { width: 14px; height: 14px; position: relative; flex: none; }
.pn-i:before, .pn-i:after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); }
.pn-i:after { transform: rotate(90deg); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.pn.open .pn-i:after { transform: rotate(0); }
.pn-c { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.2,.7,.2,1); }
.pn.open .pn-c { grid-template-rows: 1fr; }
.pn-b { min-height: 0; overflow: hidden; }
.pn.settled, .pn.settled .pn-b { overflow: visible; }
.pn-in { padding: 2px 22px 26px 54px; display: grid; gap: 22px; opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .38s cubic-bezier(.2,.7,.2,1); }
.pn.open .pn-in { opacity: 1; transform: none; transition-delay: .06s; }
.pn.noanim .pn-c, .pn.noanim .pn-in { transition: none; }
.ptabs { display: flex; gap: 20px; border-bottom: 1px solid var(--hair); overflow-x: auto; scrollbar-width: none; margin-top: -4px; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs button { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; padding: 8px 0 10px; color: var(--muted); border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .2s ease, border-color .2s ease; }
.ptabs button:hover { color: var(--ink); }
.ptabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.ptab-area { display: grid; gap: 22px; }
.ptab-area.in { animation: tabIn .32s ease both; }
@keyframes tabIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pn-next { padding-top: 4px; }
.pn-next .btn-line, .pn-next .btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .pn-c, .pn-in, .pn-i:after { transition: none !important; } .ptab-area.in { animation: none; } }
.grp { display: grid; gap: 10px; }
.grp.sub { padding: 18px; border: 1px solid var(--hair); background: var(--paper); }
.grp > .cap { font-size: 11px; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.fl { display: grid; gap: 6px; }
.fl-l { font-size: 12.5px; color: var(--muted); }
.fi { width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--hair); padding: 10px 12px; border-radius: 0; outline: none; -webkit-appearance: none; appearance: none; line-height: 1.4; }
.fi:focus { border-color: var(--ink); }
textarea.fi { resize: vertical; }
select.fi { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231a1917' stroke-width='1.5'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.names { display: grid; gap: 6px; }
.nm { display: grid; gap: 2px; text-align: left; padding: 12px 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .15s ease; }
.nm b { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.2; }
.nm span { font-size: 12.5px; color: var(--muted); }
.nm:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.nm.on { box-shadow: inset 0 0 0 2px var(--ink); }
.lays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
.lay { display: grid; gap: 6px; text-align: left; min-width: 0; }
.lay-box { aspect-ratio: 1; position: relative; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--hair); transition: box-shadow .15s ease; }
.lay-box iframe { position: absolute; top: 0; left: 0; width: 1200px; height: 1200px; border: 0; transform-origin: 0 0; transform: scale(var(--ts, .1)); pointer-events: none; }
.lay:hover .lay-box { box-shadow: 0 0 0 1px var(--ink); }
.lay.on .lay-box { box-shadow: 0 0 0 2px var(--ink); }
.lay-n { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lay.on .lay-n { color: var(--ink); }

.seg { display: flex; border: 1px solid var(--ink); }
.seg button { flex: 1; padding: 10px 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button.on { background: var(--ink); color: var(--bg); }

.tones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tone { display: grid; gap: 6px; font-size: 12px; color: var(--muted); text-align: left; }
.tone i { height: 34px; display: flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--serif); font-size: 16px; box-shadow: 0 0 0 1px var(--hair); }
.tone.on { color: var(--ink); }
.tone.on i { box-shadow: 0 0 0 2px var(--ink); }

.pals { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.pal { aspect-ratio: 1; position: relative; box-shadow: 0 0 0 1px var(--hair); }
.pal i { position: absolute; bottom: 5px; width: 30%; height: 30%; border-radius: 50%; }
.pal i:first-child { left: 14%; }
.pal i:last-child { right: 14%; }
.pal:hover { box-shadow: 0 0 0 1px var(--ink); }
.pal.on { box-shadow: 0 0 0 2px var(--ink); }
.colr { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.colr input { width: 100%; height: 36px; border: 1px solid var(--hair); background: var(--paper); padding: 3px; cursor: pointer; }

.fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fnt { display: grid; gap: 2px; padding: 10px 10px 9px; text-align: left; box-shadow: 0 0 0 1px var(--hair); background: var(--paper); min-width: 0; }
.fnt b { font-weight: 400; font-size: 24px; line-height: 1.1; }
.fnt span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fnt:hover { box-shadow: 0 0 0 1px var(--ink); }
.fnt.on { box-shadow: 0 0 0 2px var(--ink); }
.fonts-sel { margin-top: 2px; }

.rng { display: grid; grid-template-columns: 96px 1fr 44px; gap: 12px; align-items: center; }
.rng input { width: 100%; accent-color: var(--ink); }
.rng output { font-size: 13px; text-align: right; }

.sws { display: grid; }
.sw { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.sws .sw:last-child { border-bottom: 1px solid var(--hair); }
.tg { width: 44px; height: 24px; border: 1px solid var(--ink); position: relative; flex: none; background: transparent; overflow: hidden; }
.tg:before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.tg i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--ink); transition: left .42s cubic-bezier(.34,1.56,.64,1), width .2s ease, background .3s ease; }
.tg:active i { width: 20px; }
.tg.on:before { transform: scaleX(1); }
.tg.on i { left: 23px; background: var(--bg); }
.tg.on:active i { left: 19px; }
.sw span { transition: color .3s ease; }
.sw:has(.tg:not(.on)) > span { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .tg:before, .tg i { transition: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipb { padding: 8px 12px; font-size: 13px; box-shadow: inset 0 0 0 1px var(--hair); background: var(--paper); }
.chipb:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chipb.on { background: var(--ink); color: var(--bg); box-shadow: none; }

.photo { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.photo-i { width: 52px; height: 52px; background: var(--stone); overflow: hidden; }
.photo-i img { width: 100%; height: 100%; object-fit: cover; }
.photo-t { display: grid; font-size: 14px; }
.photo-t small { font-size: 12px; }
.photo .btn-text { cursor: pointer; font-size: 11px; }
.sr { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ptile { aspect-ratio: 1; position: relative; overflow: hidden; background: var(--stone); cursor: pointer; }
.ptile img { width: 100%; height: 100%; object-fit: cover; }
.ptile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: rgba(26,25,23,.72); color: var(--bg); opacity: 0; transition: opacity .15s ease; }
.ptile:hover span, .ptile:focus-within span { opacity: 1; }

.hls, .items { display: grid; gap: 10px; }
.hl-row { display: grid; gap: 6px; }
.item { display: grid; grid-template-columns: 1fr 88px 32px; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.item > input:last-child { grid-column: 1 / -1; }
.item .x { font-size: 20px; color: var(--muted); border: 1px solid var(--hair); }
.item .x:hover { color: var(--ink); border-color: var(--ink); }
.items .add { justify-self: start; margin-top: 4px; font-size: 11px; }

.bl-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--hair); background: var(--bg); }
.bl-buy .p { display: grid; gap: 2px; }
.bl-buy .serif { font-size: 32px; line-height: 1; }
.bl-buy .muted { font-size: 12px; }
.bl-buy .dh { width: .66em; height: .66em; vertical-align: .02em; }
.bl-foot { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ── Three views: bigger website / split / bigger options ─────── */
.bl-views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); background: var(--bg); }
.bl-views button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 4px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--muted); transition: color .2s ease, background .2s ease; white-space: nowrap; }
.bl-views button + button { border-left: 1px solid var(--hair); }
.bl-views svg { width: 22px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1; }
.bl-views svg .f { fill: currentColor; stroke: none; opacity: .18; }
.bl-views button:hover { color: var(--ink); }
.bl-views button.on { color: var(--ink); background: var(--paper); box-shadow: inset 0 -2px 0 var(--ink); }
.bl-views button.on svg .f { opacity: .45; }
.m-preview .bl-views span { display: none; }
@media (min-width: 861px) {
.bl.m-preview { grid-template-columns: minmax(0, 1fr) 340px; }
.bl.m-options { grid-template-columns: minmax(460px, 42fr) 58fr; }
.m-preview .lays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-preview .pals { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.m-preview .fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-preview .pn-in { padding-left: 22px; }
.m-preview .pn-no { display: none; }
/* Bigger options: roomier, two columns of controls, larger thumbnails */
.m-options .pn-h { padding: 22px 32px 22px 26px; gap: 18px; }
.m-options .pn-n { font-size: 27px; }
.m-options .pn-in { padding: 6px 36px 36px 66px; gap: 30px; }
.m-options .ptab-area { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; align-items: start; }
.m-options .ptab-area > .lays, .m-options .ptab-area > .names, .m-options .ptab-area > .items, .m-options .ptab-area > .photos, .m-options .ptab-area > .hint, .m-options .ptab-area > .pals, .m-options .ptab-area > .fl:has(textarea[rows="16"]) { grid-column: 1 / -1; }
.m-options .lays { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 16px; }
.m-options .lay-n { font-size: 13px; }
.m-options .names { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.m-options .pals { grid-template-columns: repeat(17, minmax(0, 1fr)); }
  .m-options .ptab-area > .grp:has(.pals), .m-options .ptab-area > .grp:has(.fp) { grid-column: 1 / -1; }
  .m-options .grp:has(.fp) .cols2 { max-width: 640px; }
.m-options .fonts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.m-options .photos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.m-options .hint { max-width: 62ch; }
.m-options .pn-next { grid-column: 1 / -1; }
.m-options .pn-next .btn-line, .m-options .pn-next .btn { width: auto; min-width: 280px; }
.m-options .pn-in > .grp, .m-options .pn-in > .cols2 { max-width: 760px; }

}

.bl-side [hidden] { display: none !important; }

/* Section colours: "same as site" tile */
.pal.same { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--paper); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.pal.same.on { color: var(--ink); }
.rng .rs { grid-column: 1 / -1; justify-self: start; font-size: 10.5px; }
.hint.note { color: var(--ink); border-left: 2px solid var(--ink); padding-left: 10px; }

/* Font dropdown (our own, not the browser's) */
.fp { position: relative; }
.fp-btn { width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; text-align: left; padding: 9px 12px 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .15s ease; }
.fp-btn:hover, .fp.open .fp-btn { box-shadow: inset 0 0 0 1px var(--ink); }
.fp-l { font-size: 11px; color: var(--muted); grid-column: 1; }
.fp-v { font-size: 19px; line-height: 1.25; grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-c { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 8px; height: 8px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .25s ease; }
.fp.open .fp-c { transform: rotate(225deg) translateY(-3px); }
.fp-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 300px; overflow-y: auto; background: var(--bg); border: 1px solid var(--ink); box-shadow: 0 22px 40px -24px rgba(26,25,23,.5); display: grid; animation: fpIn .2s ease both; overscroll-behavior: contain; }
.fp-list[hidden] { display: none; }
@keyframes fpIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.fp-o { text-align: left; padding: 9px 14px; font-size: 18px; line-height: 1.3; border-top: 1px solid var(--hair-soft); }
.fp-o:first-child { border-top: 0; }
.fp-o.same { font-family: var(--sans) !important; font-size: 13px; color: var(--muted); }
.fp-o:hover, .fp-o:focus-visible { background: var(--paper); outline: none; }
.fp-o.on { background: var(--ink); color: var(--bg); }

/* Key facts: number and label side by side, one fact per row */
.facts3 { display: grid; gap: 8px; }
.fact-row { display: grid !important; grid-template-columns: 96px 1fr; gap: 8px; }

/* Dialogs (buy, start over): our own, centred, fading in */
.bl-modal { position: fixed; inset: 0; z-index: 100; background: rgba(26,25,23,.42); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .25s ease both; }
.bl-modal[hidden] { display: none; }
.bl-dialog { width: 100%; max-width: 560px; background: var(--bg); border: 1px solid var(--ink); padding: 32px; position: relative; max-height: calc(100vh - 40px); max-height: calc(100svh - 40px); overflow-y: auto; animation: popIn .32s cubic-bezier(.2,.7,.2,1) both; }
.bl-dialog.small { max-width: 440px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.bl-dialog .form-title { font-size: 30px; }
.bl-dialog .field { padding: 16px 0; }
.bl-dialog .f2 { gap: 16px; }
.bl-dialog .f2 .field { border-bottom: 1px solid var(--hair); }
.bl-dialog .x { position: absolute; top: 14px; right: 16px; font-size: 26px; line-height: 1; color: var(--muted); }
.bl-dialog .x:hover { color: var(--ink); }
.bl-dialog .submit-row { padding-top: 20px; }
.bl-dialog .check { margin-top: 4px; }
.field.off .input { opacity: .45; }
.field.sub { padding: 12px 0 0; border: 0; }
.dels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.del { position: relative; cursor: pointer; }
.del input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.del span { display: grid; gap: 4px; align-content: start; height: 100%; padding: 14px 14px 13px; border: 1px solid var(--hair); background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease; }
.del b { font-weight: 500; font-size: 14px; }
.del small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.del input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.del input:focus-visible + span { border-color: var(--ink); }
.dlg-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.dlg-acts .btn, .dlg-acts .btn-line { width: 100%; }
#buy-err { color: #9a3b2a; font-size: 13px; min-height: 1em; }
html.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .bl-modal, .bl-dialog { animation: none; } }

/* ── Tablet ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bl { grid-template-columns: minmax(0, 1fr) 380px; }
  .pals { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choose-head { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Phone: the preview sits on top and stays in view; the dropdowns scroll under it ── */
@media (max-width: 860px) {
  .builder { padding-top: 48px; }
  .bl { display: block; height: auto; min-height: 0; max-height: none; }
  .bl-view { position: sticky; top: 10px; z-index: 5; height: 50vh; height: 50svh; margin-bottom: 14px; box-shadow: 0 12px 24px -18px rgba(26,25,23,.4); }
  .bl-side { overflow: visible; }
  .pv-bar { padding: 0 12px 0 14px; gap: 10px; min-height: 44px; }
  .pv-tabs { gap: 16px; }
  .pv-tabs button { font-size: 11px; padding: 13px 0 11px; }
  .pv-tools { gap: 10px; }
  .pv-tools [data-reset] { display: none; }
  .bl-views { display: none; }
  .pv-dev button { width: 32px; height: 28px; }
  .is-phone .pv-wrap { border-radius: 16px; }
  .bl-panels { overflow: visible; }
  .pn-h { padding: 14px 16px; gap: 12px; }
  .pn-n { font-size: 21px; }
  .pn-in { padding: 2px 16px 22px; gap: 20px; }
  .bl-buy { position: sticky; bottom: 0; z-index: 6; padding: 12px 16px; }
  .bl-buy .serif { font-size: 26px; }
  .bl-buy .btn { min-height: 44px; padding: 0 18px; }
  .pals { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
  .fonts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fnt b { font-size: 20px; }
}
@media (max-width: 760px) {
  .choose { padding-top: 32px; padding-bottom: 48px; }
  .choose-head { margin-bottom: 24px; }
  .choices2 { gap: 10px; }
  .choice2 { padding: 18px 14px 16px; gap: 14px; }
  .choice2:hover { transform: translateY(-3px); }
  .choice2 .cap { font-size: 10.5px; }
  .choice2 .h-choice { font-size: 22px; }
  .choice2 .lede { font-size: 13px; line-height: 1.45; }
  .c-facts { grid-template-columns: 1fr; }
  .c-facts div { padding: 10px 0; }
  .c-facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); }
  .c-facts .serif { font-size: 20px; }
  .c-facts .cap { font-size: 10px; }
  .choice2 .btn-line { align-self: stretch; padding: 0 8px; font-size: 11px; min-height: 42px; white-space: normal; text-align: center; }
  .steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps.three .step { padding: 14px 10px 12px 0; gap: 8px; }
  .steps.three .step + .step { padding-left: 10px; }
  .steps.three .step:nth-child(2) { border-right: 1px solid var(--hair); }
  .steps.three .step:nth-child(3) { padding-left: 10px; }
  .steps.three .n { font-size: 28px; }
  .steps.three .t { font-size: 14px; }
  .steps.three .d { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .bl-dialog { padding: 24px 18px; }
  .bl-dialog .form-title { font-size: 25px; }
  .bl-dialog .f2 { gap: 10px; }
  .del span { padding: 11px 10px; }
  .del small { font-size: 11.5px; }
}
