:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #111827;
  --accent-text: #ffffff;
  --star: #f5b301;
  --star-empty: #d1d5db;
  --ok: #059669;
  --err: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12; --surface: #151922; --surface-2: #1d2230; --text: #f3f4f6; --muted: #9ca3af;
    --border: #2a3040; --accent: #f3f4f6; --accent-text: #0b0d12; --star-empty: #4b5263;
    --ok: #34d399; --err: #f87171; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d12; --surface: #151922; --surface-2: #1d2230; --text: #f3f4f6; --muted: #9ca3af;
  --border: #2a3040; --accent: #f3f4f6; --accent-text: #0b0d12; --star-empty: #4b5263;
  --ok: #34d399; --err: #f87171; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; }
[hidden] { display: none !important; }
.logo { flex: none; display: block; border-radius: 10px; }

/* ---------- Landing / form ---------- */
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 64px; }
.hero { text-align: center; padding: 56px 0 28px; }
.hero h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em; }
.hero p { color: var(--muted); margin: 0 auto; max-width: 460px; }
.hero .badges { display: flex; justify-content: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.hero .badges .logo { width: 28px; height: 28px; border-radius: 7px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
@media (max-width: 480px) { .panel { padding: 18px; } }

.field { display: block; margin-bottom: 16px; }
.field > span, .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field small, .hint { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
input[type="text"], input[type="url"], input[type="number"], input[type="search"] {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-width: 0;
}
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input:disabled { background: var(--surface-2); color: var(--muted); }

.slug-field { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.slug-field:focus-within { outline: 2px solid var(--accent); outline-offset: -1px; }
.slug-field .prefix { flex: 0 1 auto; min-width: 0; padding: 10px 0 10px 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slug-field input { flex: 1 1 10ch; min-width: 10ch; border: 0; border-radius: 0; padding-left: 2px; }
.slug-field input:focus { outline: none; }
.status-ok { color: var(--ok) !important; }
.status-err { color: var(--err) !important; }

.links-head { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 10px; }
.links-head .label { margin: 0; font-size: 16px; }
.links { display: grid; gap: 12px; }
.links:empty::before { content: "No links yet: add a platform below."; color: var(--muted); font-size: 14px; padding: 14px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; }

/* Collapsible link rows: header always visible, body only when open */
.links { gap: 8px; grid-template-columns: minmax(0, 1fr); } /* let long status lines truncate instead of widening rows */
.link-row { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: background .15s ease, border-color .15s ease; }
.link-row.open { background: var(--surface-2); border-color: var(--muted); }
.link-row-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; cursor: pointer; border-radius: 12px; }
.link-row-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.link-row-head .logo { width: 28px; height: 28px; border-radius: 7px; }
.row-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.row-titles strong { font-size: 15px; }
.row-summary { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-summary.ok { color: var(--ok); }
.row-summary.err { color: var(--err); }
.row-chev { display: grid; place-items: center; width: 20px; color: var(--muted); transition: transform .15s ease; }
.link-row-head .icon-btn { display: inline-grid; place-items: center; padding: 0; color: var(--muted); }
.link-row-head .icon-btn:hover { color: var(--text); }
.link-row.open .row-chev { transform: rotate(180deg); }
.link-row-head .icon-btn { width: 30px; height: 30px; font-size: 14px; }
.link-row:not(.open) .link-row-head .icon-btn { opacity: .6; }
.link-row-body { display: none; padding: 4px 14px 14px; }
.link-row.open .link-row-body { display: block; }
@media (max-width: 420px) {
  .link-row-head .icon-btn[title^="Move"] { display: none; } /* keep the header uncluttered on phones */
  .link-row.open .link-row-head .icon-btn[title^="Move"] { display: inline-block; }
}
.icon-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 15px; line-height: 1; }
.icon-btn:hover { border-color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link-row .field { margin-bottom: 10px; }
.link-row .field:last-child, .link-row .grid-2:last-child .field { margin-bottom: 0; }

.search-box { display: flex; gap: 8px; flex-wrap: wrap; }
.search-box input { flex: 2 1 180px; }
.search-box .city-input { flex: 1 1 120px; }
.link-btn { background: none; border: 0; padding: 0; margin-top: 10px; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.search-results { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.search-results button { width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.search-results button:hover { border-color: var(--accent); }
.search-results small { display: block; color: var(--muted); }
.picked { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.picked div { flex: 1; min-width: 0; }
.picked small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Design section: style thumbnails, theme swatches, color pickers, preview */
.design { margin-top: 28px; }
.design-step { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.design-save { margin-top: 14px; }
.design-save .btn-block { margin-top: 0; }
.design-save .hint { text-align: center; min-height: 1.4em; }
.design-block { display: grid; gap: 10px; }
.design-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.style-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.style-opt { display: grid; gap: 6px; justify-items: center; padding: 10px 6px 8px; font: inherit; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.style-opt:hover { border-color: var(--muted); }
.style-opt[aria-checked="true"] { border-color: var(--accent); background: var(--surface-2); box-shadow: 0 0 0 1px var(--accent) inset; }
.style-name { font-size: 13px; font-weight: 600; }
.thumb { width: 100%; max-width: 76px; height: 50px; padding: 6px; border-radius: 6px; background: var(--surface-2); display: grid; gap: 4px; align-content: center; }
.thumb i { display: block; background: var(--muted); opacity: .45; border-radius: 3px; }
.thumb-cards .t-bar { height: 9px; }
.thumb-grid { grid-template-columns: 1fr 1fr; }
.thumb-grid .t-box { height: 15px; }
.thumb-list .t-list { display: grid; gap: 0; border: 1.5px solid color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 4px; overflow: hidden; }
.thumb-list .t-line { height: 10px; border-radius: 0; opacity: .25; }
.thumb-list .t-line + .t-line { border-top: 1.5px solid var(--surface-2); }
.thumb-badges { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 4px; }
.thumb-badges .t-pill { width: 18px; height: 9px; border-radius: 99px; }
.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.swatch { display: grid; justify-items: center; gap: 4px; padding: 0; font: inherit; background: none; border: 0; cursor: pointer; color: var(--muted); }
.swatch-aa { display: grid; place-items: center; width: 100%; max-width: 52px; aspect-ratio: 1; border-radius: 12px; background: var(--sw-bg); color: var(--sw-text);
  font-weight: 700; font-size: 15px; border: 1px solid var(--border); position: relative; transition: transform .12s ease; }
.swatch-aa::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 9px; height: 9px; border-radius: 99px; background: var(--sw-accent); }
.swatch:hover .swatch-aa { transform: translateY(-1px); }
.swatch[aria-pressed="true"] .swatch-aa { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.swatch[aria-pressed="true"] { color: var(--text); }
.swatch-name { font-size: 12px; }
.color-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.color-field { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; min-width: 0; }
.color-field input[type="color"] { flex: none; width: 30px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; }
.color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.color-field input[type="color"]::-moz-color-swatch { border: 0; border-radius: 7px; }
.color-field > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.color-field strong { font-size: 13px; }
.color-hex { font-size: 12px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.preview { display: grid; gap: 8px; margin-top: 4px; }
.preview-frame { width: 100%; height: 520px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
@media (max-width: 480px) {
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swatch-aa { max-width: 64px; aspect-ratio: 1.6; }
  .color-row { grid-template-columns: minmax(0, 1fr); }
  .preview-frame { height: 460px; }
}

/* "+ Add a review platform" and its grouped picker */
.add-platforms { margin-top: 10px; }
.add-btn { width: 100%; font: inherit; font-weight: 600; color: var(--text); background: transparent; border: 1.5px dashed var(--border); border-radius: 12px; padding: 12px; cursor: pointer; }
.add-btn:hover, .add-btn[aria-expanded="true"] { border-color: var(--muted); background: var(--surface-2); }
.picker { margin-top: 8px; padding: 4px 14px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.picker h4 { margin: 14px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } /* 2 columns: groups of 4 → 2×2 */
@media (max-width: 420px) { .tile { gap: 8px; padding: 8px; } .tile .logo { width: 24px; height: 24px; } }
.tile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 600; text-align: left; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.tile:hover { border-color: var(--accent); background: var(--surface-2); }
.tile .logo { width: 28px; height: 28px; border-radius: 7px; }
.tile small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; border-radius: 10px; padding: 10px 16px; cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); text-decoration: none; white-space: nowrap; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-block { width: 100%; padding: 14px; font-size: 17px; margin-top: 24px; }
.form-error { color: var(--err); margin: 12px 0 0; min-height: 1.5em; }

.result h2 { margin: 0 0 4px; }
.result > p { color: var(--muted); margin: 0 0 20px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-weight: 600; }
.warn { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.site-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 32px; }

@media (max-width: 480px) {
  .copy-row { flex-wrap: wrap; }
  .copy-row input { flex: 1 1 100%; }
  .copy-row .btn { flex: 1; }
}

/* ---------- Public link tree page ---------- */
.tree-body { min-height: 100vh; }
.tree { max-width: 560px; margin: 0 auto; padding: 48px 16px 40px; }
.tree-head { text-align: center; margin-bottom: 28px; }
.avatar { width: 84px; height: 84px; border-radius: 999px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 36px; font-weight: 700; background: var(--accent); color: var(--accent-text); }
.tree-head h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.01em; }
.tree-head p { margin: 0; color: var(--muted); }
.cards { display: grid; gap: 12px; }
.card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; transition: transform .12s ease, border-color .12s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--muted); }
.card .logo { width: 44px; height: 44px; }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card-title { font-weight: 650; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source { color: var(--muted); font-size: 14px; }
.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.rating strong { color: var(--text); font-size: 15px; }
.chev { flex: none; color: var(--muted); }
.card-cta { justify-content: space-between; }

.stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 1px; color: var(--star-empty); }
.stars::before { content: "★★★★★"; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--star); }
.stars-fill::before { content: "★★★★★"; }
.bubbles { height: 16px; width: auto; display: inline-block; }
/* Branded rating lines (functions/_lib/ratings.js) */
.rating { line-height: 1.2; }
.rcells { display: block; flex: none; }
.r-num { color: var(--text); font-size: 15px; font-weight: 650; }
.r-meta { color: var(--muted); font-size: 14px; }
.r-badge { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 6px 6px 6px 0; color: #fff; font-weight: 700; font-size: 14px; }
.r-airbnb { color: var(--text); font-weight: 600; font-size: 15px; }
.r-play { display: inline-flex; align-items: center; gap: 2px; }
.rating-etsy .rcells { color: var(--text); }
.r-fb { display: inline-flex; align-items: center; gap: 5px; color: #0866ff; font-weight: 650; font-size: 15px; }
.stars + .count::before, .bubbles + .count::before { content: "·"; margin-right: 6px; }

.tree-foot { text-align: center; margin-top: 36px; font-size: 13px; }
.tree-foot a { color: var(--muted); }

/* ---------- Page designs (public/assets/design.js) ----------
 * A design sets --bg/--surface/--text/... on <body>, so every style below picks up the brand colors. */
body[data-tone="dark"] { color-scheme: dark; }
body[data-tone="light"] { color-scheme: light; }
.tree-body a { color: inherit; }

/* Ratings: large (Grid) and compact (List / Badges) */
/* only the plain rating number grows (not e.g. "TrustScore 1.5" inside the meta text) */
.rating-lg > .r-num { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.rating-lg .r-badge { height: 28px; min-width: 34px; font-size: 15px; }
.rating-lg .r-airbnb { font-size: 18px; }
.rating-c { flex-wrap: nowrap; gap: 5px; white-space: nowrap; }
.rating-c .r-num { font-size: 15px; }
.rating-c .r-meta { font-size: 13px; }
.r-badge-sm { height: 22px; min-width: 28px; font-size: 13px; padding: 0 5px; }

/* Grid: 2-column tiles */
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rtile { display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; min-width: 0; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; transition: transform .12s ease, border-color .12s ease; }
.rtile:hover { transform: translateY(-2px); border-color: var(--muted); }
.rtile-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rtile-head .logo { width: 36px; height: 36px; flex: none; }
.rtile-title { font-weight: 650; font-size: 15px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rtile .rating { row-gap: 4px; }
@media (max-width: 359px) { .rgrid { grid-template-columns: minmax(0, 1fr); } }

/* List: one container, hairline dividers, compact rating on the right */
.rlist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rrow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; transition: background .12s ease; }
.rrow + .rrow { border-top: 1px solid var(--border); }
.rrow:hover { background: var(--surface-2); }
.rrow .logo { width: 32px; height: 32px; flex: none; }
.rrow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rrow-title { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow-text .source { font-size: 13px; }
.rrow-rating { flex: none; display: flex; align-items: center; color: var(--muted); }

/* Badges: wrapping pills */
.rbadges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rpill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); text-decoration: none;
  transition: transform .12s ease, border-color .12s ease; }
.rpill:hover { transform: translateY(-1px); border-color: var(--muted); }
.rpill .logo { width: 28px; height: 28px; border-radius: 999px; }
.rpill-title { font-weight: 600; font-size: 14px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .card, .rtile, .rpill { transition: none; } .card:hover, .rtile:hover, .rpill:hover { transform: none; } }

/* Page font (design.font); falls back to the system stack */
.tree-body { font-family: var(--font, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif); }

/* ---------- Owner tools (public/assets/owner.js) ----------
 * Fixed neutral colors + system font so they never take on the page's theme. */
.owner-bar, .ob-notice, .ob-panel, .ob-return {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f3f4f6; --text: #111827; --muted: #6b7280; --border: #e5e7eb;
  --accent: #111827; --accent-text: #ffffff; --ok: #059669; --err: #dc2626;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); color-scheme: light;
}
body.owner-mode { padding-top: 60px; }
.owner-bar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 60px; background: #111827; color: #f9fafb; box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 20px rgba(0,0,0,.18); }
.ob-inner { height: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ob-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ob-badge { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #111827; background: #fbbf24; border-radius: 999px; padding: 3px 8px; }
.ob-url { color: #f9fafb; font-weight: 600; font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-url:hover { text-decoration: underline; }
.ob-status { font-size: 12px; color: #9ca3af; white-space: nowrap; }
.ob-status.ok { color: #6ee7b7; }
.ob-status.err { color: #fca5a5; white-space: normal; }
.ob-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.ob-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 600;
  color: #f9fafb; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.ob-btn:hover { background: rgba(255,255,255,.16); }
.ob-btn[aria-expanded="true"] { background: #f9fafb; color: #111827; }
.ob-primary { background: #f9fafb; color: #111827; border-color: #f9fafb; }
.ob-primary:hover { background: #e5e7eb; }
.ob-icon { width: 36px; padding: 0; justify-content: center; }
.ob-small { height: 32px; font-size: 13px; }
.ob-icon-btn { display: grid; place-items: center; width: 32px; height: 32px; flex: none; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.ob-icon-btn:hover { background: rgba(0,0,0,.06); }

.ob-notice { position: relative; z-index: 40; display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 12px auto 0; padding: 10px 10px 10px 14px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.ob-notice > span { flex: 1; }
.ob-notice .ob-primary { background: #111827; color: #fff; border-color: #111827; }
body.owner-mode .ob-notice { margin-left: 16px; margin-right: 16px; }
@media (min-width: 792px) { body.owner-mode .ob-notice { margin-left: auto; margin-right: auto; } }

/* Design panel: right drawer on desktop, bottom sheet on phones */
.ob-panel { position: fixed; z-index: 45; top: 60px; right: 0; bottom: 0; width: 380px; max-width: 100%; display: flex; flex-direction: column;
  background: #fff; border-left: 1px solid var(--border); box-shadow: -12px 0 32px rgba(0,0,0,.12); }
.ob-panel[hidden] { display: none; }
.ob-panel-head { display: flex; align-items: center; gap: 8px; padding: 14px 12px 12px 18px; border-bottom: 1px solid var(--border); }
.ob-panel-head strong { font-size: 16px; }
.ob-panel-hint { flex: 1; font-size: 12px; color: var(--muted); }
.ob-panel-body { overflow-y: auto; padding: 8px 18px 24px; }
.ob-panel .style-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ob-panel .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ob-panel .swatch-aa { max-width: none; aspect-ratio: 1.8; }
.ob-panel .color-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.font-select { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
@media (min-width: 1000px) { body.ob-panel-open { padding-right: 380px; } } /* keep the page visible next to the panel */
@media (max-width: 640px) {
  /* Shorter, denser bottom sheet so most of the page stays visible while editing */
  .ob-panel { top: auto; left: 0; width: 100%; max-height: 44vh; border-left: 0; border-top: 1px solid var(--border); border-radius: 16px 16px 0 0; box-shadow: 0 -12px 32px rgba(0,0,0,.16); }
  .ob-panel-head { padding: 8px 8px 8px 16px; }
  .ob-panel-hint { display: none; }
  .ob-panel-head strong { flex: 1; } /* keep the close button on the right */
  .ob-panel-body { padding: 4px 16px 16px; }
  .ob-panel .design-block { gap: 8px; }
  .ob-panel .style-opts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .ob-panel .style-opt { padding: 6px 4px; }
  .ob-panel .thumb { height: 34px; padding: 4px; }
  .ob-panel .swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .ob-panel .swatch-aa { aspect-ratio: 1; font-size: 13px; border-radius: 10px; }
  .ob-panel .swatch-name { font-size: 11px; }
  .ob-panel .color-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } /* 2×2 keeps labels readable */
  .ob-panel .color-field { padding: 5px 6px; gap: 6px; }
  .ob-panel .color-field input[type="color"] { width: 26px; height: 26px; }
  .ob-panel .color-hex { display: none; }
  body.ob-panel-open { padding-bottom: 44vh; }
  .ob-btn span { display: none; }           /* icon-only buttons on phones */
  .ob-btn { width: 36px; padding: 0; justify-content: center; }
  .ob-badge { display: none; }
  .ob-status { display: none; }
}

/* "View as a visitor" */
body.ob-hidden { padding-top: 0; }
body.ob-hidden .owner-bar, body.ob-hidden .ob-notice { display: none; }
.ob-return { position: fixed; z-index: 50; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  font-weight: 600; font-size: 14px; color: #fff; background: #111827; border: 0; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; }

/* ---------- Web-oriented styles ---------- */
/* Strip: one slim row with thin dividers (website header/footer/hero "trust bar") */
.rstrip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 10px;
  padding: 10px 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.rstrip-item { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; text-decoration: none; border-radius: 8px; }
.rstrip-item + .rstrip-item { border-left: 1px solid var(--border); }
.rstrip-item:hover { background: var(--surface-2); }
.rstrip-item .logo { width: 24px; height: 24px; flex: none; }
.rstrip-title { font-weight: 600; font-size: 14px; white-space: nowrap; }
@media (max-width: 480px) { .rstrip-item { padding: 4px 10px; } .rstrip-item + .rstrip-item { border-left: 0; } }

/* Showcase: big centered columns (landing page "as rated on" section) */
.rshow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.rshow-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 14px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; transition: transform .12s ease, border-color .12s ease; }
.rshow-item:hover { transform: translateY(-2px); border-color: var(--muted); }
.rshow-item .logo { width: 48px; height: 48px; }
.rshow-title { font-weight: 650; font-size: 15px; }
.rshow-item .rating { justify-content: center; row-gap: 4px; }
.rshow-item .rating-lg > .r-num { font-size: 28px; }
body[data-style="strip"] .tree, body[data-style="showcase"] .tree { max-width: 760px; }

/* ---------- Embed (/:slug/embed) ---------- */
.embed-body { min-height: 0; }
.embed { padding: 8px; max-width: 980px; margin: 0 auto; }
.embed-body.embed-transparent, .embed-transparent { background: transparent !important; color-scheme: normal; }
.embed-transparent .rstrip, .embed-transparent .rlist { box-shadow: none; }

/* Style picker thumbnails for the web styles */
.style-tag { margin-left: 4px; padding: 1px 5px; font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--accent-text); background: var(--accent); border-radius: 4px; vertical-align: 1px; }
.thumb-strip .t-strip { display: flex; align-items: center; justify-content: center; gap: 3px; padding: 5px 4px; border: 1.5px solid color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 4px; }
.thumb-strip .t-dot { width: 7px; height: 7px; border-radius: 2px; }
.thumb-strip .t-seg { width: 9px; height: 5px; }
.thumb-strip .t-sep { width: 1.5px; height: 9px; opacity: .3; }
.thumb-showcase .t-show { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.thumb-showcase .t-col { display: grid; justify-items: center; gap: 3px; padding: 4px 0; border: 1.5px solid color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 4px; }
.thumb-showcase .t-dot { width: 8px; height: 8px; border-radius: 2px; }
.thumb-showcase .t-big { width: 12px; height: 6px; }
.ob-panel .style-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Embed dialog (owner tools) ---------- */
.ob-dialog { --bg: #ffffff; --surface: #ffffff; --surface-2: #f3f4f6; --text: #111827; --muted: #6b7280; --border: #e5e7eb; --accent: #111827; --accent-text: #fff;
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 16px; color: var(--text); background: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color-scheme: light; box-shadow: 0 24px 64px rgba(0,0,0,.3); }
.ob-dialog::backdrop { background: rgba(17,24,39,.55); }
.ob-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 12px 20px; border-bottom: 1px solid var(--border); }
.ob-dialog-head strong { font-size: 17px; }
.ob-dialog-body { display: grid; gap: 10px; padding: 14px 20px 20px; overflow-y: auto; }
.ob-dialog-tip { margin: 0; padding: 10px 12px; font-size: 13px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; }
.ob-embed-preview { padding: 14px; border: 1px dashed var(--border); border-radius: 12px;
  background: repeating-conic-gradient(#f3f4f6 0 25%, #fff 0 50%) 0 0 / 16px 16px; } /* checkerboard shows transparency */
.ob-embed-preview iframe { display: block; width: 100%; height: 120px; border: 0; background: transparent; }
.ob-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.ob-check input { width: 16px; height: 16px; accent-color: #111827; }
.ob-tabs { display: flex; gap: 4px; padding: 3px; background: var(--surface-2); border-radius: 10px; width: fit-content; }
.ob-tab { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.ob-tab[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ob-code { width: 100%; resize: vertical; font: 13px/1.5 ui-monospace, Consolas, Menlo, monospace; color: #e5e7eb; background: #111827; border: 0; border-radius: 10px; padding: 12px 14px; }
.ob-dialog-hint { margin: 0; font-size: 13px; color: var(--muted); }
.ob-dialog .ob-primary { justify-self: start; height: 40px; background: #111827; color: #fff; border-color: #111827; }
.ob-dialog .ob-primary:hover { background: #1f2937; }

/* Header switch + fields in the Design panel */
.ob-info-fields { display: grid; gap: 8px; }
.ob-info-fields[hidden] { display: none; }
.ob-info-fields input { width: 100%; font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; }
.ob-info-fields input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
/* Theme swatches preview the card color on the background */
.swatch-aa { background: linear-gradient(var(--sw-card, var(--sw-bg)), var(--sw-card, var(--sw-bg))) center / 64% 52% no-repeat, var(--sw-bg); }
/* Pages without the header: give the links some breathing room at the top */
.tree > nav:first-child { margin-top: 8px; }

/* Custom link icon (image from the owner) over the generic link icon fallback */
.logo-custom { position: relative; display: inline-block; flex: none; overflow: hidden; border-radius: 22%; }
.logo-custom > svg { display: block; width: 100%; height: 100%; }
.logo-custom > img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 12%; object-fit: contain;
  background: #fff; border: 1px solid #e3e5e8; border-radius: inherit; box-sizing: border-box; }
.rpill .logo-custom { border-radius: 999px; }

/* Custom link icon field (form) */
.icon-row { display: flex; align-items: center; gap: 8px; }
.icon-row input { flex: 1; min-width: 0; }
.icon-preview { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; }
.icon-preview svg { width: 40px; height: 40px; }
.icon-preview img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 12%; object-fit: contain; background: #fff; border: 1px solid #e3e5e8; border-radius: 9px; box-sizing: border-box; }

/* =====================================================================
   Landing page
   ===================================================================== */
html { scroll-behavior: smooth; }
body.landing { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.landing section[id] { scroll-margin-top: 80px; }
.lp-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.lp-nav-inner { height: 64px; display: flex; align-items: center; gap: 28px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.015em; text-decoration: none; color: var(--text); }
.lp-mark { flex: none; color: var(--text); }
.lp-nav-links { display: flex; gap: 24px; margin-left: auto; }
.lp-nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .15s; }
.lp-nav-links a:hover { color: var(--text); }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; color: var(--accent-text); background: var(--accent);
  border: 1px solid var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 28px -10px rgba(17,24,39,.5); transition: transform .15s ease, box-shadow .15s ease; }
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 16px 36px -12px rgba(17,24,39,.55); }
.lp-btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.lp-btn-sm:hover { box-shadow: none; }
.lp-btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.lp-btn-ghost:hover { border-color: var(--muted); box-shadow: 0 1px 2px rgba(0,0,0,.04); }

/* Hero */
.lp-hero { position: relative; overflow: hidden; padding: 36px 0 56px; }
.lp-glow { position: absolute; inset: -160px 0 auto; height: 860px; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 92%); mask-image: linear-gradient(#000 55%, transparent 92%); /* no hard edge */
  background: radial-gradient(560px 320px at 18% 30%, rgba(99,102,241,.18), transparent 70%),
              radial-gradient(520px 300px at 82% 22%, rgba(236,72,153,.13), transparent 70%),
              radial-gradient(520px 280px at 62% 92%, rgba(251,191,36,.14), transparent 70%); }
.lp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.lp-pulse { position: relative; flex: none; width: 8px; height: 8px; border-radius: 99px; background: #10b981; }
.lp-pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: lp-pulse 1.8s ease-out infinite; }
@keyframes lp-pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(3.2); opacity: 0; } }
.lp-hero h1 { margin: 22px 0 20px; font-size: clamp(38px, 4.1vw, 54px); /* "The reviews widget" fits one line */ line-height: 1.03; letter-spacing: -.04em; font-weight: 800; }
.lp-grad { background: linear-gradient(92deg, #4f46e5 0%, #c026d3 48%, #f59e0b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { margin: 0 0 32px; max-width: 540px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-platforms { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.lp-platforms-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lp-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-logos .logo { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.06); transition: transform .15s ease; }
.lp-logos .logo:hover { transform: translateY(-2px); }

/* Showcase: browser window cross-fading between 6 real pages */
.lp-showcase { margin: 0; }
.lp-window { position: relative; overflow: hidden; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 30px 70px -20px rgba(17,24,39,.32); transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform .6s ease; }
.lp-showcase:hover .lp-window { transform: none; }
.lp-window-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.lp-dots { display: flex; gap: 6px; flex: none; }
.lp-dots i { width: 11px; height: 11px; border-radius: 99px; background: #ff5f57; }
.lp-dots i:nth-child(2) { background: #febc2e; }
.lp-dots i:nth-child(3) { background: #28c840; }
.lp-url { flex: 1; min-width: 0; max-width: 340px; height: 28px; margin: 0 auto; padding: 0 12px; line-height: 26px; text-align: center; font-size: 13px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-live { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 12px; font-weight: 600; color: #047857; background: #d1fae5; border-radius: 999px; }
.lp-stage { position: relative; overflow: hidden; background: var(--bg); -webkit-mask-image: linear-gradient(#000 86%, transparent); mask-image: linear-gradient(#000 86%, transparent); }
/* Sequential fade: the old look fades out quickly, the new one fades in after it with a slight zoom */
.lp-stage iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; opacity: 0; pointer-events: none; background: transparent;
  transition: opacity .35s ease, filter .35s ease; filter: blur(2px); }
.lp-stage iframe.on { opacity: 1; filter: none; transition: opacity .6s ease .3s, filter .6s ease .3s; }
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
/* Desktop: center the text against the browser window, not window + chips + caption */
@media (min-width: 1021px) { .lp-hero-copy { margin-bottom: 84px; } }
.lp-chip { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.lp-chip:hover { color: var(--text); }
.lp-chip[aria-selected="true"] { color: var(--text); border-color: var(--text); }
.lp-chip em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); background: var(--accent); border-radius: 4px; padding: 1px 5px; }
.lp-chip-bar { position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--text); }
.lp-chip.run .lp-chip-bar { animation: lp-progress 4.2s linear forwards; }
@keyframes lp-progress { to { width: 100%; } }
.lp-caption { margin-top: 12px; min-height: 1.5em; text-align: center; font-size: 14px; color: var(--muted); }

/* Sections */
.lp-section { padding: 88px 0; }
.lp-section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.lp-section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.lp-section-head h2 { margin: 16px 0 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; }
.lp-section-head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-step, .lp-feature { padding: 30px; border: 1px solid var(--border); border-radius: 20px; }
.lp-step { background: var(--surface); box-shadow: var(--shadow); }
.lp-feature { background: var(--bg); }
.lp-step-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-weight: 700; color: var(--accent-text); background: var(--accent); }
.lp-step h3, .lp-feature h3 { margin: 20px 0 8px; font-size: 19px; letter-spacing: -.015em; }
.lp-step p, .lp-feature p { margin: 0; line-height: 1.65; color: var(--muted); }
.lp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-feature-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #4f46e5; background: rgba(79,70,229,.1); }
.lp-feature:nth-child(2) .lp-feature-icon { color: #c026d3; background: rgba(192,38,211,.1); }
.lp-feature:nth-child(3) .lp-feature-icon { color: #d97706; background: rgba(217,119,6,.12); }

/* Create */
.lp-create { background: radial-gradient(760px 340px at 50% 0%, rgba(99,102,241,.09), transparent 70%); }
.lp-create-inner { max-width: 680px; }
.lp-create .lp-section-head { margin-bottom: 36px; }
.lp-form { padding: 30px; border-radius: 22px; box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 28px 60px -24px rgba(17,24,39,.25); }

/* Footer */
.lp-foot { padding: 28px 0; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); }
.lp-foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-brand-sm { gap: 8px; font-size: 15px; }

/* Dark mode details */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp-live { color: #6ee7b7; background: rgba(16,185,129,.16); }
}

/* Responsive */
@media (max-width: 1020px) {
  .lp-hero { padding: 48px 0 72px; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .lp-hero-copy { max-width: 640px; margin: 0 auto; text-align: center; }
  .lp-lead { margin-left: auto; margin-right: auto; }
  .lp-cta-row, .lp-platforms { justify-content: center; }
  .lp-window { transform: none; }
  .lp-showcase { max-width: 760px; margin: 0 auto; width: 100%; }
}
@media (max-width: 860px) {
  .lp-steps, .lp-features { grid-template-columns: minmax(0, 1fr); }
  .lp-section { padding: 72px 0; }
}
@media (max-width: 720px) {
  .lp-nav-links { display: none; }
  .lp-nav-inner > .lp-btn { margin-left: auto; }
}
@media (max-width: 480px) {
  .lp-container { padding: 0 16px; }
  .lp-hero h1 { font-size: 38px; }
  .lp-lead { font-size: 16px; }
  .lp-cta-row .lp-btn { flex: 1 1 100%; }
  .lp-form { padding: 20px; }
  .lp-url { font-size: 12px; }
  .lp-chip { height: 32px; padding: 0 11px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-pulse::after { animation: none; }
  .lp-stage iframe { transition: none; }
  .lp-window { transform: none; transition: none; }
}

/* ---------- Mock business website (inside the showcase, /api/demo) ---------- */
.demo-site { min-height: 100vh; background: var(--bg); color: var(--text); }
.ds-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 36px; background: var(--surface); border-bottom: 1px solid var(--border); }
.ds-nav strong { font-size: 19px; letter-spacing: -.01em; }
.ds-nav span { display: flex; gap: 24px; font-size: 15px; color: var(--muted); }
.ds-nav b { font-weight: 500; }
.ds-hero { padding: 44px 36px 26px; text-align: center; }
.ds-hero h1 { margin: 0 0 12px; font-size: 42px; line-height: 1.1; letter-spacing: -.02em; }
.ds-hero p { margin: 0 0 24px; font-size: 18px; color: var(--muted); }
.ds-cta { display: inline-block; padding: 13px 24px; font-weight: 600; color: var(--accent-text); background: var(--accent); border-radius: 999px; }
.ds-reviews { max-width: 720px; margin: 0 auto; padding: 14px 24px 40px; }
.demo-site .rshow { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Demo pages in the showcase: a bit tighter so the whole composition fits */
.demo-tree { padding-top: 32px; }

/* Phones/tablets: show the animated showcase right under the headline (first view) */
@media (max-width: 1020px) {
  .lp-hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .lp-hero-copy { display: contents; }
  .lp-hero-copy > * { margin-left: auto; margin-right: auto; text-align: center; }
  .lp-eyebrow { order: 1; align-self: center; }
  .lp-hero h1 { order: 2; }
  .lp-showcase { order: 3; margin: 8px auto 36px; }
  .lp-lead { order: 4; }
  .lp-cta-row { order: 5; width: 100%; max-width: 520px; }
  .lp-platforms { order: 6; }
}
/* Mock website at phone width (inside the showcase) */
@media (max-width: 560px) {
  .ds-nav { padding: 16px 20px; }
  .ds-nav span { display: none; }
  .ds-hero { padding: 32px 20px 20px; }
  .ds-hero h1 { font-size: 32px; }
  .ds-hero p { font-size: 16px; }
  .ds-reviews { padding: 10px 16px 32px; }
  .demo-site .rshow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Optional title/subtitle fields (landing form) */
.opt { font-style: normal; font-weight: 400; color: var(--muted); }
.lp-title-fields .field { margin-bottom: 0; }
.lp-title-hint { margin: 8px 0 22px; }
.lp-nav-cta { margin-left: auto; }
@media (max-width: 480px) { .lp-title-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Page title/subtitle (no avatar) */
.tree-head h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; }
.tree-head h1 + p { margin-top: 2px; }

/* "Add to your website" box (Design panel + Edit links page) */
.embed-box { display: grid; gap: 12px; }
.ob-embed-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.embed-panel { margin-top: 16px; }
.embed-box-head strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.embed-box-head span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.embed-code { padding: 12px; background: #111827; border-radius: 12px; }
.embed-code pre { margin: 0 0 10px; max-height: 120px; overflow: auto; white-space: pre-wrap; word-break: break-all;
  font: 12.5px/1.6 ui-monospace, Consolas, Menlo, monospace; color: #e5e7eb; }
.embed-copy { width: 100%; height: 42px; font: inherit; font-size: 15px; font-weight: 600; color: #111827; background: #ffffff;
  border: 0; border-radius: 9px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.embed-copy:hover { background: #e5e7eb; }
.embed-copy.done { color: #065f46; background: #a7f3d0; }
.embed-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.embed-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.embed-help { font-size: 13px; color: var(--muted); }
.embed-help summary { cursor: pointer; font-weight: 600; color: var(--text); }
.embed-help ul { display: grid; gap: 6px; margin: 10px 0 0; padding-left: 18px; line-height: 1.5; }
.embed-help li strong { color: var(--text); }
.embed-more { justify-self: start; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ob-dialog .embed-help { margin-top: 2px; }

/* ---------- Rating badge (one platform, compact: next to a price or buy button) ---------- */
.rbadge-wrap { display: flex; justify-content: center; }
.embed .rbadge-wrap, .ds-embed .rbadge-wrap { justify-content: flex-start; } /* left-aligned inside websites */
.rbadge { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 100%; padding: 7px 14px 7px 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); text-decoration: none;
  transition: border-color .12s ease; }
.rbadge:hover { border-color: var(--muted); }
.rbadge .logo { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.rbadge .rating { gap: 6px; }
.rbadge-on { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ds-embed .rbadge { flex-wrap: nowrap; }
.rbadge-on strong { color: var(--text); font-weight: 600; }
.rbadge-title { font-weight: 600; font-size: 14px; }
.embed-transparent .rbadge { box-shadow: none; }
.embed .rbadge-wrap { padding: 2px; }

/* Picker thumbnail */
.thumb-badge .t-badge { display: flex; align-items: center; gap: 3px; width: fit-content; margin: 0 auto; padding: 4px 7px 4px 4px;
  border: 1.5px solid color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 99px; }
.thumb-badge .t-dot { width: 9px; height: 9px; border-radius: 3px; }
.thumb-badge .t-stars { width: 22px; height: 5px; background: #f5b301 !important; opacity: .85 !important; }
.thumb-badge .t-seg { width: 12px; height: 5px; }

/* "Badge shows" select in the Design panel */
.ob-badge-field { display: grid; gap: 6px; }
.ob-badge-field[hidden] { display: none; }

/* ---------- Mock product page (landing showcase, /api/demo) ---------- */
.ds-product { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 30px; align-items: center; max-width: 720px; margin: 0 auto; padding: 40px 32px 24px; }
.ds-product-img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 22px; background: radial-gradient(circle at 30% 25%, #ffffff, #e5e7eb 72%); }
.ds-product-img svg { width: 72%; height: auto; }
.ds-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ds-product-info h1 { margin: 6px 0 12px; font-size: 36px; line-height: 1.1; letter-spacing: -.02em; }
.ds-embed { margin: 0 0 16px; }
.ds-price { margin: 0 0 8px; font-size: 26px; font-weight: 700; }
.ds-desc { margin: 0 0 20px; line-height: 1.55; color: var(--muted); }
.ds-product .ds-cta { border-radius: 12px; }
@media (max-width: 560px) {
  .ds-product { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 18px 14px; }
  .ds-product-img { width: 60%; margin: 0 auto; }
  .ds-product-info h1 { font-size: 28px; }
}

/* Cloudflare Turnstile spot (empty unless the check needs a click) */
.human-check { display: flex; justify-content: center; }
.human-check:empty { display: none; }
.human-check:not(:empty) { margin-top: 18px; }
.human-check-floating { position: fixed; z-index: 60; right: 16px; bottom: 16px; }

/* ---------- Footer links to the keyword pages ---------- */
.lp-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.lp-foot-links a { color: var(--muted); text-decoration: none; }
.lp-foot-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .lp-foot-inner { flex-direction: column; text-align: center; } }

/* ---------- Keyword landing pages (amazon-reviews-widget, trustpilot-widget, google-reviews-widget) ---------- */
.seo-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.seo-demo { margin: 0; }
.seo-stage { position: relative; overflow: hidden; background: var(--bg); -webkit-mask-image: linear-gradient(#000 86%, transparent); mask-image: linear-gradient(#000 86%, transparent); }
.seo-stage iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.seo-narrow { max-width: 820px; }
.seo-faq { display: grid; gap: 10px; }
.seo-faq details { padding: 18px 22px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; }
.seo-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: "+"; flex: none; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s ease; }
.seo-faq details[open] summary::after { transform: rotate(45deg); }
.seo-faq p { margin: 12px 0 0; line-height: 1.65; color: var(--muted); }
.seo-cta { max-width: 720px; text-align: center; }
.seo-cta h2 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.seo-cta > p { margin: 0 0 26px; font-size: 17px; color: var(--muted); }
.seo-related { margin-top: 30px !important; font-size: 15px !important; }
.seo-related a { margin: 0 6px; color: var(--text); font-weight: 600; }
.seo-legal { margin-top: 18px !important; font-size: 12px !important; }
@media (max-width: 1020px) {
  .seo-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .seo-hero-copy { max-width: 640px; margin: 0 auto; text-align: center; }
  .seo-hero-copy .lp-cta-row { justify-content: center; }
  .seo-demo { max-width: 760px; width: 100%; margin: 0 auto; }
}

/* ---------- Testimonials on the page / embed ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 24px; }
.tm { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; margin: 0; padding: 20px 20px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.tm-quote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.tm-quote::before { content: "\201C"; display: block; height: 20px; margin-bottom: 4px; font: 700 46px/1 Georgia, "Times New Roman", serif; color: var(--accent); }
.tm-who { display: flex; align-items: center; gap: 12px; }
.tm-photo { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: 999px;
  font-weight: 700; font-size: 15px; color: var(--accent-text); background: var(--accent); }
.tm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tm-meta strong { font-size: 15px; }
.tm-meta span { font-size: 13px; color: var(--muted); }
body[data-style="showcase"] .testimonials, .demo-site .testimonials { margin-top: 16px; }

/* ---------- Testimonials in the form ---------- */
.testimonials-edit { margin-top: 28px; }
.tm-hint { margin: -4px 0 10px; }
.tm-list:empty { display: none; }
.tm-list + .add-btn { margin-top: 10px; }
.tm-avatar { position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 999px;
  font-weight: 700; color: #374151; background: #e5e7eb; }
.tm-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.link-row textarea, .lp-form textarea, #page-form textarea { width: 100%; min-height: 84px; resize: vertical; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
#page-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
