/* The pitch pages: the designer's (pitch.html, Sonder's own dark, quiet look) and the client's (share.html, a
   neutral light page under the designer's name). Shared: the type, the controls and the scaled live previews. */
:root {
  --bg: #050505;
  --ink: #f1f1f1;
  --muted: #9b9b9b;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.34);
  --field: rgba(255, 255, 255, 0.04);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --side: clamp(16px, 4vw, 48px);
  --serif: "Hedvig Letters Serif", Georgia, serif;
  --sans: "Hedvig Letters Sans", system-ui, sans-serif;
}
/* The client's page: light and neutral, so the directions are what carry colour. */
.client {
  --bg: #f4f3f0;
  --ink: #141414;
  --muted: #6b6965;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.3);
  --field: rgba(0, 0, 0, 0.03);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.top { display: flex; align-items: center; gap: 16px; padding: 22px var(--side); border-bottom: 1px solid var(--line); }
.top .mark { font: 400 22px/1 var(--serif); text-decoration: none; }
.top .where { color: var(--muted); font-size: 14px; }
.top .me { margin-left: auto; color: var(--muted); font-size: 14px; }
.top .me a, .top .me button { border: 0; background: none; padding: 4px 0; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

main { width: min(1240px, 100%); margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--side) 96px; }
h1 { margin: 0 0 10px; font: 400 clamp(36px, 5vw, 60px)/1.05 var(--serif); letter-spacing: -0.01em; }
.lede { margin: 0 0 40px; max-width: 60ch; color: var(--muted); }
h2 { margin: 0 0 6px; font: 400 22px/1.25 var(--serif); }

/* ---- The form ---- */
.pitch-form { display: grid; gap: 28px; max-width: 760px; }
.group { display: grid; gap: 10px; }
.group > .label { font-size: 14px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.text, .area, select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--field);
  transition: border-color 0.2s;
}
.area { min-height: 120px; resize: vertical; line-height: 1.55; }
.text:hover, .area:hover, select:hover { border-color: var(--line-strong); }
.text::placeholder, .area::placeholder { color: var(--muted); opacity: 0.8; }
select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
select option { background: #111; color: #f1f1f1; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.seg button:hover { border-color: var(--line-strong); }
.seg button[aria-pressed="true"] { border-color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.files { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.files .ghost, .ghost { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px dashed var(--line-strong); background: none; color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.ghost:hover { color: var(--ink); border-color: var(--ink); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.92); padding: 4px; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
details.more { border-top: 1px solid var(--line); padding-top: 18px; }
details.more summary { cursor: pointer; color: var(--muted); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; }
details.more[open] summary::before { content: "− "; }
details.more[open] summary { margin-bottom: 18px; }
.foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.primary { min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font-size: 17px; cursor: pointer; transition: transform 0.25s var(--ease-out), opacity 0.2s; }
.primary:hover { opacity: 0.9; }
a.primary { display: inline-flex; align-items: center; text-decoration: none; }
.primary:active { transform: scale(0.97); }
.primary:disabled { opacity: 0.4; cursor: not-allowed; }
.secondary { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; text-decoration: none; display: inline-flex; align-items: center; }
.secondary:hover { border-color: var(--ink); }
.secondary:active { transform: scale(0.98); }
.error { color: #ff8a7a; }
.client .error { color: #b3261e; }

/* ---- Recent pitches ---- */
.recent { margin-top: 72px; max-width: 760px; }
.recent ul { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.recent li a { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding 0.25s var(--ease-out); }
.recent li a:hover { padding-left: 8px; }
.recent li b { font-weight: 400; }
.recent li span { margin-left: auto; color: var(--muted); font-size: 14px; }

/* ---- The board: the directions side by side ---- */
.board-head { display: flex; flex-wrap: wrap; align-items: end; gap: 18px 28px; margin-bottom: 36px; }
.board-head .actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.state { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.state .dot, .rv-wait .dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--ink); vertical-align: 2px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.banner { margin: 0 0 28px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-strong); }
.banner b { font-weight: 400; font-family: var(--serif); font-size: 18px; }
.dirs { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.dir { display: grid; gap: 12px; align-content: start; }
.frame { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.frame iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; }
.frame .wait { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.dir.picked .frame { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.dir .label { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.dir h3 { margin: 0; font: 400 21px/1.25 var(--serif); }
.dir p { margin: 0; color: var(--muted); font-size: 15px; }
.dir .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dir .row a, .dir .row button { font-size: 14px; }
.convert { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.convert span { font-size: 14px; color: var(--muted); }
.log { margin-top: 56px; color: var(--muted); font-size: 13px; }
.log summary { cursor: pointer; }
.log ol { padding-left: 18px; }

/* ---- The client's page ---- */
.client .top { border-bottom: 0; padding-top: 28px; }
.client .top .mark { font-size: 18px; }
.client h1 { max-width: 22ch; text-wrap: balance; }
.client .dir h3 { font-size: 24px; }
.client .choose { min-height: 48px; }
.client .chosen { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.client .chosen::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
dialog { width: min(520px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--bg); color: var(--ink); }
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
dialog h2 { margin-bottom: 14px; }
dialog .foot { margin-top: 18px; }
.made { margin-top: 80px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.made a { text-decoration: none; }

@media (max-width: 900px) {
  .dirs { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .two { grid-template-columns: 1fr; }
  .top .where { display: none; }
  .board-head .actions { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---- Quick pitches ---- */
.quick-form .area { min-height: 150px; font-family: var(--sans); }
.label .opt { color: var(--muted); font-size: 0.85em; margin-left: 6px; }
.more-way { margin-top: 18px; }
.more-way a, .quick-extra a { color: var(--ink); }
.quick-extra { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; margin: 22px 0 6px; }
.quick-extra img { width: 100%; border-radius: 8px; display: block; }
.quick-extra p { margin: 6px 0 0; line-height: 1.5; }
@media (max-width: 760px) { .quick-extra { grid-template-columns: 1fr; } }
/* Quick pitches: the looks picked for a batch. */
.looks-pick { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; }
.chip:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip:has(input:disabled) { opacity: .4; cursor: default; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---- The batch review (review.js): one quick pitch at a time, its live concept as the hero ---- */
body.reviewing .top { display: none; }
body.reviewing main { width: 100%; max-width: none; padding: 0; }
.rv { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--side) 6px; }
.rv-title { display: flex; align-items: baseline; gap: 18px; min-width: 0; }
.rv-title .mark { font: 400 20px/1 var(--serif); text-decoration: none; color: var(--muted); }
.rv-title h1 { margin: 0; font: 400 26px/1.1 var(--serif); letter-spacing: -0.01em; white-space: nowrap; }
.rv-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.rv-help { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font-size: 13px; }
.rv-help:hover, .rv-help[aria-expanded="true"] { border-color: var(--line-strong); color: var(--ink); }
.rv-body { display: flex; justify-content: center; align-items: start; padding: 6px var(--side) 0; min-height: 0; }
.rv-col { width: var(--stage-w, 100%); max-width: 100%; display: grid; gap: 12px; }
.rv-msg { padding-top: 12vh; }

/* The preview: a 16:10 frame, live pages stacked in it at 1440 wide and scaled. */
.rv-stage { position: relative; aspect-ratio: 1440 / 900; border-radius: 12px; overflow: hidden; background: #0b0b0b; isolation: isolate; }
.rv-layers, .rv-layer { position: absolute; inset: 0; }
.rv-layer { opacity: 0; pointer-events: none; }
.rv-layer.on { opacity: 1; pointer-events: auto; }
.rv-layer iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .6)); background: #0b0b0b; }
.rv-before { position: absolute; inset: 0; z-index: 2; pointer-events: none; clip-path: inset(0 100% 0 0); }
.rv-before img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.rv-handle { position: absolute; top: 0; bottom: 0; z-index: 4; width: 32px; margin-left: -16px; cursor: ew-resize; touch-action: none; }
.rv-handle::before { content: ""; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.rv-handle span { position: absolute; left: 4px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.rv-wait { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; gap: 14px; justify-items: center; color: var(--muted); text-align: center; padding: 24px; background: #0b0b0b; }
.rv-wait p { margin: 0; max-width: 52ch; }
.rv-shimmer { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .3s; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%) 0 0 / 250% 100%; }
.rv-stage.busy .rv-shimmer { opacity: 1; animation: rv-shimmer 1.4s linear infinite; }
@keyframes rv-shimmer { from { background-position: 125% 0; } to { background-position: -125% 0; } }

/* Over the preview: the looks top left, Compare and Open live top right; small and translucent. */
.rv-dirs { position: absolute; z-index: 6; top: 12px; left: 12px; display: flex; padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(16,16,16,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rv-dirs button { border: 0; background: none; color: rgba(255,255,255,.72); font-size: 12.5px; padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.rv-dirs button:hover { color: #fff; }
.rv-dirs button[aria-selected="true"] { background: rgba(255,255,255,.16); color: #fff; }
.rv-tools { position: absolute; z-index: 6; top: 12px; right: 12px; display: flex; gap: 6px; }
.rv-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(16,16,16,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; cursor: pointer; }
.rv-icon:hover, .rv-icon[aria-pressed="true"] { background: rgba(255,255,255,.22); }
.rv-tip { position: absolute; z-index: 7; max-width: 340px; padding: 8px 12px; border-radius: 8px; background: rgba(10,10,10,.88); color: #fff; font-size: 13px; line-height: 1.4; pointer-events: none; }

/* Under the preview. */
.rv-adjust { display: grid; gap: 8px; }
.rv-adjust-bar { display: flex; gap: 8px; }
.rv-adjust-bar input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--field); }
.rv-adjust-bar .primary { min-height: 44px; padding: 0 18px; }
.rv-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-chip { min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.rv-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.rv-note { margin: 0; min-height: 1em; color: var(--muted); font-size: 13px; }
.rv-info { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.rv-who { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.rv-name { font: 400 26px/1.1 var(--serif); text-decoration: none; }
.rv-name[href]:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.rv-host { color: var(--muted); font-size: 14px; }
.rv-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.rv-status i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); }
.rv-status i.on { background: #6fdc8c; }
.rv-actions { display: flex; gap: 8px; }
.rv-actions .secondary { min-height: 38px; padding: 0 16px; font-size: 14px; }
.rv-actions .secondary:disabled { opacity: .4; cursor: default; }
.rv-more { width: 38px; padding: 0 !important; font-size: 18px !important; line-height: 1; }
.rv-opener { margin: -4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; cursor: text; border-radius: 6px; padding: 2px 6px; margin-left: -6px; outline: none; }
.rv-opener:hover { color: var(--ink); background: var(--field); }
.rv-opener:empty::before { content: attr(data-empty); color: var(--muted); opacity: .7; }
.rv-opener[contenteditable="true"], .rv-opener[contenteditable="plaintext-only"] { color: var(--ink); background: var(--field); box-shadow: 0 0 0 1px var(--line-strong); }

/* The filmstrip. */
.rv-strip { display: flex; justify-content: center; gap: 8px; padding: 14px var(--side) 16px; overflow-x: auto; }
.rv-thumb { flex: none; width: 88px; aspect-ratio: 1440 / 900; padding: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #111; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s, transform .2s var(--ease-out); }
.rv-thumb:hover { opacity: .85; }
.rv-thumb[aria-current="true"] { opacity: 1; border-color: var(--ink); transform: translateY(-2px); }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.rv-thumb.pending { background: #161616; animation: pulse 2.4s ease-in-out infinite; }
.rv-thumb.failed { background: repeating-linear-gradient(135deg, #141414 0 6px, #1b1b1b 6px 12px); }

/* Popovers: More, Regenerate, the shortcuts. */
.rv-pop { position: absolute; z-index: 20; min-width: 220px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: #121212; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.rv-menu a, .rv-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 14px; text-decoration: none; cursor: pointer; }
.rv-menu a:hover, .rv-menu button:hover { background: rgba(255,255,255,.07); }
.rv-regen { padding: 14px; width: 280px; display: grid; gap: 12px; }
.rv-regen fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 2px; }
.rv-regen legend { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.rv-regen label { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.rv-regen label:hover { background: rgba(255,255,255,.06); }
.rv-regen input { accent-color: #f1f1f1; }
.rv-regen .hint { margin: 0; }
.rv-keys { padding: 14px 16px; width: 300px; }
.rv-keys h2 { font-size: 16px; margin: 0 0 10px; }
.rv-keys dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.rv-keys dt { color: var(--ink); white-space: nowrap; }
.rv-keys dd { margin: 0; color: var(--muted); }
@media (max-width: 700px) {
  .rv-title .mark { display: none; }
  .rv-dirs button { padding: 5px 9px; font-size: 11.5px; }
  .rv-name { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-thumb, .rv-shimmer { transition: none; }
  .rv-thumb.pending, .rv-stage.busy .rv-shimmer { animation: none; }
}
.rv [hidden] { display: none !important; }
.rv-adjust-bar .primary, .rv-regen .primary { font-size: 15px; }

/* ---- Clients (clients.html) ---- */
.client-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.client { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); display: grid; gap: 14px; }
.client-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.client-logo { width: 52px; height: 52px; flex: none; border-radius: 12px; background: #f1f1f1; display: grid; place-items: center; overflow: hidden; }
.client-logo img { max-width: 80%; max-height: 70%; object-fit: contain; }
.client-logo span { color: #050505; font: 400 24px/1 var(--serif); }
.client-name { flex: 1; min-width: 0; }
.client-name h2 { margin: 0; }
.client-name a { color: var(--muted); font-size: 14px; }
.client-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.client-actions .secondary { min-height: 38px; font-size: 14px; padding: 0 14px; }
.client-kit { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; font-size: 14px; }
.client-kit .label { color: var(--muted); }
.client-kit .sw { display: inline-flex; gap: 4px; }
.client-kit .sw i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }
.client-kit .look { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.client-kit .hint { margin: 0; }
.client details summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.client-items { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.client-items a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.client-items a:hover { background: rgba(255,255,255,.05); }
.client-items b { font-weight: 400; }
.client-items span { color: var(--muted); text-align: right; }
