/* Roboto (SIL OFL, fonts/Roboto-OFL.txt), served from this site: one variable file covers every weight */
@font-face { font-family: "Roboto CS"; src: url(/fonts/roboto.d7598e12c5.ttf) format("truetype"); font-weight: 100 900; font-stretch: 75% 100%; font-display: swap; }
body.cs { font-family: "Roboto CS", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; }   /* Clip Source web app only */
/* Lifted Media sales site: shared styles for the landing page and the customer app. Mobile first. */
:root {
  --bg: #0e1412; --card: #17201c; --line: #26332d; --ink: #eef4ef; --mute: #a3b3aa;
  --acc: #7fb241; --acc-ink: #0d1a05; --acc2: #f4b740; --warn-bg: #3a2c08; --warn: #fde8a8;
  --ok-bg: #173d1d; --ok: #c4f1c9; --err: #ffb4a8; --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--acc); }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--acc2); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 8px; z-index: 99; }

header.top { position: sticky; top: 0; z-index: 10; background: rgba(14, 20, 18, .96); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand img { height: 40px; width: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 12px 20px;
       font: 700 16px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn.p { background: var(--acc); color: var(--acc-ink); }
.btn.s { background: transparent; color: var(--ink); border: 1.5px solid #3b4d44; }
.btn.sm { padding: 8px 14px; font-size: 14px; min-height: 40px; }
.btn[disabled] { opacity: .5; cursor: default; }

.hero { padding: 28px 0 20px; }
.hero h1 { font-size: 30px; line-height: 1.15; margin: 0 0 10px; }
.hero p { color: var(--mute); margin: 0 0 18px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.reel { margin-top: 18px; border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.reel video, .reel img { width: 100%; height: 100%; object-fit: contain; }
.disc { font-size: 13px; color: var(--warn); background: var(--warn-bg); border-radius: 8px; padding: 8px 10px; margin: 10px 0 0; }

h2 { font-size: 22px; margin: 32px 0 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.clip { background: var(--card); border-radius: var(--r); overflow: hidden; border: 0; padding: 0; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.clip .th { position: relative; aspect-ratio: 16 / 9; background: #000; }
.clip .th img { width: 100%; height: 100%; object-fit: cover; }
.clip .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .75); font-size: 11px; padding: 2px 6px; border-radius: 6px; }
.clip .m { padding: 8px 10px; font-size: 13px; color: var(--mute); }
.clip .m b { display: block; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip[aria-current="true"] { outline: 2px solid var(--acc); }
.tag { display: inline-block; font-size: 11px; padding: 2px 6px; border-radius: 6px; }
.tag.unl { background: var(--ok-bg); color: var(--ok); }

.prices { display: grid; gap: 10px; }
.pc { background: var(--card); border-radius: var(--r); padding: 16px; border: 1.5px solid var(--line); display: flex; flex-direction: column; }
.pc.hl { border-color: var(--acc); }
.pc h3 { margin: 0 0 4px; font-size: 17px; }
.pc .amt { font-size: 26px; font-weight: 800; }
.pc .amt small { font-size: 14px; color: var(--mute); font-weight: 400; }
.pc ul { margin: 8px 0 12px; padding-left: 18px; color: var(--mute); font-size: 14px; flex: 1; }
.note { color: var(--mute); font-size: 13px; }

details { background: var(--card); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
summary { font-weight: 700; cursor: pointer; }
footer.foot { color: var(--mute); font-size: 13px; padding: 28px 0 96px; }

.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
          background: rgba(14, 20, 18, .97); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.sticky .btn { flex: 1; }

/* app */
.acct { background: var(--card); border-radius: var(--r); padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; margin: 12px 0; }
.acct .who { min-width: 0; } .acct .who b { display: block; overflow: hidden; text-overflow: ellipsis; }
.acct .mailopt { display: flex; align-items: center; gap: 6px; margin-top: 4px; cursor: pointer; } .acct .mailopt input { margin: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.chip { background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 13px/1.2 inherit; font-family: inherit; white-space: nowrap; cursor: pointer; min-height: 36px; }
.chip[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.actions { display: flex; gap: 10px; margin: 10px 0 4px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 140px; }
.panel { max-width: 440px; margin: 48px auto; background: var(--card); border-radius: var(--r); padding: 24px; text-align: center; }
.panel h1 { font-size: 24px; margin: 0 0 6px; }
#gsi { display: flex; justify-content: center; min-height: 44px; margin: 18px 0 8px; }
.msg { border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.msg.ok { background: var(--ok-bg); color: var(--ok); } .msg.err { background: #3d1712; color: var(--err); } .msg.info { background: var(--card); color: var(--mute); }
.hidden { display: none !important; }

dialog { border: 0; border-radius: var(--r); background: var(--card); color: var(--ink); width: min(560px, calc(100% - 24px)); padding: 0; }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog .hd { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
dialog .hd h2 { margin: 0; font-size: 18px; }
dialog .bd { padding: 14px 16px; display: grid; gap: 10px; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.opt div { min-width: 0; } .opt small { color: var(--mute); display: block; }

@media (min-width: 720px) {
  .hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
  .hero h1 { font-size: 44px; } .reel { margin: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .prices { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .sticky { display: none; } footer.foot { padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* event cards: show the whole event name */
#events .clip .m b { white-space: normal; }

/* app views + code entry */
.views { display: flex; gap: 6px; margin: 14px 0 0; overflow-x: auto; }
.view { flex: 0 0 auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
        padding: 10px 16px; font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; min-height: 44px; }
.view[aria-selected="true"] { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.codeform { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.codeform input { flex: 1 1 180px; max-width: 260px; min-height: 48px; border-radius: 12px; border: 1.5px solid #3b4d44; background: var(--bg);
                  color: var(--ink); font: 700 22px/1 ui-monospace, Consolas, monospace; letter-spacing: .15em; text-align: center; text-transform: uppercase; }

/* customer app: bigger logo, code bar, menu (bottom tab bar on phones) */
header.top.app .brand.big img { height: 60px; }
.codebar { border-top: 1px solid var(--line); background: #121a17; }
.codebar .wrap { display: block; padding-top: 8px; padding-bottom: 8px; }
.codeform.inline { justify-content: flex-start; align-items: center; flex-wrap: nowrap; gap: 8px; }
.codeform.inline label { font-weight: 700; white-space: nowrap; }
.codeform.inline input { flex: 1 1 auto; max-width: 220px; min-height: 40px; font-size: 18px; }
.menu { display: flex; gap: 8px; margin: 14px 0 4px; }
.mi { display: flex; align-items: center; gap: 8px; background: var(--card); color: var(--ink); border: 1px solid var(--line);
      border-radius: 12px; padding: 10px 16px; font: 600 15px/1.1 inherit; font-family: inherit; cursor: pointer; min-height: 48px; }
.mi .ic { font-size: 18px; }
.mi[aria-selected="true"] { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.mi:hover { border-color: var(--acc); }
@media (max-width: 719px) {
  header.top.app .brand.big img { height: 50px; }
  .menu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; gap: 0; background: rgba(14, 20, 18, .98);
          border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .mi { flex: 1 1 0; flex-direction: column; gap: 2px; border: 0; border-radius: 10px; background: transparent; padding: 6px 2px;
        font-size: 11px; text-align: center; min-height: 54px; }
  .mi .ic { font-size: 20px; }
  .mi[aria-selected="true"] { background: rgba(127, 178, 65, .18); color: var(--acc); }
  #shop { padding-bottom: 80px; }
}


.codeform.inline label { flex: 0 0 auto; }

/* code bar: the form spans the bar and the box takes the free space */
.codeform.inline { width: 100%; }
.codeform.inline input { flex: 1 1 auto; width: auto; min-width: 0; max-width: 280px; }
.empty-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px; text-align: center; margin: 14px 0; }
.empty-card b { display: block; font-size: 18px; margin-bottom: 6px; }

/* code wallet in the header */
header.top.app .wrap { gap: 10px; }
.codewrap { position: relative; flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.codesbtn { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 8px 14px; border-radius: 999px;
            border: 1.5px solid var(--acc); background: rgba(127, 178, 65, .12); color: var(--ink); font: 700 15px/1 inherit; font-family: inherit; cursor: pointer; }
.codesbtn #codeslabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.codesbtn .caret { color: var(--acc); }
.codesbtn[aria-expanded="true"] { background: var(--acc); color: var(--acc-ink); }
.codesbtn[aria-expanded="true"] .caret { color: var(--acc-ink); }
.pop { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 30; width: min(360px, calc(100vw - 24px));
       background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
.popform label { display: block; font-weight: 700; margin-bottom: 6px; }
.popform .row { display: flex; gap: 8px; }
.popform input { flex: 1 1 auto; min-width: 0; min-height: 44px; border-radius: 10px; border: 1.5px solid #3b4d44; background: var(--bg); color: var(--ink);
                 font: 700 17px/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; padding: 0 10px; text-transform: uppercase; }
.popform small { color: var(--mute); display: block; margin-top: 6px; }
.walletttl { margin: 14px 0 6px; font-weight: 700; font-size: 13px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.wallet { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; }
.wi { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; text-align: left; padding: 10px 12px; border-radius: 10px;
      border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 600 15px/1.2 inherit; font-family: inherit; cursor: pointer; }
.wi .ic { font-size: 18px; } .wi .ct { color: var(--mute); font-size: 13px; font-weight: 400; }
.wi:hover, .wi[aria-current="true"] { border-color: var(--acc); }
.wi[aria-current="true"] { background: rgba(127, 178, 65, .15); }
.switch { display: flex; gap: 8px; align-items: center; overflow-x: auto; margin: -4px 0 10px; padding-bottom: 4px; }
@media (max-width: 719px) {
  .codesbtn { padding: 8px 10px; font-size: 14px; }
  header.top.app .brand.big img { height: 46px; }
}

#signout { white-space: nowrap; flex: 0 0 auto; }
header.top.app .brand { flex: 0 0 auto; }

/* Clip Source wordmark in the app header (wide logo: limit by width on phones) */
header.top.app .brand.cs img { height: 46px; width: auto; max-width: 46vw; object-fit: contain; }
@media (max-width: 719px) { header.top.app .brand.cs img { height: auto; max-height: 40px; max-width: 42vw; } }

/* phones: logo + Sign out on top, full-width code button underneath */
@media (max-width: 719px) {
  header.top.app .wrap { flex-wrap: wrap; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  header.top.app .brand.cs img { max-height: 46px; max-width: 64vw; }
  .codewrap { order: 3; flex: 1 1 100%; }
  .codesbtn { width: 100%; justify-content: center; min-height: 46px; font-size: 15px; }
}

/* stacked Clip Source logo on the sign-in card */
#signin .cs-stacked { display: block; width: min(320px, 78%); height: auto; margin: 4px auto 14px; }
#signin h1 { margin-top: 0; }
/* menu: back to the Lifted Media website (right end on computers, 5th tab on phones) */
a.mi { text-decoration: none; }
.mi.site { margin-left: auto; }
@media (max-width: 719px) { .mi.site { margin-left: 0; } }

/* sign-in screen: video behind everything, sign-in card at 20% so the video shows through */
.bgvid { display: none; position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: -1; pointer-events: none; }
body.out .bgvid { display: block; }
body.out { background: #000; }
body.out header.top.app { display: none; }
body.out #signin.panel { background: rgba(22, 28, 26, .2); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
body.out #signin .note { color: #e8eee9; }
body.out .foot { text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
@media (prefers-reduced-motion: reduce) { body.out .bgvid { display: none; } }

/* player strip under the video: loop, mute, volume */
.pctl { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pctl[hidden] { display: none; }
.pbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 44px; padding: 0 12px; justify-content: center;
        border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; }
.pbtn:hover { border-color: var(--acc); }
#loopbtn[aria-pressed="true"] { background: rgba(127, 178, 65, .18); border-color: var(--acc); color: var(--acc); }
#vol { flex: 1 1 auto; max-width: 260px; min-width: 90px; height: 28px; accent-color: var(--acc); cursor: pointer; }
#vol[hidden] { display: none; }

/* Clip Source: clip note under the player is a quiet line, not a warning box */
body.cs .disc { background: none; padding: 0; border-radius: 0; margin: 8px 0 0; color: var(--mute); font-size: 13px; line-height: 1.4; }
body.cs .disc:not(:empty)::before { content: "ⓘ "; opacity: .8; }
body.cs .disc:empty { display: none; }

/* batch download: list header with the select bar; cards get a check badge while picking */
.listhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.listhead h2 { margin: 0; }
.batch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.batch[hidden] { display: none; }
.batch .count { color: var(--mute); font-size: 14px; }
.grid.picking .clip { position: relative; }
.grid.picking .clip:disabled { opacity: .4; cursor: not-allowed; }
.grid.picking .th { position: relative; }
.pick { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff;
        background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; font: 700 16px/1 inherit; font-family: inherit; }
.grid.picking .clip[aria-pressed="true"] { outline: 3px solid var(--acc); outline-offset: 2px; }
.grid.picking .clip[aria-pressed="true"] .pick { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.batch .x { min-width: 40px; padding: 0 10px; justify-content: center; }
@media (max-width: 719px) {
  .batch { flex: 1 1 100%; gap: 6px; }
  .batch .btn.sm { padding-left: 12px; padding-right: 12px; }
  .batch .count { margin-right: auto; }
}
