/* Styles for the scanned mini page (.lp). Loaded by the hosted page and by the builder preview. */
.lp {
  --ink: #16161a; --muted: #6b6b76; --line: #e7e5df; --surface: #ffffff; --bg: #f6f5f1;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); min-height: 100%;
  font-size: 15px; line-height: 1.45; text-align: center; overflow-wrap: anywhere;
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp :where(a) { color: inherit; text-decoration: none; }
.lp h1 { font-size: 22px; line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.lp h1.dark { color: var(--ink); }
.lp small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.lp .ic { flex: none; }

.lp-hero { background: var(--p); color: var(--on-p); padding: 40px 24px 28px; display: grid; justify-items: center; gap: 10px; }
.lp-hero.fade { background: linear-gradient(180deg, var(--p) 55%, var(--bg)); padding-bottom: 44px; }
.lp-hero.fade h1, .lp-hero.fade .lp-sub { text-shadow: 0 1px 12px color-mix(in srgb, var(--p) 60%, transparent); }
.lp-hero.full { padding-bottom: 12px; }
.lp-hero.tight { padding: 28px 28px 0; background: linear-gradient(180deg, var(--p) 70%, var(--bg) 70%); }
.lp-links, .lp-links ~ * { position: relative; }
.lp-sub { margin: 0; opacity: .86; max-width: 34ch; }
.lp-eyebrow { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.lp-text { margin: 0; color: var(--muted); }
.lp-text.left { text-align: left; }
.lp-muted { margin: 0; color: var(--muted); font-size: 13px; }

.lp-avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 3px solid color-mix(in srgb, var(--on-p) 85%, transparent); background: #fff; }
.lp-avatar.sq { border-radius: 24px; }
.lp-avatar.ph { display: grid; place-items: center; font-size: 34px; font-weight: 700; background: color-mix(in srgb, var(--on-p) 16%, var(--p)); color: var(--on-p); }
.lp-cover { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lp-cover.in, .lp-hero.tight .lp-cover { border-radius: 14px; aspect-ratio: 1 / 1; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.lp-cover.in { aspect-ratio: 16 / 10; margin-top: 6px; }
.lp-cover.ph { display: grid; place-items: center; color: color-mix(in srgb, var(--on-p) 70%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--p) 78%, #fff), color-mix(in srgb, var(--p) 70%, #000)); }
.lp-bigic { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--on-p) 14%, transparent); }
.lp-bigic.dark { background: #ecebe6; color: var(--ink); margin: 0 auto; }

.lp-body { max-width: 480px; margin: 0 auto; padding: 20px 18px 40px; display: grid; gap: 14px; text-align: left; }
.lp-body.center { text-align: center; justify-items: center; }
.lp-body.on-hero { background: var(--p); max-width: none; min-height: 60vh; align-content: start; justify-items: center; }
.lp-links { width: 100%; max-width: 440px; display: grid; gap: 10px; }
.lp-h2 { font-size: 16px; margin: 8px 0 -4px; font-weight: 600; }

.lp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 0; background: var(--s); color: var(--on-s); font: inherit; font-weight: 600; cursor: pointer; text-align: center; }
.lp-btn.wide { width: 100%; }
.lp-btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.lp-btn.link { background: color-mix(in srgb, var(--on-p) 12%, transparent); color: var(--on-p); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-p) 28%, transparent); }
.lp-btn:hover { filter: brightness(1.08); }
.lp a:focus-visible, .lp button:focus-visible, .lp summary:focus-visible { outline: 2px solid var(--s); outline-offset: 2px; }

.lp-quick { display: flex; justify-content: center; gap: 12px; margin-top: -42px; }
.lp-round { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }

.lp-card { background: var(--surface); border-radius: 14px; padding: 6px 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.lp-card h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 12px 0 2px; font-weight: 600; }
.lp-card p { margin: 10px 0; }
.lp-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lp-row:last-child { border-bottom: 0; }
.lp-row-ic { color: var(--muted); display: grid; }
.lp-row b { font-weight: 600; display: block; }
.lp-row b.mono, .lp-code b { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.lp-kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lp-kv:last-child { border-bottom: 0; }
.lp-kv span { color: var(--muted); }

.lp-socials { display: grid; gap: 8px; }
.lp-social { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.lp-social > span:nth-child(2) { flex: 1; }
.lp-social b { display: block; font-weight: 600; }
.lp-social > .ic { color: var(--muted); }
.lp-badge { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff !important; font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.lp-badge.big { width: 64px; height: 64px; border-radius: 50%; font-size: 34px; margin-top: -52px; border: 4px solid var(--bg); position: relative; }
.lp-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 8px; }
.lp-badges .lp-badge { border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--on-p) 30%, transparent); }

.lp-doc { background: var(--surface); border: 1.5px dashed #cfcdc5; border-radius: 14px; padding: 28px 16px; display: grid; justify-items: center; gap: 8px; color: var(--muted); }
.lp-doc b { color: var(--ink); }
.lp-video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #111; display: block; }
.lp-video.ph, .lp-audio.ph { display: grid; place-items: center; color: #fff; }
.lp-audio { width: 100%; }
.lp-audio.ph { height: 54px; border-radius: 27px; background: var(--p); color: var(--on-p); grid-template-columns: 1fr auto; padding: 0 16px 0 20px; gap: 12px; }
.lp-audio.ph i { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--on-p) 35%, transparent); }
.lp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-grid img, .lp-grid .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.lp-grid .ph { display: grid; place-items: center; color: #a3a199; background: #e9e7e0; }

.lp-menu { background: var(--surface); border-radius: 14px; padding: 0 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.lp-menu summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-weight: 600; cursor: pointer; }
.lp-menu summary::-webkit-details-marker { display: none; }
.lp-menu[open] summary .ic { transform: rotate(180deg); }
.lp-dish { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.lp-dish b { font-weight: 600; }
.lp-dish > span { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp-terms { margin: 0; padding: 0 0 14px; color: var(--muted); font-size: 13px; }

.lp-stores { display: grid; gap: 8px; margin: 12px 0; }
.lp-store { background: #111; color: #fff !important; border-radius: 12px; padding: 8px 16px; text-align: center; }
.lp-store small { color: #bbb; font-size: 10px; }
.lp-store b { font-size: 16px; }

.lp-offer { font-size: 34px; font-weight: 800; letter-spacing: -.02em; padding: 4px 16px; border-radius: 12px; background: var(--s); color: var(--on-s); }
.lp-coupon { background: var(--surface); border-radius: 14px; padding: 16px; display: grid; gap: 10px; text-align: center; border: 1.5px dashed #cfcdc5; }
.lp-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border-radius: 10px; padding: 10px 12px 10px 16px; }
.lp-code[hidden] { display: none; }
.lp-code b { font-size: 18px; }
.lp-code button { display: flex; align-items: center; gap: 6px; border: 0; background: var(--ink); color: #fff; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; cursor: pointer; }

.lp-redirect { padding: 72px 24px; display: grid; gap: 14px; justify-items: center; }
.lp-url { margin: 0; color: var(--muted); font-size: 14px; max-width: 30ch; }

/* ================= Bio page blocks ================= */
/* Classic bio pages sit on the primary colour: text follows it, cards keep dark ink */
.lp-t-links:not(.lp-mono) .lp-body.on-hero { --ink: var(--on-p); --muted: color-mix(in srgb, var(--on-p) 66%, var(--p)); color: var(--ink); }
.lp-t-links:not(.lp-mono) .lp-body.on-hero :is(.lp-card, .lp-social) { --ink: #16161a; --muted: #6b6b76; --line: #e7e5df; color: var(--ink); }
.lp-blocks { gap: 10px; }
.lp-t-links .lp-badges { padding: 0 0 6px; }
.lp-t-links .lp-hero h1 { display: inline-flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }

.lp-tick { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--s); color: var(--on-s); flex: none; }
.lp-tick .ic { stroke-width: 3; }
.lp-tagline { margin: -4px 0 0; font-weight: 600; font-size: 14px; opacity: .92; }
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 360px; }
.lp-chips span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px;
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent); background: color-mix(in srgb, currentColor 8%, transparent); }
.lp-chips .ic { color: var(--s); }

.lp-sec { text-align: center; margin: 12px 0 0; font-size: 14px; letter-spacing: .04em; color: var(--ink); }
.lp-gap { height: 8px; }
.lp-btn.save { margin-bottom: 4px; }

.lp-feat { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; text-align: left; overflow: hidden; }
.lp-feat-img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; display: block; }
.lp-feat:not(:has(img)) { grid-template-columns: 1fr auto; padding-left: 16px; }
.lp-feat-body b { display: block; font-weight: 700; }
.lp-feat-body small { margin-top: 2px; }
.lp-feat > .ic { color: var(--muted); }

.lp-book { gap: 8px; }
.lp-embed { width: 100%; height: 620px; border: 0; border-radius: 14px; background: #fff; display: block; }

.lp-file { text-align: left; }
.lp-fic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--s); color: var(--on-s); }
.lp-file > .ic { color: var(--muted); }

.lp-quote { margin: 0; padding: 16px 18px; text-align: left; }
.lp-quote blockquote { margin: 0 0 10px; font-size: 15px; line-height: 1.5; }
.lp-quote figcaption b { display: block; font-weight: 700; font-size: 13px; }

.lp-form { display: grid; gap: 10px; padding: 16px; text-align: left; }
.lp-form-t { font-size: 16px; font-weight: 700; }
.lp-form > small { margin-top: -6px; }
.lp-input { width: 100%; box-sizing: border-box; font: inherit; color: var(--ink); padding: 11px 12px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.lp-input::placeholder { color: var(--muted); }
.lp-input:focus { outline: 2px solid var(--s); outline-offset: 1px; }
textarea.lp-input { resize: vertical; min-height: 90px; }
.lp-inline { display: flex; gap: 8px; }
.lp-inline .lp-input { flex: 1; min-width: 0; }
.lp-inline .lp-btn { flex: none; }
.lp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lp-form-msg { margin: 0; font-size: 13px; font-weight: 600; min-height: 0; }
.lp-form-msg:empty { display: none; }
.lp-form-msg.bad { color: #d64545; }
.lp-form .lp-btn:disabled { opacity: .6; cursor: default; }

/* ================= Templates =================
   "Classic" is the base above. Every other template is a class on the page root.
   .lp-mono = the whole page sits on the primary colour and text adapts to it. */
.lp-mono {
  --bg: var(--p); --ink: var(--on-p);
  --muted: color-mix(in srgb, var(--on-p) 64%, var(--p));
  --line: color-mix(in srgb, var(--on-p) 15%, var(--p));
  --surface: color-mix(in srgb, var(--on-p) 7%, var(--p));
}
.lp-mono .lp-hero, .lp-mono .lp-hero.fade, .lp-mono .lp-hero.tight, .lp-mono .lp-body.on-hero { background: none; }
.lp-mono .lp-hero.fade h1, .lp-mono .lp-hero.fade .lp-sub { text-shadow: none; }
.lp-mono .lp-card, .lp-mono .lp-social, .lp-mono .lp-menu { box-shadow: none; border: 1px solid var(--line); }
.lp-mono .lp-round { box-shadow: none; border: 1px solid var(--line); }
.lp-mono .lp-doc, .lp-mono .lp-coupon { border-color: var(--line); }
.lp-mono .lp-bigic.dark, .lp-mono .lp-grid .ph { background: var(--surface); color: var(--muted); }
.lp-mono .lp-code button { color: var(--bg); }
.lp-mono .lp-store { box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 25%, transparent); }
.lp-mono .lp-avatar { border-color: var(--line); }
.lp-mono .lp-badge.big { border-color: var(--bg); }

/* templates whose cards are always white, whatever the page colour */
.lp-tpl-bold, .lp-tpl-soft, .lp-tpl-frost { --surface: #ffffff; }
:is(.lp-tpl-bold, .lp-tpl-soft, .lp-tpl-frost) :is(.lp-card, .lp-social, .lp-menu, .lp-coupon, .lp-doc, .lp-round, .lp-code) {
  --ink: #1d1d29; --muted: #6b6b7c; --line: #e9e9f1; color: var(--ink);
}
.lp :is(.lp-card, .lp-social, .lp-menu, .lp-coupon, .lp-doc) small { color: var(--muted); }
.lp-serif h1, .lp-serif .lp-h2, .lp-serif .lp-sub, .lp-serif .lp-avatar.ph, .lp-serif .lp-offer {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; font-weight: 500;
}

/* Midnight: dark with a glowing accent */
.lp-tpl-midnight .lp-avatar { border: 2px solid var(--s); }
.lp-tpl-midnight .lp-row-ic, .lp-tpl-midnight .lp-social > .ic { color: var(--s); }

/* Cobalt: black and blue */
.lp.lp-tpl-cobalt {
  --surface: color-mix(in srgb, var(--s) 10%, var(--p)); --line: color-mix(in srgb, var(--s) 30%, var(--p));
  background: radial-gradient(130% 46% at 50% 0, color-mix(in srgb, var(--s) 38%, var(--p)), var(--p) 72%) no-repeat var(--p);
}
.lp-tpl-cobalt .lp-avatar { border: 2px solid var(--s); box-shadow: 0 0 0 6px color-mix(in srgb, var(--s) 22%, transparent), 0 0 34px color-mix(in srgb, var(--s) 60%, transparent); }
.lp-tpl-cobalt .lp-btn:not(.ghost):not(.link) { background: linear-gradient(135deg, var(--s), color-mix(in srgb, var(--s) 62%, #7fe0ff)); box-shadow: 0 10px 26px color-mix(in srgb, var(--s) 45%, transparent); }
.lp-tpl-cobalt .lp-row-ic, .lp-tpl-cobalt .lp-social > .ic, .lp-tpl-cobalt .lp-round { color: color-mix(in srgb, var(--s) 70%, #fff); }
.lp-tpl-cobalt .lp-btn.link { box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }

/* Luxe: black and gold, hairlines */
.lp-tpl-luxe .lp-avatar { border: 1px solid var(--s); }
.lp-tpl-luxe .lp-avatar.ph { background: none; color: var(--s); }
.lp-tpl-luxe .lp-sub, .lp-tpl-luxe .lp-eyebrow { color: var(--s); opacity: 1; letter-spacing: .06em; }
.lp-tpl-luxe .lp-btn { background: none; color: var(--s); box-shadow: inset 0 0 0 1px var(--s); border-radius: 0; letter-spacing: .08em; text-transform: uppercase; font-size: .86em; font-weight: 500; }
.lp-tpl-luxe .lp-btn:hover { background: var(--s); color: var(--on-s); filter: none; }
.lp-tpl-luxe :is(.lp-card, .lp-social, .lp-menu, .lp-coupon, .lp-doc) { background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
.lp-tpl-luxe .lp-round { background: none; border-color: var(--s); color: var(--s); }
.lp-tpl-luxe .lp-row-ic, .lp-tpl-luxe .lp-social > .ic { color: var(--s); }
.lp-tpl-luxe .lp-badge { border-radius: 0; }

/* Aurora: gradient with frosted pills */
.lp.lp-tpl-aurora {
  --on-p: #ffffff !important; --ink: #ffffff; --muted: rgba(255, 255, 255, .86); --line: rgba(255, 255, 255, .42); --surface: rgba(255, 255, 255, .2);
  background: linear-gradient(165deg, var(--p), color-mix(in oklab, var(--p) 45%, var(--s)) 52%, var(--s));
}
.lp-tpl-aurora .lp-btn { border-radius: 99px; }
.lp-tpl-aurora .lp-btn:not(.ghost):not(.link) { background: #fff; color: color-mix(in srgb, var(--s) 72%, #000); }
.lp-tpl-aurora .lp-btn.link, .lp-tpl-aurora .lp-btn.ghost { background: var(--surface); color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.lp-tpl-aurora :is(.lp-social, .lp-card, .lp-menu) { border-radius: 22px; }
.lp-tpl-aurora .lp-avatar { border-color: #fff; }
.lp-tpl-aurora .lp-avatar.ph { background: #fff; color: color-mix(in srgb, var(--s) 72%, #000); }
.lp-tpl-aurora .lp-code { background: rgba(255, 255, 255, .22); }
.lp-tpl-aurora .lp-code button { background: #fff; color: color-mix(in srgb, var(--s) 72%, #000); }

/* Bold: bright, thick outlines, hard shadows */
.lp.lp-tpl-bold { --ink: #111111; --muted: #33332f; --line: #111111; }
.lp-tpl-bold :is(.lp-card, .lp-social, .lp-menu, .lp-coupon, .lp-doc) { border: 2px solid #111; box-shadow: 4px 4px 0 #111; border-radius: 8px; --line: #dcdcdc; }
.lp-tpl-bold .lp-btn, .lp-tpl-bold .lp-btn.link, .lp-tpl-bold .lp-btn.ghost { border: 2px solid #111; box-shadow: 4px 4px 0 #111; border-radius: 8px; }
.lp-tpl-bold .lp-btn.link, .lp-tpl-bold .lp-btn.ghost { background: #fff; color: #111; }
.lp-tpl-bold .lp-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #111; }
.lp-tpl-bold .lp-avatar { border: 2px solid #111; box-shadow: 4px 4px 0 #111; }
.lp-tpl-bold .lp-avatar.ph { background: #fff; color: #111; }
.lp-tpl-bold .lp-round { border: 2px solid #111; box-shadow: 3px 3px 0 #111; }
.lp-tpl-bold .lp-badge { border: 2px solid #111; border-radius: 8px; }
.lp-tpl-bold h1 { font-weight: 800; }
.lp-tpl-bold .lp-socials, .lp-tpl-bold .lp-links { gap: 12px; }

/* Editorial: paper, serif, thin rules */
.lp-tpl-editorial .lp-avatar { border-radius: 0; border: 0; }
.lp-tpl-editorial .lp-avatar.ph { background: var(--ink); color: var(--bg); }
.lp-tpl-editorial .lp-sub { font-style: italic; }
.lp-tpl-editorial .lp-btn { border-radius: 0; }
.lp-tpl-editorial .lp-btn.link { background: none; box-shadow: none; border-bottom: 1px solid var(--ink); justify-content: space-between; padding-left: 0; padding-right: 0; }
.lp-tpl-editorial .lp-btn.link::after { content: "\2197"; }
.lp-tpl-editorial :is(.lp-card, .lp-social, .lp-menu, .lp-coupon, .lp-doc) { background: none; border: 0; border-radius: 0; border-top: 1px solid var(--ink); padding-left: 0; padding-right: 0; }
.lp-tpl-editorial .lp-socials { gap: 0; }
.lp-tpl-editorial .lp-socials .lp-social:last-child { border-bottom: 1px solid var(--ink); }
.lp-tpl-editorial .lp-round { background: none; border-color: var(--ink); border-radius: 0; }
.lp-tpl-editorial .lp-badge { border-radius: 0; }
.lp-tpl-editorial .lp-body { gap: 18px; }

/* Minimal: white, quiet */
.lp-tpl-minimal .lp-btn { border-radius: 99px; }
.lp-tpl-minimal .lp-btn.link { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.lp-tpl-minimal :is(.lp-card, .lp-social, .lp-menu) { background: none; }
.lp-tpl-minimal .lp-avatar { border: 1px solid var(--line); }
.lp-tpl-minimal .lp-hero { padding-bottom: 20px; }

/* Line: white with crisp outlines */
.lp.lp-tpl-line { --line: var(--ink); --surface: var(--p); }
.lp-tpl-line :is(.lp-card, .lp-social, .lp-menu, .lp-coupon, .lp-doc) { border: 1.5px solid var(--ink); border-radius: 18px; }
.lp-tpl-line .lp-card .lp-row, .lp-tpl-line .lp-kv, .lp-tpl-line .lp-dish { border-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.lp-tpl-line .lp-btn { border-radius: 18px; }
.lp-tpl-line .lp-btn.link, .lp-tpl-line .lp-btn.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.lp-tpl-line .lp-btn.link:hover, .lp-tpl-line .lp-btn.ghost:hover { background: var(--ink); color: var(--bg); filter: none; }
.lp-tpl-line .lp-avatar, .lp-tpl-line .lp-round { border: 1.5px solid var(--ink); }
.lp-tpl-line .lp-avatar.ph { background: none; }

/* Frost: soft white cards, floating shadows */
.lp-tpl-frost :is(.lp-card, .lp-social, .lp-menu, .lp-coupon, .lp-doc) { border: 0; border-radius: 18px; box-shadow: 0 10px 30px color-mix(in srgb, var(--s) 13%, transparent), 0 1px 2px rgba(20, 30, 60, .05); }
.lp-tpl-frost .lp-round { border: 0; box-shadow: 0 8px 20px color-mix(in srgb, var(--s) 18%, transparent); color: var(--s); }
.lp-tpl-frost .lp-avatar { border: 4px solid #fff; box-shadow: 0 12px 30px color-mix(in srgb, var(--s) 22%, transparent); }
.lp-tpl-frost .lp-avatar.ph { background: #fff; color: var(--s); }
.lp-tpl-frost .lp-btn { border-radius: 14px; }
.lp-tpl-frost .lp-btn:not(.ghost):not(.link) { box-shadow: 0 10px 22px color-mix(in srgb, var(--s) 32%, transparent); }
.lp-tpl-frost .lp-btn.link { background: #fff; color: #1d1d29; box-shadow: 0 6px 18px color-mix(in srgb, var(--s) 12%, transparent); }
.lp-tpl-frost .lp-row-ic, .lp-tpl-frost .lp-social > .ic { color: var(--s); }

/* Soft: pastel, very rounded */
.lp-tpl-soft :is(.lp-card, .lp-social, .lp-menu, .lp-coupon, .lp-doc) { border: 0; border-radius: 24px; }
.lp-tpl-soft .lp-btn { border-radius: 20px; }
.lp-tpl-soft .lp-btn.link { background: #fff; color: #1d1d29; box-shadow: none; }
.lp-tpl-soft .lp-round { border: 0; border-radius: 16px; color: var(--s); }
.lp-tpl-soft .lp-avatar { border: 4px solid #fff; }
.lp-tpl-soft .lp-avatar.ph { background: #fff; color: var(--s); }
.lp-tpl-soft .lp-badge { border-radius: 14px; }
.lp-tpl-soft .lp-row-ic, .lp-tpl-soft .lp-social > .ic { color: var(--s); }

/* Glass (light) and Glass night: blurred colour behind frosted panels */
.lp.lp-tpl-glass, .lp.lp-tpl-glassnight { position: relative; isolation: isolate; overflow: hidden; }
.lp.lp-tpl-glass::before, .lp.lp-tpl-glassnight::before {
  content: ""; position: absolute; inset: -10% -30%; z-index: -1; filter: blur(46px);
  background:
    radial-gradient(38% 26% at 22% 12%, var(--s), transparent 70%),
    radial-gradient(34% 24% at 84% 30%, color-mix(in oklab, var(--s) 45%, #ff7ac8), transparent 70%),
    radial-gradient(40% 26% at 30% 62%, color-mix(in oklab, var(--s) 40%, #ffc46b), transparent 70%),
    radial-gradient(40% 28% at 80% 88%, color-mix(in oklab, var(--s) 70%, #6be4ff), transparent 70%);
}
.lp.lp-tpl-glass { --surface: rgba(255, 255, 255, .5); --line: rgba(255, 255, 255, .8); --muted: color-mix(in srgb, var(--on-p) 68%, var(--p)); }
.lp.lp-tpl-glass::before { opacity: .55; }
.lp.lp-tpl-glassnight { --surface: rgba(255, 255, 255, .09); --line: rgba(255, 255, 255, .2); }
.lp.lp-tpl-glassnight::before { opacity: .6; }
:is(.lp-tpl-glass, .lp-tpl-glassnight) :is(.lp-card, .lp-social, .lp-menu, .lp-coupon, .lp-doc, .lp-round, .lp-btn.link, .lp-btn.ghost, .lp-code) {
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 34px rgba(10, 15, 40, .12);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}
:is(.lp-tpl-glass, .lp-tpl-glassnight) :is(.lp-card, .lp-social, .lp-menu, .lp-coupon, .lp-doc) { border-radius: 22px; }
:is(.lp-tpl-glass, .lp-tpl-glassnight) .lp-btn { border-radius: 16px; }
:is(.lp-tpl-glass, .lp-tpl-glassnight) .lp-btn.link, :is(.lp-tpl-glass, .lp-tpl-glassnight) .lp-btn.ghost { color: var(--ink); }
:is(.lp-tpl-glass, .lp-tpl-glassnight) .lp-btn:not(.ghost):not(.link) { box-shadow: 0 12px 28px color-mix(in srgb, var(--s) 40%, transparent); }
:is(.lp-tpl-glass, .lp-tpl-glassnight) .lp-avatar { border: 3px solid var(--line); box-shadow: 0 14px 34px rgba(10, 15, 40, .2); }
:is(.lp-tpl-glass, .lp-tpl-glassnight) .lp-avatar.ph { background: var(--surface); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
:is(.lp-tpl-glass, .lp-tpl-glassnight) .lp-card .lp-row, :is(.lp-tpl-glass, .lp-tpl-glassnight) .lp-kv, :is(.lp-tpl-glass, .lp-tpl-glassnight) .lp-dish { border-color: color-mix(in srgb, var(--ink) 12%, transparent); }

/* ================= Button animations ================= */
@keyframes lp-wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-2.2deg); } 40% { transform: rotate(2.2deg); } 60% { transform: rotate(-1.4deg); } 80% { transform: rotate(1.4deg); } }
@keyframes lp-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes lp-shine { from { transform: translateX(-130%) skewX(-20deg); } to { transform: translateX(330%) skewX(-20deg); } }
.lp :is(.lp-btn, .lp-social, .lp-round) { transition: transform .18s ease, filter .18s ease, background-color .18s ease, color .18s ease; }
.lp-anim-wiggle :is(.lp-btn, .lp-social):is(:hover, :active, :focus-visible) { animation: lp-wiggle .45s ease; }
.lp-anim-wiggle .lp-round:is(:hover, :active) { animation: lp-wiggle .45s ease; }
.lp-anim-lift :is(.lp-btn, .lp-social, .lp-round):is(:hover, :focus-visible) { transform: translateY(-3px); }
.lp-anim-lift :is(.lp-btn, .lp-social, .lp-round):active { transform: scale(.97); }
.lp-anim-pulse .lp-btn.wide:not(.ghost) { animation: lp-pulse 2.4s ease-in-out infinite; }
.lp-anim-pulse :is(.lp-btn, .lp-social):active { transform: scale(.97); }
.lp-anim-shine :is(.lp-btn, .lp-social) { position: relative; overflow: hidden; }
.lp-anim-shine :is(.lp-btn, .lp-social)::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-130%) skewX(-20deg); pointer-events: none; }
.lp-anim-shine :is(.lp-btn, .lp-social):is(:hover, :active)::before { animation: lp-shine .7s ease; }
.lp-anim-shine .lp-btn.wide:not(.ghost)::before { animation: lp-shine 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .lp *, .lp *::before { animation: none !important; transition: none !important; } }

/* Basic: white with soft floating pills */
.lp-tpl-basic .lp-btn { border-radius: 99px; }
.lp-tpl-basic .lp-btn.link, .lp-tpl-basic .lp-btn.ghost { background: #fff; color: #1d1d29; box-shadow: 0 6px 20px rgba(20, 20, 40, .09), 0 1px 2px rgba(20, 20, 40, .06); }
.lp-tpl-basic :is(.lp-card, .lp-social, .lp-menu) { background: #fff; border: 0; border-radius: 22px; box-shadow: 0 6px 20px rgba(20, 20, 40, .08), 0 1px 2px rgba(20, 20, 40, .05); }
.lp-tpl-basic .lp-round { border: 0; box-shadow: 0 6px 18px rgba(20, 20, 40, .1); }
.lp-tpl-basic .lp-avatar { border: 0; box-shadow: 0 8px 24px rgba(20, 20, 40, .12); }
.lp-tpl-basic .lp-hero { padding-bottom: 20px; }

/* Glass: pills everywhere, warm wash behind */
.lp.lp-tpl-glass { background: linear-gradient(180deg, var(--p), color-mix(in oklab, var(--p) 55%, var(--s))); }
:is(.lp-tpl-glass, .lp-tpl-glassnight) :is(.lp-btn, .lp-social) { border-radius: 99px; }
:is(.lp-tpl-glass, .lp-tpl-glassnight) .lp-social { padding-left: 12px; }
:is(.lp-tpl-glass, .lp-tpl-glassnight) .lp-social .lp-badge { border-radius: 50%; }

/* Prism: a "live" template whose colours drift slowly */
@keyframes lp-hue { to { filter: hue-rotate(360deg); } }
.lp.lp-tpl-prism { position: relative; isolation: isolate; }
.lp.lp-tpl-prism::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--p); animation: lp-hue 16s linear infinite; }
.lp.lp-tpl-prism { background: none; }
.lp-tpl-prism .lp-btn { border-radius: 99px; }
.lp-tpl-prism .lp-btn, .lp-tpl-prism .lp-offer { animation: lp-hue 16s linear infinite; }
.lp-tpl-prism .lp-btn.link, .lp-tpl-prism .lp-btn.ghost { background: var(--s); color: var(--on-s); box-shadow: none; }
.lp-tpl-prism :is(.lp-card, .lp-social, .lp-menu) { background: rgba(255, 255, 255, .55); border: 0; border-radius: 22px; }
.lp-tpl-prism .lp-avatar { border: 3px solid #fff; }

/* ================= Gold and black: Gilded and Deco ================= */
/* shared: monochrome gold social badges */
:is(.lp-tpl-gilded, .lp-tpl-deco) .lp-badge { background: var(--gold, var(--s)) !important; }
:is(.lp-tpl-gilded, .lp-tpl-deco) .lp-badge svg [fill="#fff"] { fill: #1a1408; }
:is(.lp-tpl-gilded, .lp-tpl-deco) .lp-badge svg [stroke="#fff"] { stroke: #1a1408; }
:is(.lp-tpl-gilded, .lp-tpl-deco) :is(.lp-row-ic, .lp-social > .ic) { color: var(--s); }

/* Gilded: metallic gold gradients on black */
.lp.lp-tpl-gilded {
  --gold: linear-gradient(135deg, #f8e9ae 0%, var(--s) 38%, #8f6d22 68%, #e8d184 100%);
  --surface: color-mix(in srgb, var(--s) 5%, var(--p)); --line: color-mix(in srgb, var(--s) 26%, var(--p));
  --muted: color-mix(in srgb, var(--s) 45%, #a8a39a);
  background: radial-gradient(120% 42% at 50% 0, color-mix(in srgb, var(--s) 24%, var(--p)), var(--p) 72%) no-repeat var(--p);
}
.lp-tpl-gilded h1 { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .01em; }
.lp-tpl-gilded .lp-sub, .lp-tpl-gilded .lp-eyebrow { color: color-mix(in srgb, var(--s) 78%, #fff); opacity: 1; text-transform: uppercase; letter-spacing: .14em; font-size: .78em; }
.lp-tpl-gilded .lp-avatar { border: 0; padding: 3px; background: var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--s) 12%, transparent), 0 14px 40px color-mix(in srgb, var(--s) 28%, transparent); }
.lp-tpl-gilded .lp-avatar.ph { color: #1a1408; }
.lp-tpl-gilded .lp-btn:not(.ghost):not(.link) { background: var(--gold); color: #1a1408; text-transform: uppercase; letter-spacing: .08em; font-size: .88em; box-shadow: 0 10px 26px color-mix(in srgb, var(--s) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .55); }
.lp-tpl-gilded :is(.lp-card, .lp-social, .lp-menu, .lp-coupon, .lp-doc, .lp-round, .lp-btn.link, .lp-btn.ghost, .lp-code) {
  border: 1px solid transparent; box-shadow: none;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gold) border-box;
}
.lp-tpl-gilded :is(.lp-btn.link, .lp-btn.ghost) { color: color-mix(in srgb, var(--s) 82%, #fff); }
.lp-tpl-gilded .lp-round { color: var(--s); }
.lp-tpl-gilded .lp-offer { background: var(--gold); color: #1a1408; }
.lp-tpl-gilded .lp-code button { background: var(--gold); color: #1a1408; }

/* Deco: art deco frame, arches and diamonds */
.lp.lp-tpl-deco {
  --surface: transparent; --line: color-mix(in srgb, var(--s) 40%, var(--p)); --ink: #f3ead3;
  --muted: color-mix(in srgb, var(--s) 55%, #9d968a);
  background-color: var(--p);
  background-image:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--s) 7%, transparent) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--s) 7%, transparent) 0 1px, transparent 1px 16px);
}
.lp.lp-tpl-deco .lp-hero {
  margin: 18px 18px 6px; padding: 30px 18px 22px; border: 1px solid var(--s);
  outline: 1px solid color-mix(in srgb, var(--s) 55%, transparent); outline-offset: 5px; background: var(--p);
}
.lp-tpl-deco .lp-hero::after {
  content: "\25C6"; color: var(--s); font-size: 10px; line-height: 1; width: 150px; text-align: center; margin-top: 4px;
  background: linear-gradient(var(--s), var(--s)) left center / 60px 1px no-repeat, linear-gradient(var(--s), var(--s)) right center / 60px 1px no-repeat;
}
.lp-tpl-deco h1 { color: #f3ead3; text-transform: uppercase; letter-spacing: .12em; font-size: 20px; }
.lp-tpl-deco .lp-sub, .lp-tpl-deco .lp-eyebrow { color: var(--s); opacity: 1; text-transform: uppercase; letter-spacing: .16em; font-size: .74em; }
.lp-tpl-deco .lp-avatar { border-radius: 999px 999px 6px 6px; border: 1px solid var(--s); outline: 1px solid color-mix(in srgb, var(--s) 50%, transparent); outline-offset: 4px; }
.lp-tpl-deco .lp-avatar.ph { background: none; color: var(--s); }
.lp-tpl-deco .lp-quick { margin-top: 6px; gap: 24px; }
.lp-tpl-deco .lp-round { width: 40px; height: 40px; border-radius: 0; background: none; border: 1px solid var(--s); color: var(--s); transform: rotate(45deg) !important; animation: none !important; }
.lp-tpl-deco .lp-round > svg { transform: rotate(-45deg); }
.lp-tpl-deco .lp-round:hover { background: var(--s); color: var(--p); }
.lp-tpl-deco .lp-btn { border-radius: 0; text-transform: uppercase; letter-spacing: .16em; font-size: .8em; }
.lp-tpl-deco .lp-btn:not(.ghost):not(.link) { background: var(--s); color: var(--on-s); box-shadow: inset 0 0 0 3px var(--s), inset 0 0 0 4px var(--p); }
.lp-tpl-deco :is(.lp-btn.link, .lp-btn.ghost) { background: none; color: var(--s); box-shadow: inset 0 0 0 1px var(--s), inset 0 0 0 4px var(--p), inset 0 0 0 5px color-mix(in srgb, var(--s) 50%, transparent); }
.lp-tpl-deco :is(.lp-btn.link, .lp-btn.ghost):hover { background: var(--s); color: var(--on-s); filter: none; }
.lp-tpl-deco :is(.lp-card, .lp-menu, .lp-coupon, .lp-doc) { background: none; border: 0; border-radius: 0; border-top: 1px solid var(--s); border-bottom: 1px solid var(--s); box-shadow: none; padding-left: 2px; padding-right: 2px; }
.lp-tpl-deco .lp-card h3 { color: var(--s); letter-spacing: .16em; }
.lp-tpl-deco :is(.lp-card .lp-row, .lp-kv, .lp-dish) { border-bottom-color: color-mix(in srgb, var(--s) 40%, transparent); border-bottom-style: dotted; }
.lp-tpl-deco .lp-dish { border-top: 0; border-bottom-width: 1px; }
.lp-tpl-deco .lp-socials { gap: 0; }
.lp-tpl-deco .lp-social { background: none; border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px dotted color-mix(in srgb, var(--s) 45%, transparent); padding-left: 2px; padding-right: 2px; }
.lp-tpl-deco .lp-badge { border-radius: 0; transform: rotate(45deg); width: 30px; height: 30px; margin: 7px; }
.lp-tpl-deco .lp-badge > svg { transform: rotate(-45deg); width: 18px; height: 18px; }
.lp-tpl-deco .lp-h2 { color: var(--s); text-transform: uppercase; letter-spacing: .16em; font-size: 13px; text-align: center; }
.lp-tpl-deco .lp-offer { border-radius: 0; box-shadow: inset 0 0 0 3px var(--s), inset 0 0 0 4px var(--p); }

/* bio blocks on vCard pages (Classic sits on a light background, not the primary colour) */
.lp-t-vcard .lp-hero h1 { display: inline-flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lp-t-vcard .lp-blocks { width: 100%; max-width: none; justify-self: stretch; }
.lp-t-vcard:not(.lp-mono) .lp-btn.link { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.lp-t-vcard .lp-chips { color: inherit; }

/* ================= Header style, about text, featured layouts, footer ================= */
.lp-banner { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.lp-hero.has-banner { padding-top: 0; }
.lp-hero.has-banner .lp-avatar { margin-top: -52px; position: relative; box-shadow: 0 0 0 4px var(--p); }
.lp.lp-tpl-deco .lp-hero.has-banner { margin-top: -30px; position: relative; }
.lp.lp-tpl-deco .lp-hero.has-banner .lp-avatar { margin-top: -40px; }

.lp-vbadge { display: inline-grid; place-items: center; flex: none; --bc: var(--s); --bc-on: var(--on-s); }
.lp-vbadge svg { display: block; }
.lp-tick { background: var(--bc, var(--s)); color: var(--bc-on, var(--on-s)); }
.lp-hero h1 { display: inline-flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* photo on the left or right (LinkedIn-style) */
.lp-al-left .lp-hero, .lp-al-right .lp-hero { padding-left: 22px; padding-right: 22px; }
.lp-al-left .lp-hero { justify-items: start; text-align: left; }
.lp-al-right .lp-hero { justify-items: end; text-align: right; }
.lp-al-left .lp-hero h1, .lp-al-left .lp-chips, .lp-al-left .lp-quick { justify-content: flex-start; }
.lp-al-right .lp-hero h1, .lp-al-right .lp-chips, .lp-al-right .lp-quick { justify-content: flex-end; }
.lp-al-left .lp-sub, .lp-al-right .lp-sub { max-width: none; }

.lp-about { white-space: normal; }

/* featured link layouts */
.lp-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-blocks > * { grid-column: 1 / -1; }
.lp-blocks > .half { grid-column: auto; }
.lp-meta { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 6px; }
.lp-feat-card { display: block; padding: 0; overflow: hidden; }
.lp-feat-card .lp-feat-img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
.lp-feat-card .lp-feat-body { display: block; padding: 12px 14px 14px; }
.lp-feat-card .lp-feat-body b { font-size: 16px; line-height: 1.3; }
.lp-feat-card small, .lp-feat-banner small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-feat-card.half .lp-feat-body b { font-size: 14px; }
.lp-feat-banner { display: grid; padding: 0; overflow: hidden; position: relative; min-height: 150px; }
.lp-feat-banner .lp-feat-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.lp-feat-banner .lp-feat-body { position: relative; align-self: end; padding: 40px 14px 14px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78)); }
.lp-feat-banner .lp-feat-body small, .lp-feat-banner .lp-meta { color: rgba(255, 255, 255, .85); }
.lp-feat-banner.no-img { background: var(--s); }
.lp-feat-banner.no-img .lp-feat-body { background: none; color: var(--on-s); }

/* branded footer */
.lp-foot { padding: 20px 16px 30px; text-align: center; font-size: 12px; color: var(--muted); opacity: .9; }
.lp-foot a { text-decoration: underline; text-underline-offset: 2px; }
.lp-body { padding-bottom: 28px; }
.lp-al-left .lp-badges { justify-content: flex-start; }
.lp-al-right .lp-badges { justify-content: flex-end; }

/* ================= Hosted page on wide screens =================
   Profiles are designed phone-width; on desktop show them as a centred card
   on a background tinted from the page's own colours (only the hosted page has #root). */
@media (min-width: 520px) {
  body #root {
    padding: 48px 20px 64px; box-sizing: border-box;
    background:
      radial-gradient(70% 55% at 50% 0%, color-mix(in srgb, var(--page-s, #888) 22%, transparent), transparent 70%),
      color-mix(in srgb, var(--page-p, #f6f5f1) 82%, #000);
  }
  body #root > .lp {
    max-width: 480px; margin: 0 auto; min-height: auto; border-radius: 28px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .06);
  }
  body #root > .lp .lp-body.on-hero { min-height: 0; }
}
