/* Website planner page */
.pl-hero { width: min(calc(100% - 48px), 1200px); max-width: none; padding: 72px 0 8px; }
.pl-hero h1 { max-width: 20ch; font-weight: 600; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -.045em; margin: 16px 0 16px; }
.pl-hero .lead { color: var(--muted); font-size: 18px; max-width: 660px; margin: 0; }
.pl-badge { display: inline-block; margin-top: 18px; padding: 7px 13px; border: 1px dashed var(--line); border-radius: 999px; color: var(--faint); font-size: 13px; }

.pl-app { width: min(calc(100% - 48px), 1200px); display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 32px; align-items: start; padding: 36px 0 96px; }
.pl-col { min-width: 0; }

/* ---- progress ---- */
.pl-progress { position: relative; margin-bottom: 16px; }
.pl-bar { position: absolute; left: 14px; right: 14px; top: 13px; height: 2px; background: var(--line); border-radius: 2px; }
.pl-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width .6s var(--ease); }
.pl-steps { position: relative; display: flex; justify-content: space-between; gap: 4px; }
.pl-steps button { display: grid; justify-items: center; gap: 8px; flex: 1 1 0; min-width: 0; padding: 0; border: 0; background: none; color: var(--faint); font: 500 12px/1.2 inherit; cursor: pointer; transition: color .25s; }
.pl-steps .n { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); font: 500 11px/1 var(--font-mono); color: var(--muted); transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.pl-steps .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pl-steps button:hover { color: var(--text); }
.pl-steps .on { color: var(--text); }
.pl-steps .on .n { border-color: var(--accent); background: var(--accent); color: #08090c; transform: scale(1.1); }
.pl-steps .done .n { border-color: rgba(86, 214, 160, .5); color: var(--ok); }
.pl-steps button:focus-visible .n { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- card ---- */
.pl-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-raise); }
.pl-card.is-swap > :not(.pl-nav) { animation: pl-in .45s var(--ease) backwards; }
@keyframes pl-in { from { opacity: 0; transform: translateY(10px); } }
.pl-count { font: 500 11px/1 var(--font-mono); letter-spacing: .16em; color: var(--faint); }
.pl-card h2 { margin: 12px 0 0; font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
.pl-hint { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; } .pl-hint.sm { font-size: 13px; color: var(--faint); }
.pl-hint a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.lbl { display: block; margin: 0 0 12px; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.grp { margin-top: 30px; }
.grp.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 0; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.pl-nav { position: sticky; bottom: 0; z-index: 3; display: flex; justify-content: space-between; gap: 12px; margin: 34px -28px -28px; padding: 18px 28px; border-top: 1px solid var(--line-soft); border-radius: 0 0 20px 20px; background: rgba(15, 17, 24, .92); backdrop-filter: blur(10px); }

/* ---- options ---- */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.opt-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-head + .opt-grid, h2 + .opt-grid, .pl-hint + .opt-grid { margin-top: 22px; }
.opt { position: relative; display: block; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt .box { display: block; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.opt:hover .box { border-color: #4a5164; transform: translateY(-2px); }
.opt input:checked + .box { border-color: var(--accent); background: rgba(138, 147, 255, .08); }
.opt input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt b { display: block; font-size: 15px; font-weight: 600; }
.opt small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.mini { display: flex; gap: 5px; align-items: center; padding: 9px; margin-bottom: 12px; border: 1px solid rgba(127, 127, 127, .25); border-radius: 10px; }
.mini i { width: 15px; height: 15px; border-radius: 50%; }
.opt .fs { display: block; margin-bottom: 8px; font-size: 30px; line-height: 1; }
.opt .fsamp { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--muted); }
.opt .rs { display: block; width: 100%; height: 34px; margin-bottom: 10px; border: 2px solid var(--muted); background: rgba(138, 147, 255, .08); }

.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.tpl { display: grid; gap: 8px; justify-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.tpl:hover { border-color: var(--accent); background: rgba(138, 147, 255, .06); transform: translateY(-2px); }
.tpl .mini { margin: 0; width: 100%; padding: 7px; } .tpl b { font-size: 13px; font-weight: 600; }

.fld { display: grid; gap: 8px; margin-top: 22px; }
.fld > span { font-size: 14px; color: var(--muted); }
.cols2 .fld { margin-top: 22px; }
.fld input, .fld select, .fld textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.fld textarea { resize: vertical; min-height: 84px; }

.seg { display: inline-flex; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 14px; border-radius: 9px; color: var(--muted); font-size: 14px; transition: background .25s, color .25s; }
.seg input:checked + span { background: #1c2133; color: var(--text); box-shadow: inset 0 0 0 1px #363e58; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.seg.sm span { padding: 6px 12px; font-size: 13px; }
.tool { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text); font: 500 13px/1 inherit; cursor: pointer; transition: border-color .25s, background .25s; }
.tool:hover { border-color: #4a5164; background: rgba(255, 255, 255, .03); }
.tool.sm { padding: 7px 12px; }
.tool[aria-pressed="true"] { border-color: var(--accent); background: rgba(138, 147, 255, .12); }
.tool input[type="file"] { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.tool:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- colours ---- */
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.sw { position: relative; display: grid; justify-items: center; gap: 6px; cursor: pointer; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sw .dot { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .25s; }
.sw:hover .dot { transform: scale(1.08); }
.sw input:checked + .dot { box-shadow: 0 0 0 2px var(--bg-raise), 0 0 0 4px var(--accent); }
.sw input:focus-visible + .dot { outline: 2px solid var(--accent); outline-offset: 5px; }
.sw small { font-size: 12px; color: var(--muted); text-align: center; }
.logo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.logo .pl-hint { flex-basis: 100%; margin: 0; }
.lc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lcol { width: 30px; height: 30px; padding: 0; border: 2px solid var(--bg-raise); border-radius: 50%; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform .25s var(--ease); }
.lcol:hover { transform: scale(1.15); }
.chk { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text); }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: 0 0 auto; }
.gbar { height: 16px; margin-top: 14px; border-radius: 999px; border: 1px solid var(--line); transition: background .3s; } .gbar.flat { opacity: .6; }
.adv, .more { margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; }
.adv summary, .more summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; font-size: 14px; color: var(--muted); list-style: none; }
.adv summary::-webkit-details-marker, .more summary::-webkit-details-marker { display: none; }
.adv summary::after, .more summary::after { content: "+"; font: 500 18px/1 var(--font-mono); color: var(--faint); transition: transform .3s var(--ease); }
.adv[open] summary::after, .more[open] summary::after { transform: rotate(45deg); }
.adv summary:hover, .more summary:hover { color: var(--text); }
.adv-in { padding: 4px 16px 18px; display: grid; gap: 18px; }
.clr { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.clr span { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.clr input { width: 44px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.clr code { font: 500 13px var(--font-mono); color: var(--text); text-transform: uppercase; }
.gbox { display: grid; gap: 14px; transition: opacity .3s; } .gbox.off { opacity: .35; pointer-events: none; }
.rng { display: grid; gap: 8px; font-size: 13px; color: var(--muted); } .rng b { color: var(--text); font: 500 13px var(--font-mono); }
.rng input { width: 100%; accent-color: var(--accent); }
.ctr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cc { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }
.cc b { font: 500 12px var(--font-mono); color: var(--text); }
.cc.good { border-color: rgba(86, 214, 160, .4); color: var(--ok); } .cc.mid { border-color: rgba(231, 189, 99, .45); color: var(--warn); } .cc.low { border-color: rgba(240, 120, 140, .5); color: var(--red); }

/* ---- sections ---- */
.ord { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: none; }
.ord li { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255, 255, 255, .02); animation: pl-in .35s var(--ease) backwards; }
.ord .no { font: 500 11px/1 var(--font-mono); color: var(--faint); width: 20px; }
.ord .nm { flex: 1; font-size: 14px; }
.ord li.locked { color: var(--muted); background: transparent; border-style: dashed; padding-block: 12px; }
.mv { display: inline-flex; gap: 4px; }
.mv button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.mv button:hover:not(:disabled) { color: var(--text); border-color: #4a5164; } .mv button:disabled { opacity: .25; cursor: default; }
.mv .x:hover { color: var(--red); border-color: rgba(240, 120, 140, .5); }
.addbar { display: flex; flex-wrap: wrap; gap: 8px; }
.add { padding: 8px 13px; border: 1px dashed #3a4260; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.add:hover { color: var(--text); border-color: var(--accent); background: rgba(138, 147, 255, .07); }
.feats { display: flex; flex-wrap: wrap; gap: 8px; }
.tg { position: relative; }
.tg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tg span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--muted); transition: border-color .25s, background .25s, color .25s; }
.tg span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--faint); border-radius: 50%; transition: background .25s, border-color .25s; }
.tg input:checked + span { border-color: var(--accent); background: rgba(138, 147, 255, .09); color: var(--text); }
.tg input:checked + span::before { border-color: var(--accent); background: var(--accent) center / 8px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1.5 4.2 3.2 6 6.5 2' fill='none' stroke='%2308090c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- summary ---- */
.summary { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.sm-top { display: grid; gap: 2px; } .sm-top b { font-size: 18px; letter-spacing: -.01em; } .sm-top span { font-size: 13px; color: var(--muted); }
.sm-colors { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 8px; }
.sm-sw { display: flex; align-items: flex-end; height: 54px; padding: 8px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.sm-sw code { padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font: 500 11px var(--font-mono); text-transform: uppercase; }
.sm-grad { height: 54px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.sm-row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); } .sm-aa { font-size: 28px; line-height: 1; color: var(--text); }
.sm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--text); }
.sm-chips i { font: 500 10px var(--font-mono); font-style: normal; color: var(--faint); } .sm-chips.ft span { color: var(--muted); border-style: dashed; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.more .acts { margin: 0; padding: 0 16px 16px; }
.more pre { margin: 0; padding: 0 16px 16px; max-height: 300px; overflow: auto; color: var(--muted); font: 12.5px/1.6 var(--font-mono); white-space: pre-wrap; word-break: break-word; }
.lnk { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--faint); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; } .lnk:hover { color: var(--text); }

.pl-toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; max-width: min(92vw, 460px); padding: 12px 18px; border: 1px solid #3a4260; border-radius: 12px; background: #141827; color: var(--text); font-size: 14px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.pl-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- preview column ---- */
.pl-pv { position: sticky; top: 88px; min-width: 0; }
.pl-tools { position: relative; z-index: 8; display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 12px; }
.pv-frame { container-type: inline-size; width: 100%; margin: 0 auto; transition: width .5s var(--ease); }
.pv-frame.phone { width: 340px; max-width: 100%; }

/* ---- the sample website (scoped: all colours and fonts come from the chosen theme) ---- */
.pv { --bg: #0b0d12; --surface: #12151d; --text: #f3f4f8; --muted: #9aa1b2; --line: #232838; --skel: #242a3a; --c1: #8a93ff; --c2: #7fe0b5; --grad: var(--c1); --grad-text: var(--c1); --on1: #0b0d12; --r: 12px; --rb: 12px; --hf: Inter, sans-serif; --bf: Inter, sans-serif;
  border: 1px solid #2a3040; border-radius: 16px; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--bf); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); transition: background .5s, color .5s; }
.pv, .pv * { box-sizing: border-box; transition-property: background-color, background, color, border-color, border-radius, opacity; transition-duration: .45s; }
.pv-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(127, 127, 127, .14); }
.pv-bar > i { width: 9px; height: 9px; border-radius: 50%; background: rgba(127, 127, 127, .5); }
.pv-url { margin-left: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(127, 127, 127, .16); color: var(--muted); font: 500 11px var(--font-mono); }
.pv-page { max-height: 640px; overflow: auto; scrollbar-width: thin; }
.pv a { text-decoration: none; }
.pv-nav { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.pv-brand { font-family: var(--hf); font-size: 17px; font-weight: 700; margin-right: auto; }
.pv-links { display: inline-flex; gap: 8px; } .pv-links i { width: 34px; height: 8px; border-radius: 6px; background: var(--skel); }
.pv-lang { font: 500 11px var(--font-mono); color: var(--muted); } .pv-lang b { color: var(--text); margin-right: 6px; }
.pv-btn { display: inline-flex; align-items: center; padding: 11px 18px; border-radius: var(--rb); background: var(--grad); color: var(--on1); font-weight: 600; font-size: 14px; white-space: nowrap; }
.pv-btn.sm { padding: 8px 14px; font-size: 13px; } .pv-btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.pv-hero { position: relative; overflow: hidden; padding: 54px 22px 50px; }
.pv-hero::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .5s; }
.pv.is-grad .pv-hero::before { opacity: .16; }
.pv-h1 { position: relative; margin: 0 0 16px; max-width: 16ch; font-family: var(--hf); font-size: clamp(26px, 7cqw, 46px); line-height: 1.08; letter-spacing: -.02em; }
.pv-h1 em { font-style: normal; color: var(--c1); }
.pv.is-grad .pv-h1 em { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pv-hero .pv-sk { position: relative; }
.pv-acts { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pv-orb { position: absolute; right: -40px; top: -30px; width: 200px; height: 200px; border-radius: 50%; background: var(--grad); opacity: .35; animation: pv-float 7s ease-in-out infinite alternate; }
@keyframes pv-float { to { transform: translate(-16px, 14px) scale(1.06); } }
.pv-sk { display: block; height: 9px; margin: 9px 0; border-radius: 6px; background: var(--skel); }
.pv-sec { padding: 34px 22px; border-top: 1px solid var(--line); animation: pl-in .5s var(--ease); }
.pv-sec h3 { margin: 0 0 18px; font-family: var(--hf); font-size: 22px; letter-spacing: -.01em; }
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .pv-cards.two { grid-template-columns: repeat(2, 1fr); } .pv-cards.four { grid-template-columns: repeat(4, 1fr); }
.pv-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pv-card b { display: block; margin-bottom: 8px; font-family: var(--hf); font-size: 15px; }
.pv-ico { display: block; width: 34px; height: 34px; margin-bottom: 12px; border-radius: calc(var(--r) * .7); background: var(--grad); }
.pv-tier.is-hot { border-color: var(--c1); box-shadow: 0 0 0 1px var(--c1); }
.pv-price { display: block; width: 46%; height: 22px; margin: 4px 0 12px; border-radius: 6px; background: var(--grad); opacity: .85; } .pv-price.sm { height: 14px; width: 40%; }
.pv-about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: center; }
.pv-img { aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--grad); opacity: .8; }
.pv-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-tile { aspect-ratio: 1; border-radius: var(--r); background: var(--grad); }
.pv-tile.t0 { opacity: .95; } .pv-tile.t1 { opacity: .7; } .pv-tile.t2 { opacity: .5; } .pv-tile.t3 { opacity: .55; } .pv-tile.t4 { opacity: .85; } .pv-tile.t5 { opacity: .65; }
.pv-prod { display: block; aspect-ratio: 1; margin-bottom: 10px; border-radius: calc(var(--r) * .8); background: var(--grad); }
.pv-prod.t1 { opacity: .9; } .pv-prod.t2 { opacity: .65; } .pv-prod.t3 { opacity: .78; } .pv-prod.t4 { opacity: .5; }
.pv-who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .pv-who b { margin: 0; }
.pv-av { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); }
.pv-faq { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 14px; }
.pv-faq em { font-style: normal; color: var(--c1); font-size: 18px; }
.pv-book { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.pv-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pv-cal span { aspect-ratio: 1; border-radius: calc(var(--r) * .5); background: var(--skel); } .pv-cal span.on { background: var(--grad); }
.pv-slots { display: grid; align-content: start; gap: 8px; }
.pv-slots > span { padding: 10px; border: 1px solid var(--line); border-radius: var(--r); text-align: center; font: 500 13px var(--font-mono); color: var(--muted); } .pv-slots > span.on { border-color: var(--c1); color: var(--text); }
.pv-slots .pv-btn { justify-content: center; }
.pv-map { position: relative; height: 150px; border-radius: var(--r); background: var(--grad); opacity: .5; overflow: hidden; }
.pv-pin { position: absolute; left: 52%; top: 42%; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--text); transform: rotate(-45deg); }
.pv-form { display: grid; gap: 10px; max-width: 360px; }
.pv-field { padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--muted); font-size: 14px; }
.pv-form .pv-btn { justify-content: center; }
.pv-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.pv-foot span { width: 30%; } .pv-foot .pv-sk { margin: 0; }
.pv-tg { position: sticky; bottom: 14px; float: right; margin: -44px 14px 14px 0; display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }

/* ---- 3D layers view: every part of the page becomes a slab, exploded along Z; the mouse tilts the stack ---- */
.pv-frame.x3d { perspective: 1500px; padding-top: 120px; }
.pv-frame.x3d .pv { overflow: visible; border: 0; background: transparent; box-shadow: none; }
.pv-frame.x3d .pv-bar, .pv-frame.x3d .pv-tg { display: none; }
.pv-frame.x3d .pv-page { display: grid; height: 440px; max-height: none; overflow: visible; transform-style: preserve-3d; animation: x3d-in 1s var(--ease);
  transform: rotateX(calc(58deg + var(--ty, 0deg))) rotateZ(calc(-32deg + var(--tx, 0deg))) scale(.7); transition: transform .25s ease-out; }
.pv-frame.x3d .pv-layer { grid-area: 1 / 1; align-self: start; position: relative; height: 230px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, .35); transform: translateZ(calc(var(--i, 0) * 38px)); animation: layer-in 1.1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
.pv-frame.x3d .pv-layer::after { content: attr(data-label); position: absolute; left: 14px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: var(--on1); font: 600 12px var(--font-mono); letter-spacing: .04em; }
@keyframes x3d-in { from { transform: rotateX(0) rotateZ(0) scale(1); } }
@keyframes layer-in { from { transform: translateZ(0); opacity: .4; } }
.pv-frame.x3d.phone { width: 300px; }

@container (max-width: 560px) {
  .pv-cards, .pv-cards.four { grid-template-columns: 1fr 1fr; } .pv-cards.two { grid-template-columns: 1fr; }
  .pv-about, .pv-book { grid-template-columns: 1fr; } .pv-links { display: none; }
  .pv-hero { padding: 38px 18px 40px; } .pv-sec { padding: 28px 18px; } .pv-nav { padding: 14px 18px; }
}
@container (max-width: 380px) { .pv-cards, .pv-cards.four { grid-template-columns: 1fr; } .pv-gal { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 900px) {
  .pl-app { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
  .pl-pv { position: sticky; top: 60px; z-index: 6; order: -1; padding: 6px 0 0; background: linear-gradient(var(--bg) 90%, transparent); }
  .pl-tools { position: absolute; bottom: 8px; right: 10px; z-index: 9; margin: 0; }
  .pl-tools .tool { background: rgba(15, 17, 24, .85); backdrop-filter: blur(6px); font-size: 12px; padding: 6px 10px; }
  .pl-tools .seg { display: none; }
  .pl-pv .pv-bar { display: none; }
  .pl-pv .pv-page { max-height: 24vh; }
  .pl-pv .pv-frame.x3d { padding-top: 46px; } .pl-pv .pv-frame.x3d .pv-page { height: 190px; max-height: none; }
  .pv-frame.phone { width: 260px; }
  .grp.cols, .cols2 { grid-template-columns: 1fr; }
  .pl-card { scroll-margin-top: 250px; }
  .pl-nav { margin-inline: -18px; padding-inline: 18px; margin-bottom: -18px; }
}
@media (max-width: 520px) {
  .pl-card { padding: 18px; } .opt-grid { grid-template-columns: 1fr 1fr; } .opt-grid.three { grid-template-columns: 1fr 1fr 1fr; } .pl-hero { padding-top: 44px; }
  .pl-steps .t { display: none; } .pl-steps .on .t { display: block; position: absolute; top: 36px; }
  .pl-progress { margin-bottom: 34px; } .sm-colors { grid-template-columns: 1fr 1fr; } .sm-grad { grid-column: 1 / -1; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .pv-orb, .pl-card *, .pv-sec, .ord li { animation: none !important; } .pv-frame.x3d .pv-page, .pv-frame.x3d .pv-layer { animation: none; transition: none; } }

/* ---- print / save as PDF: only the plan sheet ---- */
.pl-sheet { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #111 !important; }
  .nav, .footer, .pl-hero, #pl-app, .pl-toast, noscript, canvas, .companion-2d, .skip-link { display: none !important; }
  .pl-sheet { display: block; color: #111; font-family: Inter, system-ui, sans-serif; }
  .pl-sheet h1 { margin: 0 0 14px; font-size: 26px; }
  .pl-sheet .summary { background: #f6f7fb; border-color: #dfe2ec; color: #111; }
  .pl-sheet .sm-top span, .pl-sheet .sm-row, .pl-sheet .sm-chips span { color: #444; } .pl-sheet .sm-aa, .pl-sheet .sm-top b { color: #111; }
  .pl-sheet pre { margin: 14px 0; padding: 12px; border: 1px solid #dfe2ec; border-radius: 8px; white-space: pre-wrap; word-break: break-word; font: 11px/1.5 ui-monospace, monospace; color: #222; }
  .pl-sheet .pv-frame { width: 100%; break-inside: avoid; } .pl-sheet .pv-page { max-height: none; overflow: visible; }
  .pl-sheet, .pl-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
