/* TBT Testimonial Studio — design preview
   Brand: TBT blue #003366, navy, signal green, warm whitespace, Satoshi. */

@font-face { font-family: "Satoshi"; src: url("assets/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/satoshi-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --blue: #003366;
  --navy: #001b36;
  --deep: #00122a;
  --green: #19d36b;
  --green-ink: #0a7340;
  --green-bg: #e4f7ec;
  --paper: #f6f2ea;
  --paper-2: #ede6d9;
  --card: #fffdf9;
  --line: #e3dbcc;
  --ink: #0c2035;
  --muted: #5a6877;
  --amber: #875000;
  --amber-bg: #fbf0d9;
  --red: #b3261e;
  --red-bg: #fdecea;
  --pbar: 48px;
  --shadow: 0 1px 2px rgba(0, 27, 54, .06), 0 12px 32px -12px rgba(0, 27, 54, .18);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, blockquote, ul, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul { list-style: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ───────── Preview bar ───────── */
.pbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--pbar);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 14px;
  background: var(--deep); color: #fff;
  font-size: 13px;
}
.pbar__title { white-space: nowrap; color: rgba(255, 255, 255, .78); }
.pbar__title b { color: #fff; font-weight: 900; letter-spacing: .04em; }
.pbar__title i { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.pbar__tabs { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.pbar__tabs a {
  padding: 6px 14px; border-radius: 99px; text-decoration: none;
  font-weight: 700; color: rgba(255, 255, 255, .7); white-space: nowrap;
}
.pbar__tabs a[aria-current="page"] { background: #fff; color: var(--deep); }
.pbar__note { color: rgba(255, 255, 255, .6); white-space: nowrap; }
.pbar__note::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); }
@media (max-width: 860px) {
  .pbar__title, .pbar__note { display: none; }
  .pbar { justify-content: center; }
  .pbar__tabs { width: 100%; }
  .pbar__tabs a { flex: 1; text-align: center; padding: 6px 4px; }
}

/* ───────── Shared atoms ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 99px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--green); color: var(--deep); }
.btn--primary:hover:not(:disabled) { background: #2fe07f; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover:not(:disabled) { background: #0a437d; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover:not(:disabled) { border-color: var(--blue); }
.btn--stop { background: var(--red); color: #fff; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; font-size: 17px; width: 100%; }
.btn--block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 6px 2px; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:focus-within { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars i { display: block; width: 18px; height: 18px; }
.stars svg { width: 100%; height: 100%; fill: rgba(12, 32, 53, .16); }
.stars i.on svg { fill: var(--blue); }
.stars--sm i { width: 13px; height: 13px; }
.stars--lg i { width: 26px; height: 26px; }
.on-dark .stars svg, .stars--dark svg { fill: rgba(255, 255, 255, .22); }
.on-dark .stars i.on svg, .stars--dark i.on svg { fill: var(--green); }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.seg { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--paper-2); }
.seg button {
  border: 0; background: none; padding: 8px 14px; border-radius: 99px;
  font-weight: 700; font-size: 13.5px; color: var(--muted); white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 27, 54, .16); }
.seg--full { display: flex; }
.seg--full button { flex: 1; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--paper-2); color: var(--muted);
}
.tag--pub { background: var(--green-bg); color: var(--green-ink); }
.tag--ok { background: #e2ebf5; color: var(--blue); }
.tag--no { background: #ece8e1; color: #7b7468; text-decoration: line-through; }
.tag--demo { background: transparent; border: 1px dashed #b9ad98; color: #7b6f5a; }
.tag--lock { background: var(--amber-bg); color: var(--amber); }

/* ───────── Member page ───────── */
.member { background: var(--card); min-height: calc(100vh - var(--pbar)); }
.hero {
  position: relative;
  color: #fff;
  padding: 16px 20px 60px;
  background:
    radial-gradient(90% 70% at 105% -10%, rgba(25, 211, 107, .28), transparent 60%),
    linear-gradient(165deg, var(--blue) 0%, var(--navy) 62%, var(--deep) 100%);
}
.hero__top { display: flex; align-items: center; justify-content: space-between; }
.hero__logo { height: 54px; width: auto; margin-left: -4px; }
.lang { display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.lang button { border: 0; background: none; color: rgba(255, 255, 255, .75); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 99px; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--deep); }
.hero__body { margin-top: 22px; }
.host { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.host img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; border: 2px solid rgba(255, 255, 255, .9); }
.host figcaption { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.hero h1 { font-weight: 900; font-size: clamp(34px, 9.4vw, 60px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero__lede { margin-top: 14px; max-width: 34ch; font-size: 17px; color: rgba(255, 255, 255, .8); }

.sheet { position: relative; margin-top: -28px; padding: 28px 20px 44px; border-radius: 26px 26px 0 0; background: var(--card); }
.sheet__in { max-width: 480px; margin: 0 auto; display: grid; gap: 26px; }
.field > label, .field > legend, .panel > label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 15px; }
.field label em, .panel label em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 6px; }
.hint { font-size: 14px; color: var(--muted); }
.err { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--red-bg); color: var(--red); font-weight: 700; font-size: 14px; }

.stars-input { display: flex; gap: 6px; margin-left: -6px; }
.star-btn { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; cursor: pointer; }
.star-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.star-btn svg { width: 40px; height: 40px; fill: none; stroke: #b9b0a0; stroke-width: 1.4; stroke-linejoin: round; transition: transform .12s ease, fill .12s ease; }
.star-btn.on svg { fill: var(--blue); stroke: var(--blue); }
.star-btn:focus-within { outline: 3px solid var(--green); outline-offset: -2px; }
.star-btn:active svg { transform: scale(.9); }
@media (hover: hover) {
  .stars-input:hover .star-btn svg { fill: var(--blue); stroke: var(--blue); }
  .stars-input .star-btn:hover ~ .star-btn svg { fill: none; stroke: #b9b0a0; }
}
.stars-field .hint { margin-top: 2px; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  display: grid; justify-items: start; gap: 2px;
  padding: 16px 16px 15px; text-align: left;
  border: 1.5px solid var(--line); border-radius: 18px; background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.choice svg { width: 28px; height: 28px; margin-bottom: 10px; color: var(--blue); }
.choice strong { font-size: 18px; font-weight: 900; letter-spacing: -.01em; }
.choice span { font-size: 14px; color: var(--muted); }
.choice:hover { border-color: var(--blue); }
.choice[aria-pressed="true"] { border-color: var(--blue); background: #f1f6fb; box-shadow: inset 0 0 0 1.5px var(--blue); }

.panel { display: grid; gap: 12px; }
.panel > label { margin-bottom: -4px; }
.rec-idle { display: grid; justify-items: center; gap: 12px; padding: 26px 18px; text-align: center; border: 1.5px dashed #cfc5b2; border-radius: 18px; background: var(--paper); }
.rec-idle p { max-width: 30ch; }
.viewport { position: relative; overflow: hidden; border-radius: 18px; background: var(--deep); }
.viewport video { width: 100%; min-height: 200px; max-height: 58vh; object-fit: cover; background: var(--deep); }
#live { transform: scaleX(-1); }
#playback { object-fit: contain; }
.timer {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px; border-radius: 99px;
  background: rgba(0, 18, 42, .72); color: #fff; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums;
}
.timer i { width: 9px; height: 9px; border-radius: 50%; background: #ff4d42; animation: pulse 1s ease-in-out infinite; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .18); }
.bar b { display: block; height: 100%; width: 0; background: var(--green); }
.btnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btnrow .btn { flex: 1 1 auto; }
.btnrow--center { justify-content: center; }
.status { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; background: var(--paper); color: var(--ink); }
.status--ok { background: var(--green-bg); color: var(--green-ink); font-weight: 700; }
.status--err { background: var(--red-bg); color: var(--red); font-weight: 700; }
.status--rec { background: #fff1ef; color: #9c1c14; font-weight: 700; }

textarea, input[type="text"] {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  font-size: 17px; line-height: 1.45;
}
textarea { min-height: 132px; resize: vertical; }
textarea:focus, input[type="text"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 51, 102, .14); }
::placeholder { color: #9a9385; }
.count { justify-self: end; margin-top: -6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 16px; border-radius: 16px; background: var(--paper); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); }
.consent b { display: block; font-weight: 700; font-size: 15px; line-height: 1.4; }
.consent small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.fine { margin-top: -14px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* success */
.done { text-align: left; }
.done__check { width: 56px; height: 56px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.done__check svg { width: 28px; height: 28px; stroke: var(--deep); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done h2 { margin-top: 18px; font-weight: 900; font-size: 40px; letter-spacing: -.03em; line-height: 1; }
.done > p { margin-top: 8px; color: var(--muted); font-size: 17px; }
.summary { margin-top: 20px; border-top: 1px solid var(--line); }
.summary li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary li span:first-child { color: var(--muted); }
.summary li span:last-child { font-weight: 700; text-align: right; }
.tp { padding: 20px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; display: grid; gap: 10px; }
.tp h3 { font-size: 19px; font-weight: 900; letter-spacing: -.01em; }
.tp p { font-size: 15px; color: var(--muted); }
.tp .btn { justify-self: start; margin-top: 4px; }
.pnote { padding: 14px 16px; border-radius: 14px; border: 1px dashed #b9ad98; font-size: 13.5px; color: #6b604d; display: grid; gap: 6px; }
.pnote b { letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }

@media (min-width: 960px) {
  .member { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .hero { position: sticky; top: var(--pbar); height: calc(100vh - var(--pbar)); padding: 28px 56px 48px; display: flex; flex-direction: column; overflow: hidden; }
  .hero__logo { height: 68px; }
  .hero__body { margin-top: auto; }
  .host { flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 28px; position: relative; width: min(250px, 44%); }
  .host img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 22px; border: 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
  .host figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 99px; background: rgba(0, 18, 42, .72); color: #fff; font-size: 11px; backdrop-filter: blur(6px); }
  .hero h1 { font-size: clamp(44px, 4.6vw, 72px); max-width: 12ch; }
  .hero__lede { font-size: 19px; }
  .sheet { margin: 0; border-radius: 0; padding: 64px 40px 72px; display: flex; align-items: flex-start; justify-content: center; }
  .sheet__in { width: 100%; margin: auto; }
}
@media (min-width: 960px) and (max-height: 760px) { .host { width: 150px; } }

/* ───────── Testimonial card (shared: Studio stage, page preview) ───────── */
.tcard { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; }
.tcard__who { display: grid; gap: 1px; }
.tcard__who b { font-weight: 700; font-size: 15px; }
.tcard__who span { font-size: 13px; opacity: .7; }
.tcard__demo { align-self: flex-start; margin-top: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .6; padding: 2px 7px; border: 1px dashed currentColor; border-radius: 99px; }
.tcard__note { margin-top: 10px; font-size: 12px; opacity: .65; }

.tcard--quote { padding: 26px 26px 22px; gap: 18px; min-height: 280px; }
.tcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tcard__logo { height: 38px; width: auto; }
.tcard__chip { padding: 2px 6px; border-radius: 10px; background: var(--navy); }
.tcard--quote blockquote { flex: 1; font-size: clamp(19px, 2.1vw, 24px); font-weight: 500; line-height: 1.34; letter-spacing: -.012em; white-space: pre-wrap; overflow-wrap: anywhere; }
.tcard--quote blockquote::before { content: "“"; display: block; height: 34px; font-weight: 900; font-size: 64px; line-height: 1; color: var(--green); }
.tcard--navy { color: #fff; background: radial-gradient(80% 60% at 100% 0%, rgba(25, 211, 107, .2), transparent 60%), linear-gradient(160deg, var(--navy), var(--deep)); }
.tcard--blue { color: #fff; background: var(--blue); }
.tcard--blue::after { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 5px; border-radius: 0 4px 4px 0; background: var(--green); }
.tcard--paper { color: var(--ink); background: #fffdf9; box-shadow: inset 0 0 0 1px var(--line); }
.tcard--paper blockquote::before { color: var(--blue); }
.tcard--navy .stars svg, .tcard--blue .stars svg { fill: rgba(255, 255, 255, .22); }
.tcard--navy .stars i.on svg, .tcard--blue .stars i.on svg { fill: var(--green); }

.tcard--video { background: #fffdf9; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tcard--video .media { border-radius: 0; }
.tcard__foot { padding: 16px 20px 18px; display: grid; gap: 8px; }

/* media + branded frame (CSS only; independent of background treatment) */
.media { position: relative; overflow: hidden; border-radius: 16px; background: var(--deep); }
.media > video, .media canvas { width: 100%; height: auto; max-height: 64vh; background: #000; object-fit: contain; }
.media__strip { display: none; }
.media.framed { padding: 10px 10px 0; background: var(--blue); }
.media.framed::before { content: ""; position: absolute; z-index: 3; left: 10px; top: 10px; width: 48px; height: 5px; border-radius: 0 0 5px 0; background: var(--green); }
.media.framed > video, .media.framed > .scene, .media.framed > .outwrap { border-radius: 8px; overflow: hidden; }
.media.framed .media__strip { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 4px 0 6px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.media__strip img { height: 40px; width: auto; }

/* sample scene: Better Bot cutout over an illustrated room */
.scene { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #e9dfd0; isolation: isolate; }
.scene__room, .scene__blue { position: absolute; inset: 0; }
.scene__room svg { width: 100%; height: 100%; }
.scene__room { transition: filter .35s ease, transform .35s ease, opacity .25s ease; }
.scene__blue { opacity: 0; transition: opacity .25s ease; background: radial-gradient(70% 70% at 80% 10%, rgba(25, 211, 107, .22), transparent 60%), linear-gradient(160deg, #0a4a8a, var(--blue) 45%, var(--navy)); }
.scene__bot { position: absolute; left: 50%; bottom: -9%; height: 86%; width: auto; max-width: none; transform: translateX(-50%); animation: bob 3.6s ease-in-out infinite; filter: drop-shadow(0 14px 18px rgba(0, 18, 42, .28)); }
.scene__tag { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(0, 18, 42, .7); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.scene--blur .scene__room { filter: blur(9px) saturate(.9); transform: scale(1.08); }
.scene--blue .scene__room { opacity: 0; }
.scene--blue .scene__blue { opacity: 1; }
.scene--subject { background: repeating-conic-gradient(#e8e2d6 0% 25%, #f8f5ee 0% 50%) 0 0 / 16px 16px; }
.scene--subject .scene__room, .scene--subject .scene__blue, .scene--subject .scene__tag, .scene--bg .scene__bot, .scene--bg .scene__tag { display: none; }
.scene--subject .scene__bot { filter: none; }

@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0) rotate(-1deg); } 50% { transform: translateX(-50%) translateY(-2.5%) rotate(1.5deg); } }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ───────── Studio ───────── */
.studio { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: calc(100vh - var(--pbar)); background: var(--paper); }
.inbox { position: sticky; top: var(--pbar); height: calc(100vh - var(--pbar)); display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--card); }
.inbox__head { padding: 28px 24px 16px; }
.inbox__head h1 { margin-top: 6px; font-weight: 900; font-size: 34px; letter-spacing: -.03em; line-height: 1; }
.inbox__head .seg { margin-top: 18px; display: flex; }
.inbox__head .seg button { flex: 1; padding: 7px 6px; font-size: 13px; }
.inbox__list { flex: 1; overflow: auto; padding: 4px 12px 12px; }
.row { display: grid; grid-template-columns: 48px 1fr; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 16px; background: none; text-align: left; }
.row:hover { background: var(--paper); }
.row[aria-current="true"] { background: var(--paper); box-shadow: inset 3px 0 0 var(--blue); }
.row__thumb { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; overflow: hidden; background: var(--navy); color: #fff; }
.row__thumb svg { width: 18px; height: 18px; fill: currentColor; }
.row__thumb img { height: 46px; width: auto; max-width: none; margin-top: 8px; }
.row__thumb--quote { background: var(--paper-2); color: var(--blue); font-weight: 900; font-size: 34px; line-height: 1; padding-top: 12px; }
.row__thumb--bot { background: linear-gradient(160deg, #0a4a8a, var(--navy)); }
.row__main { min-width: 0; display: grid; gap: 3px; }
.row__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row__top b { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__ex { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.inbox__empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.inbox__foot { padding: 12px 24px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inbox__foot .linkbtn { font-size: 12.5px; color: var(--muted); padding: 0; }

.review { min-width: 0; padding: 32px clamp(18px, 3.2vw, 44px) 72px; }
.review__empty { display: grid; place-items: center; min-height: 50vh; color: var(--muted); }
.back { display: none; }
.rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.rv-head h2 { margin-top: 6px; font-weight: 900; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.035em; line-height: 1; overflow-wrap: anywhere; }
.rv-rating { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 22px; letter-spacing: -.02em; }
.rv-rating small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.rv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; margin-top: 26px; align-items: start; }
.rv-main { min-width: 0; display: grid; gap: 34px; }
.box-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.box-head h3 { font-weight: 900; font-size: 20px; letter-spacing: -.02em; }
.box-head__tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.switch { display: inline-flex; align-items: center; gap: 9px; border: 0; background: none; padding: 6px 2px; font-weight: 700; font-size: 13.5px; }
.switch i { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #cfc6b5; transition: background .15s ease; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.switch[aria-checked="true"] i { background: var(--blue); }
.switch[aria-checked="true"] i::after { transform: translateX(16px); }

.stage { display: grid; gap: 18px; }
.pane { min-width: 0; }
.pane__label { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.pane__label b { color: var(--ink); font-weight: 700; margin-right: 6px; }
.outwrap { position: relative; }
.outwrap canvas { min-height: 120px; background: var(--deep); }
.fxmsg { padding: 20px; color: #fff; font-size: 14px; display: grid; gap: 8px; }
.fxmsg--loading { position: absolute; inset: 0; place-content: center; text-align: center; background: rgba(0, 18, 42, .6); }
.fxmsg b { font-size: 16px; }
.fxmsg p { color: rgba(255, 255, 255, .8); }
.fxmsg code { display: block; padding: 9px 12px; border-radius: 8px; background: rgba(255, 255, 255, .1); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; overflow-wrap: anywhere; user-select: all; }
@media (min-width: 1000px) { .stage.is-split { grid-template-columns: 1fr 1fr; } }
.stage--quote { padding: clamp(16px, 3vw, 36px); border-radius: 20px; background: var(--paper-2); }
.stage--quote .tcard { max-width: 520px; margin: 0 auto; box-shadow: var(--shadow); }

.layers { display: grid; grid-template-columns: 110px 110px 1fr; gap: 14px; align-items: center; margin-top: 16px; }
.layers figure { display: grid; gap: 5px; }
.layers .scene { border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line); }
.layers .scene__bot { animation: none; }
.layers figcaption { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.layers p, .stage-note { font-size: 13.5px; color: var(--muted); }
.stage-note { margin-top: 12px; }
@media (max-width: 560px) { .layers { grid-template-columns: 1fr 1fr; } .layers p { grid-column: 1 / -1; } }

.orig { padding: 20px 22px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.orig__text { font-size: 17px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px 20px; }
.facts div { display: grid; gap: 1px; }
.facts dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; font-size: 15px; }
.orig__note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.browser { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #e9e3d7; font-size: 12px; color: var(--muted); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9bfad; }
.browser__bar span { margin-left: 8px; padding: 3px 12px; border-radius: 99px; background: #f6f2ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.decision { position: sticky; top: calc(var(--pbar) + 20px); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.dsec { padding: 18px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.dsec:last-child { border-bottom: 0; }
.dsec h3 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.permit { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.permit i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.permit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.permit b { display: block; font-size: 15px; }
.permit small { display: block; font-size: 13px; color: var(--muted); }
.permit--yes i { background: var(--green-bg); color: var(--green-ink); }
.permit--no i { background: var(--amber-bg); color: var(--amber); }
.dbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dbtn { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14.5px; }
.dbtn:hover { border-color: var(--blue); }
.dbtn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.dbtn--no[aria-pressed="true"] { background: #5d564b; border-color: #5d564b; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; }
.chip::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #b9b0a0; }
.chip[aria-pressed="true"] { border-color: var(--blue); background: #f1f6fb; }
.chip[aria-pressed="true"]::before { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.3l2.6 2.6L11 4.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.why { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.why li { padding-left: 16px; position: relative; }
.why li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: #c7a96a; }
.live { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--green-ink); }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(25, 211, 107, .22); }
.dfine { font-size: 12.5px; color: var(--muted); }
.danger { color: var(--red); font-size: 13px; justify-self: start; }

@media (max-width: 1240px) {
  .rv-grid { grid-template-columns: minmax(0, 1fr); }
  .decision { position: static; }
}
@media (max-width: 860px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .inbox { position: static; height: auto; border-right: 0; min-height: calc(100vh - var(--pbar)); }
  .studio[data-pane="list"] .review, .studio[data-pane="detail"] .inbox { display: none; }
  .review { padding-top: 16px; }
  .back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; border: 0; background: none; padding: 8px 0; font-weight: 700; color: var(--blue); }
  .rv-head { align-items: flex-start; flex-direction: column; gap: 12px; }
}

/* ───────── Mock marketing page (card in context) ───────── */
.public { background: var(--paper-2); min-height: calc(100vh - var(--pbar)); padding: 20px clamp(12px, 3vw, 36px) 60px; }
.pv-bar { max-width: 1180px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.pv-bar p { font-size: 13.5px; color: #6b604d; }
.pv-bar p b { letter-spacing: .08em; text-transform: uppercase; font-size: 11px; margin-right: 8px; padding: 2px 8px; border: 1px dashed #b9ad98; border-radius: 99px; }
.pv-bar .seg { background: #dfd6c5; }
.public .browser { max-width: 1180px; margin: 0 auto; }

.site__nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 28px; background: var(--deep); color: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site__nav img { height: 52px; width: auto; }
.site__body { padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 56px) clamp(36px, 6vw, 72px); }
.site__body h2 { margin-top: 8px; font-weight: 900; font-size: clamp(30px, 4.6vw, 56px); letter-spacing: -.035em; line-height: 1.02; }
.site__cards { margin-top: clamp(22px, 3vw, 40px); display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; align-items: start; }
.site__empty { margin-top: 28px; padding: 36px 20px; border-radius: 18px; border: 1.5px dashed currentColor; text-align: center; opacity: .7; font-size: 15px; }
.site__empty a { font-weight: 700; }
.site--testimonials .site__body { background: var(--paper); color: var(--ink); }
.site--club .site__body { background: var(--navy); color: #fff; }
.site--home .site__body { color: #fff; background: radial-gradient(70% 60% at 100% 0%, rgba(25, 211, 107, .22), transparent 60%), linear-gradient(165deg, var(--blue), var(--navy)); }
.site--club .eyebrow, .site--home .eyebrow { color: var(--green); }
.site--club .tcard, .site--home .tcard { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 48px -24px rgba(0, 0, 0, .6); }
.site--home .site__cards { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.site--mini .site__nav { padding: 4px 18px; }
.site--mini .site__nav img { height: 40px; }
.site--mini .site__body { padding: 26px 22px 34px; }
.site--mini .site__body h2 { font-size: 28px; }
.site--mini .site__cards { grid-template-columns: minmax(0, 420px); margin-top: 18px; }
@media (max-width: 420px) { .site__cards, .site--home .site__cards { grid-template-columns: minmax(0, 1fr); } }

.compare-link{margin:12px 0 0}.compare-link a,.upload-look{color:#064371;font-weight:700}.upload-look{position:relative;cursor:pointer}.upload-look input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.upload-look:focus-within{outline:2px solid #075dac;outline-offset:3px}
