/* adtwist portal: one stylesheet. Tokens from ~/advert-animation (ink, violet accent, soft violet, good/bad), phone
   first, light and dark. Display: Space Grotesk; text: Inter; Hindi: Noto Sans Devanagari. */
:root {
  --bg: #f6f5fa; --surface: #ffffff; --ink: #1d1a33; --muted: #6e6a86; --line: #e7e4f0;
  --accent: #5b3fd1; --accent2: #7b5cd6; --soft: #f0ecff; --good: #1f9d63; --bad: #c2362b; --warn: #b7791f;
  --s1: #5b3fd1; --s2: #2f7fd6; --s3: #c2368f; --s4: #e07a1f; --s5: #1f9d63; --s6: #7b5cd6; --s7: #1d1a33;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px; --shadow: 0 1px 2px rgba(29,26,51,.06), 0 8px 28px rgba(29,26,51,.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #12101c; --surface: #1b1829; --ink: #eceaf6; --muted: #a29eba; --line: #2c2840;
  --accent: #9b85ff; --accent2: #b39dff; --soft: #262041; --good: #4cc98f; --bad: #ef7a6f; --warn: #e9b35a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #12101c; --surface: #1b1829; --ink: #eceaf6; --muted: #a29eba; --line: #2c2840;
  --accent: #9b85ff; --accent2: #b39dff; --soft: #262041; --good: #4cc98f; --bad: #ef7a6f; --warn: #e9b35a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark }

* { box-sizing: border-box }
html, body { margin: 0 }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased }
img, video { max-width: 100%; display: block }
a { color: inherit }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; text-wrap: balance; margin: 0 }
p { margin: 0 }
button { font: inherit; cursor: pointer }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.muted { color: var(--muted) }
.small { font-size: 14px }
.eyebrow { font: 600 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent) }

/* top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line) }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg) }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px }
.brand { font: 700 22px/1 var(--display); text-decoration: none; letter-spacing: -.02em; display: inline-flex; align-items: baseline }
.brand b { color: var(--accent); font-weight: 700; display: inline-block; transform: rotate(-8deg) translateY(-1px); margin: 0 1px }
.top nav { display: flex; gap: 18px; margin-left: auto; align-items: center }
.top nav a { text-decoration: none; color: var(--muted); font-size: 15px }
.top nav a:hover { color: var(--ink) }
.top nav a.btn, .top nav a.btn:hover { color: #fff }
@media (max-width: 640px) { .top nav a.hide-sm { display: none } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 20px;
  font: 600 15px/1 var(--body); text-decoration: none; background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent) }
.btn:hover { background: var(--accent2) }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line) }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent) }
.btn.sm { padding: 9px 14px; font-size: 14px }
.btn[disabled] { opacity: .55; cursor: default }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow) }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--accent); font-size: 13px; font-weight: 600 }
.chip.plain { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line) }
.hi { font-family: "Noto Sans Devanagari", var(--body) }

/* phone frame */
.phone { position: relative; width: 100%; max-width: 300px; aspect-ratio: 9/19.5; border-radius: 42px; padding: 10px; background: #0f0d18;
  box-shadow: 0 30px 60px rgba(29,26,51,.28), inset 0 0 0 2px #2a2640 }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; border-radius: 12px; background: #0f0d18; z-index: 2 }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; background: #000 }
.phone .unmute { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; border: 0; border-radius: 999px; padding: 8px 14px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 13px; backdrop-filter: blur(6px) }

/* landing */
.hero { padding-block: 56px 40px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.02; letter-spacing: -.03em }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: currentColor; opacity: .18; border-radius: 4px; transform: rotate(-1.5deg) }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 33em; margin-top: 18px }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px }
.hero .proof { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px }
.hero-phone { display: flex; justify-content: center; position: relative }
.hero-phone .tag { position: absolute; right: 0; top: 14%; transform: rotate(4deg) }
.hero-phone .tag2 { position: absolute; left: 0; top: 34%; transform: rotate(-4deg); max-width: 46%; white-space: normal; background: var(--surface) }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 32px } .hero-phone .tag, .hero-phone .tag2 { display: none } }

.section { padding-block: 56px }
.section h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1 }
.section .sub { color: var(--muted); max-width: 40em; margin-top: 10px; font-size: 17px }
.reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 28px }
@media (max-width: 900px) { .reels { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.reel { border: 0; padding: 0; background: none; text-align: left; color: inherit }
.reel .thumb { position: relative; aspect-ratio: 9/16; border-radius: 16px; overflow: hidden; background: var(--line); box-shadow: var(--shadow) }
.reel .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s }
.reel:hover .thumb img { transform: scale(1.03) }
.reel .play { position: absolute; inset: auto 12px 12px auto; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: #1d1a33 }
.reel .lang { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 4px 9px; border-radius: 999px }
.reel .meta { margin-top: 10px }
.reel .meta b { display: block; font-family: var(--display); font-size: 17px }
.reel .meta span { color: var(--muted); font-size: 14px }

.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; counter-reset: h }
@media (max-width: 900px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 520px) { .how { grid-template-columns: 1fr } }
.how .card { padding: 22px; counter-increment: h }
.how .card::before { content: counter(h); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--accent); font: 700 17px/1 var(--display); margin-bottom: 14px }
.how h3 { font-size: 19px }
.how p { color: var(--muted); font-size: 15px; margin-top: 6px }

.band { background: var(--ink); color: var(--bg); border-radius: 28px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center }
.band h2 { color: var(--bg) }
.band .sub { color: color-mix(in srgb, var(--bg) 70%, transparent) }
.band .pair { display: grid; gap: 12px }
.band .q { background: color-mix(in srgb, var(--bg) 8%, transparent); border-radius: 14px; padding: 14px 16px; font-size: 17px }
.band .q small { display: block; opacity: .6; font-size: 12px; margin-bottom: 4px; letter-spacing: .06em; text-transform: uppercase }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 28px } }

.foot { padding-block: 40px 56px; color: var(--muted); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 40px }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(15,13,24,.72); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(4px) }
.modal[hidden] { display: none }
.modal .box { width: min(420px, 100%); max-height: 92vh; display: grid; gap: 12px }
.modal video { width: 100%; max-height: 78vh; border-radius: 18px; background: #000 }
.modal .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap }

/* forms */
.field { display: grid; gap: 6px }
.field label { font-weight: 600; font-size: 15px }
.input, textarea.input, select.input { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink) }
.input:focus { outline: none; border-color: var(--accent) }
.choices { display: flex; gap: 8px; flex-wrap: wrap }
.choice { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 15px; font-size: 15px }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); color: var(--accent); font-weight: 600 }

/* job page */
.job-top { padding-block: 22px 8px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap }
.job-top .logo { min-width: 48px; max-width: 150px; height: 48px; padding: 4px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font: 700 20px/1 var(--display); color: var(--accent) }
.job-top .logo img { width: 100%; height: 100%; object-fit: contain }
.job-top h1 { font-size: 24px }
.job-top .eta { margin-left: auto; text-align: right }
.job-top .eta b { font-family: var(--display); font-size: 20px; display: block }
.rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 10px 0 0 }
.rail li { font-size: 12px; color: var(--muted); min-width: 0 }
.rail li i { display: block; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 6px }
.rail li i u { display: block; height: 100%; width: 0; background: var(--accent); transition: width .8s }
.rail li.done i u { width: 100% }
.rail li.done, .rail li.now { color: var(--ink) }
.rail li span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
@media (max-width: 640px) { .rail li span { display: none } .rail li.now span { display: block; overflow: visible } }

.job-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; padding-block: 18px 60px; align-items: start }
@media (max-width: 900px) { .job-body { grid-template-columns: 1fr } }
.now-card { padding: 22px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px) }
@media (max-width: 900px) { .now-card { position: static } }
.now-card .badge { width: 44px; height: 44px; border-radius: 14px; background: var(--soft); color: var(--accent); display: grid; place-items: center; font: 700 20px/1 var(--display) }
.now-card h2 { font-size: 24px; margin-top: 14px }
.now-card h2 span { display: inline-block; animation: word .5s both; animation-delay: calc(var(--i) * 70ms) }
@keyframes word { from { opacity: 0; transform: translateY(8px) } }
.now-card .body { color: var(--muted); margin-top: 8px; font-size: 15px }
.status { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: 14px; padding: 10px 12px; border-radius: 12px; background: var(--soft) }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 1.4s infinite }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8) } }
.status.hold i { background: var(--warn); animation: none }
.status.ok i { background: var(--good); animation: none }

.feed { display: grid; gap: 16px; min-width: 0 }
.piece { padding: 18px; min-width: 0; animation: rise .5s both }
@keyframes rise { from { opacity: 0; transform: translateY(12px) } }
.piece .h { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px }
.piece .h::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)) }
.piece .h em { margin-left: auto; font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500 }
.shots { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 12px; align-items: start }
.shots .browser { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); max-height: 300px }
.shots .browser img { width: 100%; object-fit: cover; object-position: top }
.shots .mob { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); max-height: 300px }
.brandrow { display: flex; gap: 16px; align-items: center; flex-wrap: wrap }
.brandrow .lg { height: 46px; max-width: 220px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px 10px; border: 1px solid var(--line) }
.swatches { display: flex; gap: 6px }
.swatches i { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line) }
.feats { display: flex; flex-wrap: wrap; gap: 8px }
.feats .chip.plain.on { background: var(--soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent) }
.ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
@media (max-width: 700px) { .ideas { grid-template-columns: 1fr } }
.idea { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; font-size: 14px; color: var(--muted); position: relative }
.idea b { display: block; color: var(--ink); font-family: var(--display); font-size: 17px; margin-bottom: 6px }
.idea.pick { border-color: var(--accent); background: var(--soft) }
.idea.pick::after { content: "Chosen"; position: absolute; top: -10px; right: 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px }
.why { margin-top: 10px; font-size: 14px }
.beats { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden }
.beat { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px }
.beat:first-child { border-top: 0 }
.beat .tm { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px }
.beat .ln { margin-top: 4px; font-weight: 600; font-family: "Noto Sans Devanagari", var(--body) }
.beat .ln small { color: var(--muted); font-weight: 500; margin-right: 6px }
.beat .cd { margin-top: 4px; color: var(--accent); font-size: 13px }
.gate { border: 2px solid var(--accent); background: linear-gradient(180deg, var(--soft), var(--surface) 70%) }
.gate .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px }
.gate textarea { margin-top: 10px }
.cast { display: flex; gap: 12px; flex-wrap: wrap }
.cast figure { margin: 0; width: 120px }
.cast img { width: 120px; aspect-ratio: 9/16; object-fit: cover; border-radius: 12px; border: 1px solid var(--line) }
.cast figcaption { font-size: 13px; margin-top: 6px; text-align: center }
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px }
.pics figure { margin: 0; position: relative }
.pics img, .pics video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #000 }
.pics .mv { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 999px }
.voices { display: grid; gap: 8px }
.voice { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px }
.voice button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); color: var(--accent); font-size: 14px }
.voice .t { font-family: "Noto Sans Devanagari", var(--body) }
.voice .t small { color: var(--muted); display: block; font-family: var(--body) }
.final { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; align-items: center }
@media (max-width: 600px) { .final { grid-template-columns: 1fr } }
.final video { width: 100%; aspect-ratio: 9/16; border-radius: 18px; background: #000; object-fit: cover }
.final h3 { font-size: 26px }
.empty { color: var(--muted); text-align: center; padding: 40px 16px }

/* make page */
.make { max-width: 620px; margin: 0 auto; padding-block: 40px 80px }
.make h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.08 }
.make .card { padding: 24px; margin-top: 24px; display: grid; gap: 18px }
.err { color: var(--bad); font-size: 14px; min-height: 1.2em }

/* admin */
.adm { padding-block: 24px 60px }
.adm table { width: 100%; border-collapse: collapse; font-size: 14px }
.adm th, .adm td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top }
.adm th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600 }
.adm .scroll { overflow-x: auto }
.adm .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px }
.adm .card { padding: 18px }
.adm h2 { font-size: 20px; margin-bottom: 10px }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--accent) }
.pill.ok { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good) }
.pill.hold { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn) }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 18px }
.tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600 }
.tabs button[aria-selected="true"] { background: var(--soft); color: var(--accent) }
